fcntl: Don't access nonexistent optional argument.
[gnulib.git] / ChangeLog
blob8b342636e99d6a3c694d7138a3adb39bbdcc5842
1 2018-09-05  Bruno Haible  <bruno@clisp.org>
3         fcntl: Don't access nonexistent optional argument.
4         Reported by Frank Busse <f.busse@imperial.ac.uk> in
5         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
6         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
7         don't consume an argument. For actions that take an 'int' argument,
8         consume an 'int' argument.
10 2018-09-05  Eric Blake  <eblake@redhat.com>
12         doc: mention environ pitfall
13         * doc/posix-functions/environ.texi (environ): Assigning NULL to
14         environ is a glibc extension.
16 2018-09-03  Bruno Haible  <bruno@clisp.org>
18         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
19         Reported by Antoine Luong <antoine.luong@c-s.fr> in
20         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
21         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
22         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
23         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
25 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
27         mktime: fix unlikely race+overflow bug
28         Problem reported by Alexandre Oliva in:
29         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
30         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
31         to avoid an unlikely race if the compiler delays a load and
32         if this cascades into a signed integer overflow.
34 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
36         mktime, timegm: simplify glibc time64_t
37         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
38         Now long int, not time_t, since long int is the longstanding type
39         for this in glibc and there is no need to change it even if time_t
40         becomes 64 bits - even int would do, though this would be a change
41         to the glibc generated code.  When this change is merged into
42         glibc, it should simplify the time_t vs time64_t situation.
44         mktime, timegm: simplify merge to glibc
45         Move code around to make a merge to glibc easier to audit.
46         This should not change behavior.
47         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
48         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
49         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
50         simplify later conditionals; default the others to zero.  In uses
51         of these conditionals, explicitly spell out how _LIBC affects
52         things, so it’s easier to review from a glibc viewpoint.
53         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
54         compartmentalize tzset issues.  Move system-dependent tzsettish
55         code here from mktime.
56         (mktime): Move tzsettish code to my_tzset, and move
57         localtime_offset to within mktime so that it doesn’t
58         need a separate ifdef.
60 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
62         intprops: avoid evaluation of some expressions
63         This makes EXPR_SIGNED (e) easier to use, as it no longer
64         evaluates the expression E.  Formerly, E was required to be free
65         of side effects.
66         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
67         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
68         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
70 2018-08-23  Bruno Haible  <bruno@clisp.org>
72         getcwd: Add cross-compilation guesses.
73         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
74         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
75         Based on a patch by Paul Eggert.
76         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
77         guesses for all GNU systems.
79 2018-08-19  Bruno Haible  <bruno@clisp.org>
81         glob-h: Formalize side effects from other modules.
82         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
83         * m4/glob.m4 (gl_GLOB): Invoke it.
85         fnmatch-h: Formalize side effects from other modules.
86         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
87         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
89         limits-h: Formalize side effects from other modules.
90         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
91         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
93 2018-08-19  Bruno Haible  <bruno@clisp.org>
95         getpass: Move declaration to <unistd.h>.
96         * lib/unistd.in.h (getpass): New declaration.
97         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
98         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
99         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
100         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
101         On glibc systems, don't set REPLACE_GETPASS to 1.
102         * modules/getpass (Depends-on): Add 'unistd'.
103         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
104         (Include): Specify <unistd.h> instead of "getpass.h".
105         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
106         (configure.ac): Sync with the configure.ac section of modules/getpass.
107         (Include): Specify <unistd.h> instead of "getpass.h".
108         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
109         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
110         REPLACE_GETPASS.
111         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
112         REPLACE_GETPASS.
113         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
114         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
115         and musl.
116         * NEWS: Mention the change.
118 2018-08-19  Bruno Haible  <bruno@clisp.org>
120         glob: Fix over-optimization due to attribute __nonnull__.
121         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
123 2018-08-19  Bruno Haible  <bruno@clisp.org>
125         glob: Fix another compilation error when glob.h is not replaced.
126         Reported by Reuben Thomas <rrt@sc3d.org> in
127         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
128         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
129         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
131 2018-08-18  Bruno Haible  <bruno@clisp.org>
133         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
134         Reported by Reuben Thomas <rrt@sc3d.org> in
135         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
136         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
137         in config.h.
139 2018-08-18  Bruno Haible  <bruno@clisp.org>
141         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
142         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
143         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
144         Solution proposed by Eli Zaretskii.
145         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
146         * lib/gettimeofday.c (GetProcAddress): Likewise.
147         * lib/link.c (GetProcAddress): Likewise.
148         * lib/physmem.c (GetProcAddress): Likewise.
149         * lib/poll.c (GetProcAddress): Likewise.
150         * lib/select.c (GetProcAddress): Likewise.
151         * lib/stat-w32.c (GetProcAddress): Likewise.
153 2018-08-18  Bruno Haible  <bruno@clisp.org>
155         glob: Fix another compilation error when glob.h is not replaced.
156         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
157         * lib/globfree.c: Include <libc-config.h>.
159 2018-08-18  Bruno Haible  <bruno@clisp.org>
161         glob: Fix compilation error when glob.h is not replaced.
162         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
163         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
164         * lib/glob_pattern_p.c: Include <libc-config.h>.
165         * modules/glob (Depends-on): Add libc-config.
167 2018-08-18  Bruno Haible  <bruno@clisp.org>
169         scratch_buffer: Add tests.
170         * tests/test-scratch-buffer.c: New file.
171         * modules/scratch_buffer-tests: New file.
173 2018-08-18  Bruno Haible  <bruno@clisp.org>
175         scratch_buffer: Fix include file.
176         Reported by Reuben Thomas <rrt@sc3d.org> in
177         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
178         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
179         double-inclusion guard.
181 2018-08-18  Bruno Haible  <bruno@clisp.org>
183         glob-h: Revert Paul Eggert's revert.
184         * m4/glob_h.m4: Revert to previous state.
185         * modules/glob-h: Likewise.
187 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
189         glob-h: always build glob.h
190         This works around a problem reported by Reuben Thomas in:
191         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
192         This workaround always builds glob.h, even on platforms that
193         do not need it; perhaps this could be improved someday.
194         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
195         is always created now.
196         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
198 2018-08-13  Bruno Haible  <bruno@clisp.org>
200         monetary: Simplify m4 code.
201         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
202         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
204 2018-08-13  Bruno Haible  <bruno@clisp.org>
206         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
207         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
208         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
209         and by Paul J. Lucas <paul@lucasmail.org> in
210         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
211         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
213 2018-08-11  Bruno Haible  <bruno@clisp.org>
215         setlocale: Trivial simplification.
216         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
218 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
220         verify: port 'assume' to traditional tools
221         * lib/verify.h (assume): Port better to Oracle Studio 12.6
222         and other tools that use /*NOTREACHED*/ comments.
224 2018-08-10  Bruno Haible  <bruno@clisp.org>
226         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
227         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
228         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
229         'fnmatch-gnu' is in use.
231 2018-08-07  Bruno Haible  <bruno@clisp.org>
233         glob-h: Add tests.
234         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
235         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
236         tests/test-glob-h.c.
237         * modules/glob-h-tests: New file.
238         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
239         conditions.
240         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
241         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
243 2018-08-07  Bruno Haible  <bruno@clisp.org>
245         glob-h: New module.
246         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
247         replacements.
248         * lib/glob.c: Include <config.h>.
249         * m4/glob_h.m4: New file.
250         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
251         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
252         REPLACE_GLOB_PATTERN_P as appropriate.
253         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
254         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
255         * modules/glob-h: New file.
256         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
257         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
258         lstat, sys_stat. Change conditions.
259         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
260         REPLACE_GLOB_PATTERN_P. Set module indicator.
261         (Makefile.am): Remove code that is moved to glob-h.
262         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
263         * modules/posixcheck (Depends-on): Add glob-h.
265 2018-08-06  Bruno Haible  <bruno@clisp.org>
267         Force generation of substitute .h file when C++ support is enabled.
268         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
269         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
270         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
271         FNMATCH_H to non-empty.
272         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
273         ICONV_H to non-empty.
274         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
275         MONETARY_H to non-empty.
276         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
277         non-empty.
279 2018-08-06  Bruno Haible  <bruno@clisp.org>
281         fnmatch-h: Fix test compilation error on mingw (regression from today).
282         * lib/fnmatch.in.h: Fix conditions.
284 2018-08-06  Bruno Haible  <bruno@clisp.org>
286         sys_resource: Relicense under LGPLv2+.
287         John Malmberg's approval is in
288         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
289         * modules/sys_resource (License): Change to LGPLv2+.
291 2018-08-06  Bruno Haible  <bruno@clisp.org>
293         fnmatch-h: Add tests.
294         * tests/test-fnmatch-h.c: New file.
295         * modules/fnmatch-h-tests: New file.
296         * tests/test-fnmatch-h-c++.cc: New file.
297         * modules/fnmatch-h-c++-tests: New file.
299 2018-08-06  Bruno Haible  <bruno@clisp.org>
301         fnmatch-h: New module.
302         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
303         replacements.
304         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
305         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
306         'posixcheck' warning.
307         * m4/fnmatch_h.m4: New file.
308         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
309         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
310         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
311         as appropriate.
312         * modules/fnmatch-h: New file.
313         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
314         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
315         conditions.
316         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
317         indicator.
318         (Makefile.am): Remove code that is moved to fnmatch-h.
319         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
320         REPLACE_FNMATCH.
321         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
322         * modules/posixcheck (Depends-on): Add fnmatch-h.
324 2018-08-06  Bruno Haible  <bruno@clisp.org>
326         Enable more C++ tests.
327         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
328         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
329         * modules/strings-tests (Depends-on): Add strings-c++-tests.
330         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
331         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
333 2018-08-06  Bruno Haible  <bruno@clisp.org>
335         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
336         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
337         getopt.h.
338         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
340 2018-08-05  Bruno Haible  <bruno@clisp.org>
342         utime-h: Generate header file when module 'posixcheck' is in use.
343         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
344         UTIME_H to non-empty.
346 2018-08-05  Bruno Haible  <bruno@clisp.org>
348         monetary: Generate header file when module 'posixcheck' is in use.
349         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
350         use, set MONETARY_H to non-empty.
352 2018-08-05  Bruno Haible  <bruno@clisp.org>
354         iconv-h: Generate header file when module 'posixcheck' is in use.
355         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
356         set ICONV_H to non-empty.
358 2018-08-05  Bruno Haible  <bruno@clisp.org>
360         Optimize the "checking whether ... is declared without a macro" checks.
361         Suggested by Paul Eggert in
362         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
363         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
364         Gnulib module 'posixcheck' is not in use.
366 2018-08-05  Bruno Haible  <bruno@clisp.org>
368         iconv-h: Enable 'posixcheck' warnings.
369         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
370         iconv_open.
371         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
373 2018-08-05  Bruno Haible  <bruno@clisp.org>
375         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
376         * m4/extern-inline.m4: Add more comments.
377         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
378         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
379         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
381 2018-08-04  Bruno Haible  <bruno@clisp.org>
383         New module 'posixcheck'.
384         * modules/posixcheck: New file.
385         * m4/posixcheck.m4: New file.
386         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
387         (Which modules?): Reference it.
389 2018-08-01  Assaf Gordon <assafgordon@gmail.com>
391         dfa: fix memory leak
392         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
394 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
396         ieee754-h: new module
397         It looks like Emacs can use this for some NaN processing.
398         Emacs uses it only on double NaNs so it should be safe.
399         * MODULES.html.sh (func_all_modules): Add ieee754-h.
400         * config/srclist.txt: Mention ieee754.h in a comment.
401         * doc/glibc-headers/ieee754.texi (ieee754.h):
402         Gnulib now has a substitute that should work
403         except for long double and for non-IEEE platforms.
404         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
405         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
407 2018-07-27  Bruno Haible  <bruno@clisp.org>
409         iswcntrl: Mention minor problem on macOS.
410         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
412 2018-07-26  Colin Watson  <cjwatson@debian.org>
414         bootstrap, gnulib-tool: fix translations rsync
415         Previously, we created files such as $pobase/Makefile.in.in and then the
416         subsequent rsync would immediately delete them.
417         * build-aux/bootstrap (po_download_command_format): Avoid deleting
418         non-.po files in target directory when rsyncing translations.
419         * gnulib-tool (func_import): Likewise.
420         * pygnulib/GLImport.py (GLImport.execute): Likewise.
422 2018-07-25  Jim Meyering  <meyering@fb.com>
424         bootstrap: reinstate definition fo gnulib_mk.
425         That variable is used at least by cppi.
426         * build-aux/bootstrap (gnulib_mk): Restore definition.
427         This reverts the deletion from v0.1-1844-gc66dba9ba.
429 2018-07-23  Bruno Haible  <bruno@clisp.org>
431         doc: For module names, use texinfo markup @code{} or @samp{}.
432         * doc/alloca.texi: Mark gnulib module names with @code.
433         * doc/alloca-opt.texi: Likewise.
434         * doc/quote.texi: Likewise.
435         * doc/posix-functions/freopen.texi: Likewise.
436         * doc/posix-functions/open.texi: Likewise.
437         * doc/posix-functions/readlink.texi: Likewise.
438         * doc/posix-functions/readlinkat.texi: Likewise.
439         * doc/posix-functions/stdout.texi: Likewise.
440         * doc/posix-functions/stderr.texi: Likewise.
441         * doc/posix-functions/unlink.texi: Likewise.
442         * doc/posix-functions/unlinkat.texi: Likewise.
443         * doc/posix-functions/utime.texi: Likewise.
444         * doc/posix-functions/utimensat.texi: Likewise.
445         * doc/posix-functions/utimes.texi: Likewise.
446         * doc/posix-headers/stdint.texi: Likewise.
447         * doc/glibc-functions/futimesat.texi: Likewise.
448         * doc/glibc-functions/lutimes.texi: Likewise.
449         * doc/glibc-functions/memmem.texi: Likewise.
451 2018-07-23  Werner LEMBERG  <wl@gnu.org>
453         doc: Avoid some overfull lines in the TeX output.
454         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
455         @example.
456         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
457         newline before the long URL.
458         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
459         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
460         Add line breaks in code snippets.
462 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
464         hard-locale: simplify by removing hard-locale.m4
465         * m4/hard-locale.m4: Remove.
466         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
467         (configure.ac): Do not call gl_HARD_LOCALE.
469         gnulib-tool: limit line length for git send-email
470         * gnulib-tool (func_import): Break actioncmd log line
471         into multiple lines.
473 2018-07-16  Bruno Haible  <bruno@clisp.org>
475         ffs: Ensure declaration on mingw.
476         Reported by Daniel P. Berrangé <berrange@redhat.com>
477         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
478         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
479         also declared.
481 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
483         regex-tests: add dependency
484         * modules/regex-tests (Depends-on): Add gettext-h.
485         This is needed given the recent changes to regex,
486         which no longer depends on gettext-h.
488 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
490         regex: now in sync with glibc
491         * config/srclist.txt: Gnulib and glibc regex code
492         are synchronized again.
494 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
496         renameatu: rename from renameat2
497         It's looking like Glibc will add a renameat2 function
498         that is incompatible with Gnulib renameat2; see:
499         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
500         To help avoid future confusion, rename renameat2 to something else.
501         Use the name 'renameatu', as the Gnulib function is close to the
502         Glibc function.  Perhaps someday there will also be a renameat2
503         Gnulib module, which mimicks the future glibc renameat2, but that
504         can wait as nobody seems to need such a module now.
505         * NEWS: Mention this.
506         * lib/renameatu.c: Rename from lib/renameat2.c.
507         * lib/renameatu.h: Rename from lib/renameat2.h.
508         * modules/renameatu: Rename from modules/renameat2.
509         * modules/renameatu-tests: Rename from modules/renameat2-tests.
510         All uses of "renameat2" in identifiers or file name
511         changed to "renameatu", except for two instances in
512         lib/renameatu.c that deal with the Linux kernel's
513         renameat2 syscall.
515 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
517         gnulib-tool: minor tweaks for --gnu-make
518         * gnulib-tool: Do not allow --gnu-make in test modes,
519         since they all require automake.
520         (func_emit_lib_Makefile_am): Don’t emit automake comment
521         if --gnu-make.
523         regex: work around conditional-dependencies glitch
524         * modules/regex (Depends-on): Add langinfo.
525         Without this change, I had problems building an experimental
526         version of GNU Emacs.  The symptom of the bug was a message
527         ‘./configure: line 12726: test: =: unary operator expected’.
528         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
529         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
530         was unset.  Although gl_FUNC_NL_LANGINFO has
531         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
532         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
533         --conditional-dependencies sometimes arranges for the
534         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
535         code.  Since the regex code includes <langinfo.h> it should be
536         depending on the langinfo module anyway, and this happens to work
537         around the bug, so install that as a workaround for now.  To
538         reproduce the original problem, run the following shell script on
539         the version of Gnulib just before this patch was installed.
540                 rm -fr foo
541                 mkdir foo
542                 cat >foo/configure.ac <<'EOF'
543                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
544                 gl_EARLY
545                 gl_INIT
546                 AC_OUTPUT
547                 EOF
548                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
549                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
550                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
551                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
552                 cd foo
553                 aclocal -I m4
554                 autoconf
555                 ./configure --with-included-regex
557 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
559         wchar: fix bug when checking for ‘inline’
560         I discovered this when looking into using the regex module
561         with Emacs.
562         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
563         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
564         conftest1.c and conftest2.c but these files were not created.
565         As far as I can see, this check never worked and nobody reported
566         it until now, which is a bit worrisome.
568 2018-06-30  Jim Meyering  <meyering@fb.com>
570         bootstrap: s/--option val/--option=val/
571         * build-aux/bootstrap (gnulib_tool_options): Change the
572         spelling of "--option val" pairs to "--option=val", for
573         aesthetics, and also so that this file no longer triggers
574         a common help2man syntax-check warning when copied into
575         projects like grep, gzip, etc.
577 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
579         manywarnings: omit -Wswitch-default
580         This should make things more consistent, as we already ignore
581         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
582         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
583         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
584         Add -Wswitch-default.
585         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
586         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
587         Remove -Wswitch-default.
589         regex: revert most trimming
590         Problems reported by Bruno Haible in:
591         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
592         * modules/regex (Depends-on): Add lock, memcmp, memmove,
593         and wctype back in.  lock because regex users shouldn’t
594         need to know that regex needs locking, and the rest because
595         gnulib-tool should ordinarily ignore them anyway.
597 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
599         regex: trim module dependencies
600         * modules/regex (Depends-on): Remove gettext-h and lock,
601         since the regex code should work OK without these modules,
602         and Emacs uses it that way.  Also remove memcmp, memmove,
603         and wctype, as these modules are obsolete and should not be
604         needed any more.
606 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
608         regex: glibc does not use intprops.h
609         Maybe we can talk glibc into using intprops.h someday, but
610         now doesn’t seem to be a good time.
611         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
612         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
613         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
615 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
617         regex: port to recently proposed glibc regex merge
618         This patch is inspired by Adhemerval Zanella's recent proposal
619         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
620         to merge glibc and Gnulib regex.  It aims to simplify the merge on
621         the glibc side, without keeping Gnulib portable.
622         * lib/regex.h: Fix a problem with glibc installed-header checking,
623         as follows:
624         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
625         (_Restrict_arr_): Prefer __restrict_arr if defined,
626         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
627         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
628         (build_wcs_upper_buffer, build_upper_buffer)
629         (re_string_translate_buffer, re_string_context_at):
630         Move decls here from lib/regex_internal.h, for glibc internal tests.
631         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
632         glibc BZ #18496.
633         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
634         -Wunused-value.
635         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
636         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
637         (bitset_mask): Now static inline, and without any __attribute__
638         ((unused)) decoration, for glibc internal tests.
640 2018-06-25  Bruno Haible  <bruno@clisp.org>
642         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
643         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
644         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
645         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
646         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
647         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
648         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
649         / -lthread / -lpth does not get optimized away by a preceding
650         --as-needed option.
652 2018-06-25  Bruno Haible  <bruno@clisp.org>
654         Continue to use spaces for indentation, not tabs.
655         * MODULES.html.sh: Untabify.
656         * doc/regex.texi: Likewise.
657         * lib/acl-internal.c: Likewise.
658         * lib/dfa.c: Likewise.
659         * lib/exclude.c: Likewise.
660         * lib/exclude.h: Likewise.
661         * lib/get-permissions.c: Likewise.
662         * lib/gettimeofday.c: Likewise.
663         * lib/parse-datetime.y: Likewise.
664         * lib/pselect.c: Likewise.
665         * lib/set-permissions.c: Likewise.
666         * lib/time.in.h: Likewise.
667         * m4/canonicalize.m4: Likewise.
668         * m4/gc.m4: Likewise.
669         * m4/gnulib-common.m4: Likewise.
670         * m4/pthread_sigmask.m4: Likewise.
671         * m4/vararrays.m4: Likewise.
672         * tests/test-digest.h: Likewise.
673         * tests/test-fcntl-h.c: Likewise.
674         * tests/test-timespec.c: Likewise.
675         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
677 2018-06-25  Bruno Haible  <bruno@clisp.org>
679         manywarnings: Don't enable -Wjump-misses-init warnings by default.
680         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
681         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
682         -Wjump-misses-init.
684 2018-06-25  Jim Meyering  <meyering@fb.com>
686         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
687         * lib/acl-internal.h (free_permission_context): Remove that
688         attribute directive.  Otherwise, it would provoke this from GCC 9:
689         lib/acl-internal.h:300:3: error: 'const' attribute on function \
690           returning 'void' [-Werror=attributes]
692 2018-06-24  Jim Meyering  <meyering@fb.com>
694         parse-datetime: accommodate gcc-4.8.5
695         Bruno Haible reported the build failure in
696         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
697         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
698         on declaration of new local.
700 2018-06-24  Bruno Haible  <bruno@clisp.org>
702         af_alg: Fail in continuable manner on Linux/powerpc64le.
703         Reported by Assaf Gordon <assafgordon@gmail.com>
704         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
705         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
706         byte send() as the first round.
708 2018-06-24  Bruno Haible  <bruno@clisp.org>
710         af_alg: Fix state of stream after sendfile() succeeds.
711         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
712         the stream is correctly positioned afterwards.
713         * modules/crypto/af_alg (Depends-on): Add fflush.
714         * tests/test-digest.h (test_digest_on_files): Verify that after the
715         operation the stream is positioned at end of file.
717 2018-06-24  Jim Meyering  <meyering@fb.com>
719         canon-host: take GCC9's advice rather than ignoring warning
720         Pádraig Brady suggested not to ignore this GCC9 advice.
721         * lib/canon-host.c: Undo preceding change.
722         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
724         parse-datetime.y: avoid spurious GCC 9 warning
725         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
726         a function local prior to the first "goto fail".  The prior use would
727         evoke this:
728         parse-datetime.y: In function 'parse_datetime2':
729         parse-datetime.y:1791:19: error: jump skips variable initialization \
730           [-Werror=jump-misses-init]
731         parse-datetime.y:2385:2: note: label 'fail' defined here
732         parse-datetime.y:188:43: note: '({anonymous})' declared here
733         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
735         canon-host.c: avoid spurious GCC 9 warning
736         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
738         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
739         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
740         * m4/manywarnings.m4: Remove them.
741         Otherwise, building coreutils, I would see this:
742         cc1: error: deprecated command line option '-Wchkp' [-Werror]
743         cc1: error: -Wabi won't warn about anything [-Werror=abi]
744         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
745           which is also used by default
746         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
748 2018-06-24  Bruno Haible  <bruno@clisp.org>
750         af_alg tests: Add another test.
751         * tests/test-digest.h (test_digest_on_files): Also check a large file
752         with a skipped header.
753         * tests/test-md5.c: Include macros.h.
754         * tests/test-sha1.c: Likewise.
755         * tests/test-sha256.c: Likewise.
756         * tests/test-sha512.c: Likewise.
757         * modules/crypto/md5-tests (Files): Add tests/macros.h.
758         * modules/crypto/sha1-tests (Files): Likewise.
759         * modules/crypto/sha256-tests (Files): Likewise.
760         * modules/crypto/sha512-tests (Files): Likewise.
762 2018-06-24  Pádraig Brady  <P@draigBrady.com>
764         maint: clarify comments about sticky EOF
765         * lib/af_alg.c: Be more direct that we can't
766         assume stickiness of EOF for portability reasons.
767         * lib/md5.c: Clarify that this isn't just a glibc issue.
768         * lib/sha1.c: Likewise.
769         * lib/sha256.c: Likewise.
770         * lib/sha512.c: Likewise.
772 2018-06-24  Bruno Haible  <bruno@clisp.org>
774         af_alg: Comment and style improvements.
775         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
776         (afalg_buffer, afalg_stream): Improve comments.
778 2018-06-24  Pádraig Brady  <P@draigBrady.com>
780         af_alg: disable kernel hash functions by default
781         All the kernel routines were seen to be significantly slower
782         with these relatively recent components on an i3-2310M system:
783           kernel-4.10.6-200.fc25.x86_64
784           openssl-1.0.2m-1.fc25.x86_64
785         sha1 was nearly twice as slow in the kernel for example.
786         Further considerations why this should not be the default, at:
787         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
789         * m4/af_alg.m4: Require --with-linux-crypto to enable.
790         * m4/gl-openssl.m4: Tweak accordingly.
792 2018-06-24  Pádraig Brady  <P@draigBrady.com>
794         af_alg: avoid hangs when reading from streams
795         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
796         and thus avoid doing a fread() when feof() is set.
797         * lib/md5.c: Ensure feof() is called before fread().
798         * lib/sha1.c: Likewise.
799         * lib/sha256.c: Likewise.
800         * lib/sha512.c: Likewise.
802 2018-06-24  Pádraig Brady  <P@draigBrady.com>
804         af_alg: fix error handling when hash not returned
805         * lib/af_alg.c (afalg_stream): Handle the case where we've
806         successfully written data to the kernel in the read/write loop,
807         but the kernel doesn't respond with the hash.
809 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
811         libc-config: merge from glibc
812         * lib/cdefs.h (__inline, __restrict):
813         Copy from current glibc.  This fixes glibc bug 17721,
814         which Gnulib had already fixed in a different way.
815         (__nonnull): Lessen the distance from glibc by using the
816         glibc definition inside an ‘#ifndef __nonnull’.
817         (__attribute_nonstring__): New macro, copied from
818         current glibc.
819         * lib/libc-config.h (__attribute_nonstring__): New undef.
820         (__restrict): Remove; workaround no longer needed.
821         Keep the __inline workaround, though, as it uses HAVE___INLINE to
822         support more compilers than the glibc __inline can.
824 2018-06-24  Bruno Haible  <bruno@clisp.org>
826         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
827         * lib/mbrtowc.c (enc_t): New enum type.
828         (locale_enc, locale_enc_cached): New functions.
829         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
830         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
831         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
832         instead.
833         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
834         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
835         * modules/wcwidth (configure.ac): Invoke it.
837 2018-06-24  Bruno Haible  <bruno@clisp.org>
839         wchar-single: Fix test failure in wcwidth tests.
840         * tests/test-wcwidth.c (main): If the wchar-single module is present,
841         skip the tests in the C locale.
843 2018-06-23  Pádraig Brady  <P@draigBrady.com>
845         crypto: mention --without-linux-crypto in --with-openssl --help
846         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
847         routines take precedence in --with-openssl help output.
849 2018-06-23  Pádraig Brady  <P@draigBrady.com>
851         wchar-single: a new module to enable optimizations in wchar replacements
852         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
853         GNULIB_WCHAR_SINGLE is enabled.
854         * lib/wcwidth.c (wcwidth): Likewise.
856 2018-06-23  Bruno Haible  <bruno@clisp.org>
858         libc-config: Fix conflict with FreeBSD include files.
859         * lib/cdefs.h (__nonnull): Remove definition.
860         * lib/libc-config.h (__nonnull): Remove undefinition.
862 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
864         random_r: do not crash if state is unaligned
865         Problem reported by Bruce Korb in:
866         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
867         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
868         with 'cc -O2 -xmemalign=8s'.
869         * lib/random_r.c: Include string.h, for memcpy.
870         (get_int32, set_int32): New functions.
871         (__srandom_r, __initstate_r, __setstate_r, __random_r):
872         Use them to avoid assumption that state pointer is aligned.
873         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
874         * tests/test-random_r.c (test_failed): New function.
875         (main): Use it, to test for alignment bugs.
877         random_r: omit unnecessary include
878         * lib/random_r.c: Do not include limits.h.
880         random, random_r: merge from glibc
881         * lib/random.c, lib/random_r.c:
882         Include libc-config.h if !_LIBC, not config.h unilaterally.
883         * lib/random.c:
884         Do not include stdint.h or time.h; not needed.
885         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
886         (unsafe_state): Rename from generator.  All uses changed.
887         Use C99-style initializers.
888         (__random, __srandom, __initstate, __setstate): Rename from
889         non-underscored version, but define it to non-underscored version
890         on Gnulib.  Add a lock.
891         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
892         Likewise.
893         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
894         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
895         (__srandom_r): Use int32_t instead of long int where int32_t will do.
896         (__random_r): Use uint32 to fix glibc bug 17343.
897         * modules/random, modules/random_r (Depends-on): Add libc-config.
898         Depend on stdint only if $HAVE_RANDOM = 0.
900 2018-06-19  Jim Meyering  <meyering@fb.com>
902         README-release: also run any check-very-expensive tests
903         * top/README-release: Adjust instructions so they run the
904         check-very-expensive tests when there is such a target.
906 2018-06-18  Bruno Haible  <bruno@clisp.org>
908         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
909         * m4/pthread_rwlock_rdlock.m4: Add comment.
910         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
911         are reader-preferring in glibc.
912         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
913         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
915 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
917         crypto: use byteswap
918         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
919         * lib/sm3.c: Include <byteswap.h>.
920         (SWAP): Use its macros rather than reinventing the wheel.
921         * modules/crypto/md4, modules/crypto/md5-buffer:
922         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
923         * modules/crypto/sha512-buffer, modules/crypto/sm3:
924         (Depends-on): Add byteswap.
926 2018-06-17  Pádraig Brady  <P@draigBrady.com>
928         gendocs.sh: fix support for legacy --texi2html
929         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
930         to the default makeinfo invocation.
931         Reported by Bruce Korb
933 2018-06-17  Bruno Haible  <bruno@clisp.org>
935         gettext po infrastructure: Update from current gettext git.
936         Reported by Akim Demaille <akim@lrde.epita.fr>.
937         * build-aux/po/Makefile.in.in: Update from current gettext git.
938         * build-aux/po/remove-potcdate.sin: Likewise.
939         * config/srclist.txt: Temporarily disable sync for these files.
941 2018-06-17  Bruno Haible  <bruno@clisp.org>
943         getloadavg: Return 0 on Windows without Cygwin.
944         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
946 2018-06-17  Paul Smith  <psmith@gnu.org>
948         getloadavg: Allow building on Windows without Cygwin
949         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
950         * m4/getloadavg.m4: Check for unistd.h.
952 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
954         Port crypto/af_alg to GCC 4.8.4
955         Problem reported by Peter Simons in:
956         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
957         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
959 2018-05-27  Colin Watson  <cjwatson@debian.org>
961         bootstrap: document source fetching in --help
962         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
964 2018-04-09  Colin Watson  <cjwatson@debian.org>
966         bootstrap: allow non-submodule control of gnulib
967         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
968         bootstrap.conf when fetching gnulib using "git clone" or via
969         GNULIB_SRCDIR.
971 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
973         crypto: omit stream ops Emacs doesn’t need
974         * lib/md5.c (md5_stream):
975         * lib/sha1.c (sha1_stream):
976         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
977         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
978         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
979         defined.  Emacs needs this, as it does not use the stream
980         operations and doesn’t need all the af_alg stuff we’ve recently
981         added.  Perhaps a similar change is needed to the other crypto
982         modules, but this patch changes only those needed for Emacs.
983         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
984         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
985         New modules, used by Emacs.
986         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
987         * modules/crypto/sha512: Rewrite to depend on the new modules.
989 2018-05-20  Pádraig Brady  <P@draigBrady.com>
991         fts: avoid a memory leak edge case
992         * lib/fts.c (fts_open): Set an appropriate fts_level
993         so that an immediate fts_close() will free the allocation.
994         * tests/test-fts.c (fts_dealloc): Add a test case which
995         will trigger under valgrind or address sanitizer.
996         Fixes https://bugs.gnu.org/31439
998 2018-05-20  Bruno Haible  <bruno@clisp.org>
1000         wcwidth tests: Fix link error.
1001         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
1002         $(LIBUNISTRING).
1004 2018-05-20  Bruno Haible  <bruno@clisp.org>
1006         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
1007         * modules/regex (Files): Add m4/glibc21.m4.
1009 2018-05-20  Bruno Haible  <bruno@clisp.org>
1011         localcharset: Optimize.
1012         * lib/localcharset.c (alias_table): Comment out no-op mappings for
1013         platforms where these don't matter. This reduces the table size,
1014         which in turn reduces the lookup time.
1016 2018-05-19  Bruno Haible  <bruno@clisp.org>
1018         localcharset: Map the locale encodings found in newer OSes.
1019         * lib/localcharset.c (alias_table): Add mapping for locale encodings
1020         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
1021         IRIX 6.5, Minix 3.3.
1022         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
1024 2018-05-19  Bruno Haible  <bruno@clisp.org>
1026         localcharset: Move mapping tables into the code. Use a binary search.
1027         * lib/localcharset.h: Document the GNU canonical names for character
1028         encodings here.
1029         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
1030         relocatable.h, configmake.h.
1031         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
1032         macros.
1033         (charset_aliases): Remove variable.
1034         (get_charset_aliases): Remove function.
1035         (struct table_entry): New type.
1036         (alias_table, locale_table): New constants.
1037         (locale_charset): Use the alias_table or locale_table to get the
1038         canonicalized encoding name.
1039         * lib/config.charset: Remove file.
1040         * lib/ref-add.sin: Remove file.
1041         * lib/ref-del.sin: Remove file.
1042         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
1043         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
1044         * modules/localcharset (Notice): Remove.
1045         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
1046         glibc21.m4.
1047         (Depends-on): Remove configmake.
1048         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
1049         (Makefile.am): Simplify.
1050         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
1052 2018-05-19  Bruno Haible  <bruno@clisp.org>
1054         localcharset: Add a manual test.
1055         * tests/test-localcharset.c: New file.
1056         * modules/localcharset-tests: New file.
1058 2018-05-19  Bruno Haible  <bruno@clisp.org>
1060         localcharset: Remove support for obsolete platforms.
1061         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
1062         Mac OS X 10.2. Comment out dubious entry for Solaris.
1064 2018-05-19  Jim Meyering  <meyering@fb.com>
1066         gnupload: adjust comment
1067         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
1068         more likely we'll remove the just-added code in a year or two.
1070 2018-05-19  Bruno Haible  <bruno@clisp.org>
1072         gnupload: Fix "gpg-agent is not available in this session" error.
1073         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
1075 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1077         crypto/af_alg: fix --help
1078         * m4/af_alg.m4: Avoid spurious newline in --help output.
1080 2018-05-13  Bruno Haible  <bruno@clisp.org>
1082         nl_langinfo: Fix compilation error on Android.
1083         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
1084         INT_CURR_SYMBOL, etc. only if these items are defined.
1086 2018-05-13  Bruno Haible  <bruno@clisp.org>
1088         truncate: Fix compilation error on Android.
1089         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
1090         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
1091         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
1092         HAVE_TRUNCATE.
1093         * modules/truncate: Likewise.
1094         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
1095         not HAVE_TRUNCATE.
1096         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
1097         HAVE_TRUNCATE.
1098         * doc/posix-functions/truncate.texi: Mention the issue.
1100 2018-05-13  Bruno Haible  <bruno@clisp.org>
1102         pthread: Fix compilation error on Android.
1103         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
1104         recursive inclusion of this file.
1106 2018-05-13  Bruno Haible  <bruno@clisp.org>
1108         posix_spawn: Fix compilation error on Android.
1109         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
1110         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
1111         (posix_spawn_file_actions_t): Consider also the case
1112         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
1114 2018-05-13  Bruno Haible  <bruno@clisp.org>
1116         tsearch: Move from K&R C to ANSI C.
1117         * lib/tsearch.c (tfind): Convert definition to ANSI C.
1119 2018-05-13  Bruno Haible  <bruno@clisp.org>
1121         tsearch: Fix compilation error on Android.
1122         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
1123         is 0.
1124         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
1125         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
1126         GNULIB_defined_tsearch is true.
1127         (twalk): Define only if GNULIB_defined_twalk is true.
1128         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
1129         is 0.
1130         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
1131         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
1132         * modules/search (Makefile.am): Substitute HAVE_TWALK.
1134 2018-05-13  Bruno Haible  <bruno@clisp.org>
1136         imaxdiv: Fix compilation error on Android.
1137         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
1138         is not defined.
1139         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
1140         HAVE_DECL_IMAXDIV, is 0.
1141         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
1142         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
1144 2018-05-13  Bruno Haible  <bruno@clisp.org>
1146         Support selective inclusion mechanism of recent mingw.org header files.
1147         Reported by Eli Zaretskii <eliz@gnu.org>.
1148         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
1149         __need_ssize_t, or __need_time_t is defined, just include the system's
1150         <sys/types.h>.
1151         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
1152         include the system's <locale.h>.
1154 2018-05-13  Bruno Haible  <bruno@clisp.org>
1156         Avoid compilation error due to 'mmap' on Android.
1157         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
1158         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
1159         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
1160         Undefine on Android.
1162 2018-05-13  Bruno Haible  <bruno@clisp.org>
1164         Add cross-compilation guesses for Linux systems without glibc.
1165         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
1166         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
1167         * m4/link.m4 (gl_FUNC_LINK): Likewise.
1168         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
1169         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
1170         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
1171         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
1172         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
1173         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
1174         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
1175         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
1176         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
1177         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
1178         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
1179         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
1180         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
1181         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
1182         * m4/utimens.m4 (gl_UTIMENS): Likewise.
1184 2018-05-13  Bruno Haible  <bruno@clisp.org>
1186         getpagesize: Fix compilation error on Android.
1187         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
1188         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
1189         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
1190         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
1191         HAVE_GETPAGESIZE accordingly.
1192         * modules/getcwd (Files): Add m4/getpagesize.m4.
1194 2018-05-13  Bruno Haible  <bruno@clisp.org>
1196         tcgetsid: Fix compilation error on Android.
1197         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
1198         AC_CHECK_FUNC.
1200 2018-05-13  Bruno Haible  <bruno@clisp.org>
1202         getpass: Fix configure test for Android.
1203         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
1204         AC_CHECK_FUNC.
1206 2018-05-13  Bruno Haible  <bruno@clisp.org>
1208         ffs: Fix compilation error on Android.
1209         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
1211 2018-05-13  Bruno Haible  <bruno@clisp.org>
1213         mkfifo: Fix compilation error on Android.
1214         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
1215         AC_CHECK_FUNC.
1217 2018-05-13  Bruno Haible  <bruno@clisp.org>
1219         c-strtod: Fix configure test for Android.
1220         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
1221         AC_CHECK_FUNC.
1223 2018-05-13  Bruno Haible  <bruno@clisp.org>
1225         random: Fix compilation error on Android.
1226         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
1227         AC_CHECK_FUNC.
1229 2018-05-13  Bruno Haible  <bruno@clisp.org>
1231         grantpt: Fix compilation error on Android.
1232         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
1233         AC_CHECK_FUNC.
1235 2018-05-13  Bruno Haible  <bruno@clisp.org>
1237         stdioext: Fix compilation errors with newer Android headers.
1238         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
1239         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
1240         fallbacks for Android.
1241         * lib/fpending.c: Update comments.
1242         * lib/fpurge.c: Likewise.
1243         * lib/freadable.h: Likewise.
1244         * lib/freadable.c: Likewise.
1245         * lib/freadahead.c: Likewise.
1246         * lib/freading.h: Likewise.
1247         * lib/freadptr.c: Likewise.
1248         * lib/fseterr.c: Likewise.
1249         * lib/fwritable.h: Likewise.
1250         * lib/fwritable.c: Likewise.
1251         * lib/fwriting.h: Likewise.
1252         * lib/fwriting.c: Likewise.
1254 2018-05-13  Bruno Haible  <bruno@clisp.org>
1256         doc: Add info about Android versions 2.0 to 8.1.
1257         * doc/**/*.texi: Add info about functions in all released versions of
1258         Bionic.
1260 2018-05-12  Bruno Haible  <bruno@clisp.org>
1262         fseeko: On mingw, don't use the hidden function _fseeki64.
1263         Reported by Eli Zaretskii <eliz@gnu.org>.
1264         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
1265         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
1267 2018-05-12  Bruno Haible  <bruno@clisp.org>
1269         glob: Choose 'dirent_type' in a way that works better on mingw.
1270         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
1271         * lib/glob.c (dirent_type): Define as uint_fast32_t.
1273 2018-05-12  Bruno Haible  <bruno@clisp.org>
1275         execute, spawn-pipe: Avoid warning about redefining 'close'.
1276         Reported by Eli Zaretskii <eliz@gnu.org>.
1277         * lib/execute.c: Undefine 'close' before redefining it.
1278         * lib/spawn-pipe.c: Likewise.
1280 2018-05-12  Bruno Haible  <bruno@clisp.org>
1282         nanosleep: Avoid test failure on mingw when it has nanosleep.
1283         Reported by Eli Zaretskii <eliz@gnu.org>.
1284         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
1285         If it does not exist, use a simpler test program that does not call
1286         alarm().
1288 2018-05-10  Bruno Haible  <bruno@clisp.org>
1290         lock, cond, thread, tls: Use a different symbol as libpthread witness.
1291         Reported by Devin Hussey <husseydevin@gmail.com>.
1292         Based on a patch by Paul Eggert.
1293         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
1294         as witness of libpthread.
1295         * lib/glthread/cond.h (pthread_in_use): Likewise.
1296         * lib/glthread/thread.h (pthread_in_use): Likewise.
1297         * lib/glthread/tls.h (pthread_in_use): Likewise.
1299 2018-05-10  Bruno Haible  <bruno@clisp.org>
1301         cond tests: Fix compilation error on Solaris.
1302         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
1303         macro.
1305 2018-05-10  Bruno Haible  <bruno@clisp.org>
1307         doc: Add partial info about Android 4.3.
1308         * doc/*-functions/*.texi: Add info about functions that were added
1309         to Bionic between Android 4.3 and Android 9.0.
1311 2018-05-10  Bruno Haible  <bruno@clisp.org>
1313         doc: Add info about Android 9.0.
1314         * doc/**/*.texi: Add info about functions and headers in Bionic from
1315         Android 9.0.
1317 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
1319         af_alg: fix my typo in afalg_buffer
1320         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
1321         (afalg_stream): Simplify and avoid the need for a runtime test
1322         at the end.
1324         af_alg: recover better from crypto failures
1325         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
1326         input stream is seekable, by repositioning the stream back to
1327         where it was, possibly by just calling sendfile with an offset
1328         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
1329         cases, which lets our callers try again with user-mode code.
1330         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
1331         instead of on fflush and lseek.
1333         af_alg: distiguish I/O errors better
1334         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
1335         not -EIO, if it’s OK for the caller to try again with user-mode code.
1336         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
1337         some other error number) if fflush fails, as the caller should not
1338         try again that case.
1340         af_alg: avoid gotos
1341         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
1342         gotos, as they were a source of unreliability and made the code a
1343         bit harder to follow.
1345         af_alg: don’t leak file descriptors into children
1346         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
1347         This code should be compiled only on recent GNU/Linux platforms
1348         so we shouldn’t have to also depend on the accept4 module.
1350         af_alg: coalesce socket creation
1351         * lib/af_alg.c (alg_socket): New function.
1352         (afalg_buffer, afalg_stream): Use it.  This avoids some
1353         code duplication and gotos.
1355         af_alg: fix file descriptor leak
1356         * lib/af_alg.c (afalg_stream): Close leak.
1358         af_alg: Pacify --enable-gcc-warnings on GCC 8
1359         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
1360         and checking to pacify gcc -Wjump-misses-init on GCC 8.
1362 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1364         af_alg: Pacify --enable-gcc-warnings
1365         Problem reported by Assaf Gordon in:
1366         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
1367         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
1368         gcc -Wjump-misses-init.
1369         * lib/sha512.c (shaxxx_stream): Now static.
1371 2018-05-06  Bruno Haible  <bruno@clisp.org>
1373         af_alg: Add ability to use Linux kernel crypto API on data in memory.
1374         * lib/af_alg.h (afalg_buffer): New declaration.
1375         * lib/af_alg.c (afalg_buffer): New function.
1377 2018-05-06  Bruno Haible  <bruno@clisp.org>
1379         af_alg: Avoid warnings.
1380         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
1381         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
1383 2018-05-06  Bruno Haible  <bruno@clisp.org>
1385         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
1386         * tests/bench-digest.h: New file.
1387         * tests/bench-md5.c: New file.
1388         * tests/bench-sha1.c: New file.
1389         * tests/bench-sha224.c: New file.
1390         * tests/bench-sha256.c: New file.
1391         * tests/bench-sha384.c: New file.
1392         * tests/bench-sha512.c: New file.
1393         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
1394         tests/bench-digest.h.
1395         (Depends-on): Add getrusage, gettimeofday.
1396         (Makefile.am): Add variables to build bench-md5.
1397         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
1398         tests/bench-digest.h.
1399         (Depends-on): Add getrusage, gettimeofday.
1400         (Makefile.am): Add variables to build bench-sha1.
1401         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
1402         tests/bench-sha256.c, tests/bench-digest.h.
1403         (Depends-on): Add getrusage, gettimeofday.
1404         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
1405         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
1406         tests/bench-sha512.c, tests/bench-digest.h.
1407         (Depends-on): Add getrusage, gettimeofday.
1408         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
1410 2018-05-06  Bruno Haible  <bruno@clisp.org>
1412         af_alg: Fix a resource leak.
1413         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
1414         New local variable 'result'.
1416 2018-05-06  Bruno Haible  <bruno@clisp.org>
1418         af_alg: Fix bug with streams that are not at position 0.
1419         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
1420         assume that the stream is positioned at position 0.
1421         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
1422         of the stream.
1423         * lib/md5.h (md5_stream): Likewise.
1424         * lib/sha1.h (sha1_stream): Likewise.
1425         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
1426         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
1427         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
1429         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
1430         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
1431         stream that is not positioned at the beginning.
1433 2018-05-06  Bruno Haible  <bruno@clisp.org>
1435         af_alg: Add configure option to enable/disable use of Linux crypto API.
1436         Suggested by Assaf Gordon <assafgordon@gmail.com>.
1437         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
1438         USE_LINUX_CRYPTO_API.
1439         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
1440         * lib/af_alg.c: Likewise.
1442 2018-05-06  Bruno Haible  <bruno@clisp.org>
1444         Followup to 'af_alg: New module.'.
1445         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
1446         * modules/crypto/sha1 (Depends-on): Likewise.
1447         * modules/crypto/sha256 (Depends-on): Likewise.
1448         * modules/crypto/sha512 (Depends-on): Likewise.
1450 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
1452         crypto/{md5,sha1,sha256,sha512}: simplify
1453         * lib/md5.c (md5_stream):
1454         * lib/sha1.c (sha1_stream):
1455         * lib/sha256.c (shaxxx_stream):
1456         Simplify, partly by assuming C99.
1457         * lib/sha256.c (shaxxx_stream):
1458         New function, which implements both sha256 and sha224.
1459         Simplify, partly by assuming C99.
1460         (sha256_stream, sha224_stream):
1461         Use it to avoid code duplication, removing a FIXME.
1462         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
1463         Likewise.
1465         af_alg: Improve comments.
1466         * lib/af_alg.h: Use imperatives and tighten up wording.
1468 2018-05-05  Bruno Haible  <bruno@clisp.org>
1470         af_alg: Improve comments.
1471         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
1473 2018-05-05  Bruno Haible  <bruno@clisp.org>
1475         af_alg: New module.
1476         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
1477         * lib/af_alg.c: Include "af_alg.h" before the other header files.
1478         * lib/md5.c: Include "af_alg.h" unconditionally.
1479         (md5_stream): Invoke afalg_stream unconditionally.
1480         * lib/sha1.c: Include "af_alg.h" unconditionally.
1481         (sha1_stream): Invoke afalg_stream unconditionally.
1482         * lib/sha256.c: Include "af_alg.h" unconditionally.
1483         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
1484         * lib/sha512.c: Include "af_alg.h" unconditionally.
1485         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
1486         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
1487         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
1488         * modules/crypto/af_alg: New file.
1489         * modules/crypto/md5 (Files): Remove files that are now in the
1490         'crypto/af_alg' module.
1491         (Depends-on): Add crypto/af_alg.
1492         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
1493         (Makefile.am): Don't mention af_alg.c here.
1494         * modules/crypto/sha1 (Files): Remove files that are now in the
1495         'crypto/af_alg' module.
1496         (Depends-on): Add crypto/af_alg.
1497         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
1498         (Makefile.am): Don't mention af_alg.c here.
1499         * modules/crypto/sha256 (Files): Remove files that are now in the
1500         'crypto/af_alg' module.
1501         (Depends-on): Add crypto/af_alg.
1502         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
1503         (Makefile.am): Don't mention af_alg.c here.
1504         * modules/crypto/sha512 (Files): Remove files that are now in the
1505         'crypto/af_alg' module.
1506         (Depends-on): Add crypto/af_alg.
1507         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
1508         (Makefile.am): Don't mention af_alg.c here.
1510 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
1512         crypto tests: pacify GCC
1513         * tests/test-digest.h (test_digest_on_files):
1514         Don’t assume digest size fits in int (!).
1516         af_alg: minor style improvements
1517         * lib/af_alg.c (afalg_stream): Prefer C99 style
1518         decl-after-statement, since we’re already assuming C99.  Clarify
1519         by strengthening the bind test and omit unnecessary assignment.
1521 2018-05-05  Bruno Haible  <bruno@clisp.org>
1523         af_alg: Fix bug on empty files.
1524         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
1525         stream is empty.
1527 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
1529         sys-limits.h: new file for crypto and safe I/O
1530         * lib/af_alg.c: Include sys-limits.h.
1531         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
1532         (afalg_stream): Also reject negative sizes for sendfile; they
1533         should not happen and the code is a bit cleaner and faster this way.
1534         * lib/safe-read.c: Include sys-limits.h.
1535         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
1536         * lib/sys-limits.h: New file, with values and commentary derived
1537         from the old safe-read.c and from GNU Emacs sysdep.c.
1538         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
1539         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
1540         Add lib/sys-limits.h to Files section.
1542 2018-05-05  Bruno Haible  <bruno@clisp.org>
1544         af_alg: Improve function signature.
1545         * lib/af_alg.h (afalg_stream): Swap second and third argument.
1546         * lib/af_alg.c (afalg_stream): Likewise.
1547         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
1549 2018-05-05  Bruno Haible  <bruno@clisp.org>
1551         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
1552         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
1553         * modules/crypto/sha1 (Depends-on): Likewise.
1554         * modules/crypto/sha256 (Depends-on): Likewise.
1555         * modules/crypto/sha512 (Depends-on): Likewise.
1557 2018-05-05  Bruno Haible  <bruno@clisp.org>
1559         crypto/{md5,sha1,sha256,sha512}: Fix module description.
1560         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
1561         * modules/crypto/sha1 (Depends-on): Likewise.
1562         * modules/crypto/sha256 (Depends-on): Likewise.
1563         * modules/crypto/sha512 (Depends-on): Likewise.
1565 2018-05-05  Bruno Haible  <bruno@clisp.org>
1567         af_alg: Add documentation.
1568         * lib/af_alg.h: Add comments.
1570 2018-05-05  Bruno Haible  <bruno@clisp.org>
1572         sha512: Add tests.
1573         * tests/test-sha512.c: New file.
1574         * modules/crypto/sha512-tests: New file.
1576 2018-05-05  Bruno Haible  <bruno@clisp.org>
1578         sha256: Add tests.
1579         * tests/test-sha256.c: New file.
1580         * modules/crypto/sha256-tests: New file.
1582 2018-05-05  Bruno Haible  <bruno@clisp.org>
1584         sha1 tests: Add test for sha1_stream.
1585         * tests/test-sha1.c: Include test-digest.h.
1586         (main): Invoke test_digest_on_files on 'sha1_stream'.
1587         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
1589 2018-05-05  Bruno Haible  <bruno@clisp.org>
1591         md5 tests: Add test for md5_stream.
1592         * tests/test-digest.h: New file.
1593         * tests/test-md5.c: Include test-digest.h.
1594         (main): Invoke test_digest_on_files on 'md5_stream'.
1595         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
1597 2018-04-28  Matteo Croce  <mcroce@redhat.com>
1599         md5sum: Use AF_ALG when available.
1600         * lib/md5.c: Include af_alg.h.
1601         (md5_stream): Use afalg_stream when available.
1602         * modules/crypto/md5 (Files): Add the af_alg files.
1603         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
1604         (Makefile.am): Add af_alg.c.
1606 2018-04-28  Matteo Croce  <mcroce@redhat.com>
1608         sha512sum: Use AF_ALG when available.
1609         * lib/sha512.c: Include af_alg.h.
1610         (sha512_stream, sha384_stream): Use afalg_stream when available.
1611         * modules/crypto/sha512 (Files): Add the af_alg files.
1612         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
1613         (Makefile.am): Add af_alg.c.
1615 2018-04-28  Matteo Croce  <mcroce@redhat.com>
1617         sha256sum: Use AF_ALG when available.
1618         * lib/sha256.c: Include af_alg.h.
1619         (sha256_stream, sha224_stream): Use afalg_stream when available.
1620         * modules/crypto/sha256 (Files): Add the af_alg files.
1621         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
1622         (Makefile.am): Add af_alg.c.
1624 2018-04-28  Matteo Croce  <mcroce@redhat.com>
1626         sha1sum: Use AF_ALG when available.
1627         * lib/af_alg.h: New file.
1628         * lib/af_alg.c: New file.
1629         * lib/sha1.c: Include af_alg.h.
1630         (sha1_stream): Use afalg_stream when available.
1631         * m4/linux-if-alg.m4: New file.
1632         * modules/crypto/sha1 (Files): Add the new files.
1633         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
1634         (Makefile.am): Add af_alg.c.
1636 2018-05-05  Bruno Haible  <bruno@clisp.org>
1638         all: Replace more http URLs by https URLs.
1639         * lib/localename.c: Use https: URL.
1640         * lib/timespec.h: Likewise.
1642 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
1644         maint: port more modules to GCC 8
1645         * lib/dirname.h (base_name):
1646         * lib/exclude.h (new_exclude):
1647         * lib/xstrndup.h (xstrndup):
1648         Add malloc attribute.
1649         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
1650         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
1651         This pacifies GCC 8.
1652         * m4/gnulib-common.m4 (gl_COMMON_BODY):
1653         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
1655 2018-05-03  Bruno Haible  <bruno@clisp.org>
1657         Simplify code. Drop support for Borland C++ on Windows.
1658         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
1659         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
1660         'defined _WIN32'.
1661         * lib/canonicalize-lgpl.c: Likewise.
1662         * lib/classpath.c: Likewise.
1663         * lib/clean-temp.c: Likewise.
1664         * lib/csharpexec.c: Likewise.
1665         * lib/ctime.c: Likewise.
1666         * lib/dosname.h: Likewise.
1667         * lib/dup2.c: Likewise.
1668         * lib/errno.in.h: Likewise.
1669         * lib/error.c: Likewise.
1670         * lib/euidaccess.c: Likewise.
1671         * lib/execute.c: Likewise.
1672         * lib/fcntl.in.h: Likewise.
1673         * lib/fcntl.c: Likewise.
1674         * lib/filename.h: Likewise.
1675         * lib/findprog.c: Likewise.
1676         * lib/flock.c: Likewise.
1677         * lib/fopen.c: Likewise.
1678         * lib/freopen.c: Likewise.
1679         * lib/fstat.c: Likewise.
1680         * lib/fsync.c: Likewise.
1681         * lib/gc-gnulib.c: Likewise.
1682         * lib/get-rusage-data.c: Likewise.
1683         * lib/getaddrinfo.c: Likewise.
1684         * lib/getdelim.c: Likewise.
1685         * lib/getdtablesize.c: Likewise.
1686         * lib/gethostname.c: Likewise.
1687         * lib/getlogin.c: Likewise.
1688         * lib/getlogin_r.c: Likewise.
1689         * lib/getopt.c: Likewise.
1690         * lib/getpagesize.c: Likewise.
1691         * lib/getpass.c: Likewise.
1692         * lib/getrusage.c: Likewise.
1693         * lib/gettimeofday.c: Likewise.
1694         * lib/glob.c: Likewise.
1695         * lib/inttypes.in.h: Likewise.
1696         * lib/isapipe.c: Likewise.
1697         * lib/javaexec.c: Likewise.
1698         * lib/link.c: Likewise.
1699         * lib/localcharset.c: Likewise.
1700         * lib/localename.h: Likewise.
1701         * lib/localename.c: Likewise.
1702         * lib/localtime.c: Likewise.
1703         * lib/lseek.c: Likewise.
1704         * lib/mbsinit.c: Likewise.
1705         * lib/mkdir.c: Likewise.
1706         * lib/msvc-nothrow.h: Likewise.
1707         * lib/nanosleep.c: Likewise.
1708         * lib/nl_langinfo.c: Likewise.
1709         * lib/nonblocking.c: Likewise.
1710         * lib/nproc.c: Likewise.
1711         * lib/open.c: Likewise.
1712         * lib/openpty.c: Likewise.
1713         * lib/pathmax.h: Likewise.
1714         * lib/pipe-filter-aux.c: Likewise.
1715         * lib/pipe-filter-gi.c: Likewise.
1716         * lib/pipe-filter-ii.c: Likewise.
1717         * lib/pipe.c: Likewise.
1718         * lib/pipe2.c: Likewise.
1719         * lib/poll.c: Likewise.
1720         * lib/popen.c: Likewise.
1721         * lib/posix_openpt.c: Likewise.
1722         * lib/printf-parse.c: Likewise.
1723         * lib/progreloc.c: Likewise.
1724         * lib/putenv.c: Likewise.
1725         * lib/read.c: Likewise.
1726         * lib/relocatable.c: Likewise.
1727         * lib/rename.c: Likewise.
1728         * lib/same-inode.h: Likewise.
1729         * lib/secure_getenv.c: Likewise.
1730         * lib/select.c: Likewise.
1731         * lib/sethostname.c: Likewise.
1732         * lib/setlocale.c: Likewise.
1733         * lib/sigaction.c: Likewise.
1734         * lib/sigprocmask.c: Likewise.
1735         * lib/sleep.c: Likewise.
1736         * lib/spawn-pipe.h: Likewise.
1737         * lib/spawn-pipe.c: Likewise.
1738         * lib/spawni.c: Likewise.
1739         * lib/stat-time.h: Likewise.
1740         * lib/stat-w32.c: Likewise.
1741         * lib/stat.c: Likewise.
1742         * lib/stdio.in.h: Likewise.
1743         * lib/stdio-impl.h: Likewise.
1744         * lib/stdio-read.c: Likewise.
1745         * lib/stdio-write.c: Likewise.
1746         * lib/stdlib.in.h: Likewise.
1747         * lib/strerror_r.c: Likewise.
1748         * lib/strftime-fixes.c: Likewise.
1749         * lib/sys_stat.in.h: Likewise.
1750         * lib/sys_types.in.h: Likewise.
1751         * lib/sys_wait.in.h : Likewise.
1752         * lib/system-quote.h: Likewise.
1753         * lib/system-quote.c: Likewise.
1754         * lib/tmpdir.c: Likewise.
1755         * lib/tzset.c: Likewise.
1756         * lib/uname.c: Likewise.
1757         * lib/unistd.in.h: Likewise.
1758         * lib/utime.in.h: Likewise.
1759         * lib/utime.c: Likewise.
1760         * lib/utimecmp.c: Likewise.
1761         * lib/utimens.c: Likewise.
1762         * lib/vasnprintf.c: Likewise.
1763         * lib/vma-iter.h: Likewise.
1764         * lib/vma-iter.c: Likewise.
1765         * lib/wait-process.c: Likewise.
1766         * lib/wcsftime.c: Likewise.
1767         * lib/wctype.in.h: Likewise.
1768         * lib/write.c: Likewise.
1769         * tests/nap.h: Likewise.
1770         * tests/test-cloexec.c: Likewise.
1771         * tests/test-dup-safer.c: Likewise.
1772         * tests/test-dup2.c: Likewise.
1773         * tests/test-dup3.c: Likewise.
1774         * tests/test-fcntl.c: Likewise.
1775         * tests/test-get-rusage-data.c: Likewise.
1776         * tests/test-getaddrinfo.c: Likewise.
1777         * tests/test-getlogin.h: Likewise.
1778         * tests/test-isatty.c: Likewise.
1779         * tests/test-localename.c: Likewise.
1780         * tests/test-mbrtowc-w32.c: Likewise.
1781         * tests/test-nonblocking.c: Likewise.
1782         * tests/test-nonblocking-pipe-main.c: Likewise.
1783         * tests/test-nonblocking-socket-main.c: Likewise.
1784         * tests/test-nonblocking-socket.h: Likewise.
1785         * tests/test-pipe.c: Likewise.
1786         * tests/test-pipe2.c: Likewise.
1787         * tests/test-poll.c: Likewise.
1788         * tests/test-pthread_sigmask1.c: Likewise.
1789         * tests/test-select.h: Likewise.
1790         * tests/test-sethostname2.c: Likewise.
1791         * tests/test-sigprocmask.c: Likewise.
1792         * tests/test-spawn-pipe-child.c: Likewise.
1793         * tests/test-stat-time.c: Likewise.
1794         * tests/test-system-quote-main.c: Likewise.
1795         * tests/test-utimens-common.h: Likewise.
1796         * tests/test-wcrtomb-w32.c: Likewise.
1797         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
1798         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
1799         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
1800         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
1801         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
1802         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
1803         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
1804         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
1805         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
1806         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
1807         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
1808         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
1809         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
1810         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
1811         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
1812         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1814 2018-05-02  Bruno Haible  <bruno@clisp.org>
1816         localename: Fix test failures on mingw.
1817         * lib/localename.c (gl_locale_name_thread): Remove code specific to
1818         native Windows.
1819         (gl_locale_name_posix): Move code specific to native Windows here.
1820         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
1821         Accept result without charset suffix, as it appears on mingw.
1823 2018-04-28  Paul Smith  <psmith@gnu.org>
1825         bootstrap: Avoid gnulib operations if not needed
1826         * build-aux/bootstrap: Remove unused variable gnulib_mk.
1827         Set $gnulib_extra_files early so it can be overridden in .conf.
1828         Remove redundant --import flag from $gnulib_tool_options.
1829         Set $use_gnulib to false if no gnulib modules or files are needed.
1830         If $use_gnulib is false, don't do anything related to gnulib.
1831         A lot of this is just whitespace (indentation) changes.
1833 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
1835         manywarnings: port to GCC 8.0
1836         * build-aux/gcc-warning.spec: Add -Wcatch-value,
1837         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
1838         fact that the GCC help message now mentions operands for
1839         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
1840         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
1841         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
1842         and -Wunused-const-variable.
1843         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
1844         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
1845         -Wmissing-attributes, -Wmultistatement-macros,
1846         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
1847         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
1849 2018-04-24  Bruno Haible  <bruno@clisp.org>
1851         sys_socket: Make SO_REUSEPORT available across platforms.
1852         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1853         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
1854         * doc/posix-headers/sys_socket.texi: Mention the issue.
1855         * tests/test-poll.c (SO_REUSEPORT): Remove.
1856         * tests/test-select.h: Include <sys/socket.h>.
1857         (SO_REUSEPORT): Remove.
1858         * modules/select-tests (Depends-on): Add 'sys_socket'.
1860 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
1862         localcharset: short-circuit the search for an alias on a Mac
1863         * lib/localcharset.c (get_charset_aliases): Add a tautological
1864         UTF-8 entry to speed up the search for this case.
1865         Most machines default to a UTF-8 locale nowadays, so begin the
1866         list of aliases with a dummy UTF-8 entry so it will be found
1867         immediately and a time-consuming search through the rest of
1868         the list is avoided.
1870 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
1872         fts: add comment
1873         * lib/fts.c (fts_build): Explain why ==, not >.
1874         See remark by Bernhard Voelker in:
1875         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
1877         fts: fix bug in find across filesystems
1878         This fixes a bug I introduced last summer.
1879         Problem reported by Kamil Dudka in:
1880         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
1881         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
1882         (leaf_optimization):
1883         New arg for file descriptor.  All callers changed.
1884         (fts_build): Check for whether inodes should be sorted
1885         before closing the directory.
1887 2018-04-07  Bruno Haible  <bruno@clisp.org>
1889         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
1890         Reported by Genki Sky <sky@genki.is>.
1891         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
1892         version 0.9.10 or newer.
1893         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
1894         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
1895         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
1896         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
1897         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
1899 2018-04-07  Bruno Haible  <bruno@clisp.org>
1901         execute: Update comment.
1902         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
1904 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
1906         fts: treat CIFS like NFS
1907         Problem reported by Kamil Dudka in:
1908         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
1909         * lib/fts.c (S_MAGIC_CIFS): New macro.
1910         (dirent_inode_sort_may_be_useful, leaf_optimization):
1911         Treat CIFS like NFS.
1913 2018-03-28  Bruno Haible  <bruno@clisp.org>
1915         c-stack: Fix possible build failure on some platforms.
1916         * lib/c-stack.c (die): Define whenever this function is referenced.
1918 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
1920         time_rz: fix workaround for Mac OS X 10.6 infloop
1921         Problems reported by Charles A. Roelli (Bug#27736#117).
1922         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
1923         Also, discard output, which clutters the 'configure' log.
1925 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
1927         havelib: port to Solaris 10 /bin/sh
1928         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
1929         instead of '! test EXPR'.
1931 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
1933         time_rz: work around Mac OS X 10.6 infloop
1934         * doc/posix-functions/localtime.texi:
1935         * doc/posix-functions/localtime_r.texi: Mention the bug.
1936         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
1937         better to fix localtime and localtime_r instead, but that would be
1938         more work and is not needed to fix the Emacs problem.
1939         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
1941 2018-03-24  Jim Meyering  <meyering@fb.com>
1943         test-version-etc.sh: don't use diff directly: use init.sh's compare
1944         We'd rather not sacrifice readable "diff -u" output even for
1945         "diff -c" output (not supported by busybox) or for even less
1946         readable ed-style "diff" output.  So use init.sh's compare function
1947         * tests/test-version-etc.sh: Source init.sh and add "." to path.
1948         Remove "./" from invocation of test-version-etc, so we use path.
1949         And s/diff/compare/.
1950         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
1951         to get init.sh.
1952         Prompted by Eric Blake's comments in
1953         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
1955 2018-03-24  Bruno Haible  <bruno@clisp.org>
1957         javacomp-script, javacomp: Add support for Java 10.
1958         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
1959         target-version 10.
1960         * lib/javaversion.h: Update comments.
1961         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
1962         source_version_index, get_goodcode_snippet, get_failcode_snippet,
1963         TARGET_VERSION_BOUND, target_version_index,
1964         corresponding_classfile_version): Accept source_version 10 and
1965         target_version 10.
1966         * lib/javacomp.h: Update comments accordingly.
1968 2018-03-24  Bruno Haible  <bruno@clisp.org>
1970         javacomp-script, javacomp: Update comments.
1971         * m4/javacomp.m4: Update comments regarding gcj.
1972         * lib/javacomp.h: Likewise.
1974 2018-03-24  Bruno Haible  <bruno@clisp.org>
1976         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
1977         * lib/javaversion.h: Update comments.
1978         * lib/javacomp.h: Likewise.
1979         * lib/javacomp.c (default_target_version, source_version_index,
1980         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
1981         "1.9".
1982         (TARGET_VERSION_BOUND): Bump to 9.
1983         (target_version_index, corresponding_classfile_version): Recognize "9"
1984         instead of "1.9".
1985         (get_source_version_for_javac): New function.
1986         (is_envjavac_nongcj_usable, is_javac_usable): Add
1987         source_version_for_javac argument.
1988         (compile_java_class): Determine and pass source_version_for_javac.
1989         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
1990         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
1991         appropriate.
1993 2018-03-23  Jim Meyering  <meyering@fb.com>
1995         test-version-etc.sh: port to diff without -c
1996         * tests/test-version-etc.sh: Don't use diff's -c option.
1997         This caused spurious test failure on Alpine Linux, which
1998         uses busybox's diff. Reported by Assaf Gordon in
1999         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
2001 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
2003         c-stack: port to recent GCC build
2004         Problem reported by The Fireplace (Bug#30913).
2005         * lib/c-stack.c (die): Define only if used.
2007 2018-03-20  Bruno Haible  <bruno@clisp.org>
2009         euidaccess: Port to native Windows.
2010         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
2011         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
2013 2018-03-19  Bruno Haible  <bruno@clisp.org>
2015         javacomp: Add support for Java 7, 8, 9.
2016         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
2017         source_version_index, get_goodcode_snippet, get_failcode_snippet,
2018         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
2019         and target_version 1,7, 1.8, 1.9.
2020         * lib/javacomp.h: Update comments accordingly.
2022 2018-03-19  Bruno Haible  <bruno@clisp.org>
2024         javacomp-script: Add support for Java 9.
2025         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
2026         target-version 1.9.
2028 2018-03-16  Bruno Haible  <bruno@clisp.org>
2030         glob: Don't compile replacements on recent glibc systems.
2031         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
2032         REPLACE_GLOB is 0, include the system's <glob.h> and use
2033         _GL_CXXALIAS_SYS.
2034         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
2035         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
2036         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
2037         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
2038         Remove snippet/warn-on-use.
2039         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
2040         (Makefile.am): Create glob.h always. Update list of substitutions in
2041         glob.h. Don't depend on $(WARN_ON_USE_H).
2043 2018-03-16  Bruno Haible  <bruno@clisp.org>
2045         glob: Fix link error on native Windows.
2046         * modules/glob (Depends-on): Add 'lstat'.
2048 2018-03-15  Bruno Haible  <bruno@clisp.org>
2050         glob: Fix compilation error in C++ mode.
2051         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
2053 2018-03-15  Bruno Haible  <bruno@clisp.org>
2055         host-cpu-c-abi: Support for RISC-V CPU.
2056         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
2057         riscv32 and riscv64 ABIs.
2058         References:
2059         https://github.com/riscv/riscv-toolchain-conventions
2060         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
2061         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
2063 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2065         fflush: be more paranoid about libio.h change
2066         Suggested by Eli Zaretskii in:
2067         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
2068         * lib/fbufmode.c (fbufmode):
2069         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
2070         (disable_seek_optimization, rpl_fflush):
2071         * lib/fpending.c (__fpending):
2072         * lib/fpurge.c (fpurge):
2073         * lib/freadable.c (freadable):
2074         * lib/freadahead.c (freadahead):
2075         * lib/freading.c (freading):
2076         * lib/freadptr.c (freadptr):
2077         * lib/freadseek.c (freadptrinc):
2078         * lib/fseeko.c (fseeko):
2079         * lib/fseterr.c (fseterr):
2080         * lib/fwritable.c (fwritable):
2081         * lib/fwriting.c (fwriting):
2082         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
2084 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
2086         maint: write-file-hooks -> before-save-hook
2087         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
2088         it's time to use the recommended replacement.
2089         Problem reported by Glenn Morris in:
2090         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
2091         * build-aux/announce-gen, build-aux/bootstrap:
2092         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
2093         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
2094         * build-aux/gnu-web-doc-update, build-aux/gnupload:
2095         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
2096         * build-aux/update-copyright, build-aux/useless-if-before-free:
2097         * build-aux/vc-list-files:
2098         Update hook usage for files where Gnulib is the canonical source.
2100 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
2102         binary-io: pacify gcc -Wunused-parameter
2103         Problem reported by Reuben Thomas in:
2104         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
2105         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
2106         Use _GL_UNUSED where appropriate.
2108         fflush: adjust to glibc 2.28 libio.h removal
2109         Problem reported by Daniel P. Berrangé in:
2110         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
2111         * lib/fbufmode.c (fbufmode):
2112         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
2113         (disable_seek_optimization, rpl_fflush):
2114         * lib/fpending.c (__fpending):
2115         * lib/fpurge.c (fpurge):
2116         * lib/freadable.c (freadable):
2117         * lib/freadahead.c (freadahead):
2118         * lib/freading.c (freading):
2119         * lib/freadptr.c (freadptr):
2120         * lib/freadseek.c (freadptrinc):
2121         * lib/fseeko.c (fseeko):
2122         * lib/fseterr.c (fseterr):
2123         * lib/fwritable.c (fwritable):
2124         * lib/fwriting.c (fwriting):
2125         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
2126         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
2127         Define if not already defined.
2129 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
2131         environ: fix link error on 32-bit Cygwin
2132         Problem reported for GNU Emacs by Ken Brown in:
2133         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
2134         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
2136 2018-02-24  Bruno Haible  <bruno@clisp.org>
2138         mbrtowc tests: Fix regression on glibc.
2139         Reported by Bernhard Voelker.
2140         * tests/test-mbrtowc.c (main): Fix expected value of wc.
2142 2018-02-24  Bruno Haible  <bruno@clisp.org>
2144         striconveha, uniconv/*: Avoid test failures on musl libc.
2145         * tests/iconvsupport.c: New file.
2146         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
2147         does not support the ISO-2022-JP-2 encoding.
2148         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
2149         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
2150         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
2151         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
2152         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
2153         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
2154         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
2155         (Makefile.am): Link test-striconveha with iconvsupport.o.
2156         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
2157         tests/iconvsupport.c.
2158         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
2159         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
2160         tests/iconvsupport.c.
2161         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
2162         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
2163         tests/iconvsupport.c.
2164         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
2165         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
2166         tests/iconvsupport.c.
2167         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
2168         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
2169         tests/iconvsupport.c.
2170         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
2171         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
2172         tests/iconvsupport.c.
2173         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
2175 2018-02-24  Bruno Haible  <bruno@clisp.org>
2177         localename: Add support for musl libc.
2178         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
2179         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
2180         on Linux platforms which define NL_LOCALE_NAME.
2182 2018-02-24  Bruno Haible  <bruno@clisp.org>
2184         mbrtowc tests: Don't make assumptions about the charset the C locale.
2185         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
2186         particular mapping in the C locale.
2188 2018-02-24  Bruno Haible  <bruno@clisp.org>
2190         ptsname_r: Don't expect that this function sets errno.
2191         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
2192         from ptsname_r().
2193         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
2195 2018-02-23  Bruno Haible  <bruno@clisp.org>
2197         xmalloca: pacify gcc -Wbad-function-cast
2198         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
2200 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
2202         nl_langinfo: pacify gcc -Wunused-function
2203         * lib/nl_langinfo.c (ctype_codeset): Do not define if
2204         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
2205         this case.  Without this change, I got a diagnostic when building
2206         coreutils on Fedora 27 with gcc 7.3.1 20180130.
2208         same: pacify gcc -Wunused-variable
2209         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
2210         Omit unused variable.
2212         malloca: pacify gcc -Wbad-function-cast
2213         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
2214         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
2215         To pacify GCC, I had to cast alloca’s result to some type other
2216         than void * before casting that to uintptr_t.
2218 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
2220         utimecmp: new function utimecmpat
2221         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
2222         Do not include utimens.h.
2223         (utimecmpat): New function, generalizing utimecmp.
2224         (utimecmp): Now a thin layer around utimecmpat.
2225         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
2226         utimensat instead of on lstat and utimens.
2228         same: new function same_nameat
2229         * lib/same.c: Include fcntl.h.
2230         * lib/same.c (same_nameat): New function, generalizing same_name.
2231         (same_name): Now a thin layer around same_nameat.
2232         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
2233         * modules/same (Depends-on): Depend on fstatat, openat.
2235 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
2237         warnings: Add support for Objective C.
2238         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
2239         macro.
2241 2018-02-17  Bruno Haible  <bruno@clisp.org>
2243         lock: Fix test-once1 crash on FreeBSD11.
2244         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
2245         'pthread_create', not 'pthread_cancel'.
2247 2018-02-17  Bruno Haible  <bruno@clisp.org>
2249         lock: Add test of gl_once.
2250         * tests/test-once.c: New file.
2251         * modules/lock-tests (Files): Add it.
2252         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
2254 2018-02-17  Bruno Haible  <bruno@clisp.org>
2256         thread: Fix compilation error on IRIX.
2257         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
2258         needed; include it outside the C++ extern "C" {} block.
2259         * doc/posix-headers/pthread.texi: Mention the problem with
2260         pthread_atfork on IRIX.
2262 2018-02-04  Bruno Haible  <bruno@clisp.org>
2264         nl_langinfo: Override the system's nl_langinfo() when needed.
2265         Reported by Jim Meyering.
2266         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
2267         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
2269 2018-02-04  Bruno Haible  <bruno@clisp.org>
2271         signal-h, monetary, strings: Fix build failure in some cases.
2272         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
2273         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
2274         as delimiter in sed command, not '|'.
2275         * modules/monetary (Makefile.am): Likewise.
2276         * modules/strings (Makefile.am): Likewise.
2278 2018-02-03  Jim Meyering  <meyering@fb.com>
2280         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
2281         * top/maint.mk (sc_file_system): Don't complain about
2282         "/proc/filesystems".
2284 2018-02-03  Bruno Haible  <bruno@clisp.org>
2286         stdlib: Fix compilation error on OpenIndiana.
2287         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
2288         <sys/time.h>.
2289         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
2290         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
2292 2018-02-03  Bruno Haible  <bruno@clisp.org>
2294         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
2295         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
2296         and use $EGREP instead of 'grep -E'.
2297         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
2298         'grep -E'.
2300 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
2302         malloca: Add a compile-time verification.
2303         * lib/malloca.c (small_t): Verify that it is wide enough.
2304         * modules/malloca (Depends-on): Add verify.
2306 2018-02-02  Bruno Haible  <bruno@clisp.org>
2308         malloca: Add an argument check.
2309         Suggested by Paul Eggert.
2310         * lib/malloca.c (freea): Check against an invalid argument.
2312 2018-02-02  Bruno Haible  <bruno@clisp.org>
2314         localename: Add support for OpenIndiana.
2315         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
2316         Solaris 11 variants with uselocale() but without getlocalename_l().
2318 2018-02-02  Bruno Haible  <bruno@clisp.org>
2320         malloca, xmalloca: Make multithread-safe.
2321         Reported by Florian Weimer <fweimer@redhat.com>.
2322         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
2323         * lib/malloca.h (malloca): In the stack allocation case, return a
2324         pointer that is a multiple of 2 * sa_alignment_max.
2325         (sa_increment): Remove enum item.
2326         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
2327         a pointer that is a multiple of 2 * sa_alignment_max.
2328         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
2329         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
2330         HASH_TABLE_SIZE, mmalloca_results): Remove.
2331         (small_t): New type.
2332         (mmalloca, free): Rewritten.
2333         * lib/malloca.valgrind: Remove file.
2334         * modules/malloca (Files): Remove it.
2335         (Depends-on): Remove verify.
2337 2018-01-31  Bruno Haible  <bruno@clisp.org>
2339         environ: Fix link error on 64-bit Cygwin.
2340         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
2341         __declspec(dllimport) attribute.
2342         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
2344 2018-01-30  Bruno Haible  <bruno@clisp.org>
2346         get-rusage-data: Add support for Minix 3.
2347         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
2349 2018-01-30  Bruno Haible  <bruno@clisp.org>
2351         vma-iter: Add support for Minix 3.
2352         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
2353         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
2355 2018-01-27  Bruno Haible  <bruno@clisp.org>
2357         Fix malfunction of socket functions on HP-UX in 64-bit mode.
2358         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
2359         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
2360         _HPUX_ALT_XOPEN_SOCKET_API.
2361         * modules/accept (Depends-on): Add 'extensions'.
2362         * modules/getpeername (Depends-on): Likewise.
2363         * modules/getsockname (Depends-on): Likewise.
2364         * modules/getsockopt (Depends-on): Likewise.
2365         * modules/recvfrom (Depends-on): Likewise.
2366         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
2367         * doc/posix-functions/getpeername.texi: Likewise.
2368         * doc/posix-functions/getsockname.texi: Likewise.
2369         * doc/posix-functions/getsockopt.texi: Likewise.
2370         * doc/posix-functions/recvfrom.texi: Likewise.
2372 2018-01-27  Bruno Haible  <bruno@clisp.org>
2374         getsockname tests: More tests.
2375         * tests/test-getsockname.c (open_server_socket): New function, mostly
2376         copied from test-poll.c.
2377         (main): Check that getsockname fills in addr.
2378         * modules/getsockname-tests (Depends-on): Add the necessary
2379         dependencies.
2380         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
2382 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
2384         manywarnings: fix maintainer comment
2385         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
2386         it does not mistakenly think that ‘-1)’ is an option.
2388 2018-01-26  Bruno Haible  <bruno@clisp.org>
2390         langinfo: Fix last commit.
2391         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
2392         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
2394 2018-01-24  Bruno Haible  <bruno@clisp.org>
2396         langinfo, nl_langinfo: Add support for alternative month names.
2397         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
2398         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
2399         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
2400         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
2401         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
2402         * doc/posix-functions/nl_langinfo.texi: Likewise.
2404 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
2406         Merge strftime.c changes from glibc
2407         This incorporates:
2408         2017-11-14 [BZ #10871] Implement alternative month names
2409         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
2410         2017-06-20 Use locale_t, not __locale_t, throughout glibc
2411         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
2412         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
2413         Use locale_t, not __locale_t.
2414         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
2415         (__strftime_internal): Add support for alternate months.
2417 2018-01-23  Bruno Haible  <bruno@clisp.org>
2419         doc: Mention another prerequisite for using Gnulib.
2420         Reported at <https://stackoverflow.com/questions/48378214/>.
2421         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
2422         AC_CONFIG_HEADERS.
2424 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
2426         build: GuixSD doesn't have /bin/bash
2427         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
2429 2018-01-21  Bruno Haible  <bruno@clisp.org>
2431         Avoid test failures on Microsoft Windows Subsystem for Linux.
2432         * tests/test-fcntl.c (main): Allow a different errno.
2433         * tests/test-rename.h (test_rename): Likewise.
2434         * tests/test-renameat.c (main): Likewise.
2435         * tests/test-renameat2.c (main): Likewise.
2437 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
2439         filenamecat: make base a suffix of result
2440         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
2441         (mfile_name_concat): Always make BASE a suffix of the result, as
2442         cp expects this.  To implement this, separate with '.' instead of
2443         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
2444         * tests/test-filenamecat.c (main): Adjust tests to match
2445         current behavior.  Check that BASE_IN_RESULT points to
2446         a copy of BASE and is a suffix of the resultk, and that DIR
2447         is a prefix of the result that is no longer than the prefix
2448         indicated by BASE_IN_RESULT.
2450 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
2452         update-copyright: Handle use of ©
2453         * build-aux/update-copyright ($circle_c_re): Update regex to
2454         handle use of © in headers.
2456 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
2458         Fix -Wundef warning in user-included header lib/cdefs.h.
2459         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
2461 2018-01-04  Bruno Haible  <bruno@clisp.org>
2463         pthread_sigmask: Avoid compilation error on mingw.
2464         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
2465         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
2466         macro.
2468 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
2470         test-framework-sh: ‘ps -ef’, not ‘ps ef’
2471         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
2472         Suggested by Bob Proulx (Bug#29968).
2473         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
2475 2018-01-02  Eric Blake  <eblake@redhat.com>
2477         stat-time: silence -Wunused-parameter regression
2478         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
2479         Prefer attribute over cast-to-void.
2480         (stat_time_normalize): Mark st as potentially unused.
2482 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
2484         test-framework-sh: avoid netstat
2485         Problem reported by Kristýna Streitová (Bug#29947).
2486         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
2487         deprecated on SuSE and it's not that important anyway.
2489 2018-01-01  Jim Meyering  <meyering@fb.com>
2491         update-copyright: add code to handle more special cases
2492         After running "make update-copyright" this year, five files
2493         required additional manual changes.  Automate those adjustments
2494         for next year.
2495         * Makefile (_year_and_prev): Define.
2496         (update-copyright): Add perl commands to induce this year's post-
2497         update-copyright adjustments.
2499 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
2501         version-etc: new year
2502         * build-aux/gendocs.sh (version):
2503         * doc/gendocs_template:
2504         * doc/gendocs_template_min:
2505         * doc/gnulib.texi:
2506         * lib/version-etc.c (COPYRIGHT_YEAR):
2507         Update copyright dates by hand in templates and the like.
2509         maint: fix 'make update-copyright'
2510         * Makefile (update-copyright): Adjust to 2016-11-23 change
2511         to config/srclist-update, which changed the format of srclist.txt.
2513 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
2515         chdir-safer: remove this module
2516         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
2517         * NEWS: Document removal.
2518         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
2519         * modules/chdir-safer: Remove these files.
2521 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
2523         Add cross-compilation results for GNU/Hurd.
2524         * m4/calloc.m4: Add GNU/Hurd guess.
2525         * m4/cbrtl.m4: Likewise.
2526         * m4/ceil.m4: Likewise.
2527         * m4/ceilf.m4: Likewise.
2528         * m4/ceill.m4: Likewise.
2529         * m4/chown.m4: Likewise.
2530         * m4/duplocale.m4: Likewise.
2531         * m4/exp2l.m4: Likewise.
2532         * m4/expm1.m4: Likewise.
2533         * m4/fchdir.m4: Likewise.
2534         * m4/floor.m4: Likewise.
2535         * m4/floorf.m4: Likewise.
2536         * m4/fmod.m4: Likewise.
2537         * m4/fmodf.m4: Likewise.
2538         * m4/fmodl.m4: Likewise.
2539         * m4/getcwd.m4: Likewise.
2540         * m4/getgroups.m4: Likewise.
2541         * m4/gettimeofday.m4: Likewise.
2542         * m4/hypot.m4: Likewise.
2543         * m4/hypotf.m4: Likewise.
2544         * m4/hypotl.m4: Likewise.
2545         * m4/link-follow.m4: Likewise.
2546         * m4/link.m4: Likewise.
2547         * m4/linkat.m4: Likewise.
2548         * m4/log.m4: Likewise.
2549         * m4/log10.m4: Likewise.
2550         * m4/log10f.m4: Likewise.
2551         * m4/log1p.m4: Likewise.
2552         * m4/log1pf.m4: Likewise.
2553         * m4/log1pl.m4: Likewise.
2554         * m4/log2.m4: Likewise.
2555         * m4/log2f.m4: Likewise.
2556         * m4/logf.m4: Likewise.
2557         * m4/lstat.m4: Likewise.
2558         * m4/malloc.m4: Likewise.
2559         * m4/mbrlen.m4: Likewise.
2560         * m4/mbrtowc.m4: Likewise.
2561         * m4/mkdir.m4: Likewise.
2562         * m4/mkfifo.m4: Likewise.
2563         * m4/mknod.m4: Likewise.
2564         * m4/mkstemp.m4: Likewise.
2565         * m4/modf.m4: Likewise.
2566         * m4/modff.m4: Likewise.
2567         * m4/modfl.m4: Likewise.
2568         * m4/printf.m4: Likewise.
2569         * m4/pselect.m4: Likewise.
2570         * m4/ptsname.m4: Likewise.
2571         * m4/putenv.m4: Likewise.
2572         * m4/readlink.m4: Likewise.
2573         * m4/realloc.m4: Likewise.
2574         * m4/remainder.m4: Likewise.
2575         * m4/remainderf.m4: Likewise.
2576         * m4/remainderl.m4: Likewise.
2577         * m4/rmdir.m4: Likewise.
2578         * m4/round.m4: Likewise.
2579         * m4/roundf.m4: Likewise.
2580         * m4/roundl.m4: Likewise.
2581         * m4/select.m4: Likewise.
2582         * m4/setenv.m4: Likewise.
2583         * m4/signbit.m4: Likewise.
2584         * m4/sleep.m4: Likewise.
2585         * m4/stat.m4: Likewise.
2586         * m4/strerror.m4: Likewise.
2587         * m4/strtok_r.m4: Likewise.
2588         * m4/symlink.m4: Likewise.
2589         * m4/symlinkat.m4: Likewise.
2590         * m4/trunc.m4: Likewise.
2591         * m4/truncf.m4: Likewise.
2592         * m4/truncl.m4: Likewise.
2593         * m4/tzset.m4: Likewise.
2594         * m4/ungetc.m4: Likewise.
2595         * m4/usleep.m4: Likewise.
2596         * m4/wcwidth.m4: Likewise.
2598 2017-12-28  Bruno Haible  <bruno@clisp.org>
2600         gnulib-tool: Make --conditional-dependencies work better.
2601         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
2602         * gnulib-tool (Options): Don't reject the combination of
2603         --conditional-dependencies with --with-tests.
2604         (func_emit_autoconf_snippets): Add argument referenceable_modules.
2605         Don't reference $modules.
2606         (func_import, func_create_testdir): Pass it.
2608 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
2610         regex: use re_malloc etc. consistently
2611         Problem and original patch reported by Arnold Robbins in:
2612         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
2613         * lib/regcomp.c (re_comp):
2614         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
2615         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
2617 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
2618             Paul Eggert  <eggert@cs.ucla.edu>
2620         glob: Silence warning about void pointer arithmetic.
2621         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
2622         arithmetic.
2624 2017-12-15  Bruno Haible  <bruno@clisp.org>
2626         spawn-pipe: Silence a clang warning.
2627         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
2628         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
2629         in this file.
2631 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
2633         explicit_bzero: port to macOS + Clang 9.0.0
2634         Problem reported by Marcus Johnson (Bug#29658).
2635         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
2636         Don’t use asm.
2638 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
2640         doc: Improve explanation of supporting relocatable libraries.
2641         * doc/relocatable-maint.texi (Supporting Relocation): Explain
2642         properly how to build the relocatable module for
2643         libraries. (Method and example code from Bruno Haible.)
2645 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
2647         doc: Use better texinfo tags in a few cases.
2648         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
2649         instead of @samp in a few places.
2651 2017-12-11  Bruno Haible  <bruno@clisp.org>
2653         unistr/base: Update comment.
2654         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
2656 2017-12-10  Pádraig Brady  <P@draigBrady.com>
2658         test-faccessat.c: unlink temp file to avoid subsequent test failure
2659         * tests/test-faccessat.c: Remove the file to avoid failure
2660         to open the file on subsequent runs due to being created
2661         with no permissions.
2663 2017-12-10  Bruno Haible  <bruno@clisp.org>
2665         doc: New sect. "Modifying the build rules of a Gnulib import directory".
2666         * doc/gnulib-tool.texi (Modified build rules): New node.
2668 2017-12-10  Bruno Haible  <bruno@clisp.org>
2670         doc: Tweak wording.
2671         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
2672         "binaries".
2674 2017-12-05  Sam Steingold  <sds@gnu.org>
2675             Bruno Haible  <bruno@clisp.org>
2677         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
2678         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
2679         AC_EGREP_CPP pattern.
2681 2017-12-03  Bruno Haible  <bruno@clisp.org>
2683         all: Replace more http URLs by https URLs.
2684         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
2685         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
2686         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
2687         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
2689 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
2691         Port better to CentOS 5
2692         Problems reported by Tom G. Christensen in:
2693         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
2694         * doc/glibc-functions/strverscmp.texi (strverscmp):
2695         Document strverscmp bug with glibc 2.9 and earlier.
2696         * doc/posix-functions/tzset.texi (tzset):
2697         Document that TZ with angle brackets is POSIX-2001 and later.
2698         * tests/test-nstrftime.c: Include unistd.h.
2699         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
2700         (TZ): Use it to skip tests with angle brackets in TZ,
2701         for older systems.
2703         stat: add missing module dependencies
2704         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
2705         Add stat-time.
2707 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
2709         stat: fix compilation failure on macOS Sierra
2710         Reported by Marius Schamschula <mschamschula@gmail.com> in:
2711         https://savannah.gnu.org/bugs/?52546
2712         * lib/stat.c: Add missing include of stat-time.h.
2714 2017-11-28  Jim Meyering  <meyering@fb.com>
2716         test-faccessat.c: correct BASE definition to avoid parallel test failure
2717         * tests/test-faccessat.c (BASE): Define using this file's name, not
2718         that of test-lstat.c.  Using the latter caused this test to fail
2719         sometimes when run concurrently with test-lstat.
2721 2017-11-27  Daiki Ueno  <ueno@gnu.org>
2723         unicase: fix VPATH build
2724         * modules/unicase/special-casing (Makefile.am): Ensure that the
2725         base directory is created when generating
2726         unicase/special-casing.h.
2728 2017-11-27  Daiki Ueno  <ueno@gnu.org>
2730         libunistring: update to Unicode 9.0.0
2731         * lib/gen-uni-tables.c (fill_properties): Recognize
2732         Sentence_Terminal and Prepended_Concatenation_Mark.
2733         (is_property_default_ignorable_code_point): Exclude U+08E2.
2734         (fill_arabicshaping): Allow missing whitespace when parsing;
2735         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
2736         (output_blocks): Increase the element size of the level1 table to
2737         accommodate more blocks.
2738         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
2739         Update each class according to the standard.
2740         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
2741         E_Base_GAZ characters.
2742         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
2743         Glue_After_Zwj, and E_Base_GAZ characters.
2744         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
2745         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
2746         enum value.
2747         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
2748         value.
2749         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
2750         LBP_ZWJ, LBP_EB, and LBP_EM.
2751         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
2752         enum value.
2753         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
2754         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
2755         declaration.
2756         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
2757         (uniwbrk_table): Implement WB14.
2758         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
2759         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
2760         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
2761         uc-is-grapheme-break.
2762         * modules/unigbrk/uc-grapheme-breaks: New module.
2763         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
2764         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
2765         enum value.
2766         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
2767         * lib/unigbrk/u-grapheme-breaks.h: New file.
2768         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
2769         u-grapheme-breaks.h instead of uc_is_grapheme_break.
2770         * lib/unigbrk/uc-grapheme-breaks.c: New file.
2771         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
2772         29.
2773         * tests/unigbrk/test-uc-gbrk-prop.c
2774         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
2775         GBP_GAZ, and GBP_EBG.
2776         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
2777         * tests/unigbrk/test-uc-is-grapheme-break.c
2778         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
2779         GBP_GAZ, and GBP_EBG.
2780         (main): Skip unsupported rules involving 3 or more characters,
2781         namely GB10, GB12, and GB13.
2782         * lib/uniwidth/width.c (nonspacing_table_data): Update.
2783         * all generated files under lib/uni* and tests/uni*: Regenerate.
2784         * all the affected modules: Bump version.
2786 2017-11-26  Bruno Haible  <bruno@clisp.org>
2788         strfmon_l: Fix compilation error with glibc 2.5.
2789         Reported by Tom G. Christensen <tgc@jupiterrise.com>
2790         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
2791         * lib/monetary.in.h: Include also <locale.h>.
2793 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
2795         posixtm: remove PDS_LEADING_YEAR
2796         This changes the API slightly, in a hopefully-innocuous way.
2797         Without this change the code had undefined behavior when a
2798         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
2799         Problem reported by Pádraig Brady in:
2800         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
2801         * NEWS: Mention this.
2802         * lib/posixtm.c (posix_time_parse): Treat the absence of
2803         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
2804         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
2805         present, but define it as zero, for compatibility with existing
2806         source code).  All other PDS_* values moved up.
2807         * tests/test-posixtm.c (LY): New macro.
2808         (T): Use it.  Do not expect a particular numeric encoding
2809         for PDS_CENTURY etc.
2811 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
2813         stat: work around Solaris bug with tv_nsec < 0
2814         * doc/posix-functions/fstat.texi (fstat):
2815         * doc/posix-functions/fstatat.texi (fstatat):
2816         * doc/posix-functions/lstat.texi (lstat):
2817         * doc/posix-functions/stat.texi (stat):
2818         Mention Solaris 11 bug.
2819         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
2820         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
2821         * lib/lstat.c (rpl_lstat):
2822         * lib/stat.c (rpl_stat):
2823         Normalize resulting timestamps.
2824         * lib/fstatat.c (normal_fstatat): New function.
2825         (rpl_fstatat): Use it.
2826         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
2827         (stat_time_normalize): New function.
2828         * m4/fstat.m4 (gl_FUNC_FSTAT):
2829         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
2830         * m4/lstat.m4 (gl_FUNC_LSTAT):
2831         * m4/stat.m4 (gl_FUNC_STAT):
2832         Replace on Solaris.
2833         * modules/fstat (Depends-on):
2834         * modules/fstatat (Depends-on):
2835         Add stat-time.
2836         * modules/stat-time (Depends-on): Add errno, intprops.
2838 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
2840         regex: merge from glibc
2841         * lib/regcomp.c (init_word_char): Add comments.
2843 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
2845         regex: merge from glibc
2846         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
2847         * lib/regex_internal.h (internal_function): Remove.
2848         All uses removed.
2850 2017-11-20  Bruno Haible  <bruno@clisp.org>
2852         crypto/gc-sm3: Fix buffer overrun.
2853         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
2854         Reported by Coverity.
2856 2017-11-12  Jim Meyering  <meyering@fb.com>
2858         maint: shorten https://lists.gnu.org/archive/html/... links
2859         Each /archive/html/ part can be replace with /r/.
2860         Run this to induce the change:
2861         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
2862         * ChangeLog: Perform that substitution.
2863         * Makefile: Likewise.
2864         * STATUS-libposix: Likewise.
2865         * build-aux/bootstrap: Likewise.
2866         * doc/maintain.texi: Likewise.
2867         * gnulib-tool: Likewise.
2868         * lib/allocator.h: Likewise.
2869         * lib/argp-ba.c: Likewise.
2870         * lib/argp-pv.c: Likewise.
2871         * lib/canon-host.c: Likewise.
2872         * lib/canonicalize-lgpl.c: Likewise.
2873         * lib/float.in.h: Likewise.
2874         * lib/fstat.c: Likewise.
2875         * lib/getdelim.c: Likewise.
2876         * lib/getprogname.c: Likewise.
2877         * lib/glthread/thread.h: Likewise.
2878         * lib/intprops.h: Likewise.
2879         * lib/mbsrtowcs-state.c: Likewise.
2880         * lib/safe-read.c: Likewise.
2881         * lib/signal.in.h: Likewise.
2882         * lib/stat.c: Likewise.
2883         * lib/stdbool.in.h: Likewise.
2884         * lib/stdio-impl.h: Likewise.
2885         * lib/stdio.in.h: Likewise.
2886         * lib/sysexits.in.h: Likewise.
2887         * lib/timespec.h: Likewise.
2888         * lib/wcsrtombs-state.c: Likewise.
2889         * m4/alloca.m4: Likewise.
2890         * m4/extern-inline.m4: Likewise.
2891         * m4/fstatat.m4: Likewise.
2892         * m4/gnulib-common.m4: Likewise.
2893         * m4/lib-ignore.m4: Likewise.
2894         * m4/printf.m4: Likewise.
2895         * m4/regex.m4: Likewise.
2896         * m4/stat-size.m4: Likewise.
2897         * m4/std-gnu11.m4: Likewise.
2898         * m4/stdbool.m4: Likewise.
2899         * m4/sys_types_h.m4: Likewise.
2900         * m4/threadlib.m4: Likewise.
2901         * m4/vararrays.m4: Likewise.
2902         * pygnulib/GLImport.py: Likewise.
2903         * tests/test-exp.h: Likewise.
2904         * tests/test-exp2.h: Likewise.
2905         * tests/test-expm1.h: Likewise.
2906         * tests/test-fflush2.c: Likewise.
2907         * tests/test-getopt_long.h: Likewise.
2908         * tests/test-intprops.c: Likewise.
2909         * tests/test-log.h: Likewise.
2910         * tests/test-log10.h: Likewise.
2911         * tests/test-log1p.h: Likewise.
2912         * tests/test-log2.h: Likewise.
2913         * tests/test-printf-posix.h: Likewise.
2914         * tests/test-regex.c: Likewise.
2915         * tests/test-snprintf-posix.h: Likewise.
2916         * tests/test-sprintf-posix.h: Likewise.
2917         * tests/test-stdalign.c: Likewise.
2918         * tests/test-stdbool.c: Likewise.
2919         * tests/test-vasnprintf-posix.c: Likewise.
2920         * tests/test-vasprintf-posix.c: Likewise.
2921         * top/maint.mk: Likewise.
2923 2017-11-12  Bruno Haible  <bruno@clisp.org>
2925         faccessat: Make the last change more robust.
2926         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
2927         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
2929 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
2931         faccessat: port to macOS (Bug#29231)
2932         macOS faccessat has the same bug that lstat does: if the file
2933         name ends in '/' it ignores the trailing slash.
2934         Problem reported for Emacs by Vincent Zhang.
2935         * doc/posix-functions/faccessat.texi (faccessat): Document this.
2936         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
2937         around the initial includes.  Include errno.h, string.h, sys/stat.h.
2938         (orig_faccessat) [HAVE_FACCESSAT]: New function.
2939         Include "unistd.h" after defining it.
2940         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
2941         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
2942         Handle in the usual way.
2943         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
2944         lstat dereferences symlinks, since faccessat is likely to
2945         have the same problem.
2946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
2947         * modules/faccessat (Depends-on): Add fstatat.
2948         Depend if REPLACE_FACCESSAT is 1, too.
2949         (configure.ac): Link if REPLACE_FACCESSAT is 1.
2950         * modules/faccessat-tests (Depends-on): Add symlink.
2951         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
2952         * tests/test-faccessat.c (main): Test for the bug.
2954 2017-11-11  Bruno Haible  <bruno@clisp.org>
2956         getprogname: Fix compilation error on IRIX.
2957         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
2958         'namesize'.
2960 2017-11-11  Bruno Haible  <bruno@clisp.org>
2962         year2038: Tweak last patch.
2963         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
2965 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
2967         year2038: be more insistent about 64-bit time_t
2968         Applications requiring access to arbitrary files should not be
2969         built with 32-bit time_t on hosts that have 64-bit timestamps,
2970         as this can lead to real trouble at runtime.
2971         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
2972         Check on all systems, not just MinGW.  Use a heuristic involving
2973         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
2974         output a failure or just a warning, to make it more likely that
2975         builders will select 64-bit time_t.
2977 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
2979         havelib: fix typo in previous change
2980         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
2982         Don’t use AC_EGREP_CPP if affected by CFLAGS
2983         * m4/float_h.m4 (gl_FLOAT_H):
2984         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
2985         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
2986         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
2987         * m4/year2038.m4 (gl_YEAR2038):
2988         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
2989         likely to be affected by the choice of CFLAGS, since CFLAGS are
2990         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
2991         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
2993         fstatat: pacify GCC on unusual platform
2994         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
2995         Omit, as it’s unused in this case.
2997 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
2999         timespec: prefer ‘assume’ to ‘assure’
3000         This avoids some runtime tests.  The rest of the module makes
3001         similar assumptions and there is little point to testing here.
3002         * lib/timespec.h: Include verify.h instead of assure.h.
3003         (timespec_cmp): Use ‘assume’, not ‘assure’.
3004         Also, remove an unnecessary cast to ‘int’, as lots of other
3005         code in this module now causes -Wconversion to complain, and
3006         this is a problem with -Wconversion not with the code.
3008         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
3010         Port recent gnulib-tool change to Dash
3011         * gnulib-tool (func_create_testdir): Don't assume that the shell
3012         retokenizes after expanding "$@" inside the call to
3013         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
3015 2017-10-27  Jim Meyering  <meyering@fb.com>
3017         timespec.h: use "assure" to avoid a spurious warning
3018         * lib/timespec.h: Include "assure.h" and use it to help
3019         gcc7's -Wstrict-overflow avoid a false positive warning
3020         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
3021         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
3022         * modules/timespec (Depends-on): Add assure.
3024 2017-10-29  Bruno Haible  <bruno@clisp.org>
3026         Avoid several test failures with traditional locales on Haiku.
3027         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
3028         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
3029         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
3030         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
3031         LOCALE_ZH_CN=none.
3033 2017-10-29  Bruno Haible  <bruno@clisp.org>
3035         strerror_r-posix: Fix behaviour and test failure on Haiku.
3036         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
3037         are positive. Work around return value 0 instead of ERANGE on Haiku.
3038         For unknown error numbers, use a format string consistent with perror().
3039         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
3040         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
3041         are positive.
3043 2017-10-29  Bruno Haible  <bruno@clisp.org>
3045         get-rusage-data: Avoid crash on Haiku.
3046         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
3048 2017-10-29  Bruno Haible  <bruno@clisp.org>
3050         get-rusage-as: Avoid crash on Haiku.
3051         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
3053 2017-10-29  Bruno Haible  <bruno@clisp.org>
3055         ilogbl: Ensure replacement on Haiku.
3056         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
3057         REPLACE_ILOGBL if ilogbl does not work.
3058         (gl_FUNC_ILOGBL_WORKS): New macro.
3059         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
3060         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
3061         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
3062         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
3063         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
3065 2017-10-29  Bruno Haible  <bruno@clisp.org>
3067         expl: Ensure replacement on Haiku.
3068         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
3069         zero.
3070         * doc/posix-functions/expl.texi: Mention the Haiku problem.
3072 2017-10-29  Bruno Haible  <bruno@clisp.org>
3074         math: Fix test failure on Haiku.
3075         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
3076         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
3077         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
3078         * doc/posix-headers/math.texi: Mention the Haiku problem.
3080 2017-10-29  Bruno Haible  <bruno@clisp.org>
3082         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
3083         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
3084         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
3086 2017-10-29  Bruno Haible  <bruno@clisp.org>
3088         crypto/*: Verify that the header file is self-contained.
3089         * tests/test-gc-*.c: Include the module's header file immediately after
3090         <config.h>.
3091         * tests/test-hmac-*.c: Likewise.
3092         * tests/test-arcfour.c: Likewise.
3093         * tests/test-arctwo.c: Likewise.
3094         * tests/test-des.c: Likewise.
3095         * tests/test-md2.c: Likewise.
3096         * tests/test-md4.c: Likewise.
3097         * tests/test-md5.c: Likewise.
3098         * tests/test-rijndael.c: Likewise.
3099         * tests/test-sha1.c: Likewise.
3100         * tests/test-sm3.c: Likewise.
3102 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
3103             Bruno Haible  <bruno@clisp.org>
3105         crypto/gc: fix build failure with -Werror=suggest-attribute=const
3106         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
3108 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
3110         New module: crypto/gc-sm3
3111         * lib/gc.h: Declare SM3-related stuffs.
3112         * lib/gc-gnulib.c: Support sm3 in internal functions.
3113         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
3114         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
3115         * modules/crypto/gc-sm3: Define gc-sm3 module.
3116         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
3117         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
3118         * MODULES.html.sh: List gc-sm3 module.
3120 2017-10-29  Bruno Haible  <bruno@clisp.org>
3122         random, random_r: Mention different prototypes on Haiku.
3123         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
3124         * doc/glibc-functions/random_r.texi: Likewise.
3125         * doc/glibc-functions/initstate_r.texi: Likewise.
3126         * doc/glibc-functions/setstate_r.texi: Likewise.
3128 2017-10-28  Bruno Haible  <bruno@clisp.org>
3130         posix_spawn: Avoid spurious message in configure output.
3131         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
3132         'cmp' command.
3134 2017-10-28  Bruno Haible  <bruno@clisp.org>
3136         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
3137         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
3138         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3140 2017-10-28  Bruno Haible  <bruno@clisp.org>
3142         ioctl: Override non-POSIX declaration on Haiku.
3143         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
3144         * lib/sys_ioctl.in.h: Add comment about Haiku.
3145         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
3146         * doc/glibc-headers/sys_ioctl.texi: Likewise.
3148 2017-10-28  Bruno Haible  <bruno@clisp.org>
3150         crypto/sm3: Add overview documentation to the .h file.
3151         * lib/sm3.h: Add comments.
3153 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
3155         New module: crypto/sm3
3156         This new module can be used to compute SM3 message digest of files or
3157         memory blocks according to the specification GM/T 004-2012
3158         Cryptographic Hash Algorithm SM3, published by State Cryptography
3159         Administration, China.
3160         The official SM3 cryptographic hash algorithm specification is
3161         available at
3162         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
3163         * lib/sm3.h: Declare the APIs of sm3 module.
3164         * lib/sm3.c: Implement SM3 hash algorithm.
3165         * m4/sm3.m4: m4 file for sm3 module.
3166         * modules/crypto/sm3: Define sm3 module.
3167         * tests/test-sm3.c: Implement SM3 test case.
3168         * modules/crypto/sm3-tests: Define sm3 test module.
3169         * MODULES.html.sh: List sm3 module.
3171 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
3173         gc-libgcrypt: fix undefined enum type in switch statement
3174         Resolve the following build failure:
3175         lib/gc-libgcrypt.c: In function 'gc_hash_open':
3176         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
3177         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
3178              case 0:
3179              ^~~~
3180         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
3181         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
3183 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
3185         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
3186         Resolve the following build failure:
3187         lib/gc-libgcrypt.c: In function 'gc_hash_read':
3188         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
3189         in signedness [-Werror=pointer-sign]
3190             digest = gcry_md_read (ctx->gch, 0);
3191                    ^
3192         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
3194 2017-10-26  Bruno Haible  <bruno@clisp.org>
3196         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
3197         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
3198         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
3200 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
3202         glob: fix another heap buffer overflow
3203         Problem reported by Tim Rühsen in:
3204         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
3205         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
3207 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
3209         quotearg: pacify compiler re unsigned
3210         * lib/quotearg.c (quotearg_n_options):
3211         Rewrite to avoid diagnostic from overly-picky compiler.
3212         Problem reported by Sami Kerola in:
3213         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
3215         glob: fix heap buffer overflow
3216         * lib/glob.c (glob): Fix off-by-one error introduced into
3217         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
3218         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
3219         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
3220         Fix suggested by Bruno Haible.
3222 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
3224         glob: pacify fuzzer for mempcpy
3225         Problem reported by Tim Rühsen in:
3226         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
3227         * lib/glob.c (glob): Do not pass NULL to mempcpy.
3229 2017-10-12  Bruno Haible  <bruno@clisp.org>
3231         doc: Fix syntax error (regression from 2017-10-03).
3232         * doc/posix-functions/strncpy.texi: Fix syntax error.
3234 2017-10-12  Bruno Haible  <bruno@clisp.org>
3236         doc: Update for Solaris 11.3.
3237         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
3238         mention Solaris 11.3.
3239         * m4/log2.m4: Fix comments.
3240         * m4/log2f.m4: Likewise.
3241         * m4/printf.m4: Update comments.
3242         * m4/rename.m4: Likewise.
3243         * m4/strncat.m4: Likewise.
3245         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
3247 2017-10-10  Bruno Haible  <bruno@clisp.org>
3249         doc: Improve doc about ioctl.
3250         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
3251         prototype.
3253 2017-10-09  Bruno Haible  <bruno@clisp.org>
3255         wcwidth: Don't use obsolete syntax of 'test'.
3256         Reported by Eric Blake.
3257         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
3258         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
3260 2017-10-09  Bruno Haible  <bruno@clisp.org>
3262         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
3263         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
3264         and Daniel P. Berrange <berrange@redhat.com>.
3265         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
3266         on glibc systems. The getopt-pfx-core.h file declares exactly what
3267         unistd.h needs, nothing more.
3269 2017-10-08  Bruno Haible  <bruno@clisp.org>
3271         vma-iter: Improve support for FreeBSD.
3272         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
3273         vma_iterate.
3274         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
3276 2017-10-08  Bruno Haible  <bruno@clisp.org>
3278         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
3279         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
3281 2017-10-07  KO Myung-Hun  <komh@chollian.net>
3283         test-framework-sh: Fix 'invalid path dir' error.
3284         On OS/2, a path separator is ';' not ':'. And ':' is used as a
3285         separator between a drive letter and directory parts.
3286         As a result, an absolute path such as x:/path/to/dir on OS/2 is
3287         treated as an invalid path dir.
3288         * tests/init.sh (PATH_SEPARATOR): Set at startup.
3289         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
3290         instead of hard coded ':'.
3292 2017-10-07  Bruno Haible  <bruno@clisp.org>
3294         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
3295         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
3296         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
3297         (rof_open): On Linux, do multiple read() calls and make sure
3298         MIN_LEFTOVER bytes are left when read() returns.
3300 2017-10-07  Bruno Haible  <bruno@clisp.org>
3302         vma-iter: Improve support for GNU/Hurd.
3303         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
3304         API, not the /proc file system.
3306 2017-10-07  Bruno Haible  <bruno@clisp.org>
3308         test-framework-sh: Don't require bash on Windows and OS/2.
3309         Reported by KO Myung-Hun.
3310         * tests/test-init.sh: Use 'shopt' only when running in bash.
3312 2017-10-06  KO Myung-Hun  <komh@chollian.net>
3314         wcwidth: check a macro version of wcwidth () as well
3315         * lib/wchar.in.h: Revert commit from 2016-01-14.
3316         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
3318 2017-10-06  Bruno Haible  <bruno@clisp.org>
3320         getopt-posix: Clarify copyright header.
3321         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
3322         * lib/getopt-pfx-core.h: Likewise.
3323         * lib/getopt-pfx-ext.h: Likewise.
3324         * lib/getopt-cdefs.in.h: Likewise.
3326 2017-10-03  Bruno Haible  <bruno@clisp.org>
3328         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
3329         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
3330         gl_HOST_CPU_C_ABI.
3332 2017-10-03  Bruno Haible  <bruno@clisp.org>
3334         doc: warn about misuse of strncpy and wcsncpy.
3335         * doc/posix-functions/strcpy.texi: Describe requirements on prior
3336         memory allocation.
3337         * doc/posix-functions/wcscpy.texi: Likewise.
3338         * doc/posix-functions/strncpy.texi: Describe what this function is not
3339         useful for.
3340         * doc/posix-functions/wcsncpy.texi: Likewise.
3342 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
3344         fsuage: fix typo in previous change
3345         * lib/fsusage.c: Remove stray include of full-read.h.
3346         Problem reported by Sam Steingold for macOS (Bug#28669).
3348 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
3350         fsusage: remove SVR2 support
3351         SVR2 was obsolete by 1986 and is no longer supported by anybody,
3352         and its code was getting in the way of use of this module by
3353         Emacs, which has its own ‘read’ function anyway.
3354         * lib/fsusage.c: Do not include sys/filsys.h.
3355         (get_fs_usage): Remove SVR2-specific code.
3356         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
3357         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
3358         * modules/fsusage (Depends-on): Do not depend on full-read.
3360         Simplify autoupdate of licenses
3361         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
3362         place.
3364 2017-10-01  Bruno Haible  <bruno@clisp.org>
3366         vma-iter: Add support for GNU/Hurd.
3367         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
3368         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
3370 2017-09-30  Bruno Haible  <bruno@clisp.org>
3372         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
3373         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
3374         fail when module 'largefile' is in use.
3375         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
3376         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
3377         Don't test HAVE_SYS_PROCFS_H.
3379 2017-09-30  Bruno Haible  <bruno@clisp.org>
3381         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
3382         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
3383         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
3384         * modules/havelib (Depends-on): Add host-cpu-c-abi.
3386 2017-09-30  Bruno Haible  <bruno@clisp.org>
3388         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
3389         * lib/uniname/uniname.c (unicode_name_character): Add braces around
3390         scope of local variables.
3392 2017-09-28  Bruno Haible  <bruno@clisp.org>
3394         string: code style
3395         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
3396         substitutable variables.
3397         * modules/string (Makefile.am): Likewise.
3399 2017-09-26  Bruno Haible  <bruno@clisp.org>
3401         uniname/uniname-tests: Tighten code.
3402         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
3403         local variables into one.
3405 2017-09-26  Bruno Haible  <bruno@clisp.org>
3407         vma-iter: Improvements for Linux and BSD platforms.
3408         - Add support for DragonFly BSD.
3409         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
3410         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
3411         Read the entire file into memory in a single system call.
3412         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
3413         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
3415 2017-09-26  Bruno Haible  <bruno@clisp.org>
3417         vma-iter: Provide the protection flags on FreeBSD.
3418         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
3419         skip three fields between the addresses and the protection flags.
3421 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3423         glob: remove bogus extern decl
3424         * lib/glob.c (__glob_pattern_type): Remove now-spurious
3425         extern declaration.  Problem reported by Adhemerval Zanella in:
3426         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
3428 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
3430         uniname/uniname-tests: integer overflow fix
3431         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
3432         Check for integer overflow.
3434         duplocale-tests: fix unlikely crash
3435         * tests/test-duplocale.c (get_locale_dependent_values):
3436         Don’t crash with absurdly long month names.
3438         maint: fix overflow checking in nap.h
3439         * modules/chown-tests:
3440         * modules/fchownat-tests, modules/fdutimensat-tests:
3441         * modules/futimens-tests, modules/lchown-tests:
3442         * modules/stat-time-tests, modules/utime-tests:
3443         * modules/utimens-tests, modules/utimensat-tests:
3444         Depend on intprops.
3445         * tests/nap.h: Include intprops.h.
3446         (diff_timespec): Handle overflow properly.
3448         sys_types: update URL
3449         * m4/sys_types_h.m4: Use https: URL.
3451         parse-datetime: fix dependency
3452         * modules/parse-datetime (Depends-on): Depend
3453         on nstrftime, not strftime.
3455         parse-datetime, posixtm: avoid uninit access
3456         * lib/parse-datetime.y (parse_datetime2):
3457         * lib/posixtm.c (posixtime):
3458         Do not access uninitialized storage, even though the resulting
3459         value is never used.
3461 2017-09-25  Bruno Haible  <bruno@clisp.org>
3463         vma-iter: Improvements for BSD platforms.
3464         - Add support for GNU/kFreeBSD.
3465         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
3466         - Speed up on OpenBSD.
3467         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
3468         (vma_iterate_bsd): New function.
3469         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
3470         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
3471         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
3472         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
3474 2017-09-23  Bruno Haible  <bruno@clisp.org>
3476         strfmon_l: New module.
3477         * modules/strfmon_l: New file.
3478         * lib/strfmon_l.c: New file.
3479         * m4/strfmon_l.m4: New file.
3480         * doc/posix-functions/strfmon_l.texi: Mention the new module.
3481         * modules/strfmon_l-tests: New file.
3482         * tests/test-strfmon_l.c: New file.
3484         monetary: New module.
3485         * modules/monetary: New file.
3486         * lib/monetary.in.h: New file.
3487         * m4/monetary_h.m4: New file.
3488         * doc/posix-headers/monetary.texi: Mention the new module.
3489         * modules/monetary-tests: New file.
3490         * tests/test-monetary.c: New file.
3491         * modules/monetary-c++-tests: New file.
3492         * tests/test-monetary-c++.cc: New file.
3493         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
3495 2017-09-23  Bruno Haible  <bruno@clisp.org>
3497         duplocale tests: Fix test crash on Linux/x86.
3498         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
3499         locale from the current thread before freeing it.
3501 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
3503         mktime: port to OpenVMS
3504         Problem reported by John E. Malmberg in:
3505         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
3506         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
3508 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
3510         manywarnings: port to GCC on 64-bit MS-Windows
3511         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
3512         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
3513         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
3515 2017-09-13  Bruno Haible  <bruno@clisp.org>
3517         all: Replace many more http URLs by https URLs. Update stale URLs.
3518         * users.txt: Remove mention of 'newts'.
3519         * lib/localename.c: Update comment about LANG_SOTHO.
3521 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
3523         all: Replace many http URLs by https URLs.
3525 2017-09-12  Bruno Haible  <bruno@clisp.org>
3527         doc: Prefer https URLs where possible.
3528         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
3529         * doc/ld-output-def.texi: Remove unavailable URL.
3531 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
3533         maintainer-makefile: FTP -> HTTPS
3534         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
3535         of FTP, which is planned to be decommissioned on 2017-11-01.
3537 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
3539         libc-config: Fix __GNUC_PREREQ macro.
3540         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
3541         __GNUC_MINOR.
3543 2017-09-09  Bruno Haible  <bruno@clisp.org>
3545         gnulib-tool: Simplify commit from 2015-08-20.
3546         * gnulib-tool (func_add_or_update): Remove local variable
3547         is_binary_file.
3549 2017-09-08  Bruno Haible  <bruno@clisp.org>
3551         stddef: Avoid conflict with system-defined max_align_t.
3552         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
3553         Reported by Werner Lemberg <wl@gnu.org> in
3554         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
3555         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
3556         (max_align_t): Define as a macro.
3557         (GNULIB_defined_max_align_t): New macro. Guards against multiple
3558         definitions of rpl_max_align_t in different copies of gnulib-generated
3559         <stddef.h>.
3561 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
3563         libc-config: port to MSVC
3564         Problems reported by Gisle Vanem in:
3565         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
3566         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
3567         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
3568         * m4/__inline.m4: New file.
3569         * modules/libc-config (Files): Add it.
3570         (Depends-on): Use it.
3572         glob: Use enum for __glob_pattern_type result
3573         From a patch proposed by Adhemerval Zanella in:
3574         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
3575         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
3576         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
3577         * lib/glob_internal.h (__glob_pattern_type):
3578         * lib/glob.c (glob):
3579         * lib/glob_pattern_p.c (__glob_pattern_p):
3580         Use them.
3582         glob: fix for use in glibc
3583         Problem reported by Adhemerval Zanella in:
3584         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
3585         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
3586         Do not redefine if _LIBC.
3588 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
3590         glob: fix bugs with long login names
3591         Problem reported by Adhemerval Zanella in:
3592         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
3593         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
3594         (glob): Use the same scratch buffer for both getlogin_r and
3595         getpwnam_r.  Don’t require preallocation of the login name.  This
3596         simplifies storage allocation, and corrects the handling of
3597         long login names.
3599 2017-09-02  Bruno Haible  <bruno@clisp.org>
3601         dirent: Update doc.
3602         * doc/posix-headers/dirent.texi: More concrete list of platforms.
3604 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
3606         glob: fix getpwnam_r errno typo
3607         * lib/glob.c (glob): Fix longstanding misuse of errno after
3608         getpwnam_r, which returns an error number rather than setting
3609         errno.
3611         glob: fix typo in recent change
3612         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
3613         Fix recently-introduced typo.
3615 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
3617         glob: don't save and restore errno unnecessarily
3618         * lib/glob.c (glob): Don't save and restore errno
3619         merely because we have getpwnam_r.
3621         glob: don't assume getpwnam_r
3622         * lib/glob.c (glob): Port recent patches to platforms
3623         lacking getpwnam_r.
3625         scratch_buffer: don’t use private glibc API
3626         Suggested by Florian Weimer in:
3627         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
3628         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
3629         * lib/scratch_buffer_grow.c: Rename to
3630         lib/malloc/scratch_buffer_grow.c.
3631         * lib/scratch_buffer_grow_preserve.c: Rename to
3632         lib/malloc/scratch_buffer_grow_preserve.c.
3633         * lib/scratch_buffer_set_array_size.c: Rename to
3634         lib/malloc/scratch_buffer_set_array_size.c.
3635         * lib/scratch_buffer.h: New file.
3636         * modules/scratch_buffer (Files, Makefile.am):
3637         Adjust to source-file renaming.
3639 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3641         glob: use scratch_buffer instead of extend_alloca
3642         Much of the lib/glob.c part of this patch comes from a glibc patch
3643         proposed by Adhemerval Zanella in:
3644         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
3645         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
3646         included via glob.h, does this for us now.
3647         (__set_errno): Remove, as libc-config does this for us now.
3648         Include <scratch_buffer.h>.
3649         (GETPW_R_SIZE_MAX): Remove.
3650         (glob): Use struct scratch_buffer instead of extend_alloca.
3651         * lib/glob.in.h: Include libc-config.h rather than
3652         including <sys/cdefs.h> conditionally.
3653         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
3654         (__glibc_unlikely, __restrict, weak_alias):
3655         Remove, as libc-config does this for us now.
3656         * m4/glob.m4 (gl_PREREQ_GLOB):
3657         Remove sys/cdefs.h tests; no longer needed.
3658         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
3659         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
3661         scratch_buffer: new module
3662         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
3663         * lib/scratch_buffer_grow_preserve.c:
3664         * lib/scratch_buffer_set_array_size.c:
3665         New files, copied from glibc with very minor changes that can be
3666         copied back.
3667         * modules/scratch_buffer: New file.
3669         libc-config: new module
3670         * MODULES.html.sh: Add libc-config.
3671         * lib/cdefs.h: New file, copied from the GNU C Library with very
3672         minor changes that can be copied back.
3673         * lib/libc-config.h, modules/libc-config: New files.
3675 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
3677         glob: match dangling symlinks
3678         This fixes a bug I inadvertently introduced to Gnulib when I
3679         merged glibc glob back into gnulib on 2007-10-16.  This fix is
3680         inspired by a patch proposed for glibc by Adhemerval Zanella in:
3681         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
3682         * doc/posix-functions/glob.texi: Update list of affected platforms.
3683         * lib/glob.c (__lstat64): New macro.
3684         (is_dir): New function.
3685         (glob, glob_in_dir): Match symlinks even if they are dangling.
3686         (link_stat, link_exists_p): Remove.  All uses removed.
3687         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
3688         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
3689         * modules/glob-tests (Depends-on): Add symlink.
3690         * tests/test-glob.c: Include errno.h, unistd.h.
3691         (BASE): New macro.
3692         (main): Test dangling symlinks, if symlinks are supported.
3694         glob, backupfile: inode 0 is a valid inode number
3695         * doc/posix-functions/readdir.texi (readdir):
3696         * doc/posix-headers/dirent.texi (dirent.h):
3697         Document more readdir portability issues.
3698         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
3699         (numbered_backup): Don’t treat inode 0 any differently from
3700         other inode values.
3701         * lib/glob.c (struct readdir_result): Remove skip_entry member.
3702         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
3703         All uses removed.
3704         * modules/glob (Depends-on): Remove d-ino.
3706         glob: simplify symlink detection
3707         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
3708         uint8_t, as C99 does not require uint8_t.
3709         (struct readdir_result): Use it.  Do not define skip_entry unless
3710         it is needed; this saves a byte on platforms lacking d_ino.
3711         (readdir_result_type, readdir_result_skip_entry):
3712         New functions, replacing ...
3713         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
3714         ... these functions, which were removed.  This makes the callers
3715         easier to read.  All callers changed.
3716         (D_INO_TO_RESULT): Now empty if there is no d_ino.
3718 2017-08-30  Pádraig Brady  <P@draigBrady.com>
3720         fts-tests: tag as a longrunning-test so not included by default
3721         * modules/fts-tests: This test takes about 20s on current systems,
3722         and uses about 285M of space on ext4.
3724 2017-08-30  Pádraig Brady  <P@draigBrady.com>
3726         renameat2: fix compilation on alpine linux
3727         * m4/renameat.m4: Check for <linux/fs.h> presence.
3728         * lib/renameat2.h: Only include <linux/fs.h> if present.
3729         Reported by Assaf Gordon on Alpine Linux.
3731 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3733         glob: try to port recent changes to MS-Windows
3734         Problem reported by Bruno Haible in:
3735         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
3736         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
3737         * lib/glob.in.h (__glob_pattern_p): ... to here.
3739 2017-08-24  Eric Blake  <eblake@redhat.com>
3741         warnings: fix compilation with old autoconf
3742         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
3743         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
3744         AC_DEFUN.
3745         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
3746         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
3748 2017-08-24  Bruno Haible  <bruno@clisp.org>
3750         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
3751         * modules/glob (Depends-on): Add c99.
3753 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3755         glob: fix typo that broke platforms lacking d_ino
3756         This typo also hurt performance on GNU/Linux and similar hosts.
3757         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
3758         in previous change.
3760 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3762         glob: merge from glibc with Zanella glob changes
3763         Merge glob from glibc, with changes for glob proposed
3764         by Adhemerval Zanella in the thread starting here:
3765         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
3766         plus some fixes for this merge.
3767         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
3768         New files, ported from glibc.
3769         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
3770         with __restrict.
3771         (__size_t): Remove.  All uses replaced by size_t.
3772         (size_t): Define by defining __need_size_t and including <stddef.h>.
3773         This should work even in non-glibc platforms, where any name
3774         pollution is OK.
3775         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
3776         (struct stat64): Don’t worry about __GLOB_GNULIB.
3777         (glob, globfree, glob_pattern_p): Remove macros for
3778         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
3779         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
3780         but set errno.
3781         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
3782         removed since the glibc behavior works on null pointers.
3783         Do not include stdio.h; old SunOS is irrelevant now.
3784         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
3785         Include glob_internal.h.
3786         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
3787         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
3788         worked only coincidentally.
3789         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
3790         Remove macros; now done in glob.in.h.
3791         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
3792         (glob): Properly initialize glob structure with
3793         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
3794         Remove old code using SHELL since Bash no longer
3795         uses this.
3796         (glob, prefix_array): Separate MS code better.
3797         (glob, glob_in_dir): Use C99 decls before statements when glibc
3798         does.
3799         (glob_in_dir): Remove old Amiga and VMS code.
3800         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
3801         separate files.
3802         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
3803         (__glibc_unlikely):
3804         Move here from glob.c.
3805         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
3806         (weak_alias): New macro.
3807         (__size_t): Remove.  All uses replaced by size_t.
3808         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
3809         * modules/glob (Files): Add +lib/glob_internal.h,
3810         lib/glob_pattern_p.c, lib/globfree.c.
3811         (Depends-on): Remove snippet/arg-nonnull.
3813 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
3815         glob: port to clang's Undefined Sanitizer
3816         Problem reported by Tim Rühsen in:
3817         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
3818         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
3819         (glob_in_dir): Do not rely on undefined behavior in accessing
3820         struct members beyond their bounds.  Use a flexible array member
3821         instead.
3823 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
3825         vc-list-files: port to Solaris 10
3826         * build-aux/vc-list-files: Don't assume test -e works.
3828 2017-08-21  Karl Berry  <karl@freefriends.org>
3830         * doc/posix-functions/srandom.texi (srandom): typo }.
3832 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
3834         git-version-gen: port to Solaris 10
3835         Problem reported by Dagobert Michelsen in:
3836         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
3837         * build-aux/git-version-gen (v_from_git):
3838         Use expr instead of shell substitution.
3840 2017-08-19  Bruno Haible  <bruno@clisp.org>
3842         host-cpu-c-abi: Improve detection of MIPS ABI.
3843         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
3844         _MIPS_SIM.
3846 2017-08-17  Bruno Haible  <bruno@clisp.org>
3848         hypot tests: Fix test failure on FreeBSD 11.0/x86.
3849         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
3851 2017-08-17  Bruno Haible  <bruno@clisp.org>
3853         float: Fix LDBL_MIN value on FreeBSD/x86.
3854         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
3856 2017-08-17  Bruno Haible  <bruno@clisp.org>
3858         random: Fix test compilation failure on Cygwin 1.5.25.
3859         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
3860         HAVE_DECL_SETSTATE.
3861         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
3862         declared.
3863         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
3864         HAVE_DECL_SETSTATE.
3865         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
3866         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
3867         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
3868         * doc/posix-functions/random.texi: Likewise.
3869         * doc/posix-functions/setstate.texi: Likewise.
3870         * doc/posix-functions/srandom.texi: Likewise.
3872 2017-08-16  Bruno Haible  <bruno@clisp.org>
3874         stdnoreturn: Fix test compilation failure on Cygwin.
3875         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
3876         <stdnoreturn.h> replacement.
3877         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
3878         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
3880 2017-08-16  Bruno Haible  <bruno@clisp.org>
3882         thread: Fix conflict with pthread_sigmask module.
3883         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
3884         it's defined as a macro.
3885         * modules/thread (Depends-on): Add pthread_sigmask.
3887 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
3889         rename: port better to NetBSD
3890         * doc/posix-functions/rename.texi (rename): NetBSD 7
3891         does not have the link-count bug.
3892         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
3893         broken merely because rename ("a", "b") removes "a" when the two
3894         names are hard links to the same file.
3896 2017-08-16  Bruno Haible  <bruno@clisp.org>
3898         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
3899         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
3900         the target file names with '$(srcdir)/'.
3901         * modules/unicase/locale-language (Makefile.am): Likewise.
3902         * modules/unicase/special-casing (Makefile.am): Likewise.
3903         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
3904         * modules/unictype/category-byname (Makefile.am): Likewise.
3905         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
3906         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
3907         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
3908         * modules/unictype/property-byname (Makefile.am): Likewise.
3909         * modules/unictype/scripts (Makefile.am): Likewise.
3910         * modules/uninorm/composition (Makefile.am): Likewise.
3912 2017-08-16  Bruno Haible  <bruno@clisp.org>
3914         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
3915         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
3916         value for OpenBSD.
3918 2017-08-16  Bruno Haible  <bruno@clisp.org>
3920         rename, renameat: Update doc regarding NetBSD.
3921         * doc/posix-functions/rename.texi: Clarify that when using
3922         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
3923         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
3924         version.
3926 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3928         renameat2: port better to macOS
3929         * lib/renameat2.c (renameat2): Use renameatx_np if available.
3931         futimens: don’t assume struct timespec layout
3932         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
3933         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
3934         * tests/test-fdutimensat.c (main):
3935         * tests/test-futimens.h (test_futimens):
3936         * tests/test-lutimens.h (test_lutimens):
3937         * tests/test-utimens.h (test_utimens):
3938         * tests/test-utimensat.c (main):
3939         Don’t assume that struct timespec is a two-member structure in
3940         tv_sec, tv_nsec order.  Although this is true on all platforms we
3941         know about, POSIX does not guarantee it.
3943         rename: document+test NetBSD rename
3944         Test failure reported by Bruno Haible in:
3945         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
3946         This is an area where NetBSD is better-behaved than POSIX,
3947         so allow the NetBSD behavior in tests.
3948         * doc/posix-functions/rename.texi:
3949         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
3950         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
3952 2017-08-15  Bruno Haible  <bruno@clisp.org>
3954         renameat: Ensure declaration in <stdio.h> on NetBSD.
3955         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
3956         * doc/posix-functions/renameat.texi: Mention this problem.
3958 2017-08-15  Bruno Haible  <bruno@clisp.org>
3960         duplocale: Work around NetBSD 7.0 bug.
3961         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
3962         * lib/duplocale.c: Add comment about NetBSD problem.
3963         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
3965 2017-08-15  Bruno Haible  <bruno@clisp.org>
3967         duplocale tests: Verify use with *_l functions.
3968         * modules/duplocale-tests (configure.ac): Test for uselocale and
3969         some *_l functions.
3970         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
3971         from main.
3972         (get_locale_dependent_values_from, test_with_locale_parameter): New
3973         functions.
3974         (main): Test both test_with_uselocale and test_with_locale_parameter.
3976 2017-08-15  Bruno Haible  <bruno@clisp.org>
3978         extensions: Enable NetBSD specific extensions.
3979         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
3981 2017-08-14  Bruno Haible  <bruno@clisp.org>
3983         open, openat: Update doc about O_CLOEXEC.
3984         * doc/posix-functions/open.texi: More concrete list of platforms.
3985         * doc/posix-functions/openat.texi: Likewise.
3987 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
3989         open: support O_CLOEXEC
3990         * NEWS, doc/posix-functions/open.texi:
3991         * doc/posix-functions/openat.texi: Document this.
3992         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
3993         (GNULIB_defined_O_CLOEXEC): New symbol.
3994         * lib/open.c: Include cloexec.h.
3995         (open): Support O_CLOEXEC.
3996         * lib/openat.c: Include cloexec.h.
3997         (rpl_openat): Support O_CLOEXEC.
3998         * lib/popen-safer.c: Do not include cloexec.h.
3999         (open_noinherit): Remove.
4000         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
4001         * lib/save-cwd.c: Do not include cloexec.h.
4002         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
4003         * m4/open-cloexec.m4: New file.
4004         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
4005         Replace 'open' if O_CLOEXEC is not present.
4006         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
4007         Replace 'openat' if O_CLOEXEC is not present.
4008         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
4009         * modules/open (Files): Add m4/open-cloexec.m4.
4010         (Depends-on): Depend on cloexec if replacing 'open'.
4011         * modules/openat (Files): Add m4/open-cloexec.m4.
4012         (Depends-on): Depend on cloexec if replacing openat.
4013         * modules/popen-safer (Depends-on): Remove cloexec.
4014         * modules/save-cwd (Depends-on): Remove cloexec, and add
4015         fd-safer-flag and 'open'.
4017 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
4019         reallocarray: minor fixes
4020         * doc/glibc-functions/reallocarray.texi: Update version numbers.
4021         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
4022         * modules/reallocarray (License): Change from GPL to LGPL.
4023         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
4024         Indent properly and don't use tabs.
4026 2017-08-13  Darshit Shah  <darnir@gnu.org>
4028         reallocarray: New module
4029         reallocarray is a new function in glibc 2.26 to safely allocate an array
4030         of memory locations with integer overflow protection.
4031         * MODULES.html.sh: Add reallocarray.
4032         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
4033         * lib/reallocarray.c: New file to implement module reallocarray.
4034         * lib/stdlib.in.h: Add function declarations for reallocarray.
4035         * m4/reallocarray.m4: New file.
4036         * m4/stdlib_h.m4: Declare reallocarray.
4037         * modules/reallocarray: New file.
4038         * modules/reallocarray-test: New file.
4039         * modules/stdlib: Coerce stdlib.h to export reallocarray.
4040         * tests/test-reallocarray.c: New test.
4042 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
4044         dirent-safer: fix cloexec race
4045         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
4046         (opendir_safer): Use F_DUPFD_CLOEXEC.
4047         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
4048         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
4049         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
4050         instead of dup_safer.
4052         fts: fix cloexec races
4053         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
4054         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
4055         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
4056         (fd_ring_check): Set cloexec flag on new file descriptors.
4057         (fts_build, fd_ring_check): While we’re at it, make sure the
4058         resulting file descriptor is not 0, 1, or 2, since that is easy.
4060 2017-08-11  Bruno Haible  <bruno@clisp.org>
4062         fts tests: Fix link error.
4063         Reported by Tom G. Christensen in
4064         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
4065         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
4067 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
4069         fts: port recent changes to CentOS 6
4070         Problem reported by Tom G. Christensen in:
4071         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
4072         * lib/fts.c (fsword): New type.
4073         (struct dev_type, filesystem_type): Use it.
4074         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
4075         Also, check for f_type only if fstatfs and sys/vfs.h work.
4077 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
4079         tempname: do not depend on secure_getenv
4080         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
4081         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
4082         * modules/tempname (Depends-on): Remove secure_getenv.
4084 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
4086         extensions: add _OPENBSD_SOURCE
4087         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
4089 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
4090             Bruno Haible  <bruno@clisp.org>
4092         manywarnings: Add support for C++.
4093         * build-aux/g++-warning.spec: New file.
4094         * m4/manywarnings-c++.m4: New file.
4095         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
4096         redirects to manywarnings-c++.m4.
4097         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
4099 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
4101         git-version-gen: another fix for tags with "-"
4102         * build-aux/git-version-gen: Improve fix for tags containing "-".
4103         Suggested by Markus Armbruster in:
4104         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
4106 2017-08-06  Bruno Haible  <bruno@clisp.org>
4108         warnings, manywarnings: Add support for multiple languages, not just C.
4109         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
4110         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
4111         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
4112         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
4113         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
4114         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
4115         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
4116         of the current language. If C++ is the current language, modify
4117         WARN_CXXFLAGS instead of WARN_CFLAGS.
4118         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
4119         gl_MANYWARN_ALL_GCC.
4120         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
4122 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
4124         git-version-gen: Fix for tags containing '-'
4126         Really old versions of git-describe (before v1.5.0, Feb 2007)
4127         don't have the number of commits in their long format output,
4128         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
4129         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
4130         recognizes both patterns, and normalizes the old format to the new one.
4132         Unfortunately, this normalization code gets confused when the tag
4133         contains '-'.  Reproducer:
4135             $ git-tag -m test v0.2-rc1
4136             $ build-aux/git-version-gen .tarball-version; echo
4137             build-aux/git-version-gen: WARNING: git rev-list failed
4138             UNKNOWN
4140         We take exact tag "v0.2-rc1" for the old format, extract the presumed
4141         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
4142         commits since tha tag.  Fails, because tag "v0.2" does not exist.
4144         * git-version-gen: We could perhaps drop support for versions from
4145         more than a decade ago.  But tightening the pattern match is easy
4146         enough, so do that.  Still breaks when you use version tags ending in
4147         something matching -g????, but you arguably get what you deserve then.
4149 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
4151         valgrind-tests: use ls, and cache
4152         * m4/valgrind-tests.m4: Test ls, not bash.
4153         Problem reported by Reuben Thomas.
4154         Also, cache the result so that it can be overridden.
4156 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
4158         manywarnings: port to 64-bit GCC builds of Emacs
4159         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
4160         object size rather than hardwiring 2147483647.  This is needed to
4161         build GNU Emacs, which has one conditional (and used
4162         only-in-theory) call to malloc with a literal greater than
4163         2147483647.
4165 2017-08-04  Bruno Haible  <bruno@clisp.org>
4167         Relax the license of some modules with no runtime code.
4168         * modules/std-gnu11 (License): Set to 'unlimited'.
4169         * modules/c99 (License): Likewise.
4170         Reported by Reuben Thomas <rrt@sc3d.org>.
4171         * modules/d-ino (License): Set to 'LGPL'.
4172         * modules/host-os (License): Likewise.
4173         * modules/longlong (License): Likewise.
4175 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
4177         renameat2: port to RHEL 7 + NFS
4178         * lib/renameat2.c (renameat2) [SYS_renameat2]:
4179         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
4180         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
4182 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
4184         renameat2: port to non-renameat platforms
4185         Problem reported for MSVC-2015 by Gisle Vanem in:
4186         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
4187         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
4188         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
4190 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
4192         manywarnings: port to 32-bit GCC bug
4193         Problem reported by Pino Toscano in:
4194         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
4195         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
4196         not 2**63 - 1, to work around the following GCC bug:
4197         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
4199 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
4201         backupfile: new function to validate backup suffix
4202         * lib/backupfile.c (set_simple_backup_suffix): New function.
4203         (backupfile_internal): Use it.
4205         canonicalize: fix EOVERFLOW commentary
4206         Problem reported by Bruno Haible in:
4207         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
4208         * lib/canonicalize.c (canonicalize_filename_mode):
4209         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
4211         Don't interpret EOVERFLOW to mean nonexistence
4212         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
4213         may be EOVERFLOW; this is likely more useful than reporting the
4214         stat errno.
4215         * lib/glob.c (link_stat): Rename from link_exists2_p and
4216         return -1/0 instead of 0/1.  Caller changed.
4217         * lib/glob.c (link_exists_p):
4218         * lib/renameat2.c (rename_noreplace, renameat2):
4219         * lib/tempname.c (try_nocreate):
4220         If errno == EOVERFLOW then the directory entry exists, so do not
4221         act as if it does not exist.
4223         backup-rename: new module
4224         It is like backupfile, except it avoids some race conditions,
4225         and it does not output to stderr or exit.
4226         * MODULES.html.sh: Add backup-rename.
4227         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
4228         * modules/backup-rename: New files.
4229         * lib/backupfile.c: Turn this into an internals file, which
4230         contains code common to backupfile and backup_rename.  Include
4231         backupfile-internal.h instead of backupfile.h.  Do not include
4232         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
4233         renameat2.h and fcntl.h.
4234         (BACKUP_NOMEM): New constant.
4235         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
4236         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
4237         (backupfile_internal): Rename from find_backup_file_name.
4238         Support new arg RENAME.
4239         (backup_args, backup_types, get_version, xget_version):
4240         Move to lib/backup-find.c.
4241         * lib/backupfile.h (backup_file_rename): New decl.
4242         * modules/backupfile (Files): Add lib/backup-internal.h,
4243         lib/backup-find.c.
4244         (Depends-on): Add dirfd, fcntl, renameat2.
4245         (lib_SOURCES): Add backup-find.c.
4247         renameat2: port better to older Solaris
4248         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
4249         Add goto to use a label, to silence picky compilers.
4251         fts-tests: port to gcc -Wwrite-strings
4252         * tests/test-fts.c (base, base_d): New static vars.
4253         (argv, remove_tree, main): Use them.
4255 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
4257         relocatable-lib{,-lgpl}: improve documentation
4258         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
4259         Various other updates.
4261 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
4262             Bruno Haible  <bruno@clisp.org>
4264         relocatable-lib{,-lgpl}: add Valgrind suppressions
4265         * lib/relocatable.valgrind: New file.
4266         * modules/relocatable-lib (Files): Add relocatable.valgrind.
4267         * modules/relocatable-lib-lgpl: Likewise.
4269 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
4271         relocatable: Make the license on the sources the GPL.
4272         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
4273         LGPL, which was a special case so that the relocatable source files
4274         could be used without gnulib-tool, to GPL. They can still be used under
4275         the LGPL, using the --lgpl option to gnulib-tool.
4277 2017-07-30  Bruno Haible  <bruno@clisp.org>
4279         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
4280         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
4281         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
4282         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
4283         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
4285 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
4287         faccessat: document AT_SYMLINK_NOFOLLOW issue
4288         * doc/posix-functions/faccessat.texi: Modernize platform list.
4289         Document AT_SYMLINK_NOFOLLOW limitation.
4291         renameat2: port to Solaris 10
4292         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
4293         with AT_SYMLINK_NOFOLLOW (which is not portable).
4294         (renameat): Undef before using, to avoid endless recursion when
4295         the replacement renameat calls renameat2 which calls the
4296         replacement renameat.
4297         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
4298         * modules/renameat2 (Depends-on): Remove faccessat.
4299         * modules/renameat-tests (test_renameat_LDADD):
4300         * modules/renameat2-tests (test_renameat2_LDADD):
4301         Remove $(LIB_EACCESS).
4303         renameat2: new module
4304         Although the Linux syscall renameat2 is not in glibc (yet?), it is
4305         useful to have access to its RENAME_NOREPLACE flag.
4306         * MODULES.html.sh (func_all_modules): Add renameat2.
4307         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
4308         * modules/renameat2-tests, tests/test-renameat2.c: New files.
4309         * lib/renameat.c (renameat): Move most of the implementation
4310         to renameat2, and just call renameat2.
4311         * modules/renameat (Files): Remove lib/at-func2.c.
4312         (Depends-on): Depend only on renameat2.
4313         (Include): Remove <fcntl.h>.
4314         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
4315         since renameat (via renameat2) might use faccessat.
4317 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
4319         vc-list-files: Adjust the script to support git worktrees
4320         * build-aux/vc-list-files: Require existence, not directory.
4322 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
4324         doc: bring MODULES.html.sh up to date
4325         Somehow a few months ago we stopped updating MODULES.html.sh.
4326         I don’t recall explicitly deciding this, so I updated it now.
4327         Alternatively I suppose we could remove it.
4328         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
4329         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
4330         truncate, utime, utime-h, windows-stat-inodes,
4331         windows-stat-override, windows-stat-timespec, year2038.  Sort.
4333 2017-07-26  Jim Meyering  <meyering@fb.com>
4335         fprintftime: fix build-break caused by recent renaming
4336         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
4337         "strftime.c".
4338         * modules/fprintftime: Depend directly on nstrftime.
4340 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
4342         regex: work with GCC7's -Werror=implicit-fallthrough=
4343         * lib/regex_internal.h (FALLTHROUGH): New macro.
4344         * lib/regcomp.c (peek_token_bracket, parse_expression):
4345         * lib/regexec.c (check_node_accept): Use it.
4347 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4349         fts: simplify fts_build
4350         * lib/fts.c (fts_build): Simplify, and be lazier about
4351         calling leaf_optimization.
4353         fts: three levels of leaf optimization
4354         * lib/fts.c (enum leaf_optimization): New type with three values.
4355         (S_MAGIC_AFS): New macro.  Sort them.
4356         (leaf_optimization): Rename from leaf_optimization_applies, and
4357         return enum leaf_optimization instead of bool.  All uses changed.
4358         Add cases for unknown type and for AFS.
4359         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
4361         fts: cache dirent_inode_sort_may_be_useful too
4362         * lib/fts.c (struct dev_type): New struct.
4363         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
4364         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
4365         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
4366         Now takes FTSENT const *, not int.  All uses changed.  Use
4367         filesystem_type to cache.
4368         (link_count_optimize_ok): Remove.  Caller changed to use
4369         leaf_optimization_applies, which now uses shared cache.
4371         fts: introduce MIN_DIR_NLINK
4372         * lib/fts.c (MIN_DIR_NLINK): New constant.
4373         Use it instead of 2, whenever we are talking about link counts.
4375         fts: nlink_t signedness fixups
4376         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
4377         so that root need not be a special case later.
4378         (fts_read): Remove now-redundant test for fts_level.
4379         Do not assume that nlink_t is signed.
4380         (fts_build): Remove useless decrement of nlinks.
4381         (fts_stat): Avoid unlikely signed integer overflow later, if
4382         nlink_t is signed.
4384         fts-tests: new module
4385         * modules/fts-tests, tests/test-fts.c: New files.
4387 2017-07-23  Bruno Haible  <bruno@clisp.org>
4389         Rename module 'strftime' to 'nstrftime'.
4390         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
4391         * lib/nstrftime.c: Renamed from lib/strftime.c.
4392         * modules/nstrftime: Renamed from modules/strftime.
4393         (Files, Makefile.am): Update.
4394         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
4395         Fix comment.
4396         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
4397         (Files, Makefile.am): Update.
4398         * modules/strftime: New file, an obsolete indirection.
4399         * doc/posix-functions/strftime.texi: Update reference.
4400         * config/srclist.txt: Update info.
4401         * NEWS: Mention the change.
4403 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
4405         malloca: Silence a warning from clang's memory sanitizer.
4406         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
4407         (freea): Use it.
4409 2017-07-18  Bruno Haible  <bruno@clisp.org>
4411         host-cpu-c-abi: Fix detection of MIPS ABI.
4412         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
4413         ABI, not the CPU instruction set.
4415 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
4417         explicit_bzero: new module
4418         The explicit_bzero function has been added to glibc.
4419         This module is intended to supports its use in GNU programs.
4420         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
4421         * m4/explicit_bzero.m4, modules/explicit_bzero:
4422         New files.
4423         * doc/gnulib.texi (Glibc string.h): Link to new doc.
4424         * lib/string.in.h (explicit_bzero): Declare.
4425         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
4426         * modules/string (string.h): Substitute its vars.
4428 2017-07-16  Bruno Haible  <bruno@clisp.org>
4430         threadlib: Support static linking.
4431         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
4432         set gl_cv_have_weak to 'no'.
4434 2017-07-16  Bruno Haible  <bruno@clisp.org>
4436         unicase/locale-language: Fix link dependencies.
4437         * modules/unicase/locale-language (Link): New section.
4438         * modules/unicase/locale-language-tests (Makefile.am): Link
4439         test-locale-language program with $(LIBTHREAD).
4441 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
4443         sys_socket: Add support for OpenVMS.
4444         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
4445         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
4447 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
4449         sys_resource: Add support for OpenVMS.
4450         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
4451         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
4453 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
4454             Bruno Haible  <bruno@clisp.org>
4456         math: Add support for OpenVMS.
4457         * lib/math.in.h [__VMS]: Include <fp.h>.
4458         * doc/posix-headers/math.texi: Mention OpenVMS issues.
4460 2017-07-15  Bruno Haible  <bruno@clisp.org>
4462         getdtablesize: Add minimal support for OpenVMS.
4463         Reported by John E. Malmberg <wb8tyw@qsl.net>.
4464         * modules/getdtablesize (Description): Fix.
4465         * lib/getdtablesize.c: Fix comment.
4466         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
4467         getdtablesize() function, even though the test fails.
4468         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
4469         limitation on OpenVMS.
4471 2017-07-13  Bruno Haible  <bruno@clisp.org>
4473         Revisit cross-compilation guesses.
4474         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
4476 2017-07-13  Bruno Haible  <bruno@clisp.org>
4478         Improve cross-compilation guesses for native Windows.
4479         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
4480         Windows.
4481         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
4482         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
4483         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
4484         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
4485         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
4486         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
4487         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4488         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4489         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
4490         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
4491         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4492         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
4493         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
4494         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
4495         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
4496         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
4497         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
4498         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
4499         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
4500         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
4501         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
4502         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4503         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
4504         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
4505         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
4506         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
4507         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
4508         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
4509         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
4510         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
4511         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
4512         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
4513         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
4514         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
4515         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
4516         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
4517         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
4518         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
4519         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
4520         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
4521         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
4522         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
4523         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
4524         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
4525         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
4526         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
4527         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
4528         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
4529         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
4530         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
4531         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
4532         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
4533         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
4534         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
4535         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
4536         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
4537         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
4538         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
4539         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
4540         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
4541         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
4542         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
4543         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
4544         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
4545         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
4546         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
4547         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
4548         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
4549         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
4550         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
4551         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
4552         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
4553         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
4554         * m4/regex.m4 (gl_REGEX): Likewise.
4555         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
4556         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
4557         gl_FUNC_REMAINDERF_WORKS): Likewise.
4558         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
4559         gl_FUNC_REMAINDERL_WORKS): Likewise.
4560         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
4561         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
4562         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
4563         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4564         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4565         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
4566         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
4567         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
4568         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
4569         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4570         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
4571         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
4572         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
4573         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
4574         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
4575         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4576         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4577         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4578         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
4579         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
4580         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
4581         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
4582         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
4583         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
4584         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
4585         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
4586         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
4587         Likewise.
4588         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4589         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
4590         Windows. Enable also on Autoconf 2.70.
4591         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
4592         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
4593         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
4594         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
4595         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4596         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
4597         for native Windows.
4598         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
4599         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
4601 2017-07-13  Bruno Haible  <bruno@clisp.org>
4603         Improve cross-compilation guesses for native Windows.
4604         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
4605         Windows.
4606         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
4607         memchr.m4.
4608         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
4610 2017-07-13  Bruno Haible  <bruno@clisp.org>
4612         Improve cross-compilation guesses for native Windows.
4613         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
4614         native Windows.
4615         (gl_FUNC_FFLUSH): Update accordingly.
4616         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
4617         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
4619 2017-07-11  Bruno Haible  <bruno@clisp.org>
4621         More systematic m4 quoting and indentation.
4622         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
4623         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
4624         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
4625         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4626         * m4/host-os.m4 (gl_HOST_OS): Likewise.
4627         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
4628         gl_WINSIZE_IN_PTEM): Likewise.
4629         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
4630         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
4631         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
4632         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
4633         Correct indentation.
4634         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4635         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4636         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
4637         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
4638         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
4639         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
4641 2017-07-10  Bruno Haible  <bruno@clisp.org>
4643         round, roundf: Avoid compiler warning in configure test.
4644         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
4645         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4647 2017-07-10  Bruno Haible  <bruno@clisp.org>
4649         getlogin tests: Avoid #ifdefs when sharing code between modules.
4650         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
4651         * modules/getlogin-tests (Files): Likewise. Remove
4652         tests/test-getlogin_r.c.
4653         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
4654         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
4655         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
4656         getlogin().
4658 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
4660         getlogin: don’t assume one name per uid
4661         Problem reported by Wolfgang F. Muthmann (Bug#27640).
4662         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
4663         (ttyname): Remove test.
4664         * modules/getlogin_r-tests (ttyname): Remove test.
4665         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
4666         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
4667         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
4668         getlogin rather than getlogin_r.  This avoids code duplication.
4669         (main): Use isatty and fstat rather than ttyname and stat.
4670         Use getpwnam instead of getpwuid, to be portable to test platforms
4671         that have multiple login names for the same uid.
4673 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
4674             Bruno Haible  <bruno@clisp.org>
4676         glob: Fix more memory leaks.
4677         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
4678         returning.
4679         Reported by Tim Rühsen.
4681 2017-07-10  Bruno Haible  <bruno@clisp.org>
4683         Make sure $host and $host_os are defined when used.
4684         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
4685         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
4686         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
4687         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4688         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4689         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
4690         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
4691         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
4692         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
4693         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
4694         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
4695         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
4696         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
4697         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
4698         m4_ifdef block.
4700 2017-07-09  Bruno Haible  <bruno@clisp.org>
4702         *printf: Fix cross-compilation guess for Solaris.
4703         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
4704         2010-12-21.
4706 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
4707             Bruno Haible  <bruno@clisp.org>
4709         vasnprintf: port to macOS 10.13
4710         Problem reported by comex in:
4711         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
4712         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
4714 2017-07-06  Bruno Haible  <bruno@clisp.org>
4716         imaxdiv tests: Fix logic.
4717         * tests/test-imaxdiv.c (main): Use == instead of =.
4718         Reported by Coverity.
4720 2017-07-06  Bruno Haible  <bruno@clisp.org>
4722         uninorm/filter: Fix use-after-free bug.
4723         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
4724         sortbuf == filter->sortbuf invariant.
4725         Reported by Coverity.
4727 2017-07-06  Bruno Haible  <bruno@clisp.org>
4729         glob: Fix more memory leaks.
4730         * lib/glob.c (glob): Free dirname before returning.
4731         Reported by Coverity and Tim Rühsen.
4733 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4735         parse-datetime: fix uninit var bug
4736         Reported by Bruno Haible in:
4737         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
4738         * lib/parse-datetime.y (parse_datetime2): Do not use
4739         uninitialized.
4741 2017-07-05  Bruno Haible  <bruno@clisp.org>
4743         doc: Update for MSVC 14.
4744         * doc/posix-headers/*.texi: Add info about MSVC 14.
4745         * doc/posix-functions/*.texi: Likewise.
4746         * doc/pastposix-functions/*.texi: Likewise.
4747         * doc/glibc-headers/*.texi: Likewise.
4748         * doc/glibc-functions/*.texi: Likewise.
4750 2017-07-05  Bruno Haible  <bruno@clisp.org>
4752         sched: Fix build failure on native Windows (regression from 2017-06-19).
4753         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
4755 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
4757         stdioext: Port to OpenVMS.
4758         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
4759         * lib/fpending.c (fpending): Remove non-working VMS specific code.
4760         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
4761         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
4762         * lib/fpurge.c (fpurge): Likewise.
4763         * lib/freadable.c (freadable): Likewise.
4764         * lib/freadahead.c (freadahead): Likewise.
4765         * lib/freading.c (freading): Likewise.
4766         * lib/freadptr.c (freadptr): Likewise.
4767         * lib/freadseek.c (freadseek): Likewise.
4768         * lib/fseeko.c (fseeko): Likewise.
4769         * lib/fseterr.c (fseterr): Likewise.
4770         * lib/fwritable.c (fwriteable): Likewise.
4771         * lib/fwriting.c (fwriting): Likewise.
4773 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
4775         glob: Declare variables at the very start of their scope.
4776         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
4777         its separate scope, so the functions will compile on Haiku.
4779 2017-07-01  Bruno Haible  <bruno@clisp.org>
4781         logbl: Work around a glibc bug on PowerPC64LE.
4782         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
4783         numbers.
4784         * doc/posix-functions/logbl.texi: Update.
4786 2017-06-29  Bruno Haible  <bruno@clisp.org>
4788         stat, fstat: Compile stat-w32.c only on platforms that need it.
4789         Suggested by Paul Eggert.
4790         * modules/stat (configure.ac): Request stat-w32.o only on native
4791         Windows.
4792         * modules/fstat (configure.ac): Likewise.
4794 2017-06-25  Bruno Haible  <bruno@clisp.org>
4796         stat: Improve last change.
4797         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
4799 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
4801         stat: port to xlc 12.01
4802         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
4803         12.01 complains "Compilation unit is empty."
4805 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
4807         xalloc-oversized: port to icc
4808         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
4809         __builtin_mul_overflow if ICC is defined, as this results in
4810         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
4811         20170213.
4813 2017-06-19  Bruno Haible  <bruno@clisp.org>
4815         classpath: Avoid including config.h twice, as it produces warnings.
4816         Reported by John E. Malmberg <wb8tyw@gmail.com>.
4817         * lib/classpath.h: Conditionalize the include of config.h.
4819 2017-06-19  Bruno Haible  <bruno@clisp.org>
4820             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
4822         sched: Fix compilation failure on OpenVMS.
4823         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
4824         test whether <pthread.h> exists and defines struct sched_param.
4825         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
4827 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
4829         diffseq: port to GCC 7 with --enable-gcc-warnings
4830         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
4831         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
4832         not complain about big_snake being defined but not used.
4834 2017-06-15  Bruno Haible  <bruno@clisp.org>
4836         gettext-h: Update theoretical condition for use of variable size arrays.
4837         Reported by Paul Eggert.
4838         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
4839         to include the theoretical condition for availability of variable size
4840         arrays, if we could trust the value of __STDC_VERSION__.
4842 2017-06-12  Bruno Haible  <bruno@clisp.org>
4844         Relicense some modules under LGPLv2+.
4845         Daiki Ueno's approval is in
4846         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
4847         * modules/uniwidth/base (License): Change to LGPLv2+.
4848         * modules/uniwidth/width (License): Likewise.
4850 2017-06-11  Bruno Haible  <bruno@clisp.org>
4852         localename: Fix test failure on DragonFly BSD.
4853         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
4854         like FreeBSD.
4856 2017-06-11  Bruno Haible  <bruno@clisp.org>
4858         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
4859         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
4860         * lib/float.in.h: Likewise.
4861         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
4863 2017-06-11  Bruno Haible  <bruno@clisp.org>
4865         gnulib-tool: Clean up after autotools.
4866         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
4867         useless directory left over by the Autotools.
4869 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
4871         getopt-posix: port to glibc 2.25.90
4872         Problem reported by Daniel P. Berrange in:
4873         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
4874         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
4875         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
4876         #undef if __GETOPT_PREFIX is defined.
4878 2017-06-11  Bruno Haible  <bruno@clisp.org>
4880         strtod-obsolete: Fix license.
4881         * modules/strtod-obsolete (License): Change to LGPL.
4883 2017-06-10  Jim Meyering  <meyering@fb.com>
4885         maint: update to work with GCC7's -Werror=implicit-fallthrough=
4886         * lib/savewd.c (FALLTHROUGH): Define.
4887         (savewd_save, savewd_restore): Use this, rather than a comment,
4888         whenever one switch case falls through into the next.
4890 2017-06-08  Bruno Haible  <bruno@clisp.org>
4892         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
4893         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
4894         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
4895         case.
4897 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
4899         doc: remove robots, add prereqs
4900         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
4901         builds.  Simon's robot site does not seem to be up, so remove
4902         mentions of it for now.
4904 2017-06-08  Bruno Haible  <bruno@clisp.org>
4906         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
4907         * gnulib-tool (func_symlink_target): New function, extracted from
4908         func_symlink.
4909         (func_symlink, func_symlink_if_changed): Use it.
4911 2017-06-08  Bruno Haible  <bruno@clisp.org>
4913         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
4914         * gnulib-tool (func_ln_s): Determine cp_src correctly.
4916 2017-06-07  Bruno Haible  <bruno@clisp.org>
4918         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
4919         Reported by John E. Malmberg <wb8tyw@gmail.com> in
4920         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
4921         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
4922         override, pass 2 arguments to getcwd, not 3.
4924 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
4926         same-inode: port better to VMS 8.2 and later
4927         Problem reported by John E. Malmberg in:
4928         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
4929         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
4930         Use the usual POSIX definition.
4931         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
4933 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
4935         error: fix POSIX violation for va_end
4936         Problem reported by Bruno Haible in:
4937         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
4938         * lib/error.c (error_tail): Do not call va_end here.
4939         (error, error_at_line): Call it here instead.
4941 2017-05-28  Bruno Haible  <bruno@clisp.org>
4943         c-strtod: Make it usable in C++ mode.
4944         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
4946 2017-05-25  Jim Meyering  <meyering@fb.com>
4948         quotearg: fix compilation failure due to FALLTHROUGH misuse
4949         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
4950         macro back to /* fall through */ comment.  The macro can apply only
4951         to a following case statement.  Reported by Assaf Gordon.
4953 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
4955         intprops: port to recent icc
4956         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
4957         but does not support __builtin_add_overflow etc.
4958         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
4959         Define to 0.
4961 2017-05-23  Karl Berry  <karl@freefriends.org>
4963         * config/srclist.txt (iconv.m4): sync broken, comment out
4964         until (hopefully) the next gettext release.
4966 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
4968         Remove repeated words in comments.
4970 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
4972         fallthrough: reinstate a FALLTHROUGH instance in quotearg
4973         quotearg.c: Reinstate this instance which is significant
4974         when the if branch is not taken.
4976 2017-05-21  Bruno Haible  <bruno@clisp.org>
4978         gnulib-tool: Add options to create hard links.
4979         * gnulib-tool (func_usage): Document options --hardlink,
4980         --local-hardlink, --more-hardlinks.
4981         (func_symlink): Renamed from func_ln.
4982         (func_symlink_if_changed): Renamed from func_ln_if_changed.
4983         (func_hardlink): New function.
4984         (copymode, lcopymode): New variables.
4985         (symbolic, lsymbolic): Remove variables.
4986         (Options): Implement options --hardlink, --local-hardlink,
4987         --more-hardlinks.
4988         (func_should_link): Renamed from func_should_symlink. Set copyaction.
4989         (func_add_file, func_update_file): Update invocation of
4990         func_should_link. Invoke func_hardlink when appropriate.
4991         (func_import): Update comments.
4992         (func_create_testdir): Update invocation of func_should_link. Invoke
4993         func_hardlink when appropriate.
4994         Finally, invoke 'git update-index --refresh' to mitigate the effects of
4995         the hard links on git.
4997 2017-05-20  Bruno Haible  <bruno@clisp.org>
4999         argp: Simplify bit manipulation.
5000         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
5001         on a signed integer type.
5003 2017-05-20  Bruno Haible  <bruno@clisp.org>
5005         Avoid wrong configure results with gcc -fsanitize=address.
5006         This completes the work done on 2016-02-06 on this topic.
5007         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
5008         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
5009         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5010         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
5011         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
5012         returning.
5013         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
5014         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
5015         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
5016         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
5017         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
5018         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
5019         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
5020         free allocated memory before returning.
5021         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
5022         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
5023         objects before returning.
5024         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
5025         returning.
5027 2017-05-20  Bruno Haible  <bruno@clisp.org>
5029         gnulib-tool: Don't create hard links between gnulib and its testdirs.
5030         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
5032 2017-05-20  Bruno Haible  <bruno@clisp.org>
5034         argp, tsearch tests: Fix file list.
5035         * modules/argp-tests (Files): Add tests/macros.h.
5036         * modules/tsearch-tests (Files): Likewise.
5038 2017-05-20  Bruno Haible  <bruno@clisp.org>
5040         getopt-posix tests: Remove redundant include.
5041         * tests/test-getopt.h: Don't include "macros.h". It's already included
5042         by tests/test-getopt-main.h.
5044 2017-05-19  Jim Meyering  <meyering@fb.com>
5046         dfa: two small simplifications
5047         * lib/dfa.c (build_state): Avoid repeating longer expressions.
5049 2017-05-18  Jim Meyering  <meyering@fb.com>
5051         fallthrough: update for GCC 7/8
5052         * lib/quotearg.c (FALLTHROUGH): New macro.
5053         Use it whenever one switch case falls through into the next,
5054         replacing "/* Fall through */" comments.  This exposed one
5055         instance of an unwarranted "fall through" comment: unwarranted
5056         because it preceded a "goto" label not a case statement.
5057         * lib/freopen-safer.c (freopen_safer): Likewise.
5058         * lib/fts.c (leaf_optimization_applies): Likewise.
5059         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
5060         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
5061         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
5062         tests/macros.h for the definition.
5063         * tests/test-argp.c (group1_parser): Likewise.
5064         * tests/test-getopt.h (getopt_loop): Likewise.
5066 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
5068         argp: fix shift bug
5069         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
5070         behavior on shift overflow, caught by gcc -fsanitize=undefined.
5072         argp: fix pointer-subtraction bug
5073         * lib/argp-help.c (hol_append): Don’t subtract pointers to
5074         different arrays, as this can run afoul of -fcheck-pointer-bounds.
5075         See the thread containing Bruno Haible’s report in:
5076         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
5078 2017-05-19  Bruno Haible  <bruno@clisp.org>
5080         printf-posix tests: Avoid test failure with "gcc --coverage".
5081         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
5082         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
5083         than 5000000.
5084         * tests/test-fprintf-posix2.c (main): Likewise.
5086 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
5088         closeout: don’t close stderr when sanitizing
5089         * NEWS: Document this.
5090         * lib/closeout.c (__has_feature): New macro, if not already defined.
5091         (SANITIZE_ADDRESS): New constant.
5092         (close_stdout): Don’t close stderr if sanitizing addresses.
5094 2017-05-19  Bruno Haible  <bruno@clisp.org>
5096         get-rusage-data tests: Avoid failure on Linux/glibc.
5097         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
5098         on glibc systems.
5100 2017-05-18  Bruno Haible  <bruno@clisp.org>
5102         localename: Include necessary header files on Cygwin.
5103         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
5104         where NL_LOCALE_NAME is defined.
5106 2017-05-18  Bruno Haible  <bruno@clisp.org>
5108         gettext: Update macros from gettext git.
5109         * m4/intldir.m4: Require Autoconf >= 2.60.
5110         * m4/progtest.m4: Fix typos in copyright notice.
5112 2017-05-18  Bruno Haible  <bruno@clisp.org>
5114         copy-file tests: Fix link error (regression from 2017-05-01).
5115         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5116         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
5117         $(LIB_CLOCK_GETTIME).
5119 2017-05-18  Bruno Haible  <bruno@clisp.org>
5121         unicase/special-casing: Fix incompatibility with gperf-3.0.4
5122         (regression from 2017-02-13).
5123         * lib/unicase/special-casing.in.h: Renamed from
5124         lib/unicase/special-casing.h.
5125         * modules/unicase/special-casing (Files): Add
5126         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
5127         (Makefile.am): Add rule for generating unicase/special-casing.h.
5128         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
5129         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
5130         not "special-casing.h".
5131         * lib/unicase/u*.c: Likewise.
5133 2017-05-17  Bruno Haible  <bruno@clisp.org>
5135         README: Don't ask people to read a TeXinfo file.
5136         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
5137         * README: Tell people how to read the HTML formatted manual.
5139 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
5141         parse-datetime: Fix memleak
5142         * lib/parse-datetime.y (parse_datetime2): Cleanup on
5143         localtime_rz() failure.
5145 2017-05-16  Bruno Haible  <bruno@clisp.org>
5147         javacomp: Fix handle leak.
5148         Found by Coverity.
5149         * lib/javacomp.c (get_classfile_version): Close fd before returning.
5151 2017-05-16  Bruno Haible  <bruno@clisp.org>
5153         relocate: Make it easier to reclaim allocated memory.
5154         * lib/relocatable.h (relocate2): New declaration/macro.
5155         * lib/relocatable.c (relocate2): New function.
5156         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
5157         relocate2 function.
5158         * lib/localcharset.c (relocate2): Define fallback.
5159         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
5160         allocated memory.
5161         * lib/javaversion.c (relocate2): Define fallback.
5162         (javaexec_version): Invoke relocate2 instead of relocate. Free the
5163         allocated memory.
5165 2017-05-16  Bruno Haible  <bruno@clisp.org>
5167         relocate: Simplify EMX specific code.
5168         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
5169         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
5171 2017-05-16  Bruno Haible  <bruno@clisp.org>
5173         sigpipe tests: Fix file list.
5174         * modules/sigpipe-tests (Files): Add tests/macros.h.
5176 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
5178         manywarnings: update for GCC 7
5179         * build-aux/gcc-warning.spec:
5180         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
5181         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
5182         requires a non-comment fallthrough attribute.  This is a bit
5183         cleaner than the comment versions.
5184         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
5185         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
5186         Use it whenever one switch case falls through into the next.
5187         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
5188         Use FALLTHROUGH macro.
5190 2017-05-15  Bruno Haible  <bruno@clisp.org>
5192         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
5193         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
5194         @ALLOCA@, not @LTALLOCA@.
5196 2017-05-15  Bruno Haible  <bruno@clisp.org>
5198         sys_select: Avoid "was expanded before it was required" warning.
5199         * modules/sys_select (configure.ac): Require, not invoke,
5200         gl_HEADER_SYS_SELECT.
5202 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
5204         gnulib-tool: improve GNU Make debugging
5205         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
5206         Report autoconf diagnostics when it fails, in the output makefile.
5208 2017-05-14  Bruno Haible  <bruno@clisp.org>
5210         stat-time tests: Improve comment.
5211         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
5213 2017-05-14  Bruno Haible  <bruno@clisp.org>
5215         same-inode: Adapt for windows-stat-inodes.
5216         * lib/same-inode.h: Include <sys/types.h>.
5217         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
5218         * modules/same-inode (Depends-on): Add sys_types.
5220 2017-05-14  Bruno Haible  <bruno@clisp.org>
5222         windows-stat-inodes: New module.
5223         * m4/windows-stat-inodes.m4: New file.
5224         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
5225         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
5226         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
5227         (_GL_WINDOWS_STAT_INODES): New macro.
5228         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
5229         (GetFileInformationByHandleExFunc): New variable.
5230         (initialize): Initialize it.
5231         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
5232         st_ino appropriately.
5233         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
5234         a fallback, because it does not provide st_dev and st_ino values.
5235         * modules/fstat (Depends-on): Add 'verify'.
5236         * modules/windows-stat-inodes: New file.
5237         * doc/windows-stat-inodes.texi: New file.
5238         * doc/gnulib.texi: Include it.
5239         * doc/posix-headers/sys_stat.texi: Mention the new module.
5241 2017-05-14  Bruno Haible  <bruno@clisp.org>
5243         stat-time tests: Workaround for native Windows.
5244         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
5245         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
5246         New variables.
5247         (initialize_filenames): New function.
5248         (main): Invoke it.
5249         (cleanup, prepare_test): Update.
5251 2017-05-14  Bruno Haible  <bruno@clisp.org>
5253         stat-time: Adapt for windows-stat-timespec.
5254         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
5255         entire st_ctim field.
5257 2017-05-13  Jim Meyering  <meyering@fb.com>
5259         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
5260         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
5261         file that uses the assume macro, claiming that verify.h is unused.
5263 2017-05-13  Bruno Haible  <bruno@clisp.org>
5265         Use symbolic values for _WIN32_WINNT.
5266         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
5267         * lib/sethostname.c (_WIN32_WINNT): Likewise.
5269 2017-05-13  Bruno Haible  <bruno@clisp.org>
5271         year2038: New module.
5272         * m4/year2038.m4: New file.
5273         * modules/year2038: New file.
5274         * doc/year2038.texi: New file.
5275         * doc/gnulib.texi: Include it.
5277 2017-05-13  Bruno Haible  <bruno@clisp.org>
5279         largefile: Simplify.
5280         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
5281         of _GL_WINDOWS_64_BIT_ST_SIZE.
5283 2017-05-13  Bruno Haible  <bruno@clisp.org>
5285         largefile: Improve and document.
5286         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
5287         the mingw headers already define 'stat' appropriately.
5288         * modules/largefile (Description): Clarify.
5289         * doc/largefile.texi: New file.
5290         * doc/gnulib.texi: Include it.
5291         * doc/posix-headers/sys_types.texi: Update.
5293 2017-05-13  Bruno Haible  <bruno@clisp.org>
5295         truncate: New module.
5296         * lib/unistd.in.h (truncate): New declaration.
5297         * lib/truncate.c: New file.
5298         * m4/truncate.m4: New file.
5299         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
5300         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
5301         REPLACE_TRUNCATE.
5302         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
5303         HAVE_TRUNCATE, REPLACE_TRUNCATE.
5304         * modules/truncate: New file.
5305         * tests/test-unistd-c++.cc (truncate): Test signature.
5306         * doc/posix-functions/truncate.texi: Mention the new module.
5308         * tests/test-truncate.c: New file.
5309         * modules/truncate-tests: New file.
5311 2017-05-13  Bruno Haible  <bruno@clisp.org>
5313         windows-stat-timespec: New module.
5314         * modules/windows-stat-timespec: New file.
5315         * m4/windows-stat-timespec.m4: New file.
5316         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
5317         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
5318         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
5319         fields st_atim, st_mtim, st_ctim.
5320         (st_atime, st_mtime, st_ctime): Define as macros.
5321         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
5322         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
5323         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
5324         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
5325         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
5326         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
5327         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
5328         FILETIME to 'struct timespec', not 'time_t'.
5329         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
5330         FILETIME to 'struct timespec', not 'time_t'.
5331         * lib/stat-time.h (STAT_TIMESPEC): Define also if
5332         _GL_WINDOWS_STAT_TIMESPEC.
5333         * doc/windows-stat-timespec.texi: New file.
5334         * doc/gnulib.texi: Include it.
5336 2017-05-13  Bruno Haible  <bruno@clisp.org>
5338         windows-stat-override: New module.
5339         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
5340         definition. Define GNULIB_defined_struct_stat.
5341         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
5342         link error if this symbol is used and the corresponding module is not
5343         in use.
5344         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
5345         GNULIB_OVERRIDES_STRUCT_STAT.
5346         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
5347         GNULIB_OVERRIDES_STRUCT_STAT.
5348         * modules/sys_stat (Makefile.am): Substitute
5349         GNULIB_OVERRIDES_STRUCT_STAT.
5350         * modules/windows-stat-override: New file.
5352 2017-05-13  Bruno Haible  <bruno@clisp.org>
5354         fstat: Fix module dependency conditions.
5355         * modules/fstat (Depends-on): Fix typo.
5357 2017-05-13  Bruno Haible  <bruno@clisp.org>
5359         stat, fstat: Complete removal of old native Windows code.
5360         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
5361         * lib/fstat.c: Likewise.
5362         * lib/stat-w32.c: Likewise.
5364 2017-05-13  Bruno Haible  <bruno@clisp.org>
5366         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
5367         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
5369 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
5371         getopt-posix: port to mingw
5372         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
5373         Problem reported by Daniel P. Berrage in:
5374         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
5376 2017-05-11  Bruno Haible  <bruno@clisp.org>
5378         gettimeofday: Increase precision on mingw.
5379         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
5380         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
5381         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
5382         GetSystemTimePreciseAsFileTime based implementation always.
5383         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
5384         mingw.
5386 2017-05-11  Bruno Haible  <bruno@clisp.org>
5388         poll: Fix confusion between SOCKETs and FDs on native Windows.
5389         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
5390         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
5392 2017-05-11  Bruno Haible  <bruno@clisp.org>
5394         doc: Clarify doc about socket functions on native Windows.
5395         This reworks doc that was added on 2008-09-29.
5396         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
5397         clearer wording.
5398         * doc/posix-functions/accept.texi: Use clearer wording.
5399         * doc/posix-functions/bind.texi: Likewise.
5400         * doc/posix-functions/connect.texi: Likewise.
5401         * doc/posix-functions/getpeername.texi: Likewise.
5402         * doc/posix-functions/getsockname.texi: Likewise.
5403         * doc/posix-functions/getsockopt.texi: Likewise.
5404         * doc/posix-functions/ioctl.texi: Likewise.
5405         * doc/posix-functions/listen.texi: Likewise.
5406         * doc/posix-functions/recv.texi: Likewise.
5407         * doc/posix-functions/recvfrom.texi: Likewise.
5408         * doc/posix-functions/send.texi: Likewise.
5409         * doc/posix-functions/sendto.texi: Likewise.
5410         * doc/posix-functions/setsockopt.texi: Likewise.
5411         * doc/posix-functions/shutdown.texi: Likewise.
5412         * doc/posix-functions/socket.texi: Likewise.
5414 2017-05-10  Bruno Haible  <bruno@clisp.org>
5416         poll: Fix link error on native Windows.
5417         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
5419 2017-05-10  Bruno Haible  <bruno@clisp.org>
5421         time: Fix missing initialization of HAVE_TIMEZONE_T.
5422         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
5423         here...
5424         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
5425         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
5426         gl_HEADER_SYS_TIME_H_DEFAULTS.
5427         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
5428         (configure.ac): Remove useless quoting.
5430 2017-05-10  Bruno Haible  <bruno@clisp.org>
5432         Implement a way to opt out from MSVC support, part 2.
5433         * modules/msvc-inval (Include): Document recommended idiom.
5434         * modules/msvc-nothrow (Include): Likewise.
5436         Implement a way to opt out from MSVC support.
5437         This is useful for Emacs.
5438         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
5439         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
5440         * lib/error.c: Likewise.
5441         * lib/fcntl.c: Likewise.
5442         * lib/flock.c: Likewise.
5443         * lib/fstat.c: Likewise.
5444         * lib/fsync.c: Likewise.
5445         * lib/ioctl.c: Likewise.
5446         * lib/isapipe.c: Likewise.
5447         * lib/lseek.c: Likewise.
5448         * lib/nonblocking.c: Likewise.
5449         * lib/poll.c: Likewise.
5450         * lib/select.c: Likewise.
5451         * lib/sockets.h: Likewise.
5452         * lib/sockets.c: Likewise.
5453         * lib/stdio-read.c: Likewise.
5454         * lib/stdio-write.c: Likewise.
5455         * lib/utimens.c: Likewise.
5456         * lib/w32sock.h: Likewise.
5457         * lib/w32spawn.h: Likewise.
5458         * tests/test-cloexec.c: Likewise.
5459         * tests/test-dup-safer.c: Likewise.
5460         * tests/test-dup2.c: Likewise.
5461         * tests/test-dup3.c: Likewise.
5462         * tests/test-fcntl.c: Likewise.
5463         * tests/test-pipe.c: Likewise.
5464         * tests/test-pipe2.c: Likewise.
5465         * lib/ftruncate.c: Likewise.
5466         (chsize_nothrow): Renamed from chsize.
5467         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
5468         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
5469         * lib/close.c: Likewise.
5470         * lib/dup.c: Likewise.
5471         * lib/fclose.c: Likewise.
5472         * lib/raise.c: Likewise.
5473         * tests/test-fgetc.c: Likewise.
5474         * tests/test-fputc.c: Likewise.
5475         * tests/test-fread.c: Likewise.
5476         * tests/test-fwrite.c: Likewise.
5477         * lib/getdtablesize.c: Likewise.
5478         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
5479         * lib/isatty.c: Don't include msvc-inval.h if
5480         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
5481         Include <io.h> as an alternative to msvc-nothrow.h.
5482         * lib/read.c: Likewise.
5483         * lib/write.c: Likewise.
5484         * lib/dup2.c: Likewise.
5485         (dup2_nothrow): New function.
5486         (ms_windows_dup2): Use it.
5487         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
5488         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
5489         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
5490         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
5491         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
5492         * m4/read.m4 (gl_FUNC_READ): Likewise.
5493         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
5494         * doc/windows-without-msvc.texi: New file.
5495         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
5496         section.
5498 2017-05-10  Bruno Haible  <bruno@clisp.org>
5500         wait-process: Adjust native Windows support.
5501         * lib/wait-process.c: Use the usual condition for recognizing a native
5502         Windows platform.
5504 2017-05-10  Bruno Haible  <bruno@clisp.org>
5506         doc: New chapter "Native Windows Support".
5507         * doc/gnulib.texi (Native Windows Support): New chapter.
5508         * doc/windows-libtool.texi: Small wording changes.
5509         * doc/windows-sockets.texi: Small wording and formatting changes.
5511 2017-05-10  Bruno Haible  <bruno@clisp.org>
5513         doc: Move section "Library version handling".
5514         * doc/gnulib.texi: Move section "Library version handling"
5515         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
5517 2017-05-10  Bruno Haible  <bruno@clisp.org>
5519         doc: Move section "Running self-tests under valgrind".
5520         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
5521         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
5523 2017-05-10  Bruno Haible  <bruno@clisp.org>
5525         doc: New chapter "Build Infrastructure Modules".
5526         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
5528 2017-05-10  Bruno Haible  <bruno@clisp.org>
5530         Prepare for reordering sections in the manual.
5531         * doc/gnulib.texi: Move several sections to separate files. Include
5532         these files.
5533         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
5534         * doc/obsolete.texi: Likewise.
5535         * doc/extra-tests.texi: Likewise.
5536         * doc/transversal.texi: Likewise.
5537         * doc/namespace.texi: Likewise.
5538         * doc/check-version.texi: Likewise.
5539         * doc/windows-sockets.texi: Likewise.
5540         * doc/windows-libtool.texi: Likewise.
5541         * doc/licenses-texi.texi: Likewise.
5542         * doc/build-automation.texi: Likewise.
5543         * doc/c-locale.texi: Likewise.
5545 2017-05-10  Bruno Haible  <bruno@clisp.org>
5547         Fix instructions how to update manual on www.gnu.org.
5548         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
5550 2017-05-09  Bruno Haible  <bruno@clisp.org>
5552         tzset: Expand comment about TZ problem on native Windows.
5553         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
5554         Paul Eggert.
5555         * lib/ctime.c (rpl_ctime): Likewise.
5556         * lib/localtime.c (rpl_localtime): Likewise.
5557         * lib/mktime.c (mktime): Likewise.
5558         * lib/strftime-fixes.c (rpl_strftime): Likewise.
5559         * lib/wcsftime.c (rpl_wcsftime): Likewise.
5561 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
5563         intprops: don’t depend on ‘verify’
5564         Problem reported by Ævar Arnfjörð Bjarmason in:
5565         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
5566         * lib/intprops.h: Do not include verify.h, and move compile-time
5567         checks from here ...
5568         * tests/test-intprops.c (main): ... to here, if they’re not here
5569         already.  Check widths of other standard integer types.
5570         * modules/intprops (Depends-on): Remove ‘verify’.
5572 2017-05-07  Bruno Haible  <bruno@clisp.org>
5574         utimens: On native Windows, support 100ns resolution also if fd < 0.
5575         * lib/utime.in.h: Include <time.h>.
5576         (_gl_utimens_windows): New declaration.
5577         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
5578         (utime): Invoke it.
5579         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
5580         instead of utime.
5581         * modules/utime (Depends-on): Add 'time'.
5583 2017-05-07  Bruno Haible  <bruno@clisp.org>
5585         utimens: Improve error code on native Windows.
5586         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
5587         error code EACCES, not EINVAL.
5589 2017-05-07  Bruno Haible  <bruno@clisp.org>
5591         utime: Handle more Windows error codes.
5592         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
5593         Based on explanations by Billy O'Neal.
5595 2017-05-05  Bruno Haible  <bruno@clisp.org>
5597         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
5598         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
5599         union.
5600         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
5601         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
5602         value of cipher->IV.
5604 2017-05-05  Bruno Haible  <bruno@clisp.org>
5606         wctype-h-c++-tests: Update.
5607         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
5609 2017-05-05  Bruno Haible  <bruno@clisp.org>
5611         wchar-c++-tests: Update.
5612         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
5614 2017-05-05  Bruno Haible  <bruno@clisp.org>
5616         utime-h-c++-tests: New module.
5617         * tests/test-utime-h-c++.cc: New file.
5618         (utime): Declare, missing since 2017-04-30.
5619         * modules/utime-h-c++-tests: New file.
5621 2017-05-05  Bruno Haible  <bruno@clisp.org>
5623         unistd-c++-tests: Update.
5624         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
5625         (read): Declare, missing since 2011-04-15.
5626         (sethostname): Declare, missing since 2011-12-03.
5628 2017-05-05  Bruno Haible  <bruno@clisp.org>
5630         time-c++-tests: Update.
5631         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
5632         (localtime, gmtime): Declare, missing since 2017-04-30.
5633         (ctime): Declare, missing since 2017-04-30.
5634         (strftime): Declare, missing since 2017-04-30.
5635         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
5636         2015-07-24.
5638 2017-05-05  Bruno Haible  <bruno@clisp.org>
5640         sys_resource-c++-tests: New module.
5641         * tests/test-sys_resource-c++.cc: New file.
5642         (getrusage): Declare, missing since 2012-04-13.
5643         * modules/sys_resource-c++-tests: New file.
5645 2017-05-05  Bruno Haible  <bruno@clisp.org>
5647         strings-c++-tests: New module.
5648         * tests/test-strings-c++.cc: New file.
5649         (ffs): Declare, missing since 2011-07-12.
5650         * modules/strings-c++-tests: New file.
5652 2017-05-05  Bruno Haible  <bruno@clisp.org>
5654         string-c++-tests: Update.
5655         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
5656         (ffsll): Declare, missing since 2011-07-15.
5658 2017-05-05  Bruno Haible  <bruno@clisp.org>
5660         stdlib-c++-tests: Update.
5661         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
5662         2011-10-18.
5663         (ptsname_r): Declare, missing since 2011-11-07.
5664         (qsort_r): Declare, missing since 2014-08-29.
5665         (random, srandom, initstate, setstate): Declare, missing since
5666         2012-01-14.
5667         (secure_getenv): Declare, missing since 2013-02-05.
5669 2017-05-05  Bruno Haible  <bruno@clisp.org>
5671         stdio-c++-tests: Update.
5672         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
5674 2017-05-05  Bruno Haible  <bruno@clisp.org>
5676         signal-h-c++-tests: Update.
5677         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
5679 2017-05-05  Bruno Haible  <bruno@clisp.org>
5681         math-c++-tests: Update.
5682         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
5683         (fma): Declare, missing since 2011-10-17.
5684         (fmal): Declare, missing since 2011-10-17.
5686 2017-05-05  Bruno Haible  <bruno@clisp.org>
5688         locale-c++-tests: Update.
5689         * tests/test-locale-c++.cc (localeconv): Declare, missing since
5690         2012-03-25.
5692 2017-05-05  Bruno Haible  <bruno@clisp.org>
5694         inttypes-c++-tests: New module.
5695         * tests/test-inttypes-c++.cc: New file.
5696         (strtoimax): Declare, missing since 2012-01-05.
5697         (strtoumax): Declare, missing since 2012-01-05.
5698         * modules/inttypes-c++-tests: New file.
5700 2017-05-05  Bruno Haible  <bruno@clisp.org>
5702         dirent-c++-tests: Update.
5703         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
5704         (rewinddir): Declare, missing since 2011-09-13.
5705         (dirfd): Declare, missing since 2010-03-08.
5707 2017-05-04  Bruno Haible  <bruno@clisp.org>
5709         argp: Fix mistake in 2017-04-23 commit.
5710         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
5711         assume that strerror_r returns 'int', not 'char *'.
5713 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
5715         argp: Fix typo.
5716         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
5718 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
5720         utimens: port to Emacs + MS-Windows
5721         Skip the new MS-Windows-specific code if Emacs.
5722         * lib/utimens.c [EMACS_CONFIGUATION]:
5723         Avoid new MS-Windows-specific code.
5724         (USE_SETFILETIME): New macro.
5725         (fdutimens): Use it.
5727 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
5729         tzset: update doc for TZ problems on MS-Windows
5730         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
5731         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
5732         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
5733         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
5734         * doc/posix-functions/wcsftime.texi:
5735         Mention some issues with TZ under MS-Windows.
5737 2017-05-01  Bruno Haible  <bruno@clisp.org>
5739         copy-file: Fix build error on mingw.
5740         * modules/copy-file (Depends-on): Add 'close'.
5742 2017-05-01  Bruno Haible  <bruno@clisp.org>
5744         tzset: Work around TZ problem on native Windows.
5745         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
5746         Windows, set REPLACE_TZSET to 1.
5747         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
5748         invoke '_tzset' instead of 'tzset'.
5749         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
5751         * modules/time_rz (Depends-on): Add tzset.
5752         * lib/time_rz.c (tzset): Remove fallback definition.
5753         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
5755 2017-05-01  Bruno Haible  <bruno@clisp.org>
5757         mktime: Fix dependencies.
5758         * modules/mktime (Depends-on): Add 'time'.
5760 2017-05-01  Bruno Haible  <bruno@clisp.org>
5762         New module 'localtime-buffer', split off from module 'gettimeofday'.
5763         * lib/localtime-buffer.h: New file.
5764         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
5765         * lib/time.in.h (tzset): New declaration.
5766         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
5767         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
5768         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
5769         moved to lib/localtime-buffer.c or lib/tzset.c.
5770         * m4/localtime-buffer.m4: New file.
5771         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
5772         HAVE_TZSET, REPLACE_TZSET.
5773         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
5774         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
5775         gl_LOCALTIME_BUFFER_NEEDED.
5776         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
5777         since 2007-01-18.
5778         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
5779         tzset.
5780         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
5781         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
5782         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
5783         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
5784         * modules/localtime-buffer: New file.
5785         * modules/time (Depends-on): Remove 'gettimeofday'.
5786         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
5787         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
5788         * modules/tzset (Description): Enable hyperlink to POSIX spec.
5789         (Files): Add lib/tzset.c.
5790         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
5791         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
5792         gl_TIME_MODULE_INDICATOR.
5793         * modules/gettimeofday (Depends-on): Add localtime-buffer.
5795 2017-05-01  Bruno Haible  <bruno@clisp.org>
5797         copy-file: Preserve sub-second time stamps.
5798         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
5799         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
5800         transport the time stamps from the original file to the destination
5801         file.
5802         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
5803         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
5804         utime-h.
5806 2017-05-01  Bruno Haible  <bruno@clisp.org>
5808         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
5809         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
5810         also on MSVC.
5811         Reported by Eli Zaretskii <eliz@gnu.org>.
5813 2017-05-01  Bruno Haible  <bruno@clisp.org>
5815         wchar: Fix compilation error with the original mingw.org mingw.
5816         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
5817         <stddef.h> instead.
5818         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
5819         gl_WCTYPE_H.
5820         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
5821         gl_TYPE_WINT_T_PREREQ instead.
5822         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
5823         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
5824         Reported by Eli Zaretskii <eliz@gnu.org>.
5826 2017-04-30  Bruno Haible  <bruno@clisp.org>
5828         utimecmp: Add support for native Windows.
5829         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
5831 2017-04-30  Bruno Haible  <bruno@clisp.org>
5833         utimens: Add support for native Windows.
5834         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
5835         (fdutimens): Provide a native Windows implementation, like utime.c with
5836         added tv_nsec support.
5837         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
5838         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
5840 2017-04-30  Bruno Haible  <bruno@clisp.org>
5842         wcsftime: New module.
5843         * lib/wchar.in.h (wcsftime): New declaration.
5844         * lib/wcsftime.c: New file.
5845         * m4/wcsftime.m4: New file.
5846         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
5847         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
5848         HAVE_WCSFTIME, REPLACE_WCSFTIME.
5849         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
5850         HAVE_WCSFTIME, REPLACE_WCSFTIME.
5851         * modules/wcsftime: New file.
5852         * doc/posix-functions/wcsftime.texi: Mention the new module.
5854 2017-04-30  Bruno Haible  <bruno@clisp.org>
5856         strftime-fixes: New module.
5857         * lib/time.in.h (strftime): New declaration.
5858         * lib/strftime-fixes.c: New file.
5859         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
5860         (gl_FUNC_STRFTIME): Remove macro.
5861         * m4/strftime-fixes.m4: New file.
5862         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
5863         REPLACE_STRFTIME.
5864         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
5865         REPLACE_STRFTIME.
5866         * modules/strftime-fixes: New file.
5867         * doc/posix-functions/strftime.texi: Mention the new module.
5869 2017-04-30  Bruno Haible  <bruno@clisp.org>
5871         mktime: Work around TZ problem on native Windows.
5872         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
5873         from the native Windows workaround.
5874         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
5875         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
5876         'guessing no'.
5877         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
5878         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
5879         NEED_MKTIME_WINDOWS.
5880         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
5881         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
5882         NEED_MKTIME_INTERNAL.
5883         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
5884         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
5885         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
5886         not REPLACE_MKTIME.
5887         * doc/posix-functions/mktime.texi: Mention the native Windows
5888         workaround.
5890 2017-04-30  Bruno Haible  <bruno@clisp.org>
5892         localtime: New module.
5893         * lib/time.in.h (localtime): Declare also if requested by module
5894         'localtime'.
5895         * lib/localtime.c: New file.
5896         * m4/localtime.m4: New file.
5897         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
5898         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
5899         * modules/localtime: New file.
5900         * doc/posix-functions/localtime.texi: Mention the new module.
5902 2017-04-30  Bruno Haible  <bruno@clisp.org>
5904         ctime: New module.
5905         * lib/time.in.h (ctime): New declaration.
5906         * lib/ctime.c: New file.
5907         * m4/ctime.m4: New file.
5908         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
5909         REPLACE_CTIME.
5910         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
5911         * modules/ctime: New file.
5912         * doc/posix-functions/ctime.texi: Mention the new module.
5914 2017-04-30  Bruno Haible  <bruno@clisp.org>
5916         gettimeofday: Provide higher resolution on native Windows.
5917         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
5918         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
5919         (initialize): Initialize it.
5920         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
5921         'struct timeval'. Don't use _ftime().
5922         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
5923         <sys/timeb.h> and _ftime.
5925 2017-04-30  Bruno Haible  <bruno@clisp.org>
5927         Document the problem with the Cygwin environment variable TZ.
5928         * doc/posix-functions/tzset.texi: Add note about TZ.
5929         * doc/posix-functions/ctime.texi: Likewise.
5930         * doc/posix-functions/localtime.texi: Likewise.
5931         * doc/posix-functions/mktime.texi: Likewise.
5932         * doc/posix-functions/strftime.texi: Likewise.
5933         * doc/posix-functions/wcsftime.texi: Likewise.
5934         * doc/pastposix-functions/ftime.texi: Likewise.
5936 2017-04-30  Bruno Haible  <bruno@clisp.org>
5938         utime-tests: New module.
5939         * tests/test-utime.c: New file, based on tests/test-utimens.h.
5940         * tests/test-utimens-common.h: Include <sys/stat.h>.
5941         * modules/utime-tests: New file.
5943 2017-04-29  Bruno Haible  <bruno@clisp.org>
5945         utime: New module.
5946         * lib/utime.in.h: Add comment for snippets.
5947         (utime): New declaration.
5948         * lib/utime.c: New file.
5949         * m4/utime.m4: New file.
5950         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
5951         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
5952         REPLACE_UTIME.
5953         * modules/utime-h (Depends-on): Add snippets.
5954         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
5955         Insert snippets.
5956         * modules/utime: New file.
5957         * doc/posix-functions/utime.texi: Mention the new module.
5959 2017-04-29  Bruno Haible  <bruno@clisp.org>
5961         utime-h: Modernize handling of 'struct utimbuf'.
5962         * lib/utime.in.h: Include next <utime.h> if it exists.
5963         (utimbuf): Define to _utimbuf on native Windows.
5964         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
5965         Set UTIME_H on native Windows.
5966         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
5967         * modules/utime-h (Depends-on): Add include_next.
5968         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
5969         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
5971         * lib/utimens.c (utimbuf): Remove fallback definition.
5972         * m4/utimens.m4 (gl_UTIMENS): Don't require
5973         gl_CHECK_TYPE_STRUCT_UTIMBUF.
5974         * m4/utimbuf.m4: Remove file.
5975         * modules/utimens (Files): Remove m4/utimbuf.m4.
5977 2017-04-29  Bruno Haible  <bruno@clisp.org>
5979         Make use of module 'utime-h'.
5980         * modules/copy-file (Depends-on): Add utime-h.
5981         * lib/copy-file.c: Assume that <utime.h> exists.
5982         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
5984         * modules/utimens (Depends-on): Add utime-h.
5985         * lib/utimens.c: Assume that <utime.h> exists.
5987 2017-04-29  Bruno Haible  <bruno@clisp.org>
5989         utime-h: New module.
5990         * m4/utime_h.m4: New file.
5991         * lib/utime.in.h: New file.
5992         * modules/utime-h: New file.
5993         * doc/posix-headers/utime.texi: Mention the new module.
5995         * tests/test-utime-h.c: New file.
5996         * modules/utime-h-tests: New file.
5998 2017-04-30  Bruno Haible  <bruno@clisp.org>
6000         Fix a few typos.
6001         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
6002         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
6003         * doc/posix-functions/fstat.texi: Fix a plural typo.
6004         * doc/posix-functions/stat.texi: Likewise.
6005         * m4/include_next.m4: Update comments.
6007 2017-04-29  Bruno Haible  <bruno@clisp.org>
6009         error: Fix mistake in 2017-04-23 commit.
6010         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
6011         assume that strerror_r returns 'int', not 'char *'.
6013 2017-04-29  Bruno Haible  <bruno@clisp.org>
6015         stat: Fix time_t values and other problems on native Windows platforms.
6016         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
6017         implementations of stat().
6018         * lib/stat.c: Include filename.h instead of dosname.h. Include
6019         malloca.h, stat-w32.h.
6020         (is_unc_root): New function.
6021         (rpl_stat): New implementation for native Windows. Remove
6022         REPLACE_FUNC_STAT_DIR code.
6023         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
6024         Don't define REPLACE_FUNC_STAT_DIR.
6025         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
6026         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
6027         (Depends-on): Remove dosname. Add filename, malloca.
6028         (configure.ac): Also compile lib/stat-w32.c.
6030 2017-04-29  Bruno Haible  <bruno@clisp.org>
6032         fstat: Fix time_t values on native Windows platforms.
6033         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
6034         * lib/stat-w32.h: New file.
6035         * lib/stat-w32.c: New file.
6036         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
6037         stat-w32.h instead.
6038         (fstat_nothrow): Remove function.
6039         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
6040         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
6041         always.
6042         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
6043         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
6044         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
6045         (configure.ac): Also compile lib/stat-w32.c.
6047 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
6049         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
6050         Problem reported by Assaf Gordon and Gavin Smith in:
6051         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
6052         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
6053         #define this, too.
6055 2017-04-29  Bruno Haible  <bruno@clisp.org>
6057         strerror_r-posix: Fixes for MSVC 14.
6058         * lib/strerror_r.c: Include <stdarg.h>.
6059         (strerror_r): Provide error messages for errno values 100...140.
6060         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
6062 2017-04-28  Bruno Haible  <bruno@clisp.org>
6064         noreturn: New module.
6065         * lib/noreturn.h: New file.
6066         * modules/noreturn: New file.
6067         * tests/test-noreturn.c: New file.
6068         * modules/noreturn-tests: New file.
6069         * tests/test-noreturn-c++.cc: New file.
6070         * modules/noreturn-c++-tests: New file.
6072 2017-04-27  Bruno Haible  <bruno@clisp.org>
6074         wctype-h: Fix compilation error with the original mingw.org mingw.
6075         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
6076         HAVE_CRTDEFS_H.
6077         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
6078         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
6079         <stddef.h> instead.
6080         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
6082 2017-04-26  Pádraig Brady  <P@draigBrady.com>
6084         nap.h: Fix compilation on non windows platforms
6085         * tests/nap.h: Move misplaced endif.
6087 2017-04-26  Pádraig Brady  <P@draigBrady.com>
6088         and Paul Eggert  <eggert@cs.ucla.edu>
6090         time_rz: fix heap buffer overflow vulnerability
6091         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
6092         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
6093         whether there is enough buffer space available, thus avoiding
6094         the problematic promotion of signed to unsigned causing an invalid
6095         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
6096         the start of the buffer.
6097         * tests/test-parse-datetime.c (main): Add a test case written by
6098         Paul Eggert, which overwrites enough of the heap so that
6099         standard glibc will fail with "free(): invalid pointer"
6100         without the patch applied.
6102 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
6104         xalloc: add missing integer overflow check
6105         * lib/xalloc.h (x2nrealloc): Also check for multiplication
6106         overflow when P is null.
6108 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
6110         parse-datetime: make it standalone
6111         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
6112         (_GL_ATTRIBUTE_FORMAT): New macro.
6113         These are needed to get './gnulib-tool --test parse-datetime' to work.
6115 2017-04-23  Bruno Haible  <bruno@clisp.org>
6117         nap.h: Port to native Windows.
6118         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
6119         use nap_fd instead. On native Windows, close and reopen nap_fd.
6120         (nap_works): Don't compare the ctimes, because on native Windows, these
6121         are the creation times.
6122         (nap): Update.
6124 2017-04-23  Bruno Haible  <bruno@clisp.org>
6126         nap.h: Fix logic.
6127         * tests/nap.h (nap): Avoid signed integer overflow in loop.
6129 2017-04-23  Bruno Haible  <bruno@clisp.org>
6131         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
6132         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
6133         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
6134         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
6135         * lib/argp-help.c (__argp_failure): Likewise.
6137 2017-04-23  Bruno Haible  <bruno@clisp.org>
6139         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
6140         * m4/strerror_r.m4: Revert changes since 2016-10-16.
6141         * lib/strerror_r.c: Likewise.
6143 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
6145         Target a C99 subset, not a C89 subset
6146         For many years Gnulib has targeted C89 and has resisted using C99
6147         features, as some Gnulib-using programs still wanted to target
6148         C89.  As this no longer seems to be the case, relax the porting
6149         requirements to allow some C99 features.  This is merely a change
6150         to the documentation, to give other Gnulib developers a chance to
6151         weigh in on the topic.
6152         * doc/extern-inline.texi (extern inline):
6153         * doc/gnulib-readme.texi (Portability guidelines):
6154         * doc/gnulib-tool.texi (Initial import):
6155         * doc/gnulib.texi (Header files):
6156         Modernize to talk about C99 and C11 instead of C89 and C99.
6157         * doc/gnulib-readme.texi (Portability guidelines):
6158         Now a section, not merely a subsection, so that it
6159         can be split up.  Modernize a bit.
6160         (C language versions, C99 features assumed)
6161         (C99 features avoided):
6162         New sections.
6164 2017-04-23  Bruno Haible  <bruno@clisp.org>
6166         doc: New section "Modules that modify the way other modules work".
6167         * doc/gnulib.texi (Modules that modify the way other modules work): New
6168         section.
6170 2017-04-23  Bruno Haible  <bruno@clisp.org>
6172         stat-time: Update comments.
6173         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
6174         * tests/test-utimens-common.h: Add reference regarding st_ctime on
6175         Windows.
6177 2017-04-01  Bruno Haible  <bruno@clisp.org>
6179         glob: Fix more memory leaks.
6180         * lib/glob.c (glob): Free allocated memory before returning.
6181         Reported by Coverity via Tim Rühsen.
6183 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6185         poll: improve fast check for out-of-range NFD
6186         * lib/poll.c: Do not include intprops.h.
6187         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
6188         * modules/poll (Depends-on): Remove intprops.
6190         ftoastr: cite a newer paper
6191         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
6192         instead of Loitsch 2010.
6194 2017-04-22  Bruno Haible  <bruno@clisp.org>
6196         poll: Enable argument check also in the Windows implementation.
6197         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
6198         Reported by Paul Eggert.
6200 2017-04-22  Bruno Haible  <bruno@clisp.org>
6202         getlogin_r: Work around bug in Mac OS X 10.12.
6203         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
6204         bug.
6205         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
6206         given size minus 1, call getlogin_r a second time, on a larger buffer.
6207         * modules/getlogin_r (Depends-on): Add malloca.
6208         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
6210 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6212         parse-datetime: fix %z and prefer signed int
6213         %z problem reported by Pádraig Brady in:
6214         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
6215         While fixing it, I decided to prefer signed ints to size_t, as
6216         they are less error-prone (e.g., ubsan catches overflow).
6217         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
6218         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
6219         counts, since signed integers make for better debugging.
6220         (date): Don’t assume %z works in printf formats.
6221         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
6222         sizes of buffers known to be small, e.g., because we’re using snprintf.
6223         (parse_datetime2): Simplify call to debug_mktime_not_ok.
6225 2017-04-22  Bruno Haible  <bruno@clisp.org>
6227         *printf: Work around rounding bug on Mac OS X.
6228         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
6229         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
6230         Mac OS X and FreeBSD.
6231         * doc/glibc-functions/*printf.texi: Likewise.
6233 2017-04-22  Bruno Haible  <bruno@clisp.org>
6235         vasnprintf tests: Avoid warnings.
6236         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
6237         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
6238         test.
6240 2017-04-22  Bruno Haible  <bruno@clisp.org>
6242         sys_file tests: Avoid warning.
6243         * tests/test-sys_file.c (main): Add a default clause to the switch
6244         statement.
6246 2017-04-22  Bruno Haible  <bruno@clisp.org>
6248         sethostname: Update doc.
6249         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
6250         Mac OS X.
6252 2017-04-22  Bruno Haible  <bruno@clisp.org>
6254         quotearg tests: Avoid warnings.
6255         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
6256         false.
6258 2017-04-22  Bruno Haible  <bruno@clisp.org>
6260         poll: Enable argument check.
6261         * lib/poll.c: Include intprops.h.
6262         (poll): Check value of nfd correctly.
6263         * modules/poll (Depends-on): Add intprops.
6265 2017-04-22  Bruno Haible  <bruno@clisp.org>
6267         get-rusage-data: Avoid warnings on Mac OS X.
6268         * lib/get-rusage-data.c: On Mac OS X, don't define
6269         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
6270         (get_rusage_data) [Mac OS X]: Just return 0.
6272 2017-04-22  Bruno Haible  <bruno@clisp.org>
6274         xbinary-io: Fix build error.
6275         * modules/xbinary-io (Depends-on): Add gettext-h.
6276         * lib/xbinary-io.c: Include gettext.h and define _().
6277         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
6278         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
6280 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
6282         parse-datetime: overflow and debug cleanups
6283         This long patch was triggered by this bug report from Ruediger Meier:
6284         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
6285         I fixed the bug he noted, then found some others nearby, and then
6286         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
6287         up some of the code to follow GNU standards while I was at it.
6288         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
6289         use c_isdigit.
6290         (EPOCH_YEAR): Remove; unused.
6291         (TM_YEAR_BASE): Now an enum rather than a macro.
6292         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
6293         time zone offset, since timezones now are in terms of seconds and
6294         not minutes.
6295         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
6296         appropriate.  Verify that intmax_t is wide enough.
6297         (time_overflow, time_zone_str): New functions, used to deal
6298         more reliably with overflow.
6299         (dbg_printf): Add printf attribute, to help catch integer width errors.
6300         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
6301         (%union, to_hour, yylex, parse_datetime2):
6302         Use intmax_t instead of long int and/or long_time_t.
6303         All uses changed.
6304         (DBGBUFSIZE): Move earlier.
6305         (relative_time, set_hhmmss, parser_control):
6306         Just use int for nanoseconds and for time zones; that’s wide enough.
6307         (parser_control): Use bool for members like year_seen that can
6308         be booleans instead of counters.  All uses changed.
6309         Remove debug_default_input_timezone; no longer needed.
6310         All uses removed.
6311         (apply_relative_time): Return a bool overflow flag.
6312         All uses changed to check for overflow.
6313         (apply_relative_time, zone, date, relunit, relunit_snumber)
6314         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
6315         Check for integer overflow portably.
6316         (str_days): Use just int for N, as it’s wide enough.
6317         Prefer 2D char arrays to arrays of char * when it looks like
6318         2D is a win on typical platforms.
6319         Prefer snprintf to strncpy/strncat, for simplicity;
6320         all buffers are smaller than INT_MAX so this is safe.
6321         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
6322         (debug_print_current_time): Don’t assume tv_nsec is of type long,
6323         as this is not true on x32.  Output "." before any nanoseconds.
6324         (debug_print_current_time, parse_datetime2):
6325         Output local zones using a more-consistent format.
6326         (debug_print_current_time, date, parse_datetime2):
6327         (main) [TEST]:
6328         Don’t assume time_t is the same width as long.
6329         (print_rel_part): New function, replacing ...
6330         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
6331         (debug_print_relative_time): Use bool for boolean.
6332         (local_zone): dsts_seen now counts only tDST instances.
6333         (date): Fix printf of size_t to use %z.  Do not assume numeric
6334         tokens have negative values merely because the context suggests
6335         a syntax with "-" separating tokens.
6336         (time_zone_hhmm): Return bool success indicator, which checks for
6337         overflow.  Store result into PC->time_zone instead.  All callers
6338         changed.
6339         (tm_year_str): New function.  Return a bool success indicator and
6340         store the result into a buffer.  All callers changed.  Output the
6341         numerically correct string even if adding 1900 to the year would
6342         overflow.
6343         (to_tm_year): New function, replacing the old to_year.  All
6344         callers changed.
6345         (tm_diff): Sync with glibc.
6346         (lookup_word): Use to_uchar instead of doing it by hand.
6347         (TZBUFSIZE): Now local to the only function that needs it.
6348         (debug_strfdatetime): Simplify now that time zones are int seconds.
6349         (debug_strfdate): Work even if tm_year + 1900 would overflow.
6350         (get_effective_timezone): Remove.  All uses removed.
6351         (parse_datetime2): Use fprintf in pieces instead of snprintfing
6352         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
6353         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
6354         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
6355         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
6356         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
6357         * modules/parse-datetime (Depends-on): Add inttypes.
6359 2017-04-21  Bruno Haible  <bruno@clisp.org>
6361         gettext-h: Avoid -Wundef warning.
6362         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
6363         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
6364         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
6366 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
6368         error: Avoid "function declaration isn't a prototype" warning.
6369         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
6371 2017-04-21  Bruno Haible  <bruno@clisp.org>
6373         vasnprintf: Fix for MSVC 14.
6374         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
6375         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
6376         of !HAVE_SNPRINTF_RETVAL_C99.
6378 2017-04-21  Bruno Haible  <bruno@clisp.org>
6380         mbrtowc tests: Fix test failures on MSVC 14.
6381         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
6382         behaviour for invalid input.
6384 2017-04-21  Bruno Haible  <bruno@clisp.org>
6386         mbsinit: Fix for MSVC 14.
6387         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
6388         implementation that is in sync with mbrtowc.c. On other platforms, use
6389         an adequate ad-hoc implementation.
6391 2017-04-21  Bruno Haible  <bruno@clisp.org>
6393         Fix test-mbrtowc5.sh failure on native Windows.
6394         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
6395         "C".
6397 2017-04-21  Bruno Haible  <bruno@clisp.org>
6399         Avoid accidental use of native Windows APIs on Cygwin.
6400         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
6401         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
6402         * lib/localename.c (WINDOWS_NATIVE): Likewise.
6404 2017-04-20  Bruno Haible  <bruno@clisp.org>
6406         Remove red warnings from the generated MODULES.html.
6407         * modules/fcntl (Description): Disambiguate function references.
6408         * modules/getcwd-lgpl (Description): Likewise.
6409         * modules/hostent (Description): Likewise.
6410         * modules/servent (Description): Likewise.
6411         * modules/tempname (Description): Likewise.
6413 2017-04-20  Bruno Haible  <bruno@clisp.org>
6415         verify tests: Fix spurious failure with parallel make.
6416         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
6417         EXTRA_PROGRAMS.
6418         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
6419         * tests/test-verify-try.c: New file.
6420         * modules/verify-tests (Files): Add it.
6421         (EXTRA_PROGRAMS): Add test-verify-try.
6422         (MOSTLYCLEANFILES): Update accordingly.
6423         Reported by Adam James Stewart <ajstewart@anl.gov>.
6425 2017-04-18  Bruno Haible  <bruno@clisp.org>
6427         vma-iter: Fix compilation error on Solaris 7.
6428         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
6429         like on IRIX, OSF/1.
6430         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6432 2017-04-18  Bruno Haible  <bruno@clisp.org>
6434         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
6435         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
6436         included.
6437         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
6438         <sys/procfs.h>.
6439         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
6440         <sys/procfs.h> cannot be included.
6441         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6443 2017-04-18  Bruno Haible  <bruno@clisp.org>
6445         getopt-gnu: Add comments.
6446         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
6447         * modules/getopt-gnu (configure.ac): Likewise.
6449 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
6451         regex: port better to Solaris 10
6452         Solaris 10 <locale.h> includes <libintl.h>, which #defines
6453         gettext, and this causes a double #define.
6454         Problem reported by Gavin Smith in:
6455         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
6456         * lib/regex_internal.h (gettext): #undef before #defining.
6458 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
6460         intprops: improve comments
6461         * lib/intprops.h: Improve and shorten commentary.
6462         For the record, if we ever run into a pedantic compiler that
6463         behaves differently from GCC when converting an out-of-range value
6464         to a signed integer, we can work around the problem with something
6465         like the following code, where UCT is the signed counterpart of T
6466         (UCT is sometimes narrower than UT) and all callers are changed
6467         accordingly:
6468         #if __SUNPRO_C <= 0x5120
6469         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
6470            ((t) ((ut) (a) op (ut) (b)))
6471         #else
6472         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
6473            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
6474             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
6475                + TYPE_MINIMUM (t)) \
6476             : (t) (uct) ((ut) (a) op (ut) (b)))
6477         #endif
6479 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
6481         intprops: try to avoid tickling similar bugs
6482         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
6483         needs to be the same width as T; it can be wider.
6484         Change callers so that UT is at least as wide as unsigned int,
6485         as I suspect that this is less likely to run into compiler bugs.
6487         intprops: port to Oracle Studio 12.3 x86
6488         Problem reported by Gavin Smith in:
6489         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
6490         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
6491         Convert unsigned to signed via the usual rather than the standard way,
6492         to avoid a compiler bug in Oracle Studio 12.3 x86.
6494 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
6496         getopt: prefer - to _ in new file names
6497         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
6498         * lib/getopt-core.h: Rename from lib/getopt_core.h.
6499         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
6500         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
6501         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
6502         All uses changed.
6504         getopt: port recent getopt changes to macOS
6505         Problem reported by Harald Maier (Bug#26398).
6506         The macOS C compiler uses __nonnull for its own purposes and that
6507         clashes with glibc's __nonnull.
6508         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
6509         * lib/getopt_cdefs.in.h (__nonnull): Remove.
6510         * lib/getopt_core.h (getopt):
6511         * lib/getopt_ext.h (getopt_long, getopt_long_only):
6512         Use _GL_ARG_NONNULL, not __nonnull.
6513         * lib/unistd.in.h: Move snippet hooks to before where the getopt
6514         .h files are included, so that _GL_ARG_NONNULL is defined in time.
6515         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
6516         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
6518 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
6520         getopt-gnu: omit some duplicate code
6521         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
6522         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
6523         gnulib-tool already does this.
6524         * modules/getopt-gnu (configure.ac): Omit code duplicated from
6525         getopt-posix, which we depend on.
6527         getopt-posix: use angle-bracket include
6528         * lib/getopt1.c: Include <config.h>, not "config.h".
6530 2017-04-06  Zack Weinberg  <zackw@panix.com>
6532         getopt: annotate files with relationship to glibc
6534         As the final act in this patchset, adjust the message at the top of
6535         each file to indicate which files are synced with glibc.  (This has
6536         already been done for most of the headers.)
6538         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
6539         Mention in top-of-file boilerplate that these files are shared
6540         between glibc and gnulib.
6543         getopt: split up getopt.in.h and eliminate __need_getopt
6545         Over in glibc, all of the __need macros are being phased out in favor
6546         of small headers that declare only the necessary components, as this
6547         is much simpler and less prone to bugs.  As getopt is shared with
6548         glibc, gnulib needs to do the same for __need_getopt.
6550         __need_getopt is misnamed; what it really means is "we want only the
6551         getopt features specified in POSIX, not the GNU extensions".  glibc
6552         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
6553         these files can be shared verbatim with gnulib.  The portability
6554         wrapper, on the other hand, they have renounced altogether; glibc's
6555         getopt.h will no longer be shared with gnulib at all.  In exchange,
6556         certain glibc-specific quirks (having to do with __posix_getopt) no
6557         longer need appear in gnulib's headers at all.
6559         This patch merges getopt_core.h and getopt_ext.h from glibc, and
6560         splits up the current gnulib-side portability wrapper into three
6561         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
6562         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
6563         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
6564         unistd.in.h just use them.  All new files are clearly marked with
6565         whether they are shared with glibc.
6567         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
6568         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
6569         with glibc, and ...
6570         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
6571         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
6572         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
6573         instead of defining __need_getopt and including the full getopt.h.
6575         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
6576         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
6577         * modules/getopt-posix (Files): Add new headers and sort list.
6578         (Depends-on): No longer need snippet/arg-nonnull.
6579         (Makefile.am): Generate getopt_cdefs.h.
6582         getopt: better handling of ambiguous options
6584         glibc's getopt uses alloca to construct a linked list of possibilities
6585         for an "ambiguous" long option.  In gnulib, malloc should be used
6586         instead.  Providing for both cases complicates things a fair bit.
6588         This patch rewrites ambiguous-option handling to use a boolean vector
6589         instead of a linked list.  There is then only one allocation that
6590         might need freeing; in glibc it can honor __libc_use_alloca as usual,
6591         and in gnulib we define __libc_use_alloca to always be false, so we
6592         don't need ifdefs in the middle of the function.  This should also be
6593         slightly more efficient in the normal case of long options being fully
6594         spelled out -- I think most people aren't even aware they _can_
6595         sometimes abbreviate long options.
6597         One interesting consequence is that the list of possibilities is now
6598         printed in exactly the order they appear in the list of long options,
6599         instead of the first possibility being shuffled to the end.
6601         (The patch looks bigger than it really is because there's a fair bit
6602         of reindentation and code rearrangement.)
6604         * lib/getopt.c: When used standalone, define __libc_use_alloca
6605         as always false and alloca to abort if called.
6606         (process_long_option): Rewrite handling of ambiguous long options
6607         to use a single boolean vector, not a linked list; use
6608         __libc_use_alloca to decide whether to allocate this using alloca.
6611         getopt: refactor long-option handling
6613         There were two copies of the bulk of the code to handle long options.
6614         Now there is only one.
6616         This change temporarily removes the logic to avoid using alloca when
6617         standalone; the next patch in the series will restore it.
6619         * lib/getopt.c (process_long_option): New function split out
6620         from _getopt_internal_r.
6621         (_getopt_internal_r): Replace both copies of the long-option
6622         processing code with calls to process_long_option.
6625         getopt: tidy up _getopt_initialize a bit
6627         _getopt_data.__posixly_correct is completely redundant to
6628         _getopt_data.__ordering, and some work that logically belongs in
6629         _getopt_initialize was being done by _getopt_internal_r, making the
6630         code harder to understand.
6632         As a side effect, getenv will no longer be called if the first
6633         character of the options string is '+' or '-', which is probably a
6634         Good Thing.  (Perhaps we should have a flag character that
6635         specifically asks for the permutation behavior?)
6637         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
6638         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
6639         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
6642         getopt: merge from glibc: repetition reduction
6644         The definitions of the entry point functions 'getopt' and
6645         '__posix_getopt' can be made substantially less repetitive with a
6646         helper macro.
6648         While I was merging the const-correctness changes from gnulib into
6649         glibc I noticed there are still some unnecessary casts in
6650         _getopt_internal_r.
6652         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
6653         a macro.  Consistently cast 'argv' to 'char **' when calling
6654         _getopt_internal.
6655         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
6658         getopt: clean up error reporting
6660         getopt can print a whole bunch of error messages, and when used
6661         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
6662         cancellation point and getopt isn't, and also applying fprintf to a
6663         stream in wide-character mode is not allowed.  So every single error
6664         reporting case has an #ifdef _LIBC block in which it calls internal
6665         libc functions instead.  The counterpart patch series in glibc makes
6666         it possible to simplify all of that down to a set of #defines at the
6667         top of the file; core code is written as if it is safe to just call
6668         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
6669         call any *other* stdio functions.)
6671         * lib/getopt.c: When _LIBC is defined, define fprintf to
6672         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
6673         to _IO_funlockfile.  When neither _LIBC nor
6674         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
6675         funlockfile as no-ops.
6676         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
6677         standalone error-printing code can now be used for libc as well.
6678         Add an flockfile/funlockfile pair around one case where the error
6679         message is printed in several chunks.  Don't use fputc.
6682         getopt: fix fencepost error in ambiguous-W-option handling
6684         getopt_long contains an undocumented (AFAICT) feature in which, if you
6685         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
6686         treated as equivalent to '--foo'.  This is implemented with a partial
6687         second copy of the code for handling long options, and that code
6688         increments optind one too many times when recovering from an ambiguous
6689         abbreviated option, which can cause the main loop to walk past the end
6690         of argv and crash.
6692         I discovered this while writing a test case that tries to exercise all
6693         of getopt's error reporting paths; I wouldn't be surprised to learn
6694         that this feature is never used by real applications.
6696         * lib/getopt.c (_getopt_internal_r): Don't increment
6697         d->optind a second time when reporting ambiguous -W options.
6700         getopt: clean up getopt.c and getopt1.c file headers
6702         In getopt.c, there is no need to include wchar.h at all, and it is
6703         safe nowadays to assume that stdlib.h does declare getenv (several
6704         other gnulib modules make this assumption).
6706         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
6707         by using "" inclusions consistently, and there is no actual need to
6708         include stdlib.h (except in the #ifdef TEST block, where it should be
6709         unconditional), nor to provide a backup definition of NULL at all.
6711         * lib/getopt1.c: Simplify #ifdeffage at top of file.
6712         Move inclusion of stdlib.h to #ifdef TEST block and make
6713         unconditional.  Do not define NULL.
6714         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
6715         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
6716         * modules/getopt-gnu, modules/getopt-posix: Don't call
6717         gl_PREREQ_GETENV.
6720         getopt: harmonize comments with glibc
6722         The comments explaining how the behavior of 'getopt' varies depending
6723         on whether it's the standalone version and whether there are special
6724         characters at the beginning of the options string were inconsistent
6725         between gnulib and glibc, and also out of sync with the code.
6727         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
6730         getopt: remove USE_NONOPTION_FLAGS
6732         getopt includes code to parse an environment variable named
6733         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
6734         in decimal); but all of it has been #ifdefed out since 2001, with no
6735         official way to turn it back on.
6737         According to commentary in glibc's config.h.in, bash version 2.0
6738         set this environment variable to indicate argv elements that were
6739         the result of glob expansion and therefore should not be treated
6740         as options, but the feature was "disabled later" because "it
6741         caused problems".  According to bash's CHANGES file, "later" was
6742         release 2.01; it gives no more detail about what the problems
6743         were.
6745         Version 2.0 of bash was released on the last day of 1996, and version
6746         2.01 in June of 1997.  Twenty years later, I think it is safe to
6747         assume that this environment variable isn't coming back.
6749         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
6750         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
6751         __libc_argc and __libc_argv externs, which were only used by
6752         #ifdef USE_NONOPTION_FLAGS blocks.
6755         getopt: tabify, in preparation for merge with glibc
6757         glibc sticks to the GNU default of indenting with a mix of
6758         8-column tabs and spaces; make the gnulib copy match.
6760         getopt.h is not included because it is *not* going to be merged in its
6761         present form.
6763         * getopt.c, getopt1.c, getopt_int.h: Tabify.
6765 2017-04-02  Bruno Haible  <bruno@clisp.org>
6767         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
6768         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
6769         like it was done in modules/relocatable-lib on 2011-05-21 and in
6770         modules/relocatable-prog on 2011-08-15.
6771         Reported by Reuben Thomas <rrt@sc3d.org>.
6773 2017-03-31  Bruno Haible  <bruno@clisp.org>
6775         glob: Fix invalid free() call.
6776         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
6777         static storage to home_dir.
6778         Reported by Coverity via Tim Rühsen.
6780 2017-03-31  Bruno Haible  <bruno@clisp.org>
6782         glob: Fix memory leaks.
6783         * lib/glob.c (glob): Free allocated memory before returning.
6784         Reported by Coverity via Tim Rühsen.
6786 2017-03-31  Bruno Haible  <bruno@clisp.org>
6788         md5, sha1, sha256, sha512: Add comments regarding correctness.
6789         * lib/md5.h (buflen): Add comments regarding range.
6790         * lib/sha1.h (buflen): Likewise.
6791         * lib/sha256.h (buflen): Likewise.
6792         * lib/sha512.h (buflen): Likewise.
6793         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
6794         * lib/sha1.c (sha1_process_bytes): Likewise.
6795         * lib/sha256.c (sha256_process_bytes): Likewise.
6796         * lib/sha512.c (sha512_process_bytes): Likewise.
6797         Reported by Coverity via Tim Rühsen.
6799 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
6801         getopt: merge from glibc
6802         This does not change anything substantial; it merely simplifies
6803         hypothetical merges back to glibc.
6804         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
6805         Change copyright notice to match what is in glibc.
6806         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
6807         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
6808         __open_memstream rather than open_memstream and __glibc_likely
6809         instead of __builtin_expect.
6810         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
6812 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
6814         dfa: make [0-9] faster in non-C locales
6815         Problem reported by John P. Linderman (Bug#26193).
6816         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
6817         If both ends of the range are ASCII digits, do not worry about
6818         multi-character collating sequences and the like.  Be consistent
6819         about using isalpha as a precondition for setbit_case_fold_c.
6821 2017-03-19  Bruno Haible  <bruno@clisp.org>
6823         lock: Fix compilation error with HP-UX IA64 cc.
6824         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
6825         weak on non-glibc platforms.
6827 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
6829         stdalign: tweak version# and test for HP-UX IA64
6830         Problems reported by Bruno Haible in:
6831         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
6832         * lib/stdalign.in.h (_Alignas):
6833         * m4/stdalign.m4 (gl_STDALIGN_H):
6834         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
6835         used octal (as that is how they document it), but it is decimal in
6836         practice now and the ancient implementations no longer matter.
6837         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
6839 2017-03-19  Bruno Haible  <bruno@clisp.org>
6841         vma-iter: Add support for Solaris.
6842         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
6843         approach.
6844         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
6845         * lib/get-rusage-as.c: Update comment about Solaris.
6846         * lib/get-rusage-data.c: Likewise.
6848 2017-03-19  Bruno Haible  <bruno@clisp.org>
6850         vma-iter: Prefer HP-UX specific API on HP-UX.
6851         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
6852         * lib/vma-iter.h: Update.
6853         Just in case HP-UX ever implements mquery().
6855 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
6857         stdalign: restore previous behavior for HP-UX IA64
6858         See Bruno Haible's email in:
6859         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
6860         which cites p 150 of a manual saying that 'aligned' works on Itanium.
6861         * lib/stdalign.in.h (_Alignas):
6862         Assume the '061200' applies to Itanium, not to PA-RISC.
6863         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
6865 2017-03-17  Bruno Haible  <bruno@clisp.org>
6867         stat-time, timespec: Support use of the header files in C++ mode.
6868         * lib/stat-time.h: Add "C" linkage declaration.
6869         * lib/timespec.h: Likewise.
6871 2017-03-17  Bruno Haible  <bruno@clisp.org>
6873         stdalign: Make it work with HP-UX cc.
6874         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
6875         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
6876         for HP-UX cc.
6878 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
6880         flexmember: try to detect HP-UX 11.31 cc bug
6881         Problem reported by Bruno Haible in:
6882         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
6883         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
6884         Attempt to detect bug in HP-UX 11.31 cc.
6886 2017-03-16  Bruno Haible  <bruno@clisp.org>
6888         stdint: Fix test compilation failure with HP-UX 11 cc.
6889         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
6890         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
6891         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
6892         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
6894 2017-03-14  Bruno Haible  <bruno@clisp.org>
6896         gnulib-tool: Don't produce a tests directory with only snippet .h files.
6897         * gnulib-tool (func_modules_transitive_closure_separately): If
6898         testsrelated_modules ends up with no "real" modules, aside from
6899         modules with applicability 'all', set it to empty.
6901 2017-03-14  Bruno Haible  <bruno@clisp.org>
6903         vma-iter: Add support for HP-UX.
6904         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
6905         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
6906         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
6907         * lib/get-rusage-as.c: Update comment about HP-UX.
6908         * lib/get-rusage-data.c: Likewise.
6909         (get_rusage_data): Use get_rusage_data_via_setrlimit.
6911 2017-03-14  Bruno Haible  <bruno@clisp.org>
6913         limits-h: Make it work with HP-UX cc.
6914         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
6915         defined.
6917 2017-03-14  Bruno Haible  <bruno@clisp.org>
6919         Fix test failures on DragonFlyBSD.
6920         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
6921         * tests/test-select.h (test_bad_fd): Likewise.
6922         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
6924 2017-03-14  Bruno Haible  <bruno@clisp.org>
6926         freadahead: Silence warning on DragonFlyBSD.
6927         * lib/freadahead.c (__sreadahead): Declare ourselves.
6929 2017-03-14  Bruno Haible  <bruno@clisp.org>
6931         vma-iter: Add comment about AIX.
6932         * lib/vma-iter.c: Add comment about why this module is not implemented
6933         on AIX.
6935 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
6937         snippets: move unadjusted snippet sources to lib
6938         Problem reported by Michal Privoznik in:
6939         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
6940         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
6941         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
6942         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
6943         * lib/unused-parameter.h: Rename from
6944         build-aux/snippet/unused-parameter.h.
6945         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
6946         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
6947         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
6948         * modules/snippet/c++defs (Files:, CXXDEFS_H):
6949         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
6950         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
6951         Adjust to file renamings.
6953 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
6955         gnulib-tool: don't automatically distribute files from top/
6956         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
6957         not distribute top/README-release by default, don't distribute files
6958         from top/ unconditionally.
6959         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
6960         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
6962 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
6964         gnulib-tool: fix typo in comment output
6965         * gnulib-tool (func_import): Fix typo with previous change.
6967         snippets: work around GNU Make 3.82 VPATH
6968         When using 'gnulib-tool --gnu-make' on Emacs, and building
6969         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
6970         an out-of-source (VPATH) build failed because the sans-copyright
6971         snippet file was not built before the file that used it.
6972         Presumably this is some sort of VPATH thing.  Work around the
6973         problem by using the original snippet, i.e., don’t bother to
6974         remove its copyright notice.
6975         * modules/snippet/_Noreturn, modules/snippet/link-warning:
6976         Don’t assume Automake in comments.  Omit long-incorrect comment.
6977         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
6978         (MOSTLYCLEANFILES):
6979         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
6980         (MOSTLYCLEANFILES):
6981         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
6982         (MOSTLYCLEANFILES):
6983         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
6984         (MOSTLYCLEANFILES):
6985         Remove.
6986         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
6987         * modules/snippet/c++defs (CXXDEFS_H):
6988         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
6989         * modules/snippet/warn-on-use (WARN_ON_USE_H):
6990         Don’t bother to remove the copyright notice; just use the
6991         original snippet as-is.
6993 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
6995         gnulib-tool: minor --gnu-make fixups
6996         * gnulib-tool (func_emit_lib_Makefile_am):
6997         Remove useless code that was a blind alley during implementation.
6998         Problem reported by Thien-Thi Nguyen in:
6999         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
7000         (func_import): Note the "--gnu-make" option in the output comment.
7002 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
7004         gnulib-tool: new option --gnu-make
7005         This is for applications like GNU Emacs that use GNU Make
7006         features instead of Automake.
7007         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
7008         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
7009         Do not assume Automake.
7010         * gnulib-tool (func_determine_path_separator)
7011         (func_modules_transitive_closure, func_update_file)
7012         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
7013         (func_import): Add support for --gnu-make.
7015 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
7017         gnulib-common.m4: avoid aclocal.m4 bloat
7018         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
7019         Hide AM_PROG_AR from aclocal, so that aclocal does not
7020         install irrelevant macro definitions into aclocal.m4.
7022 2017-03-10  Bruno Haible  <bruno@clisp.org>
7024         vma-iter: Let callers know about error.
7025         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
7026         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
7028 2017-03-05  Bruno Haible  <bruno@clisp.org>
7030         Fix value of LD for 64-bit compilers on AIX.
7031         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
7032         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
7034 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
7036         dtotimespec: simplify
7037         * lib/dtotimespec.c (dtotimespec): Simplify.
7039 2017-03-04  Bruno Haible  <bruno@clisp.org>
7041         test-calloc-gnu: Reenable test also for GCC 7.
7042         * tests/test-calloc-gnu.c (eight): New function.
7043         (main): Don't skip test; use eight() instead.
7045 2017-03-04  Jim Meyering  <meyering@fb.com>
7047         test-calloc-gnu: port to GCC7
7048         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
7049         that attempts to calloc more than SIZE_MAX bytes, because GCC7
7050         and newer would detect that at compilation time.
7052 2017-03-04  Bruno Haible  <bruno@clisp.org>
7054         tests: Avoid compiler warning about uses of null_ptr.
7055         * tests/null-ptr.h: New file.
7056         * tests/test-canonicalize.c: Include null-ptr.h.
7057         (null_ptr): Remove function.
7058         * tests/test-canonicalize-lgpl.c: Likewise.
7059         * tests/test-memmem.c: Likewise.
7060         * tests/test-ptsname_r.c: Likewise.
7061         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
7062         * modules/canonicalize-lgpl-tests: Likewise.
7063         * modules/memmem-tests: Likewise.
7064         * modules/ptsname_r-tests: Likewise.
7065         Reported by Jim Meyering.
7067 2017-03-03  Bruno Haible  <bruno@clisp.org>
7069         doc: Mention Mac OS X deficiencies regarding semaphores.
7070         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
7071         * doc/posix-functions/sem_destroy.texi: Likewise.
7072         * doc/posix-functions/sem_getvalue.texi: Likewise.
7074 2017-03-03  Bruno Haible  <bruno@clisp.org>
7076         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
7077         Reported by Assaf Gordon <assafgordon@gmail.com> via
7078         Pádraig Brady <P@draigBrady.com>.
7079         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
7080         semaphores.
7081         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
7082         (atomic_int_semaphore): New macro.
7084 2017-02-28  Bruno Haible  <bruno@clisp.org>
7086         perror tests: Tweak for z/OS.
7087         Reported by Daniel Richard G. <skunk@iskunk.org>.
7088         * tests/test-perror.sh: Don't fail z/OS style perror output.
7090 2017-02-26  Bruno Haible  <bruno@clisp.org>
7092         nproc: Refactor large function.
7093         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
7094         from num_processors.
7095         (num_processors): In this function, only deal with OMP.
7097 2017-02-26  Pádraig Brady  <P@draigBrady.com>
7099         nproc: adjust handling of OpenMP environment variables
7100         to match the return value from omp_get_num_threads(), i.e.:
7101          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
7102          - Treat 0 as an invalid value and ignore
7103         Also remove the call to omp_get_num_threads() because
7104         it's ineffective without the omp pragmas in place.
7105         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
7106         so that it can be ignored.
7107         (num_processors): Honor OMP_THREAD_LIMIT even without
7108         OMP_NUM_THREADS being set.  Also fix a typo in the environment
7109         variable being checked, from the previous recent commit.
7111 2017-02-26  Pádraig Brady  <P@draigBrady.com>
7113         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
7114         * lib/nproc.c (parse_omp_threads): A new function refactored
7115         from num_processors() to support parsing both of the
7116         above environment variables.
7117         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
7118         to accurately reflect the current OpenMP nesting level.
7119         Also support the OMP_THREAD_LIMIT environment variable
7120         to limit the max value determined from OMP_NUM_THREADS.
7121         * modules/nproc: Depend on minmax header.
7122         Suggested by Oliver Heimlich.
7124 2017-02-25  Bruno Haible  <bruno@clisp.org>
7126         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
7127         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
7129 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
7131         ftoastr: port to -Wdouble-promotion
7132         Work around -Wdouble-promotion false alarm in recent GCCs.
7133         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
7134         (ftoastr_snprintf, FTOASTR): Use it.
7136 2017-02-21  Bruno Haible  <bruno@clisp.org>
7138         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
7139         Reported by Rene Saavedra <rennes@openmailbox.org> in
7140         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
7141         * lib/glthread/lock.h: On glibc systems without
7142         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
7143         implementation of rwlocks.
7144         * lib/glthread/lock.c: Likewise.
7146 2017-02-20  Bruno Haible  <bruno@clisp.org>
7148         lock tests: Fix build failure on z/OS.
7149         Reported by Daniel Richard G. <skunk@iskunk.org>.
7150         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
7151         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
7152         exist.
7154 2017-02-19  Bruno Haible  <bruno@clisp.org>
7156         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
7157         This helps when CC=clang.
7158         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
7159         of /usr/bin/gcc.
7161         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
7162         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
7164 2017-02-19  Bruno Haible  <bruno@clisp.org>
7166         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
7167         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
7168         --with-tests --single-configure is specified.
7170 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
7172         users.txt: Update links, use HTTPS where possible
7173         * users.txt: Updated to HTTPS where possible,
7174         fixed some links to new locations.
7176 2017-02-16  Bruno Haible  <bruno@clisp.org>
7178         xbinary-io: Fix inlining.
7179         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
7181 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
7183         xbinary-io: rename from xsetmode
7184         This patch is taken from suggestions by Bruno Haible in:
7185         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
7186         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
7187         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
7188         not ENOTTY, when it is an inappropriate device.
7189         * lib/binary-io.h (SET_BINARY): Resurrect.
7190         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
7191         (xset_binary_mode_error): Rename from xsetmode_error.
7192         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
7193         (xset_binary_mode): Rename from xsetmode.
7194         All uses changed.
7195         * modules/xbinary-io: Rename from modules/xsetmode.
7196         Update file names.
7197         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
7198         * NEWS: Update to match revised behavior.
7200 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
7202         tests: Adjust to recent SET_BINARY change
7203         * tests/test-binary-io.c (main):
7204         * tests/test-binary-io.sh: Remove test for SET_BINARY.
7205         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
7206         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
7207         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
7209         xsetmode: new module
7210         This is to fix a problem noted by Eric Blake.
7211         Code was using xfreopen to change files to binary mode, but this
7212         fails for stdout when in append mode.  Such code should use
7213         xsetmode instead.
7214         * NEWS: Document incompatible changes to binary-io module.
7215         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
7216         New function.
7217         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
7218         (set_binary_mode): New function, which also checks for tty.
7219         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
7221 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
7223         headers: fix begin-end typos
7224         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
7225         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
7227         selinux-h: port to PGI 16.10
7228         * lib/se-selinux.in.h: Don't assume that include_next skips over
7229         duplicate -I DIR options.
7231         argp: port to PGI 16.10
7232         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
7234 2017-02-13  Darshit Shah  <darnir@gnu.org>
7236         unicase: Update function protoype to match definition.
7237         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
7238         uses 'size_t' as the datatype for the 'len' parameter in the functions
7239         it generates. Update the prototype specified here to match the newly
7240         generated function.
7242 2017-02-12  Bruno Haible  <bruno@clisp.org>
7244         times test: Avoid gcc warnings on Linux/x32.
7245         * tests/test-times.c (main): Really cast printf arguments from clock_t
7246         to 'long int'.
7248 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
7250         glob: port better to emscripten
7251         Problem reported by Bruno Haible in:
7252         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
7253         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
7255 2017-02-11  Bruno Haible  <bruno@clisp.org>
7257         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
7258         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
7259         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
7260         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
7261         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
7262         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
7263         Distinguish hppa64 from hppa.
7265 2017-02-10  Bruno Haible  <bruno@clisp.org>
7267         search: Don't assume that tsearch() exists if 'VISIT' is defined.
7268         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
7269         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
7270         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
7272 2017-02-09  Bruno Haible  <bruno@clisp.org>
7274         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
7275         * doc/gnulib.texi (Libtool and Windows): Recommend
7276         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
7277         Reported by Reuben Thomas <rrt@sc3d.org>.
7279 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
7281         stddef-tests: port to SIZE_MAX <= INT_MAX
7282         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
7283         Do not assume that INT_MAX < SIZE_MAX.
7285 2017-02-01  Bruno Haible  <bruno@clisp.org>
7287         lock tests: Fix link error.
7288         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
7289         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7291 2017-01-31  Bruno Haible  <bruno@clisp.org>
7293         lock: Fix link error (regression from 2017-01-05).
7294         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
7295         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
7296         pthread_rwlockattr_destroy weak.
7297         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7299 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
7301         Port to PGI 16.10 x86-64
7302         This patch fixes one real bug in gl_anylinked_list2.h, along with
7303         some minor glitches that are not bugs.  It does not silence PGI’s
7304         thousands of bogus warnings when compiling test-intprops.c.
7305         Fortunately, the warnings do not cause a failure.
7306         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
7307         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
7308         My goodness, PGI goes back a long ways - this predates C89!
7309         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
7310         For example, ASYNCSAFE (const void *) should expand to
7311         ‘const void *volatile’, not to ‘volatile const void *’.
7312         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
7313         * lib/verify.h (verify) [!__GNUC__]:
7314         Use shorter albeit meaningless string to bypass silly compiler limits.
7315         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
7316         * tests/nan.h (NaNf, NaNd, NaNl):
7317         Use static functions to avoid misguided compiler diagnostics.
7318         Is there some reason we don’t use static functions on all platforms?
7320 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
7322         parse-datetime: handle timezones reentrantly
7323         This API change was prompted by a report by Pádraig Brady in:
7324         https://bug.debian.org/851934#10
7325         To help fix the bug, make parse_datetime2 more reentrant.
7326         * NEWS: Document this incompatible change.
7327         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
7328         Add two arguments, the timezone and the timezone name.
7329         All callers changed.  If TZ="..." is specified, use it for
7330         calculating defaults.
7331         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
7332         this code should be usable in a library.
7333         (mktime_ok, get_effective_timezone):
7334         Accept timezone arg too.  All callers changed.
7335         (get_tz): Remove.
7336         (get_effective_timezone): Check for failures.
7338 2017-01-20  Eric Blake  <eblake@redhat.com>
7340         localename: port to cygwin 2.6
7341         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
7342         Cygwin.
7343         * modules/localename (Depends-on): Add extensions, since
7344         NL_LOCALE_NAME() is not visible without it.
7346 2017-01-17  Pádraig Brady  <P@draigBrady.com>
7348         parse-datetime: fix dependence on AC_PROG_SED
7349         * modules/parse-datetime: Use `sed` directly like all other modules.
7350         Reported by J William Piggott
7352 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
7354         intprops: update doc URLs
7355         * doc/intprops.texi (Integer Range Overflow): Update URLs.
7357 2017-01-16  Bruno Haible  <bruno@clisp.org>
7359         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
7360         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
7361         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
7362         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
7363         distinguish s390 and s390x.
7364         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
7365         * NEWS: Mention the change regarding 'armel'.
7367 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
7369         localeinfo: case_folded_counterparts and WEOF
7370         * NEWS: Document this.
7371         * lib/localeinfo.c (case_folded_counterparts):
7372         First arg is now wint_t, not wchar_t.  This generalizes the
7373         function to also work on WEOF, where it returns 0.
7375         dfa: port to gcc -fsanitize=undefined
7376         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
7377         as this runs afoul of gcc -fsanitize=undefined.
7379 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
7381         strftime: %z is -00 if unknown
7382         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
7383         the caller's responsibility to set 'negative_number'.  All uses changed.
7384         (__strftime_internal): Put '-' before a zero UTC offset if the time
7385         zone abbreviation starts with "-", which is the recently-introduced
7386         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
7387         * tests/test-strftime.c: Test for this.
7389 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
7391         dfa: port to older GCC
7392         Problem reported by Assaf Gordon in:
7393         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
7394         * modules/c99: New module.  This merely attempts to use the latest
7395         C version, which should be enough to solve this particular problem.
7396         The idea is to document which Gnulib modules assume C99 or later.
7397         * modules/dfa (Depends-on): Add it.
7399 2017-01-10  Bruno Haible  <bruno@clisp.org>
7401         Update DEPENDENCIES.
7402         * DEPENDENCIES: List only https URLs. Update recommended version for
7403         autoconf, automake, gperf.
7405 2017-01-10  Jim Meyering  <meyering@fb.com>
7407         maint.mk: enforce spelling of "timestamp" (i.e., no space)
7408         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
7409         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
7411 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
7413         dfa: minor simplification with emptyset
7414         * lib/dfa.c (build_state): Simplify by using emptyset.
7416 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
7418         dfa: shrink constraints from 4 bits to 3
7419         * lib/dfa.c (newline_constraint, letter_constraint)
7420         (other_constraint, prev_newline_dependent)
7421         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
7422         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
7423         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
7424         Constraints need only 3 bits, not 4.  Using smaller integers
7425         shrinks the code a bit and makes grep a tad faster on x86-64.
7427         dfa: omit unnecessary ptrdiff_t check
7428         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
7429         overflow, since xnmalloc does that now.
7431         dfa: omit unnecessary allocation
7432         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
7433         an all-zero follow set works just fine.
7435         dfa: omit unused local
7436         * lib/dfa.c (build_state): Fix up recent change.
7438         maint: remove stray .texi files
7439         Although these were superseded by other files like
7440         doc/posix-functions/ctime.texi, the old files were not removed.
7441         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
7443 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
7445         getprogname: fix port to IRIX
7446         * lib/getprogname.c (getprogname) [__sgi]:
7447         Don't dump core if malloc returns NULL.
7449         dfa: fix reallocation bug when matching newlines
7450         Problem reported for sed by S. Gilles (Bug#25390).
7451         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
7452         (dfastate): Reallocate before moving any newline transition ...
7453         (build_state): ... instead of reallocating here, where it is too late.
7455 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
7457         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
7458         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
7460 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
7462         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
7463         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
7465 2017-01-07  Bruno Haible  <bruno@clisp.org>
7467         stdioext: Port to Minix 3.2 and newer.
7468         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
7469         * lib/fseeko.c (fseeko): Likewise.
7470         Reported by Nelson Beebe via Paul Eggert.
7472 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
7474         getprogname: port to IRIX
7475         * lib/getprogname.c (getprogname): Port to IRIX.
7476         Based on an idea by Bastien Roucariès at:
7477         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
7478         via code from Bruno Haible at:
7479         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
7481         localename-tests: port to NetBSD 7
7482         Problem reported by Nelson H. F. Beebe.
7483         * tests/test-localename.c:
7484         Test newlocale and uselocale only if both exist.
7486         glob, intprops, xalloc: work around Clang bug
7487         Work around LLVM bug 16404, which is still not fixed.
7488         https://llvm.org/bugs/show_bug.cgi?id=16404
7489         Problem reported by Nelson H. F. Beebe.
7490         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
7491         Remove.
7492         * lib/glob.c (size_add_wrapv):
7493         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
7494         * lib/xalloc-oversized.h (xalloc_oversized):
7495         Do not use overflow builtins if Clang.
7497         dfa: fix 'return' typo
7498         Problem reported by Nelson H. F. Beebe.
7499         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
7501 2017-01-05  Pádraig Brady  <P@draigBrady.com>
7503         parse-datetime: fix generated paths for coverage files
7504         * modules/parse-datetime: Adjust the paths for parse-datetime.y
7505         within parse-datetime.c, so that gcc generates appropriate .gcno
7506         files, allowing lcov to proceed without error.  Previously it
7507         would error trying to find "lib/lib/parse-datetime.y".
7509 2017-01-05  Pádraig Brady  <P@draigBrady.com>
7511         maint.mk: support parallel execution of coverage
7512         * top/maint.mk (coverage): Run dependencies serially,
7513         thus supporting parallel processing of each one,
7514         particularly build-coverage, which builds and runs tests.
7516 2017-01-05  Bruno Haible  <bruno@clisp.org>
7518         lock tests: Prefer semaphore over mutex.
7519         * tests/test-lock.c (USE_SEMAPHORE): New constant.
7520         (struct atomic_int, init_atomic_int, get_atomic_int_value,
7521         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
7522         Suggested by Torvald Riegel <triegel@redhat.com>.
7524 2017-01-05  Bruno Haible  <bruno@clisp.org>
7526         lock: Provide guarantee to avoid writer starvation for rwlocks.
7527         The rationale is: 1) Read-preferring read-write locks are prone to
7528         writer starvation if the number of reader threads multiplied by the
7529         percentage of time they have the lock held is too high. 2) Write-
7530         preferring read-write locks are the only reliable way to avoid this.
7531         3) There have been reports of 'test-lock' hanging on glibc systems
7532         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
7533         and glibc indeed implements read-preferring rwlocks by default, see
7534         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
7535         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
7536         * m4/pthread_rwlock_rdlock.m4: New file.
7537         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
7538         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
7539         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
7540         of rwlock initialization on glibc systems without
7541         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
7542         of rwlocks altogether on non-glibc systems without
7543         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
7544         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
7545         * lib/glthread/lock.c [USE_POSIX_THREADS]
7546         (glthread_rwlock_init_for_glibc): New function.
7547         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
7548         comment.
7549         [USE_PTH_THREADS]: New implementation of rwlocks.
7550         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
7551         readers.
7552         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
7553         (Depends-on): Add 'extensions'.
7554         * tests/test-rwlock1.c: New file.
7555         * lock-tests (Files): Add it.
7556         (Depends-on): Add usleep.
7557         (Makefile.am): Add test-rwlock1 to the tests.
7559 2017-01-05  Bruno Haible  <bruno@clisp.org>
7561         thread: Fix pth port.
7562         * lib/glthread/thread.h (pth_init): Declare weak.
7563         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
7564         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
7565         function.
7567 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
7569         parse-datetime: fix debug message on lone year number
7570         Input dates such as
7571           date -d "Apr 11 22:59:00 2011"
7572         are parsed as date (Apr 11, with default year 2016), then time, then a
7573         number (2011). Based on the combination of previously seen tokens,
7574         'digits_to_date_time' determines 2011 to be a year value.
7575         This fixes the debug messages to correctly show the updated year.
7576         Before:
7577             $ date --debug -d 'Apr 11 22:59:00 2011'
7578             date: parsed date part: (Y-M-D) 2016-04-11
7579             date: parsed time part: 22:59:00
7580             date: parsed number part: today/this/now
7581         After:
7582             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
7583             date: parsed date part: (Y-M-D) 2016-04-11
7584             date: parsed time part: 22:59:00
7585             date: parsed number part: year: 2011
7586         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
7587         'debug_year_seen' member fields.
7588         (digits_to_date_time): Update 'year_seen' as needed.
7589         (debug_print_current_time): Inform about year updates.
7590         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
7592         parse-datetime: fix local timezone debug messages
7593         "Local timezones" are strings that affect only DST relative to the
7594         default timezone. The debug messages in parse-datetime.y printed
7595         wrong information when encountering local timezones.
7596         Examples:
7597         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
7598              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
7599              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
7600         When the default timezone relates to the zone strings, EET/EEST are
7601         parsed as local timezones (tLOCAL_ZONE), and only change the DST
7602         value (0/1, respectively):
7603              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
7604              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
7605         * lib/parse-datetime.y (debug_print_current_time): If local timezone
7606         was seen, inform about DST change, don't print actual timezone.
7607         (debug_strfdatetime): If local timezone was seen, use default timezone
7608         (and adjust as needed) instead of using incorrect timezone.
7609         (parse_datetime2): Use correct time-zone source string, and adjust
7610         default timezone as needed.
7612         parse-datetime: add debug warning about DST changes
7613         Incorrect date arithmetic due to daylight saving time (DST) are a
7614         common (false) bug report in coreutils.
7615         Detect two such cases and print a warning:
7616         1. year/month/day adjustments (performed on 'struct tm'),
7617            where 'mktime' returns a different isdst value.
7618         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
7619            where the result of 'localtime(3)' on the value will return a
7620            different isdst value.
7621         Note: DST changes could be harmless or unnoticeable.
7622         Examples (with 'TZ=America/New_York'):
7623         Unnoticeable: result is 2016-Dec-14
7624            $ date -d '2016-06-15 EDT + 6 months' +%b
7625            Dec
7626         Unnoticeable: result is 2016-Dec-15 11:00:00
7627            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
7628            2016-12-15
7629         This is unexpected:
7630            $ date -d '2016-06-01 EDT + 6 months' +%F
7631            2016-11-30
7632         The new debug warnings will show:
7633            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
7634            ...
7635            date: warning: daylight saving time changed after date adjustment
7636            ...
7637         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
7638         print an appropriate warning message.
7640         parse-datetime: add debug warning about date arithmetic
7641         Date arithmetic are done directly on the fields of 'struct tm',
7642         which can result in invalid dates. Normalization with 'mktime(3)'
7643         will then produce a different date - which might cause unexpected
7644         results.
7645         Examples:
7646           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
7647           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
7648         Note that date normalization is not inherently wrong and not rejected,
7649         as it has legitimate uses:
7650           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
7651         If the user asked to adjust months but 'mday' changed,
7652         or user asked to adjust years but 'month' changed - warn about it.
7653             $ ./src/date --debug -d '2016-10-31 - 1 month'
7654             ...
7655             date: warning: when adding relative months/years, \
7656                            it is recommended to specify the 15th of the month
7657             ...
7658             date: warning: month/year adjustment resulted in shifted dates:
7659             date:      adjusted Y M D: 2016 09 31
7660             date:    normalized Y M D: 2010 10 01
7661             ...
7662         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
7663         a warning message. Improve recommendation of when to use 15 of the
7664         month or noon for date arithmetic.
7666         parse-datetime: fix debug message of relative part after timezone
7667         Relative part (e.g '+8 days') after a timezone string was not
7668         reported (was only reported after a timezone number). Due to the
7669         parser's structure, timezone strings with numbers were handled
7670         separately.
7671         before:
7672              # Timezone number + relative part: OK
7673              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
7674              ...
7675              date: parsed relative part: -8 day(s)
7676              # Timezone string + relative part: missing
7677              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
7678              [ missing message ]
7679         After: messages are printed in both cases.
7680         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
7682         parse-datetime: fix incorrect debug message on lone number
7683         A lone number is an absolute value, not a relative time part.
7684         before:
7685            $ date --debug -d '20130101'
7686            date: parsed number part: today/this/now
7687         After:
7688            $ ./src/date --debug -d '20130101'
7689            date: parsed number part: (Y-M-D) 2013-01-01
7690         * lib/parse-datetime.y ('item'/'number' tokens): Call
7691         'debug_print_current_time' instead of 'debug_print_relative_time'.
7693 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
7695         doc: modernize for C11 etc.
7696         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
7697         for C11, MinGW, etc.  This responds to Paul Smith's question in:
7698         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
7700         dfa: prefer functions to FETCH_WC macro
7701         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
7702         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
7703         wint_t result into DFA->lex.wctok instead of to a separate arg.
7704         All callers changed.  Move more local decls closer to where
7705         they're used.
7707         dfa: narrow more local var scopes
7708         * lib/dfa.c: Move more local decls to be more local.
7710         dfa: remove duplicate assignment
7711         Problem reported by Bruno Haible in:
7712         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
7713         * lib/dfa.c (parse_bracket_exp): Simplify.
7715 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
7717         dfa: simplify constraint-dependency checking
7718         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
7719         (prev_other_constraint): Remove.
7720         (prev_newline_dependent, prev_letter_dependent):
7721         Simplify, to avoid an unnecessary bitwise AND operation.
7723         dfa: prefer functions and constants to macros
7724         * lib/dfa.c: Prefer constants to macros where either will do.
7725         (streq, isasciidigit, newline_constraint)
7726         (letter_constraint, other_constraint, succeeds_in_context)
7727         (prev_newline_constraint, prev_letter_constraint)
7728         (prev_other_constraint, prev_newline_dependent)
7729         (prev_letter_dependent, accepting, accepts_in_context):
7730         Now static functions instead of function-like macros.
7731         Use lower-case names accordingly.  All uses changed.
7733         dfa: narrow more local var scopes
7734         * lib/dfa.c: Move some more local decls down to nearer where
7735         they're needed.
7737 2016-12-31  Jim Meyering  <meyering@fb.com>
7739         dfa: narrow the scope of many local variables
7740         * lib/dfa.c: Now that we are no longer constrained to c89, move
7741         declarations of many variables (often indices) "down" into the
7742         scope(s) where used or to the point of definition.  This is a
7743         no-semantic-change diff.
7745 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
7747         version-etc: new year
7748         * build-aux/gendocs.sh (version):
7749         * doc/gendocs_template:
7750         * doc/gendocs_template_min:
7751         * doc/gnulib.texi:
7752         * lib/version-etc.c (COPYRIGHT_YEAR):
7753         Update copyright dates by hand in templates and the like.
7754         * all files: Run 'make update-copyright'.
7756 2016-12-31  Eric Blake  <eblake@redhat.com>
7758         do-release-commit-and-tag: avoid shell syntax error
7759         * build-aux/do-release-commit-and-tag (curr_br): $branch can
7760         contain spaces when rebasing.
7762         maint.mk: hoist gnulib_dir definition earlier
7763         * top/maint.mk (gnulib_dir): Move near top of file.
7765 2016-12-31  Jim Meyering  <meyering@fb.com>
7767         maint.mk: do not always evaluate intprops-related shell
7768         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
7769         using gnulib_dir undefined (gnulib_dir is defined later in the
7770         file, which will be fixed separately), and besides, there is no
7771         need to incur the cost of this shell invocation for every single
7772         use of this .mk file.  Reported by Eric Blake in
7773         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
7775 2016-12-30  Jim Meyering  <meyering@fb.com>
7777         maint.mk: improve sc_prohibit_intprops_without_use
7778         * top/maint.mk (_intprops_names): Don't hard-code the list of
7779         symbol names.  Instead, derive it on the fly.
7781 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
7783         dfa: shorten sbit, success
7784         * lib/dfa.c (struct regex_syntax.sbit):
7785         (struct dfa.success): Use char, not int, for array elements, since
7786         they are all in the range 0..7.
7788         dfa: simplify multibyte_prop etc.
7789         This follows up on a change made when dfa.c was in grep, namely grep
7790         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
7791         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
7792         That earlier simplification allows for some more simplification
7793         and trimming down here.
7794         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
7795         (struct lexer_state): New mamber brack.
7796         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
7797         since they must be in the range 0..3 now.
7798         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
7799         the brack member now supersedes them.
7800         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
7801         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
7802         (dfaparse): Remove unnecessary initializations of already-0 storage.
7803         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
7804         (dfassbuild): No need to clear sup->mbcsets.
7806         dfa: minor performance tweak
7807         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
7809         dfa: wrap charclass inside a struct
7810         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
7811         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
7812         about 5% faster, where list.txt is generated by 'aspell dump
7813         master | head -n 100000 >list.txt'.  See Bug#22239.
7814         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
7815         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
7816         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
7817         Adjust to this, e.g., by using charclass * rather than charclass.
7818         All callers changed as needed.
7819         (copyset): Remove.  All uses changed to simple assignment.
7820         (parse_bracket_exp): Use zeroset instead of memset.
7822 2016-12-30  Jim Meyering  <meyering@fb.com>
7824         maint.mk: update list of intprops.h symbol names
7825         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
7826         This avoids a false failure of the sc_prohibit_intprops_without_use
7827         rule in grep.
7829 2016-12-29  Eric Blake  <eblake@redhat.com>
7831         getopt: fix parallel test failure
7832         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
7833         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
7834         * tests/test-getopt-main.h (main): Use different file names
7835         in case test-getopt-gnu and test-getopt-posix run in parallel.
7837 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
7839         xalloc: x2nrealloc check for ptrdiff_t overflow
7840         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
7841         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
7843 2016-12-24  Bruno Haible  <bruno@clisp.org>
7845         lock test: Fix performance problem on multi-core machines.
7846         * tests/test-lock.c (USE_VOLATILE): New macro.
7847         (struct atomic_int): New type.
7848         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
7849         functions.
7850         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
7851         as 'struct atomic_int'.
7852         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
7853         reclock_checker_thread, test_recursive_lock): Use the new functions.
7854         Reported by Eric Blake in
7855         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
7856         and by Pádraig Brady in
7857         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
7859 2016-12-19  Bruno Haible  <bruno@clisp.org>
7861         vma-iter: Fix endless loop on 64-bit Windows.
7862         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
7863         'unsigned long'.
7865 2016-12-19  Bruno Haible  <bruno@clisp.org>
7867         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
7868         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
7869         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
7870         Invoke gt_TYPE_WINT_T instead.
7871         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
7872         * modules/stdint (Files): Add m4/wint_t.m4.
7873         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
7874         * modules/wctype-h (Makefile.am): Likewise.
7875         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
7876         not only on MSVC.
7877         * lib/wctype.in.h (wint_t): Likewise.
7879 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
7881         getopt-posix-tests: fix Makefile typo
7882         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
7883         Fix typo: the last ‘_’ was missing in the name.
7884         I suspect that the typo explains this build failure:
7885         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
7886         although I can’t reproduce the problem on Solaris 10 sparc.
7888 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7890         dfa: improve worst-case 'replace' performance
7891         See my note in Bug#22357#71.
7892         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
7893         (merge_constrained): New function, which is like
7894         the old 'merge' function, except with a new argument C2.
7895         Simplify the body by avoiding the need for different sections
7896         of code depending on whether one input is exhausted.
7897         (merge): Use the new function.
7898         (delete): Return the constraint of the deleted position,
7899         not the entire position.  Caller changed.
7900         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
7902 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
7904         dfa: performance improvement for removal of epsilon closure
7905         See Bug#22357#32.
7906         * lib/dfa.c (delete): Use binary search to find deleted index.
7907         (replace): New function.  It replaces a position with the followed set.
7908         (epsclosure): Replace it with a new algorithm.  Update caller.
7910 2016-12-18  Bruno Haible  <bruno@clisp.org>
7912         Split tests for getopt-posix and getopt-gnu.
7913         * tests/test-getopt-posix.c: New file.
7914         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
7915         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
7916         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
7917         GNULIB_TEST_GETOPT_GNU.
7918         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
7919         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
7920         (Makefile.am): Test test-getopt-posix instead of test-getopt.
7921         * modules/getopt-gnu-tests: New file.
7922         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
7924 2016-12-18  Bruno Haible  <bruno@clisp.org>
7926         posix-modules: Add options for specific platforms.
7927         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
7928         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
7929         Invoke func_tmpdir. Filter out the excludes.
7931 2016-12-18  Bruno Haible  <bruno@clisp.org>
7933         getopt: Fix link error for users of getopt() in <unistd.h>.
7934         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
7935         __need_getopt is defined. Undefine all macros before defining them.
7936         * modules/getopt (Include): Clarify that including <unistd.h> is also
7937         OK.
7938         * tests/test-getopt.c: Add comment.
7940 2016-12-17  Bruno Haible  <bruno@clisp.org>
7942         getaddrinfo tests: Avoid compilation error on MSVC.
7943         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
7944         getaddrinfo on native Windows.
7946 2016-12-17  Bruno Haible  <bruno@clisp.org>
7948         getlogin, getlogin_r: Fix link errors on MSVC.
7949         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
7950         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
7951         (Link): New section.
7952         * modules/getlogin_r (Files): Add m4/getlogin.m4.
7953         (configure.ac): Require gl_LIB_GETLOGIN.
7954         (Link): New section.
7955         * NEWS: Mention the new link requirements.
7956         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
7957         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
7959 2016-12-17  Bruno Haible  <bruno@clisp.org>
7961         Un-deprecate the 'progname' module.
7962         * NEWS: Describe the appropriate use-cases of 'progname' versus
7963         'getprogname'. Based on discussion summary at
7964         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
7966 2016-12-17  Bruno Haible  <bruno@clisp.org>
7968         Reorganize NEWS a bit.
7969         * NEWS: Move some not so important changes away from section
7970         "Important Notes".
7972 2016-12-17  Bruno Haible  <bruno@clisp.org>
7974         tanhf: Avoid redefinition error on MSVC.
7975         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
7976         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
7977         may be defined as an inline function.
7978         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
7979         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
7981 2016-12-17  Bruno Haible  <bruno@clisp.org>
7983         tanf: Avoid redefinition error on MSVC.
7984         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
7985         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
7986         may be defined as an inline function.
7987         * modules/math (Makefile.am): Substitute REPLACE_TANF.
7988         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
7990 2016-12-17  Bruno Haible  <bruno@clisp.org>
7992         sqrtf: Avoid redefinition error on MSVC.
7993         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
7994         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
7995         may be defined as an inline function.
7996         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
7997         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
7999 2016-12-17  Bruno Haible  <bruno@clisp.org>
8001         sinhf: Avoid redefinition error on MSVC.
8002         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
8003         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
8004         may be defined as an inline function.
8005         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
8006         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
8008 2016-12-17  Bruno Haible  <bruno@clisp.org>
8010         sinf: Avoid redefinition error on MSVC.
8011         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
8012         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
8013         may be defined as an inline function.
8014         * modules/math (Makefile.am): Substitute REPLACE_SINF.
8015         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
8017 2016-12-17  Bruno Haible  <bruno@clisp.org>
8019         logf: Avoid redefinition error on MSVC.
8020         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
8021         may be defined as an inline function.
8023 2016-12-17  Bruno Haible  <bruno@clisp.org>
8025         log10l: Avoid redefinition error on MSVC.
8026         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
8027         may be defined as an inline function.
8029 2016-12-17  Bruno Haible  <bruno@clisp.org>
8031         log10f: Avoid redefinition error on MSVC.
8032         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
8033         may be defined as an inline function.
8035 2016-12-17  Bruno Haible  <bruno@clisp.org>
8037         hypotl: Avoid redefinition error on MSVC.
8038         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
8039         may be defined as an inline function.
8041 2016-12-17  Bruno Haible  <bruno@clisp.org>
8043         hypotf: Avoid redefinition error on MSVC.
8044         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
8045         may be defined as an inline function.
8047 2016-12-17  Bruno Haible  <bruno@clisp.org>
8049         fmodl: Avoid redefinition error on MSVC.
8050         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
8051         may be defined as an inline function.
8053 2016-12-17  Bruno Haible  <bruno@clisp.org>
8055         fmodf: Avoid redefinition error on MSVC.
8056         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
8057         may be defined as an inline function.
8059 2016-12-17  Bruno Haible  <bruno@clisp.org>
8061         expf: Avoid redefinition error on MSVC.
8062         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
8063         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
8064         may be defined as an inline function.
8065         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
8066         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
8068 2016-12-17  Bruno Haible  <bruno@clisp.org>
8070         coshf: Avoid redefinition error on MSVC.
8071         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
8072         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
8073         may be defined as an inline function.
8074         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
8075         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
8077 2016-12-17  Bruno Haible  <bruno@clisp.org>
8079         cosf: Avoid redefinition error on MSVC.
8080         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
8081         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
8082         may be defined as an inline function.
8083         * modules/math (Makefile.am): Substitute REPLACE_COSF.
8084         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
8086 2016-12-17  Bruno Haible  <bruno@clisp.org>
8088         atan2f: Avoid redefinition error on MSVC.
8089         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
8090         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
8091         may be defined as an inline function.
8092         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
8093         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
8095 2016-12-17  Bruno Haible  <bruno@clisp.org>
8097         atanf: Avoid redefinition error on MSVC.
8098         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
8099         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
8100         may be defined as an inline function.
8101         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
8102         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
8104 2016-12-17  Bruno Haible  <bruno@clisp.org>
8106         asinf: Avoid redefinition error on MSVC.
8107         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
8108         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
8109         may be defined as an inline function.
8110         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
8111         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
8113 2016-12-17  Bruno Haible  <bruno@clisp.org>
8115         acosf: Avoid redefinition error on MSVC.
8116         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
8117         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
8118         may be defined as an inline function.
8119         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
8120         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
8122 2016-12-17  Bruno Haible  <bruno@clisp.org>
8124         Avoid redefinition errors on MSVC.
8125         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
8126         the function may be defined as an inline function.
8127         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
8128         the function may be defined as an inline function.
8130 2016-12-17  Bruno Haible  <bruno@clisp.org>
8132         Avoid redefinition errors on MSVC.
8133         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
8134         * lib/unistd.in.h: Include <stdio.h> when necessary.
8136 2016-12-17  Bruno Haible  <bruno@clisp.org>
8138         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
8139         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
8140         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
8141         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
8142         WINT_MAX.
8144 2016-12-17  Bruno Haible  <bruno@clisp.org>
8146         Avoid autoconf warning.
8147         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
8148         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
8150 2016-12-17  Bruno Haible  <bruno@clisp.org>
8152         fpending: Revert workaround against Emacs bug.
8153         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
8154         The Emacs bug is fixed by Eli Zaretskii in
8155         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
8157 2016-12-17  Bruno Haible  <bruno@clisp.org>
8159         getlogin_r tests: Port to mingw.
8160         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
8161         regression introduced on 2014-05-19.
8163 2016-12-17  Bruno Haible  <bruno@clisp.org>
8165         getlogin: Port to newer mingw.
8166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
8167         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
8168         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
8169         HAVE_GETLOGIN.
8170         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
8171         HAVE_GETLOGIN.
8172         * doc/posix-functions/getlogin.texi: Mention the issue.
8173         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
8174         regression introduced on 2014-05-14.
8176 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
8178         builtin-expect: improve port to IBM XL C
8179         Problem reported for z/OS by Daniel Richard G. in:
8180         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
8181         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
8182         Test for <builtins.h> directly.
8184         builtin-expect: port to IBM XL C
8185         Problem reported for z/OS by Daniel Richard G. in:
8186         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
8187         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
8188         Also allow __builtin_expect defined via a standard include file.
8190         regex: fix dependency
8191         Problem reported by Bruno Haible in:
8192         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
8193         * modules/regex: Depend on builtin-expect.
8195         builtin-expect: new module
8196         Fix fnmatch to use it.
8197         Problem reported for z/OS by Daniel Richard G.
8198         * lib/fnmatch.c (__builtin_expect):
8199         * lib/glob.c (__builtin_expect):
8200         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
8201         * lib/memmem.c (__builtin_expect) [!_LIBC]:
8202         * lib/scandir.c (__builtin_expect):
8203         * lib/strstr.c (__builtin_expect) [!_LIBC]:
8204         Remove macro; config.h now does this.
8205         * lib/gl_anytreehash_list1.h (add_to_bucket):
8206         * lib/regex_internal.h (BE):
8207         Assume __builtin_expect.
8208         * m4/builtin-expect.m4, modules/builtin-expect: New files.
8209         * modules/avltreehash-list, modules/fnmatch, modules/glob:
8210         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
8211         * modules/scandir, modules/strstr-simple:
8212         Depend on builtin-expect.
8214 2016-12-15  Bruno Haible  <bruno@clisp.org>
8216         init.sh: Add possibility to not delete temporary files.
8217         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
8218         to yes, don't erase the temporary directory.
8220 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
8222         regex: fix integer-overflow bug in never-used code
8223         Problem reported by Clément Pit–Claudel in:
8224         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
8225         * lib/regex_internal.h: Include intprops.h.
8226         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
8227         behavior on integer overflow.
8228         * modules/regex (Depends-on): Add intprops.
8230         fpending: fix port to MinGW on Emacs
8231         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
8232         Problem reported by Eli Zaretskii in:
8233         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
8234         Is Plan 9 still a valid porting target, anyway?
8236 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
8238         safe-alloc: use xalloc-oversized
8239         * lib/safe-alloc.c: Include xalloc-oversized.h.
8240         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
8241         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
8243         xalloc: do not exceed PTRDIFF_MAX
8244         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
8245         xalloc_oversized check, since objects larger than PTRDIFF_MAX
8246         bytes have pointer-subtraction problems.
8248         malloca: do not exceed PTRDIFF_MAX
8249         * lib/malloca.h: Include xalloc-oversized.
8250         (nmalloca): Use xalloc_oversized instead of rolling our own.
8251         * modules/malloca (Depends-on):
8252         * modules/relocatable-prog-wrapper (Depends-on):
8253         Add xalloc-oversized.
8255         quotearg: pacify GCC better
8256         * modules/quotearg (Depends-on): Add minmax, stdint.
8257         * lib/quotearg.c: Include minmax.h, stdint.h.
8258         (nslots): Now int, as there seems little point to going to extra
8259         work merely to support the INT_MAX slot, which nobody ever uses.
8260         (quotearg_n_options): Redo size-overflow checks to pacify GCC
8261         and to catch (mostly-theoretical) ptrdiff_t problems too.
8262         This can be done via one comparison.
8264 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
8266         xalloc-oversized: check for PTRDIFF_MAX too
8267         This avoids undefined behavior when subtracting pointers to
8268         objects containing more than PTRDIFF_MAX bytes.
8269         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
8270         Also return 1 if the result would exceed PTRDIFF_MAX>
8271         * modules/xalloc-oversized (Depends-on):
8272         Add stdint.
8274         dfa: fix glitches in previous commit
8275         Sorry, I don't know how I managed to commit the wrong version.
8276         * lib/dfa.c (MIN): Move up.
8277         (xpalloc): Now static.
8279         dfa: fix some unlikely integer overflows
8280         I found these while reviewing the recent Coverity-related fix.
8281         This patch changes part of dfa.c to prefer ptrdiff_t instead of
8282         size_t for object counts.  Using ptrdiff_t is the style typically
8283         used in Emacs; although it wastes a sign bit as sizes can never be
8284         negative, it makes -fsanitize=undefined more likely to catch
8285         integer overflows in index calculation, and nowadays the upside is
8286         typically more important than the downside.  Although perhaps the
8287         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
8288         of dfa.c already does, since it uses state_num which is signed),
8289         that is a bigger change and is not needed to fix the bugs I found.
8290         * lib/dfa.c: Include stdint.h and intprops.h.
8291         (TOKEN_MAX): New macro.
8292         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
8293         (charclass_index, parse_bracket_exp, addtok, insert, merge)
8294         (realloc_trans_if_necessary, free_mbdata):
8295         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
8296         This is safe because xpalloc checks that the sizes do not exceed
8297         either SIZE_MAX or PTRDIFF_MAX.
8298         (xpalloc): New function, mostly taken from Emacs.
8299         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
8300         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
8301         (charclass_index): Check for integer overflow in computing
8302         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
8303         added to it later.
8304         (alloc_position_set): Check for integer overflow.  On typical
8305         platforms this check has zero overhead, since the constant
8306         expression is false.
8307         (realloc_trans_if_necessary):
8308         Remove assertion, which I hope Coverity no longer needs.
8310         * modules/dfa (Depends-on): Add intprops, stdint.
8312 2016-12-12  Jim Meyering  <meyering@fb.com>
8314         dfa: add an assertion to avoid coverity false positive
8315         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
8316         warned that "newalloc1 - 2" could overflow.
8318 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
8320         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
8321         * dfa.h (DFA_CASE_FOLD): Remove.
8322         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
8324 2016-12-13  John W. Eaton  <gnu@jweaton.org>
8326         link: fix test to declare use of rename()
8327         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
8328         -Werror=implicit-function-declaration
8330 2016-12-12  Bruno Haible  <bruno@clisp.org>
8332         fpending: Port to native Windows with MSVC.
8333         * lib/fpending.c: Include stdio-impl.h.
8334         (__fpending): Include all known implementations. Err out if it's not
8335         ported.
8336         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
8337         * modules/fpending (Files): Add lib/stdio-impl.h.
8338         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
8340 2016-12-12  Bruno Haible  <bruno@clisp.org>
8342         stdioext: Port to native Windows with MSVC.
8343         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
8344         (struct _gl_real_FILE): New type.
8345         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
8346         Windows.
8347         * lib/fbufmode.c (fbufmode): Add code for native Windows.
8348         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
8349         other SystemV derived implementations.
8350         * lib/fpurge.c (fpurge): Likewise.
8351         * lib/freadable.c (freadable): Likewise.
8352         * lib/freadahead.c (freadahead): Likewise.
8353         * lib/freading.c (freading): Likewise.
8354         * lib/freadptr.c (freadptr): Likewise.
8355         * lib/freadseek.c (freadptrinc): Likewise.
8356         * lib/fseeko.c (fseeko): Likewise.
8357         * lib/fseterr.c (fseterr): Likewise.
8358         * lib/fwritable.c (fwritable): Likewise.
8359         * lib/fwriting.c (fwriting): Likewise.
8360         Reported by Gisle Vanem <gvanem@yahoo.no>.
8362 2016-12-11  Jim Meyering  <meyering@fb.com>
8364         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
8365         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
8366         to work with most shells, but not with the one provided by many
8367         Solaris 10 systems, so running configure with such a /bin/sh evokes
8368         e.g., "./configure: syntax error at line 33602: `(' unexpected".
8369         Reported by Assaf Gordon in
8370         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
8372 2016-12-10  Bruno Haible  <bruno@clisp.org>
8374         threadlib: Optimize out runtime test on Solaris >= 10.
8375         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
8376         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
8377         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
8379 2016-12-10  Bruno Haible  <bruno@clisp.org>
8381         stdint: Update doc about Solaris 9.
8382         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
8384 2016-12-09  Bruno Haible  <bruno@clisp.org>
8386         c-ctype tests: Fix link error on Solaris 9.
8387         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
8388         Reported at <https://savannah.gnu.org/bugs/?46827>.
8390 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
8392         dfa: fix performance bug that recomputes trans
8393         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
8394         25 on-demand changes.  The bug caused build_state to reset all
8395         d->trans elements to -2 even when d->trans was already non-null.
8396         Use C99 style decls after statements in this function.
8398         same-inode: port to MinGW
8399         Here st_ino is always 0, so change the definition of SAME_INODE so
8400         that 1 means the two files are the same, 0 with st_ino != 0 means
8401         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
8402         reported by Bruno Haible (Bug#25146).
8403         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
8404         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
8406 2016-12-04  Bruno Haible  <bruno@clisp.org>
8408         javacomp-script: Support Java 7 and 8.
8409         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
8410         target-version 1.7, 1.8.
8412 2016-12-02  Daiki Ueno  <ueno@gnu.org>
8414         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
8415         GPLv2" rewriting.
8417 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
8419         * gnulib-tool (func_import): Adhere to the license guideline when
8420         rewriting the license text to "LGPLv3+ or GPLv2":
8421         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
8423 2016-12-02  Bruno Haible  <bruno@clisp.org>
8425         localcharset: Avoid theoretical buffer overrun.
8426         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
8427         return value from setlocale if it would lead to a buffer overrun.
8429 2016-12-01  Bruno Haible  <bruno@clisp.org>
8431         Relicense some modules under LGPLv2+.
8432         Kevin Cernekee's approval is in
8433         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
8434         * modules/fseterr (License): Change to LGPLv2+.
8435         * modules/mbchar (License): Likewise.
8436         * modules/mbiter (License): Likewise.
8437         * modules/mbsnlen (License): Likewise.
8438         * modules/wcwidth (License): Likewise.
8440 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
8442         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
8443         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
8444         OS/2 kLIBC.
8446 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
8448         alphasort, scandir: Port to OS/2 kLIBC
8449         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
8450         declaration.
8451         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
8453 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
8455         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
8456         * lib/relocatable.c (relocate): Do not touch pathname if it is started
8457         with '/@unixroot'.
8459 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
8461         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
8462         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
8463         OS/2 kLIBC unless TCPV40HDRS is defined.
8465 2016-11-29  Jim Meyering  <meyering@fb.com>
8467         dfa: avoid new infinite loop
8468         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
8469         * lib/dfa.c (dfastate): When constructing a new state table, we could
8470         initially declare that we had found a match, and later find that
8471         constraints eliminate that possibility, yet continue to use the
8472         now stale "matched" indicator.  That would lead to an infinite loop.
8473         The solution is to update "matched" when necessary.
8474         Introduced by commit v0.1-983-g403adf1.
8476 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
8478         dfa: avoid match middle in multibyte character
8479         * lib/dfa.c (transit_state): If fails in matching single byte characters
8480         on a state including period expression in non-UTF8 multibyte locales,
8481         skip trailing bytes.
8482         (dfa_supported): Revert previous change.
8484 2016-11-27  Jim Meyering  <meyering@fb.com>
8486         dfa: avoid false match in non-UTF8 multibyte locales
8487         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
8488         as "not supported" so that callers will resort to using regex-based
8489         matcher.  This will surely hurt performance, but correctness trumps
8490         performance here, and the affected locales are less and less relevant,
8491         these days.  See grep's bug report https://bugs.gnu.org/24975.
8493 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
8495         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
8496         * lib/ptsname_r.c: Include the appropriate headers.
8497         [__sun]: Delete sys/sysmacros.h include.
8498         [_AIX || __osf__]: Likewise.
8499         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
8501 2016-11-27  Pádraig Brady  <P@draigBrady.com>
8503         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
8504         * lib/md4.c (md4_process_bytes): The existing define is made internal
8505         in recent versions of glibc, so also use this new public define.
8506         * lib/md5.c (md5_process_bytes): Likewise.
8507         * lib/sha1.c (sha1_process_bytes): Likewise.
8508         * lib/sha256.c (sha256_process_bytes): Likewise.
8509         * lib/sha512.c (sha512_process_bytes): Likewise.
8511 2016-11-27  Pádraig Brady  <P@draigBrady.com>
8513         maint: use a more standard return from mbrtowc test
8514         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
8515         from the test program as this often indicates an
8516         unhandled case in the test program.
8517         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
8518         (gl_MBRTOWC_SANITYCHECK): Likewise.
8519         (gl_MBRTOWC_NULL_ARG2): Likewise.
8520         (gl_MBRTOWC_NUL_RETVAL): Likewise.
8522 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
8524         freopen: work around glibc bug with closed fd
8525         Work around glibc bug#15589, where freopen mishandles the case
8526         where stdin etc. are already closed.
8527         * doc/posix-functions/freopen.texi (freopen): Document the bug.
8528         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
8529         instead of __need_FILE, as the latter does not work with glibc.
8530         Include <fcntl.h>, for open flags.
8531         (rpl_freopen): Work around glibc bug.
8532         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
8533         * modules/freopen (Depends-on): Add fcntl-h.
8534         * tests/test-freopen.c (main): Test for bug.
8536 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
8538         fnmatch: fix typo introduced on 2016-08-17
8539         This fixes the port to non-GCC compilers that lack __builtin_expect.
8540         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
8542         dfa: simplify with new function fillset
8543         * lib/dfa.c (fillset): New function.
8544         Use it for clarity when applicable.
8546         dfa: fix glitches with on-demand states
8547         Also, adjust commentary to better match new code.
8548         Some of these glitches predate the recent change.
8549         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
8550         only non-initial states.
8551         (dfastate): Rename locals to better match new roles.
8552         Move them into nested scopes if this is easy.
8553         Omit unnecessary calls to zeroset.
8554         Simplify test for whether to throw in the positions of state 0.
8555         Omit C99-ism (decl after statement) since Gawk still wants C89.
8556         (build_state): Omit unnecessary test and assignment.
8557         Fix some confusion that counted transition tables inaccurately
8558         and could cause a memory leak.
8559         (dfaexec_main): Redo to make it clearer to the compiler that
8560         -1 and -2 are the only negative state numbers here.
8562 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
8564         dfa: addition of new state on demand
8565         * src/dfa.c (dfastate): Add argument UC, the current input character.
8566         Fill only a group including the character in transition table.
8567         (realloc_trans_if_necessary): Add the dummy state which means that a
8568         transition table is assigned but the next state is not assigned.
8569         (build_state): Return the next state.  All callers updated.
8570         (transit_state_singlebyte): If we get the dummy state,
8571         fill the transition table.
8572         (dfaexec_main): Handle the dummy state.
8573         (free_mbdata, dfafree): Consider the dummy state.
8575 2016-11-24  Daiki Ueno  <ueno@gnu.org>
8577         srclist: sync with released gettext
8578         * config/srclist.txt: Set "release" option to the files under
8579         $GETTEXT.
8581 2016-11-24  Daiki Ueno  <ueno@gnu.org>
8583         srclist: add "release" option
8584         * config/srclist.txt: Change the format so that the first column
8585         of each line points to the top-level directory of the source
8586         archive.
8587         * config/srclist-update: Accept "release" option that checks files
8588         from the most recently tagged revision in the source archive.
8590 2016-11-21  Bruno Haible  <bruno@clisp.org>
8592         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
8593         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
8594         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
8595         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
8596         Inline and remove member function 'rpl ()' of the wrapper struct.
8598 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
8600         dfa: fix logic typo
8601         Problem reported by Stephane Chazelas (Bug#24973).
8602         * lib/dfa.c (using_simple_locale): Fix typo that caused some
8603         non-simple locales like fr_FR to be treated as simple.
8605 2016-11-20  Jim Meyering  <meyering@fb.com>
8607         fix test driver leaks: exclude, malloc, realloc
8608         * tests/test-exclude.c (main): Fix trivial leak.
8609         * tests/test-malloc-gnu.c (main): Likewise.
8610         * tests/test-realloc-gnu.c (main): Likewise.
8611         With these changes, grep's tests are now leak free.
8612         I.e., running them with ASAN elicits no failure:
8613           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
8614             AM_LDFLAGS='-fsanitize=address -static-libasan' check
8616 2016-11-11  Bruno Haible  <bruno@clisp.org>
8618         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
8619         * modules/libunistring: (License): Change from LGPL to
8620         "LGPLv3+ or GPLv2".
8621         * modules/libunistring-optional: Likewise.
8622         * modules/unicase/*: Likewise.
8623         * modules/uniconv/*: Likewise.
8624         * modules/unictype/*: Likewise.
8625         * modules/unigbrk/*: Likewise.
8626         * modules/unilbrk/*: Likewise.
8627         * modules/uniname/*: Likewise.
8628         * modules/uninorm/*: Likewise.
8629         * modules/unistdio/*: Likewise.
8630         * modules/unistr/*: Likewise.
8631         * modules/uniwbrk/*: Likewise.
8632         * modules/uniwidth/*: Likewise.
8634 2016-11-12  Bruno Haible  <bruno@clisp.org>
8636         Relicense some modules under LGPLv2+.
8637         Paul Eggert's approval is in
8638         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
8639         Eric Blake's approval is in
8640         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
8641         Ludovic Courtès's approval is in
8642         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
8643         * modules/isnand-nolibm (License): Change to LGPLv2+.
8644         * modules/isnanf-nolibm (License): Likewise.
8645         * modules/isnanl-nolibm (License): Likewise.
8647 2016-11-19  Bruno Haible  <bruno@clisp.org>
8649         Relicense some modules under LGPLv2+.
8650         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
8651         modules/vasnprintf.
8652         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
8653         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
8654         All other significant changes to the files in lib/ of these modules
8655         are from me.
8656         * modules/memcmp2 (License): Change to LGPLv2+.
8657         * modules/amemxfrm (License): Likewise.
8658         * modules/fpieee (License): Likewise.
8659         * modules/fpucw (License): Likewise.
8660         * modules/frexp-nolibm (License): Likewise.
8661         * modules/frexpl-nolibm (License): Likewise.
8662         * modules/printf-frexp (License): Likewise.
8663         * modules/printf-frexpl (License): Likewise.
8664         * modules/printf-safe (License): Likewise.
8665         * modules/signbit (License): Likewise.
8667 2016-11-17  Bruno Haible  <bruno@clisp.org>
8669         Enable Unicode decoder safety unconditionally.
8670         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
8671         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
8672         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
8673         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
8674         * lib/unistr/u8-prev.c (u8_prev): Likewise.
8675         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
8676         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
8677         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
8678         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
8679         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
8680         * lib/unistr/u16-prev.c (u16_prev): Likewise.
8681         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
8682         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
8683         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
8684         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
8685         * lib/unistr/u32-prev.c (u32_prev): Likewise.
8686         * lib/unistr/u32-next.c (u32_next): Likewise.
8687         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
8688         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
8689         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
8690         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
8691         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
8692         CONFIG_UNICODE_SAFETY tests unconditionally.
8693         * tests/unistr/test-u32-mblen.c (main): Likewise.
8694         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
8695         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
8696         * tests/unistr/test-u32-next.c (main): Likewise.
8697         * tests/unistr/test-u32-strmblen.c (main): Likewise.
8698         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
8699         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
8700         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
8701         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
8702         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
8703         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
8704         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
8705         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
8706         * lib/unistr/u16-check.c (u16_check): Update comment.
8707         * NEWS: Mention the changes that callers should be aware of.
8709 2016-11-19  Bruno Haible  <bruno@clisp.org>
8711         relocatable-prog-wrapper: Fix breakage on Cygwin.
8712         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
8713         (Depends-on): Remove intprops.
8714         * lib/relocwrapper.c: Update dependency tree.
8715         (strerror): Undefine.
8716         * build-aux/install-reloc (func_create_wrapper): Do not compile
8717         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
8719 2016-11-19  Bruno Haible  <bruno@clisp.org>
8721         strerror: Make it compile in C++ mode.
8722         * lib/strerror.c (strerror): Ignore the return value of memcpy().
8724 2016-11-15  Pedro Alves  <palves@redhat.com>
8726         sys_time: add gnulib::timeval for C++
8727         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
8728         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
8729         timeval macro.
8731 2016-11-14  Pedro Alves  <palves@redhat.com>
8733         snippet/c++defs: fix real-floating arg functions in C++ mode
8734         Also, define isfinite, isinf, isnan, signbit in the gnulib
8735         namespace instead of in the global namespace.
8736         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
8737         (_GL_END_NAMESPACE): New.
8738         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
8739         (isfinite, isinf, isnan, signbit) [__cplusplus &&
8740         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
8741         instead of in the global namespace.
8742         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
8743         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
8744         of in the global namespace.
8746 2016-11-13  Jim Meyering  <meyering@fb.com>
8748         strftime: don't use __THROW
8749         Each use of __THROW would provoke this from gcc-7-to-be:
8751           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
8752             on unit local functions [-Wattributes]
8753           static int iso_week_days (int, int) __THROW;
8754           ^~~~~~
8755         * lib/strftime.c (__THROW): Don't define.
8756         Remove each use of __THROW.
8757         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
8758         (tm_diff, iso_week_days, __strftime_internal): Likewise.
8760 2016-11-14  Paul Eggert  <eggert@union>
8762         obstack: port to gcc -fcheck-pointer-bounds
8763         Problem found by 'make check' failure on bleeding-edge coreutils
8764         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
8765         6.2.0-5ubuntu12), configured via "./configure
8766         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
8767         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
8768         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
8769         New macro, copied from fts_.h.
8770         (struct _obstack_chunk.contents): Use it.
8772 2016-11-14  Eric Blake  <eblake@redhat.com>
8774         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
8775         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
8776         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
8778 2016-11-14  Pádraig Brady  <P@draigBrady.com>
8780         strptime: fix compile error in recent change
8781         * lib/strptime.c (__strptime_internal): Fix ported code.
8783 2016-11-11  Bruno Haible  <bruno@clisp.org>
8785         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
8786         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
8787         (func_import): Extend determination of license_incompatibilities.
8788         (func_create_testdir): Extend table of license compatibility. Handle
8789         also the licenses GPLv3+, GPL, LGPLv3+.
8791 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
8793         strftime: tune %q
8794         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
8796         Merge strftime.c changes from glibc
8797         This incorporates:
8798         2007-10-16 [BZ #5184] Add tzset_called argument
8799         2008-06-13 [BZ #6612] pass reference to tzset_called around
8800         2009-10-30 Implement Burmese language locale for Myanmar
8801         2010-01-09 Add support for XPG7 testing
8802         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
8803         2015-10-20 Convert miscellaneous function definitions to prototype style
8804         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
8805         it anyway and this lessens the difference between gnulib and glibc.
8806         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
8807         (__THROW): Define if standard headers do not.
8808         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
8809         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
8810         Declare with __THROW.
8811         (__strftime_internal): Rename from strftime_case_. Add arg for
8812         whether tzset is called.  All uses changed.  Call tzset at most
8813         once.  Allow %OC, for Burmese.
8814         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
8815         Don't assume values are in range.
8817 2016-11-12  Eric Blake  <eblake@redhat.com>
8819         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
8820         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
8821         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
8822         different value.
8824 2006-11-12  Pedro Alves  <palves@redhat.com>
8826         Fix gnulib C++ namespace support and std::frexp
8827         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
8828         _GL_CXXALIASWARN.
8830 2006-11-12  Pedro Alves  <palves@redhat.com>
8832         GNULIB_NAMESPACE::func need not pull in rpl_func
8833         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
8834         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
8835         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
8836         struct instead of a function pointer.
8838 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
8840         manywarnings: fix -Wno-missing-field-initializers detection
8841         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
8842         to be independent of -Wunused-variable.  I.E. ensure the latter
8843         warning doesn't occur so that detection of the former is accurate.
8845 2016-11-05  Pádraig Brady  <pbrady@fb.com>
8847         strftime,strptime: support %q to represent the quarter
8848         * lib/strftime.c (strftime_case_): Add %q case.
8849         * lib/strptime.c (__strptime_internal): Likewise.
8850         * tests/test-strftime.c (quarter_test): A new test case.
8852 2016-11-03  Eric Blake  <eblake@redhat.com>
8854         bootstrap: Fix get_version() for AIX 5.3
8855         * build-aux/bootstrap (get_version): Factor out sed script, since
8856         indented comments choke AIX 5.3 sed.
8857         Reported-by: Michael Felt <aixtools@gmail.com>
8859 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
8861         intprops: port to older XL C
8862         Problem reported by Alexander Samoilov in:
8863         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
8864         http://savannah.nongnu.org/bugs/?49448
8865         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
8866         Define to 1 only for XL C 12.1 or later, since this bug
8867         occurs in XL C for AIX 6.0 but not in 12.1.
8869 2016-11-02  Pádraig Brady  <P@draigBrady.com>
8871         backupfile: initialize default suffix within the implementation
8872         * lib/backupfile.c (find_backup_file_name): Initialize the
8873         global variable here, to simplify usage, and to only call
8874         getenv() when needed.
8876 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
8878         futimens: remove FIXME for old Linux kernels
8879         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
8880         this in 2012" FIXME, like that for utimensat.
8882         utimensat: remove FIXME for old Linux kernels
8883         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
8884         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
8885         this in 2012" FIXME, by assuming the file system bug is absent
8886         unless demonstrated to be present.  We no longer need to worry
8887         about Linux kernel 2.6.32 when building with newer kernels.
8889 2016-10-16  Bruno Haible  <bruno@clisp.org>
8891         qsort_r: Fix macrology for platforms that lack the function.
8892         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
8893         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
8894         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
8895         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
8896         not exist.
8897         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
8898         the function exists.
8899         * modules/qsort_r: Add comments.
8901 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
8903         sys_types: fix Texinfo typos
8904         * doc/glibc-functions/gnu_dev_major.texi:
8905         * doc/glibc-functions/gnu_dev_makedev.texi:
8906         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
8908 2016-10-26  John David Anglin  <dave.anglin@bell.net>
8910         getprogname: port to HP-UX
8911         See Bug#24805.
8912         * lib/getprogname.c (getprogname) [__hpux]: Port.
8913         * tests/test-getprogname.c (STREQ) [__hpux]:
8914         Special-case for HP-UX limitations on program name length.
8916 2016-10-20  Bruno Haible  <bruno@clisp.org>
8918         Update doc about target platforms.
8919         * doc/gnulib-intro.texi (Target Platforms): Update list.
8921 2016-10-15  Bruno Haible  <bruno@clisp.org>
8923         opendir, readdir, closedir: Relicense under LGPLv2+.
8924         * modules/opendir (License): Change to LGPLv2+.
8925         * modules/readdir (License): Likewise.
8926         * modules/closedir (License): Likewise.
8928 2016-10-16  Bruno Haible  <bruno@clisp.org>
8930         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
8931         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
8932         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
8933         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
8934         HAVE_DECL_STRERROR_R.
8936 2016-10-16  Bruno Haible  <bruno@clisp.org>
8938         Make the 'argp' module work without the 'error' module.
8939         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
8941 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
8943         diffseq: restore TOO_EXPENSIVE heuristic
8944         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
8945         (Bug#24715).  The simplest solution is to restore the
8946         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
8947         using a higher threshold to avoid Bug#16848 on smaller files.
8948         * lib/diffseq.h (struct context): Restore member too_expensive.
8949         (struct partition): Restore members lo_minimal, hi_minimal.
8950         (diag, compareseq): Restore arg find_minimal.  All uses changed.
8951         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
8952         1993 to make 'diff' run faster (but not as well) on large inputs,
8953         but use a threshold of 4096 instead of the old 256.
8954         * lib/fstrcmp.c (strcmp_bounded):
8955         * lib/git-merge-changelog.c (compute_differences):
8956         Adjust to diffseq.h changes.
8958 2016-10-22  Bruno Haible  <bruno@clisp.org>
8960         iconv: Avoid compilation error when bootstrapping GNU libiconv.
8961         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
8962         declaration yet, define ICONV_CONST to empty.
8964 2016-10-15  Bruno Haible  <bruno@clisp.org>
8966         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
8967         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
8968         module.
8970 2016-10-16  Bruno Haible  <bruno@clisp.org>
8972         system-quote tests: Avoid compiler warning on AIX.
8973         * tests/test-system-quote-child.c (fopen): Redefine like the system's
8974         <stdio.h> does.
8976 2016-10-16  Bruno Haible  <bruno@clisp.org>
8978         Fix some "gcc -Wall" warnings.
8979         * tests/test-ffsl.c (main): Use variable x, not i.
8980         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
8981         freopen.
8982         * tests/test-sethostname1.c (main): Explicitly ignore the return value
8983         of sethostname.
8985 2016-10-16  Bruno Haible  <bruno@clisp.org>
8987         gnulib-tool: Make --create-testdir on all modules work again.
8988         * gnulib-tool (func_create_testdir): Don't include the
8989         non-recursive-gnulib-prefix-hack module.
8991 2016-10-21  Daiki Ueno  <ueno@gnu.org>
8993         libunistring: change the maintainer to 'all'
8994         * modules/gen-uni-tables, modules/libunistring:
8995         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
8996         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
8997         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
8998         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
8999         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
9000         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
9001         * modules/uniwidth/*: Change the maintainer to 'all'.
9003 2016-10-16  Bruno Haible  <bruno@clisp.org>
9005         Simplify "configure: checking ..." messages.
9006         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
9007         AC_MSG_NOTICE.
9008         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
9010 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
9012         quotearg-tests: pacify gcc -Wall
9013         Problem reported by Bruno Haible in:
9014         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
9015         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
9016         * tests/test-quotearg.h: ... from here.
9018 2016-10-20  Pádraig Brady  <P@draigBrady.com>
9020         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
9021         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
9022         Needed on Centos <= 4.
9024 2016-10-20  Jim Meyering  <meyering@fb.com>
9026         printf.m4: fix a bug in detecting printf %j support
9027         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
9028         uintmax_t is defined in neither stdint.h nor inttypes.h.
9029         Before, this macro might have mistakenly set
9030         gl_cv_func_printf_sizes_c99=yes on such a system.
9031         Spotted by Zev Weiss.
9033 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
9035         sched: substitute HAVE_SYS_CDEFS_H too
9036         Problem reported by Tom G. Christensen in:
9037         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
9038         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
9039         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
9041 2016-10-19  Pádraig Brady  <P@draigBrady.com>
9043         quotearg: never write beyond the returned length
9044         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
9045         scan of the string when we initially encounter a single quote when
9046         shell quoting, so that if we then switch to a more concise quoting method
9047         we will not have written beyond that returned length.
9048         This is significant for sh-quote, which has separate routines
9049         to determine the length and do the actual quoting.
9050         * tests/test-quotearg.h: Reinstate the buffer bounds checking
9051         now that we never write more than the returned length.
9053 2016-10-18  Bruno Haible  <bruno@clisp.org>
9055         getprogname tests: Avoid failure in packages that use libtool.
9056         * tests/test-getprogname.c (main): Strip "lt-" prefix.
9057         Based on a patch by Jim Meyering.
9059 2016-10-16  Bruno Haible  <bruno@clisp.org>
9061         getprogname: Fix test failure on Cygwin. Comments.
9062         * lib/getprogname.h: Add comments.
9063         * lib/getprogname.c: Add comments. Fix #elif indentation.
9064         * tests/test-getprogname.c (main): On Cygwin, expect a result without
9065         ".exe" suffix.
9067 2016-10-16  Bruno Haible  <bruno@clisp.org>
9069         Make sure the libunistring detection rejects older versions with a
9070         known bug.
9071         * modules/unistr/u8-strtok (configure.ac): Bump required version.
9072         * modules/unistr/u16-strtok (configure.ac): Likewise.
9073         * modules/unistr/u32-strtok (configure.ac): Likewise.
9075 2016-10-18  Bruno Haible  <bruno@clisp.org>
9077         sh-quote, system-quote: revert regression of unit test.
9078         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
9079         * tests/test-system-quote-main.c (check_one): Likewise.
9081 2016-10-16  Pádraig Brady  <P@draigBrady.com>
9083         quotearg: fix stale tests
9084         * tests/test-quotearg.c [locale_results]: Add the missing str7
9085         entries to the expected results.
9086         * tests/test-system-quote-main.c (check_one): Don't enforce that we
9087         don't write beyond the returned length, since that's no longer the
9088         case if we switch to a more concise quoting style.
9089         * tests/test-sh-quote.c (check_one): Likewise.
9090         (main): Adjust for the new more concise quoting style.
9091         Reported by Bruno Haible.
9093 2016-10-16  Jim Meyering  <meyering@fb.com>
9095         non-recursive-gnulib-prefix-hack: fix inconsequential typo
9096         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
9097         to "$1".  This macro is always invoked with $1 == lib.
9098         Spotted by Bruno Haible
9100 2016-10-16  Bruno Haible  <bruno@clisp.org>
9102         Fix a test crash.
9103         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
9104         fails.
9106 2016-10-16  Pádraig Brady  <P@draigBrady.com>
9108         test-limits-h: suppress -Woverlength-strings
9109         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
9111 2016-10-15  Bruno Haible  <bruno@clisp.org>
9113         gettime, timespec, utimens: Relicense under LGPL.
9114         * modules/gettime (License): Change to LGPL.
9115         * modules/timespec (License): Likewise.
9116         * modules/utimens (License): Likewise.
9118 2016-10-14  Bruno Haible  <bruno@clisp.org>
9119             Pádraig Brady  <P@draigBrady.com>
9121         canonicalize-lgpl: Support the case path_max > INT_MAX.
9122         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
9123         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
9125 2016-10-13  Jim Meyering  <meyering@fb.com>
9127         getprogname: IBM z/OS: avoid NULL-dereference
9128         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
9129         upon strdup failure.
9131 2016-10-12  Jim Meyering  <meyering@fb.com>
9133         test-stdint: use _GL_VERIFY rather than "verify" for some tests
9134         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
9135         and an abbreviated diagnostic rather than verify with the full one,
9136         because the full-length strings would evoke warnings from gcc with
9137         -Woverlength-strings.
9139 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
9141         stdint: port SIZE_MAX to glibc s390
9142         Problem reported by Eric Blake in:
9143         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
9144         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
9145         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
9146         correct type, if possible.
9148 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
9150         getprogname: port to IBM z/OS
9151         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
9153 2016-10-11  Jim Meyering  <meyering@fb.com>
9155         maint: remove stray space after "." in AC_DEFINE comment.
9156         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
9157         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
9159 2016-10-05  Jim Meyering  <meyering@fb.com>
9161         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
9162         * lib/long-options.c (parse_long_options): Add a break statement
9163         to avoid this new warning/failure:
9164         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
9165           --create-testdir --dir=/t/x --with-tests --test long-options
9166         ../../gllib/long-options.c: In function 'parse_long_options':
9167         ../../gllib/long-options.c:66:12: error: this statement may \
9168           fall through [-Werror=implicit-fallthrough]
9169                    (*usage_func) (EXIT_SUCCESS);
9170                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
9172 2016-10-05  Jim Meyering  <meyering@fb.com>
9174         utimecmp: avoid new GCC 7 warning from -Wbool-operation
9175         Testing this module would fail when using GCC 7 like this:
9176         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
9177           --dir=/tmp/x --with-tests --test utimecmp
9178         ../../gllib/utimecmp.c: In function ‘utimecmp’:
9179         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
9180           [-Werror=bool-operation]
9181                          time_t s = src_s & ~ (res == 2 * BILLION);
9182                                             ^
9183         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
9184           [-Werror=bool-operation]
9185                src_s &= ~ (res == 2 * BILLION);
9186                         ^
9187         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
9188         Instead, make it explicit that we intend to apply it to 0 or 1.
9190 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
9192         dfa: save memory for states
9193         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
9194         states if dfa has a lot of caches.
9196 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
9198         wchar, wctype-h: fix for MinGW 3.22.2
9199         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
9200         special invocation, to fix issues with MinGW 3.22.2 wchar.h
9201         when included from <string.h>.
9202         * lib/wctype.in.h [__MINGW32__]: Add special invocation
9203         convention for MinGW 3.22.2, to solve issues with their
9204         wctype.h when included from <ctype.h>.
9206 2016-10-05  Jim Meyering  <meyering@fb.com>
9208         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
9209         * lib/long-options.c (parse_long_options): Add a break statement
9210         to avoid this new warning/failure:
9211         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
9212           --create-testdir --dir=/t/x --with-tests --test long-options
9213         ../../gllib/long-options.c: In function ‘parse_long_options’:
9214         ../../gllib/long-options.c:66:12: error: this statement may \
9215           fall through [-Werror=implicit-fallthrough]
9216                    (*usage_func) (EXIT_SUCCESS);
9217                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
9219         utimecmp: avoid new GCC 7 warning from -Wbool-operation
9220         Testing this module would fail when using GCC 7 like this:
9221         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
9222           --dir=/tmp/x --with-tests --test utimecmp
9223         ../../gllib/utimecmp.c: In function ‘utimecmp’:
9224         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
9225           [-Werror=bool-operation]
9226                          time_t s = src_s & ~ (res == 2 * BILLION);
9227                                             ^
9228         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
9229           [-Werror=bool-operation]
9230                src_s &= ~ (res == 2 * BILLION);
9231                         ^
9232         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
9233         Instead, make it explicit that we intend to apply it to 0 or 1.
9235 2016-10-03  Pádraig Brady  <P@draigBrady.com>
9237         quotearg: minimize shell quoting using double quotes
9238         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
9239         quote in encountered then use double quotes (c style quoting)
9240         when possible, as it simplifies the quoting.
9241         * tests/test-quotearg-simple.c: Add test cases.
9242         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
9243         for the fact we now may write beyond the returned length.
9245 2016-10-02  Jim Meyering  <meyering@fb.com>
9247         vasnprintf.c: avoid spurious warning from GCC 7
9248         The presence of cpp directives renders this "FALLTHROUGH" comment
9249         ineffective, so does not suppress the -Wimplicit-fallthrough warning
9250         from GCC 7 built from git on 2016-10-02.
9251         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
9252         directives, so that it takes effect once again.  This is clearly
9253         not a proper change, and I will revert it once this bug is fixed:
9254         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
9256 2016-10-01  Jim Meyering  <meyering@fb.com>
9258         getprogname: correct the test for a __progname variable
9259         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
9260         and AC_LINK_IFELSE to check for a global __progname.  If found,
9261         define HAVE_VAR___PROGNAME.
9262         * lib/getprogname.c (getprogname): Reflect the new name of the
9263         feature- checked preprocessor symbol:
9264         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
9266 2016-09-28  Jim Meyering  <meyering@fb.com>
9268         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
9269         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
9270         fall-through case with a /* fallthrough */ comment.
9272         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
9273         * lib/dfa.c (dfassbuild): Mark the end of this case with a
9274         /* fallthrough */ comment.
9276         getprogname: avoid __progname vs program_invocation_short_name pitfall
9277         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
9278         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
9279         not with Fedora 24's glibc-2.23.1-10.
9280         * lib/getprogname.c (__progname): Move this declaration down...
9281         (getprogname): ... into the #elif block where used, and make it
9282         explicitly "extern".
9284         getprogname: port to OpenBSD 5.1
9285         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
9286         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
9287         * modules/getprogname (configure.ac): Move most of this code...
9288         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
9289         increment serial number, and add a test for __progname.
9290         https://bugs.gnu.org/24562
9291         Reported by Nelson H. F. Beebe.
9293 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
9295         sched: port to GCC 6.2.1 on macOS Sierra
9296         Problem reported by Denis Davydov in:
9297         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
9298         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
9299         Include <sys/cdefs.h> before <sched.h>.
9300         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
9301         so that we needn’t worry about the sched.h include bug here.
9302         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
9303         and include it before <sched.h> if it exists, when
9304         checking for <sched.h>.
9306         tests/init.sh: port Alpine fix to AIX 7.1
9307         * tests/init.sh (compare_): When attempting to use diff -U3,
9308         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
9309         diff -u not outputting a space after leading '+', as the users
9310         of 'compare' should not be that picky about its output format.
9311         In the AIX 7.1 case, return with diff exit status (or with 2 if
9312         trouble), instead of some random nonzero exit status.
9313         * tests/test-init.sh (test_compare): Remove space after leading
9314         '+', so that AIX 7.1 'diff' passes the test.
9316 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
9318         nl_langinfo: pacify GCC
9319         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
9320         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
9322         stdint: also set GL_GENERATE_LIMITS_H
9323         Problem reported by Jim Meyering in:
9324         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
9325         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
9327         limits-h, stdint: Don't assume extensions, fix typo
9328         * m4/limits-h.m4 (gl_LIMITS_H):
9329         * m4/stdint.m4 (gl_STDINT_H):
9330         Don't assume AC_USE_SYSTEM_EXTENSIONS.
9331         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
9332         reported by Jim Meyering in:
9333         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
9335 2016-09-21  Jim Meyering  <meyering@fb.com>
9337         getprogname: port to AIX
9338         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
9339         and strdup to obtain a short program name string.  Using code from
9340         Bruno Haible and an idea from Bastien ROUCARIÈS, in
9341         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
9342         Assaf Gordon reported that this new file would fail to compile on
9343         AIX-7.1 32bit.
9345 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
9347         extensions: fix typo in comment
9348         * m4/extensions.m4: Sync from Autoconf master.
9350         stdint: support new _WIDTH macros
9351         * doc/posix-headers/stdint.texi: Document this.
9352         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
9353         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
9354         support for INTMAX_WIDTH, etc. as well as for support for just C99.
9355         * modules/stdint (Depends-on): Add limits-h.
9356         (Makefile.am): Substitute HAVE_C99_STDINT_H.
9357         * modules/stdint-tests (Depends-on): Add extensions, so that
9358         INTMAX_MAX etc. are defined.
9359         * tests/test-stdint.c: Verify the new macros.
9361         limits-h: new module
9362         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
9363         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
9364         * doc/posix-headers/limits.texi: Document new module.
9365         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
9366         * modules/limit-h-tests, tests/test-limits-h.c: New files.
9368         stdio: don't redefine __USE_MINGW_ANSI_STDIO
9369         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
9370         if it is already defined.  Apparently GNU Emacs relies on this.  See:
9371         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
9373 2016-09-15  Eric Blake  <eblake@redhat.com>
9375         sys_types: avoid glibc 2.25 warnings about major()
9376         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
9377         older autoconf.
9378         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
9379         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
9380         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
9381         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
9383         mountlist: include sysmacros.h for glibc
9384         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
9385         AC_HEADER_MAJOR.
9386         * lib/mountlist.c (includes): Use correct headers.
9388 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
9390         extensions: port to more ISO C TSes
9391         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
9392         master, to add support for more recent ISO C TRs and TSes.
9394 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9396         intprops: new macro TYPE_WIDTH
9397         * lib/intprops.h (TYPE_WIDTH): New macro.
9398         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
9399         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
9400         * lib/parse-datetime.y (parse_datetime2):
9401         Use it.
9403         extensions: port to recent ISO C TRs
9404         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
9405         Sync from Autoconf master, to add support for recent ISO C TRs.
9406         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
9407         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
9408         the MinGW option is not an extension.
9410 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
9412         dfa: port to Solaris 9
9413         Problems reported by Tom G. Christensen in:
9414         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
9415         * modules/dfa (Depends-on): Add isblank.
9416         * modules/dfa-tests (dfa_match_aux_LDADD):
9417         Rename from test_stat_LDADD, to fix typo.
9418         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
9420 2016-09-10  Jim Meyering  <meyering@fb.com>
9422         strverscmp: avoid link failure on OS X
9423         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
9424         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
9426 2016-08-16  Jim Meyering  <meyering@fb.com>
9428         dfa: new module, importing grep's DFA matcher
9429         Since grep's DFA matcher is now being used by two gnulib-enabled
9430         projects, grep and sed, it makes sense to version-control its
9431         sources and unit tests in one place: here.
9432         * modules/dfa: New module.
9433         * modules/dfa-tests: New file.
9434         * lib/dfa.c: New file, from grep.
9435         * lib/dfa.h: Likewise.
9436         * lib/localeinfo.c: Likewise.
9437         * lib/localeinfo.h: Likewise.
9438         * tests/dfa-match-aux.c: Likewise.
9439         * tests/dfa-invalid-char-class.sh: Likewise.
9440         * tests/dfa-match.sh: Likewise, with minor changes.
9441         * MODULES.html.sh (Misc): Add "dfa" to this list.
9443 2016-09-09  Jim Meyering  <meyering@fb.com>
9445         getprogname-tests: don't depend on assert-h
9446         * modules/getprogname-tests (Depends-on): Remove assert-h.
9447         It was not needed, and in fact would cause build failure for
9448         coreutils on some systems.  Reported by Assaf Gordon in https:
9449         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
9451 2016-09-07  Jim Meyering  <meyering@fb.com>
9453         getprogname-tests: work also when EXEEXT is nonempty
9454         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
9455         * tests/test-getprogname.c (main): Use it.
9456         Suggested by Gisle Vanem.
9458 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
9460         getprogname: fix errors in previous change
9461         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
9462         s/program_invocation_name/base/
9463         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
9465 2016-09-08  Pádraig Brady  <P@draigBrady.com>
9467         parse-datetime: restrict debug output to input string
9468         * lib/parse-datetime.y (parse_datetime2): If we parse
9469         all of the input but determine it's invalid, ensure
9470         we don't output the now invalid input pointer.
9471         This issue was seen with `date -d 'now +1'`.
9473 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
9475         flexmember: new macro FLEXALIGNOF
9476         * lib/flexmember.h: Include <stddef.h>, for offsetof.
9477         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
9478         this macro.  Update comments.
9480 2016-09-07  Jim Meyering  <meyering@fb.com>
9482         getprogname: port to systems with __argv (mingw, msvc)
9483         * lib/getprogname.c (getprogname): Include "dirname.h" and use
9484         last_component: more general than open coding it with hard-coded "/".
9485         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
9486         * modules/getprogname (Depends-on): Add dirname-lgpl.
9487         (configure.ac): Check for __argv in <stdlib.h>.
9488         * modules/getprogname-tests: New file.
9489         * tests/test-getprogname.c: New file.
9490         Suggested by Gisle Vanem in
9491         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
9493 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
9495         flexmember: port better to GCC + valgrind
9496         With a char[] flexible array member in a struct with nontrivial
9497         alignment, GCC-generated code can access past the end of the
9498         array, because GCC assumes there are padding bytes to get the
9499         struct aligned.  So the common idiom of malloc (offsetof (struct
9500         s, m), n) does not properly allocate an n-byte trailing member, as
9501         malloc’s argument should be the next multiple of alignof (struct s).
9502         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
9503         Although C11 apparently permits this GCC optimization (i.e., there
9504         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
9505         See the thread containing:
9506         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
9507         * lib/flexmember.h: New file.
9508         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
9509         * lib/localename.c, lib/time_rz.c:
9510         Include flexmember.h.
9511         * lib/fnmatch_loop.c (struct patternlist):
9512         * lib/localename.c (struct hash_node):
9513         Use FLEXIBLE_ARRAY_MEMBER.
9514         * lib/fnmatch_loop.c (EXT):
9515         * lib/fts.c (fts_alloc):
9516         * lib/glob.c (glob_in_dir):
9517         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
9518         * lib/localename.c (gl_lock_define_initialized):
9519         * lib/time_rz.c (tzalloc):
9520         Use FLEXSIZEOF instead of offsetof.
9521         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
9522         Check that the size of the struct can be taken.
9523         * modules/flexmember (Files): Add lib/flexmember.h.
9524         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
9525         Add flexmember.
9527 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
9529         getprogname: port to Solaris 10
9530         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
9531         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
9532         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
9534         stdalign: correct mistake in alignof doc
9535         Problem reported by Joseph Myers in:
9536         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
9537         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
9538         alignof(S) where S is a structure containing a flexible array
9539         member.  The Gnulib substitute does not support this, but C11 does.
9541 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
9543         main.mk: remove sc_program_name, since there is no more need to
9544         use set_program_name in tools (getprogname is enough for most
9545         of the cases).
9546         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
9547         * top/maint.mk (sc_program_name): Remove.
9549 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
9551         Port tests away from progname, since modules that need the
9552         program name already depend on getprogname.
9553         * modules/acl-tests (Depends-on): Remove progname.
9554         * modules/argmatch (Depends-on): Likewise.
9555         * modules/argmatch-tests (Depends-on): Likewise.
9556         * modules/argp-tests (Depends-on): Likewise.
9557         * modules/argp-version-etc-tests (Depends-on): Likewise.
9558         * modules/array-list-tests (Depends-on): Likewise.
9559         * modules/array-oset-tests (Depends-on): Likewise.
9560         * modules/avltree-list-tests (Depends-on): Likewise.
9561         * modules/avltree-oset-tests (Depends-on): Likewise.
9562         * modules/avltreehash-list-tests (Depends-on): Likewise.
9563         * modules/carray-list-tests (Depends-on): Likewise.
9564         * modules/copy-file-tests (Depends-on): Likewise.
9565         * modules/exclude-tests (Depends-on): Likewise.
9566         * modules/fchownat-tests (Depends-on): Likewise.
9567         * modules/fdopendir-tests (Depends-on): Likewise.
9568         * modules/filenamecat-tests (Depends-on): Likewise.
9569         * modules/fstatat-tests (Depends-on): Likewise.
9570         * modules/fstrcmp-tests (Depends-on): Likewise.
9571         * modules/linked-list-tests (Depends-on): Likewise.
9572         * modules/linkedhash-list-tests (Depends-on): Likewise.
9573         * modules/mkdirat-tests (Depends-on): Likewise.
9574         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
9575         * modules/nonblocking-socket-tests (Depends-on): Likewise.
9576         * modules/obstack-printf-tests (Depends-on): Likewise.
9577         * modules/openat-tests (Depends-on): Likewise.
9578         * modules/parse-datetime-tests (Depends-on): Likewise.
9579         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
9580         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
9581         * modules/quotearg-simple-tests (Depends-on): Likewise.
9582         * modules/quotearg-tests (Depends-on): Likewise.
9583         * modules/rbtree-list-tests (Depends-on): Likewise.
9584         * modules/rbtree-oset-tests (Depends-on): Likewise.
9585         * modules/rbtreehash-list-tests (Depends-on): Likewise.
9586         * modules/spawn-pipe-tests (Depends-on): Likewise.
9587         * modules/system-quote-tests (Depends-on): Likewise.
9588         * modules/uniname/uniname-tests (Depends-on): Likewise.
9589         * modules/uninorm/nfc-tests (Depends-on): Likewise.
9590         * modules/uninorm/nfd-tests (Depends-on): Likewise.
9591         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
9592         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
9593         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
9594         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
9595         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
9596         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
9597         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
9598         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
9599         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
9600         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
9601         * modules/unlinkat-tests (Depends-on): Likewise.
9602         * modules/version-etc-tests (Depends-on): Likewise.
9603         * modules/xalloc-die-tests (Depends-on): Likewise.
9604         * modules/xmemdup0-tests (Depends-on): Likewise.
9605         * modules/xprintf-posix-tests (Depends-on): Likewise.
9606         * modules/xvasprintf-tests (Depends-on): Likewise.
9607         * tests/test-argmatch.c: Do not include progname.h.
9608         (main) Stop calling set_program_name.
9609         * tests/test-argp-version-etc.c: Likewise.
9610         * tests/test-argp.c: Likewise.
9611         * tests/test-argv-iter.c: Likewise.
9612         * tests/test-array_list.c: Likewise.
9613         * tests/test-array_oset.c: Likewise.
9614         * tests/test-avltree_list.c: Likewise.
9615         * tests/test-avltree_oset.c: Likewise.
9616         * tests/test-avltreehash_list.c: Likewise.
9617         * tests/test-carray_list.c: Likewise.
9618         * tests/test-copy-acl.c: Likewise.
9619         * tests/test-copy-file.c: Likewise.
9620         * tests/test-exclude.c: Likewise.
9621         * tests/test-fchownat.c: Likewise.
9622         * tests/test-fdopendir.c: Likewise.
9623         * tests/test-filenamecat.c: Likewise.
9624         * tests/test-fstatat.c: Likewise.
9625         * tests/test-fstrcmp.c: Likewise.
9626         * tests/test-linked_list.c: Likewise.
9627         * tests/test-linkedhash_list.c: Likewise.
9628         * tests/test-mkdirat.c: Likewise.
9629         * tests/test-nonblocking-pipe-main.c: Likewise.
9630         * tests/test-nonblocking-socket-main.c: Likewise.
9631         * tests/test-obstack-printf.c: Likewise.
9632         * tests/test-openat.c: Likewise.
9633         * tests/test-parse-datetime.c: Likewise.
9634         * tests/test-pipe-filter-gi1.c: Likewise.
9635         * tests/test-pipe-filter-gi2-main.c: Likewise.
9636         * tests/test-pipe-filter-ii1.c: Likewise.
9637         * tests/test-pipe-filter-ii2-main.c: Likewise.
9638         * tests/test-quotearg-simple.c: Likewise.
9639         * tests/test-quotearg.c: Likewise.
9640         * tests/test-rbtree_list.c: Likewise.
9641         * tests/test-rbtree_oset.c: Likewise.
9642         * tests/test-rbtreehash_list.c: Likewise.
9643         * tests/test-sameacls.c: Likewise.
9644         * tests/test-set-mode-acl.c: Likewise.
9645         * tests/test-spawn-pipe-main.c: Likewise.
9646         * tests/test-system-quote-main.c: Likewise.
9647         * tests/test-unlinkat.c: Likewise.
9648         * tests/test-version-etc.c: Likewise.
9649         * tests/test-xalloc-die.c: Likewise.
9650         * tests/test-xfprintf-posix.c: Likewise.
9651         * tests/test-xmemdup0.c: Likewise.
9652         * tests/test-xprintf-posix.c: Likewise.
9653         * tests/test-xvasprintf.c: Likewise.
9654         * tests/uniname/test-uninames.c: Likewise.
9655         * tests/uninorm/test-u32-nfc-big.c: Likewise.
9656         * tests/uninorm/test-u32-nfd-big.c: Likewise.
9657         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
9658         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
9659         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
9660         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
9661         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
9662         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
9663         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
9664         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
9665         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
9666         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
9667         * tests/test-c-stack.c: (program_name): Do not define.
9668         (main): Do not set program_name.
9669         * tests/test-closein.c: Likewise.
9670         * tests/test-xstrtol.c: Likewise.
9671         * tests/test-yesno.c: Likewise.
9673 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
9675         Port modules to use getprogname explicitly, instead of requiring
9676         progname to be used (or program_name to be provided).
9677         * lib/argmatch.c: Do not include progname.h.
9678         [TEST] (program_name): Do not define.
9679         [TEST] (main): Call getprogname instead of using program_name.
9680         * lib/c-stack.c: Do not include progname.h.
9681         (program_name): Do not define.
9682         (die): Call getprogname instead of using program_name.
9683         * lib/chdir-long.c: Do not include progname.h.
9684         [TEST_CHDIR] (main): Do not set program_name.
9685         * lib/error.c [!_LIBC]: Include progname.h.
9686         [!_LIBC] (program_name): Define using getprogname.
9687         * lib/euidaccess.c: Do not include progname.h.
9688         [TEST] (main): Do not set program_name.
9689         * lib/git-merge-changelog.c: Include getprogname.h instead of
9690         progname.h.
9691         (usage): Call getprogname instead of using program_name.
9692         (main): Likewise.  Stop calling set_program_name.
9693         * lib/group-member.c: Do not include progname.h.
9694         [TEST] (main): Do not set program_name.
9695         * modules/argmatch (Depends-on): Add getprogname.
9696         * modules/c-stack (Depends-on): Likewise.
9697         * modules/error (Depends-on): Likewise.
9698         * modules/git-merge-changelog (Depends-on): Likewise.
9699         Also remove progname.
9701 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
9703         * NEWS: Document the deprecation of the 'progname' module.
9705 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
9707         getprogname: new module
9708         This provides a LGPL module for getting the name of the current
9709         program, using the same API found on *BSD systems.
9710         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
9711         * modules/getprogname: New files.
9712         * MODULES.html.sh (Misc): Add getprogname.
9714 2016-09-02  Jim Meyering  <meyering@fb.com>
9716         manywarnings: add -fno-common
9717         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
9718         to the list.  Quoting the manual, "Compiling with -fno-common is
9719         useful on targets for which it provides better performance, or if
9720         you wish to verify that the program will work on other systems that
9721         always treat uninitialized variable declarations this way [putting
9722         it in the data section]."  If diffutils had been using this sooner,
9723         it would have prevented this duplicate declaration issue:
9724         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
9726 2016-08-31  Simon Josefsson  <simon@josefsson.org>
9728         parse-datetime: Fix typo.
9729         * lib/parse-datetime.y (parse_datetime2): Fix typo.
9731 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
9733         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
9734         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
9735         GCC 5 and 6 that have __builtin_sub_overflow but not
9736         __builtin_sub_overflow_p.  With the recent changes, these
9737         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
9738         implementation than with INT_SUBTRACT_OVERFLOW implementation,
9739         since the former needs just one runtime comparison whereas the
9740         latter needs two.
9742         strverscmp: sync with glibc
9743         Although this doesn't exactly synchronize with glibc
9744         byte-for-byte, it makes the code behave the same as glibc.
9745         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
9746         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
9747         difference shouldn't matter in practical use.  All uses changed
9748         back to isdigit.
9749         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
9750         (next_state): Now unsigned char array; redo elements.
9751         (result_type): Now signed char array; redo elements.
9752         (__strverscmp): Fix glibc bug 9913 by using new states.
9753         * tests/test-strverscmp.c (main): Test glibc bug 9913.
9755 2016-08-29  Jim Meyering  <meyering@fb.com>
9757         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
9758         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
9759         similarly to how it was done to intprops.h.
9761 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
9763         intprops.h: port recent changes to GCC 6.2.0
9764         * lib/intprops.h (__has_builtin): Move earlier.
9765         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
9766         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
9767         the last argument can be null.  All uses changed.
9768         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
9769         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
9770         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
9771         and it's not clear which GCC versions it works for.
9772         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
9773         its definiens.
9775         intprops.h: use __typeof__ with GCC 7
9776         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
9777         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
9778         This avoids computing the expression's value (which might overflow!).
9780 2016-08-29  Jim Meyering  <meyering@fb.com>
9782         intprops.h, xalloc-oversized.h: work with gcc 7
9783         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
9784         __builtin_mul_overflow each accept a NULL pointer as the third
9785         argument.  However in gcc 7, that is no longer accepted.
9786         Instead, one must use the "_p"-suffixed names, with which, the
9787         third parameter is no longer a pointer.
9788         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
9789         the definition: not true for gcc 7 and subsequent.
9790         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
9791         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
9792         Provide new definitions for gcc 7 and subsequent.
9793         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
9794         that works with gcc-7.
9796         intprops.h: fix missing-backslash problems
9797         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
9798         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
9800 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
9802         intprops: fix paren typo on old platforms
9803         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
9804         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
9805         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
9806         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
9807         && !defined LLONG_MAX]:
9808         Remove stray paren.
9810         intprops: port to OpenVMS
9811         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
9812         * doc/posix-headers/limits.texi: Document the problem.
9813         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
9814         Define if not already defined.
9816 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
9818         parse-datetime: improve debug implementation
9819         Follow-up to commit 12ad79069 ("add optional debug printing").
9820         Improve parse-datetime's debug implementation: remove macros,
9821         replace global debug flag variable with a function parameter,
9822         use nstrftime for formatting.
9823         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
9824         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
9825         (parse_datetime2): New function, accepts 'flags' parameter, supporting
9826         debug flag. Existing interface 'parse_datetime' left unmodified.
9827         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
9828         (struct parser_control): add 'parse_datetime_debug' member variable.
9829         (parse_datetime): Call new function 'parse_datetime2' without debug.
9830         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
9831         pc.parse_datetime_debug variable as needed.
9832         (to_year): Accept new flags parameter, instead of using global variable.
9833         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
9834         use struct 'debug' variable instead of global variable.
9835         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
9836         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
9837         correspnding functions directly instead of using macros.
9838         * modules/parse-datetime: Add gnulib's strftime module.
9840 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
9842         c-strcase-tests: port to EBCDIC
9843         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
9844         which assume ASCII encoding semantics to run only in ASCII
9845         mode, as they fail in EBCDIC.
9847         sigpipe-tests: fix typo
9848         * tests/test-sigpipe.sh: C, not B.
9850 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
9852         canonicalize-lgpl: fix errno after malloca fails
9853         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
9854         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
9855         * lib/canonicalize-lgpl.c (__realpath):
9856         Don't assume malloca sets errno on failure.
9858 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
9860         strtod: port errno handling to z/OS
9861         * lib/strtod.c (strtod): Save and restore errno more reliably.
9863 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
9865         strtod: port to z/OS
9866         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
9867         implementation.
9869 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
9871         strtod: port to z/OS
9872         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
9873         implementation.
9875         regex, string: rename to avoid '__string'
9876         * lib/regex.h, lib/string.in.h: Do not use the identifier
9877         '__string', as it is effectively reserved by string.h on z/OS.
9879         c-strcase-tests, wcwidth-tests: depend on c-ctype
9880         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
9881         Add c-ctype.
9883 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
9885         thread: port to z/OS
9886         * lib/glthread/thread.c, lib/glthread/thread.h:
9887         Rudimentary gl_thread support for z/OS.
9889         maint: port tests to z/OS errno behavior
9890         * tests/test-nonblocking-reader.h:
9891         * tests/test-nonblocking-writer.h:
9892         Accommodate z/OS errno code preferences. (I believe this should
9893         still be within spec; IBM is good at following the letter if not
9894         the spirit of such things.)
9896         maint: preprocessor changes to support z/OS
9897         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
9898         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
9899         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
9900         * tests/test-nonblocking-pipe.h:
9902         fclose, strstr-simple, wchar: port to z/OS
9903         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
9904         Changes to the Autoconf M4 code to support z/OS.  Note that
9905         fclose() is broken in a different way on z/OS than it is on other
9906         systems, thus the special-case in fclose.m4.
9908         iconv_open-utf-tests, iconv-tests: port to EBCDIC
9909         * tests/test-iconv-utf.c, tests/test-iconv.c:
9910         Added appropriately conditional #pragmas so that the test strings
9911         in test-iconv-utf.c are correctly interpreted in ASCII instead of
9912         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
9913         addressed in a more portable way by simply rewriting all the ASCII
9914         literal characters as octal escapes, but then you would lose the
9915         partial readability that the strings have now. Also, iconv_open()
9916         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
9918         c-strcase-tests, wcwidth-tests: port to EBCDIC
9919         * tests/test-c-strcasecmp.c: Include c-ctype.h.
9920         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
9921         * tests/test-wcwidth.c: Likewise.
9923 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
9925         stdbool: don't require _Bool for C++
9926         Problem reported by David Seifert in:
9927         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
9928         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
9929         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
9930         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
9931         stricter about checking that bool and _Bool are compatible in C.
9933 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
9935         getdelim: remove dependency on realloc-posix
9936         * lib/canonicalize-lgpl.c (alloc_failed)
9937         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
9938         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
9939         Use __set_errno where needed, for consistency.
9940         * lib/getdelim.c (alloc_failed): New function.
9941         (getdelim): Use it.
9943 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
9945         parse-datetime: add optional debug printing
9946         Print parsing information, warnings, and errors to stderr.
9947         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
9948         * lib/parse-datetime.y:
9949         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
9950         (PROGRESS*): Same as DEBUG, for progress reporting.
9951         (dbg_printf): Print message to stderr, with 'date' prefix.
9952         (struct parser_control): Add 'debug_*_seen' variables.
9953         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
9954         (debug_print_current_time, debug_print_relateive_time): Prints the
9955         current/relative date/time value of parser_control.
9956         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
9957         (to_year): Warn about 2-digit year parsing.
9958         (yylex):   Warn about unrecognized words.
9959         (get_effective_timezone): Returns current timezone in minutes.
9960         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
9961         clearly and unambigiously as possible.
9962         (debug_mktime_not_ok): Print detailed information about failed
9963         date/time values.
9964         (parse_datetime): Add DEBUG messages for failures, warnings. Add
9965         PROGRESS messages for status messages.
9966         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
9968 2016-08-06  Jim Meyering  <meyering@fb.com>
9970         tests/init.sh: exclude dash with bad "local" semantics
9971         * tests/init.sh (gl_shell_test_script_): Add a function to
9972         eliminate a shell like "dash" (unlike bash, zsh) that has
9973         surprising/risky "local var='...'" semantics.  Inspired by
9974         the problem and discussion in https://bugs.gnu.org/24116#11.
9976 2016-08-02  Ján Tomko  <jtomko@redhat.com>
9978         maint.mk: expand the prohibit_doubled_word regex
9979         This check has a static list of words that are checked for
9980         repetitions.  Expand it before running the perl script to
9981         avoid using expensive captures.  This decreases the cost
9982         for libvirt from 1.66s to 0.66s.
9983         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
9984         (sc_prohibit_doubled_word): Use it.
9986 2016-07-26  Ján Tomko  <jtomko@redhat.com>
9988         useless-if-before-free: skip non-matching lines early
9989         * build-aux/useless-if-before-free: First match each line with the
9990         simple/quick /\bif\b/ and reject if there is no match. This often
9991         saves the cost of the much more involved regular expression.
9992         For libvirt, this decreases the cost from 1.44s to 1.02s.
9994 2016-07-26  Ján Tomko  <jtomko@redhat.com>
9996         maint.mk: speed up sc_po_check
9997         sc_po_check would skip files based on their names, or on the
9998         existence of files with derived names. Rewrite it to use perl
9999         instead of shell to make the check faster.
10000         * top/maint.mk (perl_translatable_files_list_): Define.
10001         (sc_po_check): Use it.
10003 2016-07-30  Ján Tomko  <jtomko@redhat.com>
10005         maint.mk: speed up require_config_h_first
10006         Instead of spawning three processes per file,
10007         rewrite the check in perl and run it once for all the files.
10008         * top/maint.mk (perl_config_h_first_): Define.
10009         (sc_require_config_h_first): Use it in place of shell code.
10011 2016-07-26  Ján Tomko  <jtomko@redhat.com>
10013         maint.mk: speed up sc_po_check
10014         sc_po_check would skip files based on their names, or on the
10015         existence of files with derived names. Rewrite it to use perl
10016         instead of shell to make the check faster.
10017         * top/maint.mk (perl_translatable_files_list_): Define.
10018         (sc_po_check): Use it.
10020 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
10022         obstack: pacify GCC 6 with -Wnull-dereference
10023         Problem reported by Assaf Gordon in:
10024         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
10025         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
10026         Declare with __attribute_noreturn__.
10027         * lib/obstack.h (__attribute_noreturn__): New macro.
10029 2016-07-13  Eric Blake  <eblake@redhat.com>
10031         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
10032         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
10033         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
10035 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
10037         doc: mention glibc SSIZE_MAX buglet
10038         * doc/posix-headers/limits.texi (limits.h): Document the bug.
10040 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
10042         printf-posix: Fix mingw build
10043         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
10044         expression for detecting C symbol prefixes but forgot to qoute square
10045         brackets in the command line arguments for grep.  That way when
10046         building with mingw the condition was false although it ought to be
10047         true instead.  In particular scenarios this led to the following
10048         compile error:
10050             Cannot export rpl_printf: symbol not found
10051             Cannot export rpl_scanf: symbol not found
10052             collect2: error: ld returned 1 exit status
10054         Fix this by properly quoting square brackets.
10056 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
10058         mktime: call tzset as per POSIX
10059         Problem reported by Ludovic Courtès in:
10060         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
10061         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
10062         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
10064 2016-06-26  Pádraig Brady  <P@draigBrady.com>
10066         fts: handle readdir() errors
10067         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
10068         but also upon error when it will also set errno.  Therefore
10069         flag the error case from readdir().  We treat the case where
10070         no items are read the same as if the dir can't be accessed,
10071         i.e. by setting fts_errno to FTS_DNR.
10073 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
10075         intprops: port better to GCC 7
10076         GCC 7 __builtin_add_overflow supports a new usage form, where the
10077         last argument is a null pointer, and which merely returns 1 if an
10078         overflow would occur.  This is a constant expression if all
10079         arguments are constants, and should generate faster code when code
10080         needs to be generated.
10081         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
10082         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
10083         Use builtin operations if available.
10084         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
10085         operations are available, as it's almost surely faster.
10087 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
10089         intprops-test: port to GCC 6
10090         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
10091         since the bug is not fixed in GCC 6.1.
10093 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
10095         xalloc-oversized: port to GCC 7; fewer warnings
10096         GCC 7 will have a better way to deal with integer overflow.
10097         Plus, fix a warnings problem reported by Tim Ruehsen in:
10098         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
10099         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
10100         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
10101         For GCC 5, use __xalloc_oversized if both args are constants,
10102         or if pedantic.
10104 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
10106         regex: port to Sun C
10107         Reported by Daiki Ueno.
10108         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
10109         __restrict, in prototype.  This fixes a problem I introduced in
10110         the 2016-02-19 merge from glibc.
10112 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
10114         stdbool: Restore __bool_true_false_are_defined check
10115         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
10116         __bool_true_false_are_defined is still defined, even with C++11.
10118 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
10120         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
10121         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
10123 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
10125         Use GCC_LINT, not lint
10126         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
10127         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
10128         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
10129         Document problem with lint and _Noreturn.
10130         * lib/diffseq.h (IF_LINT, IF_LINT2):
10131         * lib/fts.c (sccsid):
10132         * lib/getndelim2.c (IF_LINT):
10133         * lib/gl_anylinked_list2.h (gl_linked_iterator)
10134         (gl_linked_iterator_from_to):
10135         * lib/gl_anytree_list2.h (gl_tree_iterator)
10136         (gl_tree_iterator_from_to):
10137         * lib/gl_anytree_oset.h (gl_tree_iterator):
10138         * lib/gl_array_list.c (gl_array_iterator)
10139         (gl_array_iterator_from_to):
10140         * lib/gl_array_oset.c (gl_array_iterator):
10141         * lib/gl_carray_list.c (gl_carray_iterator)
10142         (gl_carray_iterator_from_to):
10143         * lib/idcache.c:
10144         * lib/inet_ntop.c (IF_LINT):
10145         * lib/regcomp.c (build_charclass_op, create_tree):
10146         * lib/regex_internal.c (re_acquire_state)
10147         (re_acquire_state_context):
10148         * lib/trigl.c (rcsid):
10149         * lib/trim.c (IF_LINT):
10150         * lib/vasnprintf.c (IF_LINT):
10151         * lib/verify.h (assume):
10152         Treat GCC_LINT like lint.
10154 2016-05-29  Bruno Haible  <bruno@clisp.org>
10156         secure_getenv: Port to many more platforms.
10157         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
10158         functions.
10159         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
10160         for non-BSD Unix platforms and for native Windows.
10161         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
10162         Prompted by a request from Nikos Mavrogiannopoulos.
10164 2016-05-27  Eric Blake  <eblake@redhat.com>
10166         canonicalize: Fix broken probe for realpath.
10167         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
10168         in logic introduced in 54615b95.
10170 2016-05-26  Eric Blake  <eblake@redhat.com>
10172         unsetenv: relax to LGPLv2+
10173         * modules/unsetenv (License): Match setenv license.
10175 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
10177         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
10178         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
10179         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
10180         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
10181         (commonarg, dirargs, dirs, infoarg, generate_ascii)
10182         (generate_html, generate_info, generate_tex, outdir)
10183         (source_extra, split, srcfile, texarg): Move above 'version'.
10184         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
10186 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10188         manywarnings: update for GCC 6.1
10189         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
10190         Add GCC 6.1 options that apply to C.
10191         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
10192         do not apply to C, are obsolescent, etc.
10194 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
10196         glob: size_t overflow checks
10197         * lib/glob.c (__has_builtin): New macro.
10198         (size_add_wrapv, glob_use_alloca): New static functions.
10199         (glob, glob_in_dir): Check for size_t overflow in several places,
10200         and fix some size_t checks that were not quite right.
10202         glob: don't assume INT_MAX < SIZE_MAX
10203         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
10204         latter is not portable to (probably theoretical) hosts where
10205         SIZE_MAX <= INT_MAX.
10207 2016-05-09  Bruno Haible  <bruno@clisp.org>
10209         Fix undefined behaviour in gettext.h.
10210         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
10211         pointer's value after the storage it points to has been freed.
10212         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
10213         Spotted by Coverity.
10215 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
10217         git-version-gen: avoid undefined shift
10218         Problem reported by Mosè Giordano in:
10219         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
10220         * build-aux/git-version-gen: Avoid undefined behavior if invoked
10221         with --prefix or --fallback but without a later argument.  While
10222         we're at it, omit unnecessary quotes.
10224 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
10226         glob: merge glibc changes into lib/glob.c
10227         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
10228         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
10229         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
10230           struct dirent [BZ #19779]
10231         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
10232           callback gl_readdir
10233         2015-10-20 Convert miscellaneous function definitions to prototype style
10234         2015-10-20 Convert 113 more function definitions to prototype style
10235           (files with assertions)
10236         2015-06-12 Fix getlogin_r namespace (bug 18527).
10237         2014-02-10 Use glibc_likely instead __builtin_expect.
10238         2013-10-20 When glob pattern contains a trailing slash match only
10239           directories. Fixes bug 10278.
10240         2013-09-04 glob: silence -Wattribute warnings
10241         2013-06-07 Avoid use of "register" as optimization hint.
10242         2012-09-25 Use size_t instead of int for internal variables in glob
10243           (bug 14621)
10244         2011-07-20 Check for overflows in expressions
10245         2011-05-28 Remove unused variable
10246         2011-05-22 Add a few more alloca size checks
10247         2010-03-27 Whitespace fixes
10248         2010-03-27 Fix one more issue with the glob patch
10249         2010-03-24 Fix glob with empty pattern
10250         2008-05-27 Remove useless more "if" tests before "free"
10251         * modules/glob (Depends-on): Add stdint.
10253 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
10255         mktime: port to stricter signed overflow checking
10256         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
10257         (long_int): Require width for INT_MAX * 3 * (seconds per year),
10258         instead of merely for INT_MAX * 2.  In practice platforms that
10259         do the latter also do the former.
10260         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
10261         (shr): New static function, replacing SHR.  All uses changed.
10262         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
10263         and TIME_T_MAX.  All uses changed.
10264         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
10265         Use long_int, not time_t.
10266         (long_int_avg): New static function, replacing time_t_avg.
10267         All uses changed.  Round toward positive infinity, as that
10268         generates slightly better code.
10269         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
10270         by INT_ADD_WRAPV.
10271         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
10272         (convert_time): New static function.
10273         (ranged_convert): Use it
10274         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
10275         Use simpler test for loop exit.
10276         (__mktime_internal): Store negative of guessed offset, to simplify
10277         overflow checking.  Remove no-longer-needed test for small time_t
10278         overflows.
10280         mktime: speed up DEBUG_MKTIME benchmarks
10281         Call tzset just once, at the start, rather than for every test
10282         case.  This lets us measure the CPU cost of mktime as opposed to
10283         that of tzset.  This is relevant when TZ is not set and glibc is
10284         being used.  This speeds up tests by a factor of 40 on my Fedora
10285         23 x86-64 platform.
10286         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
10287         to call tzset and as a sanity check.  Later on, use localtime_r
10288         instead of localtime.
10290         mktime: resurrect DEBUG_MKTIME testing
10291         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
10292         Include <string.h>, for strcmp.
10294         mktime: simplify DEBUG_MKTIME
10295         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
10296         Simplify later usage accordingly.
10298         Port mktime_internal offset to unsigned time_t
10299         This avoids some assumptions about wraparound arithmetic on
10300         signed integer overflow.
10301         * lib/mktime-internal.h (mktime_offset_t): New type.
10302         (mktime_internal): Use it in decl.
10303         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
10305         * lib/mktime.c (__mktime_internal, localtime_offset):
10306         * lib/timegm.c (timegm): Use it.
10307         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
10308         (gl_FUNC_MKTIME): Require it.
10310 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
10312         xstrtol: prohibit monstrosities like "1bB"
10313         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
10314         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
10315         "B" only if the first suffix needs a base.
10316         * tests/test-xstrtol.sh: Test this.
10318 2016-04-21  Pádraig Brady  <P@draigBrady.com>
10320         xstrtod: reinstate setting of *result upon ERANGE
10321         * lib/xstrtod.c (XSTRTOD): The user may decide to use
10322         the returned limits upon ERANGE, so allow and document that.
10324 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
10326         xstrtod: modify *result only if no errors
10327         * lib/xstrtod.c (XSTRTOD).
10329 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
10331         btowc: document problems in C locale
10332         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
10333         with mbrtowc.  See: http://bugs.gnu.org/23269#32
10335 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
10337         mktime: improve integer overflow checking
10338         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
10339         (WRAPV): Remove; no longer needed.
10340         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
10341         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
10342         Remove.  Use intprops.h defns instead.
10343         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
10344         Use bool for Boolean, for clarity.
10345         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
10346         detect integer overflow.
10347         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
10349         intprops: check two's complement assumption
10350         Suggested by Eric Blake in:
10351         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
10352         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
10353         short, int, long, and (if available) long long are two's complement.
10354         * modules/intprops (Depends-on): Add 'verify'.
10356         intprops, mktime, strtol: assume two's complement
10357         These macros were not portable to every conforming C11 ones'
10358         complement platform.  It's not worth the hassle of porting to some
10359         platforms that use ones' complement or signed magnitude, as such
10360         platforms are almost purely theoretical nowadays and porting even
10361         to some of them makes the code harder to review for little
10362         practical benefit.  Problem reported by Florian Weimer in:
10363         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
10364         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
10365         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
10366         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
10367         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
10368         (TYPE_SIGNED_MAGNITUDE):
10369         Remove.  All uses rewritten to assume two's complement, which is
10370         all we can reasonably test nowadays anyway.
10371         * top/maint.mk (_intprops_names): Remove the removed macros.
10373 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
10375         stdint: port to strict C11 left shift
10376         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
10377         Pacify clang -Wshift-negative-value, which should be an issue only
10378         on clang setups where stdint.h does not conform to C11 or to C++11.
10379         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
10381 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
10383         mbrtowc: work around glibc bug#19932
10384         Fix mbrtowc so that it never returns -1 in the C locale,
10385         as this conflicts with a future version of POSIX
10386         http://austingroupbugs.net/view.php?id=663#c2738
10387         and causes problems with GNU grep: http://bugs.gnu.org/23234
10388         See glibc bug 19932:
10389         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
10390         * doc/posix-functions/mbrlen.texi (mbrlen):
10391         * doc/posix-functions/mbrtowc.texi (mbrtowc):
10392         Document the glibc bug.
10393         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
10394         Include hard-locale.h, locale.h.
10395         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
10396         if the bug is possible.
10397         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
10398         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
10399         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
10400         * modules/mbrtowc (Depends-on): Add hard-locale.
10401         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
10402         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
10403         * tests/test-mbrtowc5.sh: New file.
10405 2016-04-03  Pedro Alves  <palves@redhat.com>
10407         stdint: detect good enough pre-C++11 stdint.h in C++ mode
10408         When gnulib is configured in C++ mode for a system with a working C99
10409         implementation of stdint.h that predates C++11, gnulib ends up
10410         substituting stdint.h anyway.  This works on most targets, but on e.g.,
10411         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
10412         MinGW is LLP64.  Instead of trying to detect the right types, detect
10413         good-enough-pre-C++11 stdint.h and in such case define
10414         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
10415         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
10416         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
10417         conforms to C99.  If it does, check whether it hides symbols
10418         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
10419         does, define those macros in config.h.
10421 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
10423         argp: merge changes from glibc
10424         Among other things, this should fix problems found by a Coverity
10425         scan and reported by Andrei Borzenkov:
10426         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
10427         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
10428         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
10429         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
10430         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
10431         * lib/argp.h:
10432         Merge changes from glibc.
10433         * tests/test-argp-2.sh: Adjust to match new behavior.
10435 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
10437         stddef: support configuring with g++
10438         Problem reported by Ángel González in:
10439         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
10440         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
10441         Do not define if _GCC_MAX_ALIGN_T is defined.
10443 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
10445         test-framework-sh: minor cleanups
10446         * tests/init.sh (testdir_prefix_): Output a trailing newline,
10447         since strictly speaking POSIX requires this.
10448         (setup_): Do not use the variable 'fail', as that makes the
10449         trace output harder to read ('fail' is typically used by
10450         tests to mean the test failed).  Treat // portably.
10451         Check that new directory is not merely a sibling of the tmp dir.
10452         Avoid unnecessary invocation of tr.
10454         test-framework-sh: revert port to NetBSD 7.0
10455         It was a false alarm; I misinterpreted Assaf Gordon's report.
10456         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
10457         Restore.
10458         (test_dir_): Adjust to mktempd_ change.
10459         (mktempd_): Restore 2nd arg.  Use -t again.
10460         (base_template_, template_, nx_): Resurrect old code.
10462         Port better to Alpine Linux
10463         Its diff implementation does not support -c, but does support -U3.
10464         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
10465         * tests/init.sh (diff_opt_): New var.
10466         (compare_): Prefer diff -U3 to diff -c to plain diff.
10468 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
10470         test-framework-sh: port to NetBSD 7.0
10471         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
10472         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
10473         Remove.  All uses removed.
10474         (test_dir_): Adjust to mktempd_ change.
10475         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
10476         (base_template_, template_, nx_): Simplify by hardcoding.
10478 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
10480         gitlog-to-changelog: suppress ignored chatter
10481         * build-aux/gitlog-to-changelog: Do not warn about skipping
10482         an SHA if it would have been ignored anyway.
10484 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
10486         setlocale: add "sv" to Windows language table
10487         * lib/setlocale.c (language_table) [W32]: Add "sv".
10488         Reported in <https://savannah.gnu.org/bugs/?44588>.
10490 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
10492         sys_select: port to new Cygwin
10493         Problem reported by Ken Brown in:
10494         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
10495         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
10496         diagnostics.
10498 2016-03-17  Jim Meyering  <meyering@fb.com>
10500         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
10501         * tests/test-userspec.c (main): Remove unnecessary braces and fix
10502         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
10503           test-userspec.c:176:9: error: statement is indented as if it were \
10504             guarded by... [-Werror=misleading-indentation]
10505                    {
10506                    ^
10507           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
10508                  if (!diag && !T[i].result)
10509                  ^~
10511 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
10513         time_rz: port to clang -Wunused-const-variable
10514         * lib/time_rz.c (TZ): Remove.  All uses removed.
10516         std-gnu11: improve clang support
10517         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
10518         2016-03-15 Also try clang
10519         2016-03-15 Port C11 and C++11 testing to clang
10521         select: port more to Intel 2016.1.150 compiler
10522         Problem reported by Balázs Hajgató in:
10523         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
10524         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
10526 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
10528         select: try to port to 2016.1.150 compiler
10529         Problem reported by Balázs Hajgató in:
10530         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
10531         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
10532         POSIX specifies 'restrict'.
10534 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
10536         localename-tests: memory allocation fixes
10537         * tests/test-localename.c (test_locale_name)
10538         (test_locale_name_thread): Don't call freelocale on a locale
10539         that was the base of a successful newlocale, as that
10540         results in a double free.  Problem reported by Assaf Gordon.
10541         (test_locale_name_thread): Free saved names after use, to pacify
10542         gcc -fsanitize=address.
10544 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
10546         intprops: make .h file license match module
10547         * lib/intprops.h: Change the license wording to match glibc format.
10548         This is what is in modules/intprops anyway.  See:
10549         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
10551 2016-03-08  Eric Blake  <eblake@redhat.com>
10553         acl: fix missing return on Cygwin
10554         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
10555         fall off end of function. Fixes http://bugs.gnu.org/22949
10557 2016-03-05  Bruno Haible  <bruno@clisp.org>
10559         extern-inline: port to PGI CC
10560         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
10561         keyword 'inline'.
10562         Reported by Adam James Stewart in:
10563         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
10565 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
10567         signbit: port back to pre-C++11 GCC
10568         * lib/math.in.h (signbit): Do previous change only if
10569         __cplusplus < 201103.  See Jonathan Wakely in:
10570         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
10572 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
10574         mountlist: recognize autofs-mounted remote file systems, too
10575         Originally reported at: https://bugzilla.redhat.com/1309247
10576         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
10577         "-hosts" because it is used by autofs to mount remote file systems.
10579 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
10581         signbit: port to C++ with GCC 6
10582         * lib/math.in.h (signbit) [__cplusplus]:
10583         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
10584         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
10586         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
10588         regex: make it closer to libc
10589         Make Idx a signed type, rather than possibly unsigned.
10590         The unsignedness was not really buying us anything, since the code
10591         overflows for other reasons before getting to PTRDIFF_MAX.  Making
10592         it signed allows us to use -1 and -2 with abandon, like libc does,
10593         thus lessening the number of differences between gnulib and libc.
10594         Also, it should help avoid gratuitous warnings like the one
10595         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
10596         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
10599         regex: merge patches from libc
10601         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
10602         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
10603         Convert miscellaneous function definitions to prototype style.
10604         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
10605         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
10606         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
10607         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
10608         (re_search_internal):
10609         Convert to prototype-style function definition.
10610         Use internal_function for internal functions.
10612 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
10614         stdalign: port to older HP and IBM cc
10615         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
10616         C compilers, by checking their version numbers.  These version
10617         numbers appear in MariaDB and in Qt code that dates way back and
10618         that conditiionally uses the 'aligned' attribute.
10620 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
10622         stdalign: port to clang 3.7.0
10623         Problem reported by Herbert J. Skuhra in:
10624         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
10625         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
10626         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
10627         https://llvm.org/bugs/show_bug.cgi?id=26547
10629 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10631         readdir_r: now obsolescent
10632         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
10633         * lib/mountlist.c (read_file_system_list): Add a FIXME.
10635 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
10637         misc: port better to gcc -fsanitize=address
10638         Without these patches, ./configure CFLAGS='-fsanitize=address'
10639         would compute incorrect values.  This patch fixes some (but not all)
10640         test failures with recent glibc, with this configuration.
10641         * m4/acl.m4 (gl_ACL_GET_FILE):
10642         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
10643         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
10644         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
10645         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
10646         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
10647         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
10648         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
10649         * m4/getline.m4 (gl_FUNC_GETLINE):
10650         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
10651         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
10652         * m4/regex.m4 (gl_REGEX):
10653         * m4/strndup.m4 (gl_FUNC_STRNDUP):
10654         * tests/test-calloc-gnu.c (main):
10655         * tests/test-duplocale.c (main):
10656         * tests/test-getgroups.c (main):
10657         * tests/test-getline.c (main):
10658         * tests/test-inttostr.c (main):
10659         * tests/test-localename.c (test_locale_name)
10660         (test_locale_name_thread, test_locale_name_environ)
10661         (test_locale_name_default):
10662         * tests/test-regex.c (main):
10663         * tests/test-setlocale1.c (main):
10664         * tests/test-stat.h (test_stat_func):
10665         Free heap-allocated storage before exiting.
10666         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
10667         Don't match *_foo symbols inserted by AddressSanitizer.
10668         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
10670 2016-02-02  Jim Meyering  <meyering@fb.com>
10672         verify-tests: also remove stray test-verify.Tpo
10673         * modules/verify-tests (Makefile.am): Arrange for "make clean"
10674         to remove the test-verify.Tpo file that is left behind by
10675         the automake-generated rule upon compilation failure.
10676         Otherwise, that .Tpo file would cause a failed "make distcheck"
10677         at least for grep.
10679 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
10681         std-gnu11: new module
10682         This makes it easier for applications to prefer C11 and C++11
10683         to older variants, when compiling C and C++ code.
10684         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
10685         a nontrivial chunk of GPLed Autoconf source code.
10686         * COPYING: Mention the m4/*.m4 copyright situation.
10687         * MODULES.html.sh (std-gnu11): New module.
10688         * m4/std-gnu11.m4, modules/std-gnu11: New files.
10690 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
10692         get-permissions, strftime: fix grammar in comments
10693         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
10694         some grammar fixes Alan Mackenzie made to GNU Emacs.
10696 2016-01-25  Daiki Ueno  <ueno@gnu.org>
10698         gettext: mark as obsolete
10699         Suggested by Paul Eggert in:
10700         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
10701         * modules/gettext (Status): Mark as obsolete.
10702         (Notice): Suggest to use 'gettext-h' instead.
10703         * modules/gettext-h (Description): Suggest GNU gettext, instead of
10704         the 'gettext' module.
10706 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
10708         gnulib-tool: don't give up on ln -s so easily
10709         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
10710         because an earlier one failed.  The targets could be on different
10711         file systems.  Problem reported by KO Myung-Hun in:
10712         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
10714         closedir: fix OS/2-related typos
10715         Problem reported by KO Myung-Hun in:
10716         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
10717         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
10718         in the last couple of changes.
10720 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
10722         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
10723         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
10724         copying a directory.
10726 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
10728         regex: treat [x] as x if x is a unibyte encoding error
10729         Problem reported by Aharon Robbins in:
10730         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
10731         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
10732         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
10734         closedir, dirfd, opendir: port to OpenSolaris 5.10
10735         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
10736         * m4/dirfd.m4 (gl_FUNC_DIRFD):
10737         * m4/opendir.m4 (gl_FUNC_OPENDIR):
10738         Don't use ${word##pat} substitution, as it doesn't work in
10739         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
10740         http://bugs.gnu.org/22443#11
10742 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
10744         bootstrap: use American spelling
10745         * build-aux/bootstrap: Honor American spelling.
10747 2016-01-22  Karl Berry  <karl@freefriends.org>
10749         * doc/posix-functions/localtime.texi,
10750         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
10752 2016-01-21  Bruno Haible  <bruno@clisp.org>
10754         hash-pjw-bare: fix comment
10755         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
10757         wcwidth: Replace also on OpenBSD 5.8
10758         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
10759         * doc/posix-functions/wcwidth.texi: Update.
10761 2016-01-20  Pádraig Brady  <P@draigBrady.com>
10763         gnu-web-doc-update: fix addition of new files
10764         If there were already added (emnpty) dirs,
10765         then cvs aborts the add with the message:
10766           cvs [add aborted]: there is a version in <./dirname> already
10767         * build-aux/gnu-web-doc-update: Add directories separately
10768         to the addition of files, to avoid the above issue
10769         impacting the addition of files.
10771 2016-01-19  Daiki Ueno  <ueno@gnu.org>
10773         utimens-tests: avoid pulling gettext .m4 files
10774         Although this is not the right fix to the original problem:
10775         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
10776         it makes it possible again for consumer projects to use arbitrary
10777         version of gettext, through the steps described at:
10778         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
10779         See here for details:
10780         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
10781         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
10782         'gettext'.
10783         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
10784         'gettext'.
10786 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
10788         regex: pacify static checkers
10789         Problem and draft fix reported by Aharon Robbins in:
10790         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
10791         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
10792         Clear memory to pacify static checkers.
10794         regex: fix [ diagnostic
10795         Problem and fix reported by Aharon Robbins in:
10796         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
10797         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
10799         regex: fix memory leaks
10800         Problem and draft fix reported by Aharon Robbins in:
10801         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
10802         * lib/regcomp.c (build_range_exp, build_charclass_op)
10803         * lib/regex_internal.c (re_dfa_add_node):
10804         Fix memory leak on failure.
10806 2016-01-18  Pádraig Brady  <P@draigBrady.com>
10808         fts: don't unconditionally use leaf optimization for NFS
10809         NFS st_nlink are not accurate on all implementations,
10810         leading to aborts() if that assumption is made.
10811         See <https://bugzilla.redhat.com/1299169>
10812         * lib/fts.c (leaf_optimization_applies): Remove NFS from
10813         the white list, and document the issue.
10815 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
10816             KO Myung-Hun  <komh@chollian.net>
10818         gnulib-tool: don't assume ln -s works
10819         * gnulib-tool (func_ln_s): New function.
10820         (func_ln): Use it.
10822 2016-01-15  KO Myung-Hun  <komh@chollian.net>
10824         utimes: detect utimes() correctly on OS/2 kLIBC
10825         utimes() of OS/2 kLIBC has some limitations.
10826         1. OS/2 itself supports a file date since 1980 year in local time.
10827         2. OS/2 itself supports only even seconds for a file time.
10828         3. utimes() of OS/2 kLIBC does not work on an opened file.
10829         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
10830         * doc/posix-functions/utimes.texi: Document the above limitations of
10831         utimes() on OS/2 kLIBC.
10833 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
10834             KO Myung-Hun  <komh@chollian.net>
10836         openat_proc_name: port to OS/2 kLIBC
10837         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
10838         instead of /proc/self/fd.
10839         * lib/openat-proc.c (openat_proc_name):
10840         Don't assume file name length is less than INT_MAX.
10841         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
10843 2016-01-14  KO Myung-Hun  <komh@chollian.net>
10845         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
10846         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
10847         definitions of intptr_t and uintptr_t (which use int and unsigned)
10848         to avoid clashes with declarations of system functions like sbrk.
10849         * lib/stdint.in.h (intptr_t, uintptr_t): Check
10850         _INTPTR_T_DECLARED before defining them.
10852         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
10853         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
10854         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
10855         Declare on kLIBC.
10856         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
10857         fd associated with dirp.
10858         (_gl_register_dirp_fd): New. Register fd associated with dirp to
10859         dirp_fd_list.
10860         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
10861         (dirfd): Implemented for kLIBC.
10862         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
10863         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
10864         succeeds.
10865         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
10866         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10867         (REPLACE_DIRFD): Define to 1 if replaced.
10868         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
10869         * modules/closedir (Depends-on): Add dirfd.
10870         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
10871         condition.
10872         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
10873         * modules/opendir (Depends-on): Add dirfd.
10875         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
10876         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
10877         * lib/dup.c (dup_nothrow): New.
10878         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
10879         (klibc_dup2): New.
10880         * lib/fcntl.c (klibc_fcntl): New.
10881         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
10882         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
10883         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
10884         fd.
10886         pipe_filter_ii_execute: port to OS/2 kLIBC
10887         Pipes on kLIBC do not support O_NONBLOCK like Win32.
10888         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
10889         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
10890         Reuse Win32 code on OS/2 kLIBC.
10891         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
10892         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
10894         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
10895         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
10896         static inline function.  The implementation of wcwidth in wcwidth.c
10897         causes a "conflicting types" error.
10898         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
10900         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
10901         spawn() on OS/2 kLIBC is not silly like one on Windows
10902         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
10903         empty string on OS/2 kLIBC.
10905         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
10906         On OS/2 kLIBC, select() works only on sockets.
10907         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
10909         binary-io: don't put fd in binary mode if it is a console on EMX
10910         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
10911         a console on EMX.
10913 2016-01-15  Pádraig Brady  <P@draigBrady.com>
10915         doc: mention unfixed issues with unsupported localtime() values
10916         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
10917         returns nonsense for localtime(2^56).
10918         * doc/posix-functions/localtime_r.texi: Likewise.
10920 2016-01-14  Pádraig Brady  <P@draigBrady.com>
10922         doc: mention setlocale() issues on OpenBSD
10923         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
10924         never fails, and the need to check categories individually.
10926 2016-01-14  Pádraig Brady  <P@draigBrady.com>
10928         sig2str: list all signals on FreeBSD >= 7
10929         FreeBSD >= 7 is contravening POSIX by not defining NSIG
10930         to the maximal statically defined signal value.
10931         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
10932         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
10933         where available, even when NSIG is defined.
10935 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
10937         acl-permissions: port to USE_ACL==0 platforms
10938         I ran into this problem when building bleeding-edge GNU Emacs
10939         with gcc -fsanitize=address on Fedora 23.  On this platform
10940         the ACL library does not pass the 'configure' test and Emacs
10941         then does not build due in part to what appear to be typos in the
10942         ACL part of Gnulib.
10943         * lib/acl-internal.c (free_permission_context):
10944         * lib/acl-internal.h (struct permission_context):
10945         Test whether USE_ACL is nonzero, not whether it is defined.
10947 2016-01-12  Martin Sebor  <msebor@redhat.com>
10949         mktime: rename macro to avoid glibc clash
10950         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
10951         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
10953 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
10955         Port "$@" to OpenIndiana ksh93
10956         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
10957         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
10958         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
10959         bug long-dead shells, so remove the workaround.
10960         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
10961         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
10962         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
10963         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
10964         Use "$@" instead of ${1+"$@"}.
10966         Port Universal Time settings to strict POSIX
10967         * build-aux/announce-gen, build-aux/bootstrap:
10968         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
10969         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
10970         * build-aux/gnupload, build-aux/mkinstalldirs:
10971         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
10972         * build-aux/update-copyright, build-aux/useless-if-before-free:
10973         * build-aux/vc-list-files, tests/test-strftime.c:
10974         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
10975         but POSIX says the behavior of TZ="UTC" is undefined.
10977 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
10979         msvc-inval: fix problem with unset shell var
10980         Problem reported by Karl Berry in:
10981         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
10982         * modules/msvc-inval (Depends-on):
10983         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
10984         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
10986 2016-01-01  Pádraig Brady  <P@draigBrady.com>
10988         tests: for compare_(), use cmp -s where available
10989         * tests/init.sh (compare_): Only fall back to cmp without
10990         the POSIX defined -s option, where this is not available.
10992 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
10994         version-etc: new year
10995         * build-aux/gendocs.sh (version):
10996         * doc/gendocs_template:
10997         * doc/gendocs_template_min:
10998         * doc/gnulib.texi:
10999         * lib/version-etc.c (COPYRIGHT_YEAR):
11000         Update copyright dates by hand in templates and the like.
11001         * all files: Run 'make update-copyright'.
11003 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
11005         human: fix output buffer overrun by 1
11006         * lib/human.c (human_readable): Fix off-by-one typo in buffer
11007         calculation that could lead to a one-byte buffer overrun.
11009 2015-12-28  Daiki Ueno  <ueno@gnu.org>
11011         maint: fix operator precedence in mbrtowc test
11012         This is a fix for test breakage introduced by commit 45228d96; the
11013         equality expression must be parenthesized when negated with '!',
11014         otherwise we always get:
11016           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
11018         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
11019         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
11021 2015-12-23  James Youngman  <jay@gnu.org>
11023         regexprops-generic: update from regex.h
11024         * doc/regexprops-generic.texi: update by running the regexprops binary
11025         from findutils (the command line is 'regexprops "Regular Expressions"
11026         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
11027         gnulib with GNU grep had made this document out-of-date.
11029 2015-12-23  Pádraig Brady  <P@draigBrady.com>
11031         strftime-tests: avoid false failure on OS X
11032         * tests/test-strftime.c (struct localtime_rz_test): Add an
11033         ahistorical member which is used to warn rather than fail
11034         when tm_isdst isn't set for such entries.  This is the case for
11035         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
11037 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
11039         fts: ensure leaf optimization is used for NFS
11040         NFS provides usable dirent.d_type but not necessarily for all entries
11041         of large directories.  See <https://bugzilla.redhat.com/1252549>
11042         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
11044 2015-12-20  Pádraig Brady  <P@draigBrady.com>
11046         fts: enable leaf optimization for XFS
11047         XFS provides usable dirent.d_type only for DT_DIR,
11048         but the noleaf optimization still applies.
11049         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
11051 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
11053         intprops: comment fix
11054         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
11055         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
11057         intprops-test: work around GCC bug 68971
11058         Problem reported by Pádraig Brady in:
11059         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
11060         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
11061         (main): Add a case that better tests 64-bit long in this area.
11063 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
11065         gnulib-tool: allow multiple --local-dir usage
11066         * gnulib-tool: Use --local-dir to construct compound
11067         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
11068         PATH_SEPARATOR early.
11069         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
11070         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
11071         func_determine_path_separator because that needs to be detected
11072         earlier now.
11073         (func_determine_path_separator): New function.
11074         (func_path_foreach, func_path_foreach_inner): New functions.
11075         (func_path_prepend, func_path_append): Likewise.
11076         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
11077         (func_lookup_file, func_all_modules): Use new functions to work
11078         with local_gnulib_path.
11079         (func_modules_in_dir, func_exists_module): New callbacks for
11080         func_path_foreach.
11081         (func_exists_module, func_get_tests_module): Likewise.
11082         (func_is_local_file, func_should_symlink): New helper methods.
11083         (func_add_file, func_update_file): Use new func_should_symlink
11084         instead, DRY.
11085         (func_reconstruct_cached_local_gnulib_path): New helper.
11086         (func_reconstruct_cached_dir): New callback.
11087         (func_import): The cached_local_gnulib_dir renamed to
11088         cached_local_gnulib_path similarly to local_gnulib_dir.
11089         Use new func_reconstruct_cached_local_gnulib_path.
11090         (func_count_relative_local_gnulib_path): New sub-method.
11091         (func_create_testdir): Use func_should_symlink, DRY.
11092         (func_create_megatestdir): Use new functions to work with
11093         local_gnulib_path correctly.
11094         (func_append_local_dir): New helper.
11096 2015-12-08  Pádraig Brady  <P@draigBrady.com>
11098         fix freadptr to work with ungetc on all uClibc configs
11099         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
11100         where GNU coreutils cut(1) generates invalid output on uClibc
11101         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
11102         * lib/freadptr.c (freadptr): Return NULL if there are
11103         ungotten chars.  In this case freadseek() will iterate
11104         again to process the ungotten character.
11106 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
11108         xalloc-oversized: improve performance with GCC 5
11109         * lib/xalloc-oversized.h (xalloc_oversized):
11110         Improve performance with GCC 5 by using __builtin_mul_overflow.
11112 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
11114         intprops: new public macro EXPR_SIGNED
11115         Emacs can use this macro, so make it public.
11116         * doc/intprops.texi (Arithmetic Type Properties): Rename from
11117         'Integer Type Determination', since some of these macros apply
11118         to non-integer types.  Clarify what kinds of constant expressions
11119         these macros return.  Say when the arguments can be non-integers.
11120         Mention newly published macro EXPR_SIGNED.
11121         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
11122         make it public.  All uses changed.
11124         intprops: fix typo in clang port
11125         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
11126         '__builtin_add_overflow' that is not caught by compiler.
11128 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
11130         test-timespec: fix typo in previous change
11131         * tests/test-timespec.c (main): Fix typo that reduced test quality.
11133         timespec-sub: fix overflow bug; add tests
11134         * lib/timespec-add.c (timespec_add):
11135         * lib/timespec-sub.c (timespec_sub):
11136         Work even if time_t is narrower than int (a theoretical
11137         possibility).  Redo code for a bit more clarity.
11138         * lib/timespec-sub.c (timespec_sub):
11139         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
11140         * modules/timespec-tests, tests/test-timespec.c: New files.
11142         intprops-test: suppress -Woverlength-strings
11143         Problem reported by Pádraig Brady in:
11144         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
11145         It is not worth the hassle to port this test to compilers that
11146         cannot handle long strings in diagnostics.
11147         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
11149 2015-11-03  Pádraig Brady  <P@draigBrady.com>
11151         quotearg: add quotearg_n_style_colon()
11152         This quotes with default options of the specified style,
11153         but with quoting enabled for instances of ':'.
11154         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
11155         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
11157 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
11159         intprops: revise _WRAPV macros, revert _OVERFLOW
11160         The incompatible changes to the _OVERFLOW macros were too much of
11161         a hassle in practice, so revert them.  Instead, change the new
11162         _WRAPV macros to make them closer in behavior to GCC 5's new
11163         builtin_add_overflow etc. functions.  No other software was using
11164         these newly-added macros yet, so this should be OK.
11165         * NEWS: Revert previous change, since the incompatible change
11166         has been reverted, and nobody used the incompatible version.
11167         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
11168         Document revised behavior.
11169         (Integer Range Overflow): Adjust example to match above revisions.
11170         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
11171         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
11172         these can be used in integer constant expressions again.
11173         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
11174         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
11175         needed.
11176         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
11177         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
11178         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
11179         Remove, as they did not seem that useful.
11180         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
11181         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
11182         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
11183         Support new semantics.
11184         (__has_builtin): New macro, if not alreay defined.
11185         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
11186         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
11187         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
11188         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
11189         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
11190         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
11191         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
11192         New macros.
11193         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
11195 2015-11-03  Jim Meyering  <meyering@fb.com>
11197         intprops: add parentheses for when OP has precedence lower than "-"
11198         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
11199         "a OP b" must be parenthesized for when OP is like "<<", which has
11200         lower precedence than the following "-". Reported by Pádraig Brady.
11202 2015-11-03  Pádraig Brady  <P@draigBrady.com>
11204         quotearg: constify get_quoting_style parameters
11205         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
11206         * lib/quotearg.c (get_quoting_style): Likewise.
11208 2015-11-02  Pádraig Brady  <P@draigBrady.com>
11210         quotearg: add support for $'' shell escaping
11211         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
11212         items and descriptions.
11213         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
11214         above types by quoting like "shell", but using $'...' syntax
11215         for non printable characters, which should provide unambiguous
11216         printable output for any input.
11217         * tests/test-quotearg-simple.c: Update accordingly.
11219 2015-11-02  Pádraig Brady  <P@draigBrady.com>
11221         maint: use a more standard return from mbrtowc test
11222         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
11223         from the test program as this is non standard and often
11224         indicates an unhandled case in the test program.
11225         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
11227 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
11229         intprops: add WRAPV and const flavors for GCC 5
11230         If available, use GCC 5's builtin functions for efficient integer
11231         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
11232         and safely compute the low-order bits of the correct answer.
11233         A downside of these efficient functions is that they cannot be
11234         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
11235         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
11236         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
11237         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
11238         Document the changes.
11239         (Wraparound Arithmetic): New section.
11240         (Integer Range Overflow):
11241         Put this subsection last, since it's least useful.
11242         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
11243         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
11244         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
11245         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
11246         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
11247         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
11248         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
11249         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
11250         New macros.
11251         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
11252         Generate calls to GCC builtins if available, for speed.
11253         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
11254         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
11255         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
11256         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
11257         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
11258         (CHECK_QUOTIENT, CHECK_REMAINDER):
11259         Test WRAPV and CONST flavors (when available) too.
11261 2015-10-30  Pádraig Brady  <P@draigBrady.com>
11263         doc: use extended timezone format in iso-8601 example
11264         * doc/parse-datetime.texi: The standard states that extended format
11265         is to be used consistently throughout.
11266         Note that lib/parse-datetime.y can handle either tz format.
11268 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
11270         stdalign: port to Sun C 5.9
11271         * doc/posix-headers/stdalign.texi: Document this.
11272         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
11273         __attribute__ ((__aligned__ (...))).
11275 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
11277         time_rz: fix comment about tzalloc
11278         * lib/time_rz.c (tzalloc): Fix comment.
11280 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
11282         stdalign: work around pre-4.9 GCC x86 bug
11283         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
11284         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
11285         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
11287 2015-10-18  Pádraig Brady  <P@draigBrady.com>
11289         maint.mk: sc_tight_scope: remove extraneous expressions
11290         * top/maint.mk (tight_scope): This is not really required since
11291         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
11292         that matches all nm entries.  But it does remove extraneous entries
11293         that may be confusing or cause issue in future maintenance.
11295 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
11297         time_rz: return NULL if localtime_r fails
11298         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
11299         while still attempting to pacify bleeding-edge GCC.
11301         fts: port to C11 alignof
11302         * doc/posix-headers/stdalign.texi (stdalign.h):
11303         Document the C11 restriction.
11304         * lib/fts.c: Include stddef.h, for max_align_t.
11305         (fts_alloc): Align using max_align_t, not FTSENT.
11306         * modules/fts (Depends-on): Add stddef.
11308 2015-10-18  Jim Meyering  <meyering@fb.com>
11310         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
11311         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
11312         would see this:
11314         lib/time_rz.c: In function 'localtime_rz':
11315         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
11316           [-Werror=nonnull]
11317                    if (tm && !save_abbr (tz, tm))
11318                        ^
11320         That was complaining about "tm" because it is a parameter that was
11321         declared with the __nonnull__ attribute.
11322         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
11323         result of localtime_r.
11325 2015-10-17  Jim Meyering  <meyering@fb.com>
11327         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
11328         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
11329         name-extraction regexp mistakenly used \S+, and would mistakenly
11330         extract "*F" from "extern int *F()" rather than the desired "F".
11331         Use \w+ instead.
11333 2015-10-17  Jim Meyering  <meyering@fb.com>
11335         maint.mk: sc_tight_scope: factor and support OS X
11336         * top/maint.mk (_gl_tight_scope): Address three issues:
11337         - factor out four instances of code that wraps a string in "^...$"
11338         - allow nm-reported symbol names to have an optional leading "_"
11339         - add "main" to the list of ignored variable names, because on os x,
11340         "main" has nm-reported type "S" in the variable-checking section.
11342 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
11344         safe-alloc-tests: fix typo in license header
11345         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
11347 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
11349         copy-file: fix mem leak in error case
11350         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
11351         upon error opening or performing I/O to the src and dest files.
11353 2015-10-15  Mike Frysinger  <vapier@chromium.org>
11355         localename: control langinfo.h inclusion
11356         This header is only used to work around buggy behavior in old
11357         versions of glibc, so do not include it all the time.  Otherwise
11358         we get build failures on systems that do not provide langinfo.h.
11359         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
11360         in the source later on.
11361         The patch was originally submitted to gettext as:
11362         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
11364 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
11366         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
11367         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
11368         * lib/u64.c, lib/unistd.c:
11369         Append 'typedef int dummy;', to pacify compilers that are picky
11370         about empty translation units.
11372 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
11374         accept4-tests: fix to avoid non portable flags
11375         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
11376         as they are the only documented ones, and passing others may trigger
11377         EINVAL (seen on FreeBSD 10.1-RELEASE).
11378         * doc/glibc-functions/accept4.texi: Mention that we don't provide
11379         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
11381 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
11383         gnulib-tool: fix tests of 'extensions' module
11384         This complements f8fe25fab60e3c687a124 commit.
11385         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
11386         emitting of initial gl_EARLY macros.
11387         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
11388         replaced with func_emit_pre_early_macros call.
11390 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
11392         unicase/locale-language: fix typo in utf-8 cookie
11393         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
11394         Problem reported by Zbigniew Jędrzejewski-Szmek.
11396 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
11398         xalloc: do not worry about GCC 5 warning on 32 bit
11399         * lib/xalloc.h: Revert previous change.
11400         I found a better way to fix this in coreutils.
11402 2015-10-02  Pádraig Brady  <P@draigBrady.com>
11404         xalloc: avoid GCC 5.1 warning on 32 bit
11405         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
11406         xalloc_oversized(), which was seen to give this warning
11407         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
11408         when simplifying conditional".
11410 2015-10-02  Daiki Ueno  <ueno@gnu.org>
11412         uniname/uniname-tests: avoid compiler warnings
11413         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
11414         unused local variables.
11415         (test_alias_lookup): Fix alias name display in failure cases.
11417 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
11419         c-ctype: do not worry about EBCDIC + char signed
11420         Drop support for EBCDIC with char being signed, as this breaks too
11421         many programs.  Problem reported by Ben Pfaff in:
11422         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
11423         * lib/c-ctype.h: Verify that we are not using EBCDIC with
11424         char being signed.
11425         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
11426         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
11427         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
11428         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
11429         * tests/test-c-ctype.c (test_all):
11430         Simplify by assuming standard char values cannot be negative.
11431         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
11433 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
11435         c-ctype: port better to z/OS EBCDIC
11436         Problems reported by Daniel Richard G. in:
11437         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
11438         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
11439         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
11440         (_C_CTYPE_OTHER_CNTRL): New macro.
11441         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
11442         from SCHAR_MIN, as the functions are defined only from values
11443         promoted from char or from unsigned char, not necessarily from
11444         signed char.
11446 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
11448         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
11450         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
11451         and ARFLAGS variables.  Doing this unconditionally could break
11452         later Automake's AM_PROG_AR invocation (at least it's
11453         AC_CHECK_TOOLS call to detect correct 'ar' binary).
11455         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
11456         Amsterdam Compiler Kit, so make the previous code to have effects
11457         only on ACK, and rather automatically call the Automake's
11458         AM_PROG_AR as soon as possible to decide other cases.
11460         References:
11461         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
11463         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
11464         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
11465         is possible, keep setting AR/ARFLAGS to reasonable defaults.
11466         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
11467         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
11468         'extensions' module is used.
11469         * modules/extensions (configure.ac-early): Remove as this snippet
11470         is added to gnulib-comp.m4 earlier anyway.
11472 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
11474         sockets: MS Windows initalization fixes
11475         Problem reported by Test User in:
11476         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
11477         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
11478         Correct the endianness.
11479         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
11480         number mismatch, not just on <.  Cleanup before any such failure.
11482 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
11484         gc: fix detection of installed libgcrypt version
11485         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
11486         at least as recent as 1.4.4.  The previously used macro is not
11487         available now, since modules were removed in version 1.6.0.
11489 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
11491         c-ctype: rewrite to use inline functions
11492         This simplifies maintenance, since it makes for just one
11493         implementation of each function, letting the compiler have the fun
11494         of optimization.  In practice this works well nowadays with GCC.
11495         E.g., c_isascii might need only three instructions even though the
11496         source code lists every ASCII character individually in a large
11497         switch statement.
11498         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
11499         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
11500         * NEWS: Document the API change.
11501         * lib/c-ctype.c: Drastically simplify, since this now just expands
11502         inline functions.
11503         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
11504         (C_CTYPE_INLINE): New macro.
11505         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
11506         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
11507         Verify that either ASCII or EBCDIC is being used.
11508         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
11509         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
11510         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
11511         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
11512         New private macros.
11513         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
11514         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
11515         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
11516         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
11517         (c_tolower, c_toupper): When converting, return the unsigned char,
11518         as that is what z/OS does.
11519         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
11520         of some c-ctype.h macros.
11521         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
11522         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
11523         c_tolower promotion to be compatible with z/OS.
11525 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
11527         gitlog-to-changelog: trim only trailing whitespaces
11528         This is fix for --format regression introduced by commit
11529         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
11530         doubled %n string) had no effect anymore.  This format
11531         specification has been used e.g. by GNU paxuitils (commit
11532         edfd8bcc3).
11534         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
11535         newlines in commmit messages.
11537 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
11539         Test that c_iscntrl agrees with iscntrl, etc.
11540         Suggested by Daniel Richard G. in:
11541         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
11542         * modules/c-ctype-tests (Depends-on): Add ctype.
11543         * tests/test-c-ctype.c: Include <ctype.h>.
11544         (NCHARS): New constant.
11545         (test_agree_with_C_locale): New function.
11546         (main): Use it.
11547         (test_all): Use named constants.
11549         c-ctype: improve c_isascii testing
11550         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
11551         Add a test to count the number of ASCII characters.
11553 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11555         savewd: remove SAVEWD_CHDIR_READABLE
11556         It was problematic in the light of file systems that ignore umask.
11557         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
11558         * NEWS: Document this.
11559         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
11560         successful, -1 (setting errno) on failure, rather than something
11561         more complicated than that.
11562         * lib/mkdir-p.c (make_dir_parents):
11563         Do not use SAVEWD_CHDIR_READABLE.
11564         * lib/savewd.c (savewd_chdir):
11565         Remove support for SAVEWD_CHDIR_READABLE.
11566         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
11568         c-ctype: port better to EBCDIC
11569         Problems reported by Daniel Richard G. in
11570         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
11571         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
11572         Include "verify.h".
11573         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
11574         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
11575         Define as enum constants with value false, if not defined, so that
11576         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
11577         code more portable, as both branches of the 'if' are compiled on
11578         all platforms.
11579         (C_CTYPE_EBCDIC): New constant.
11580         Verify that the character set is either ASCII or EBCDIC.
11581         (to_char): New static function.
11582         (c_isascii, c_iscntrl):
11583         Assume standard control-character assignments for EBCDIC.
11584         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
11585         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
11586         Rewrite to use 'if' instead of 'ifdef'.
11587         Use to_char if non-ASCII.  Prefer <= to >=.
11588         Prefer true and false to 1 and 0, for booleans.
11589         (c_iscntrl): Use 'if', not 'ifdef'.
11590         * modules/c-ctype (Depends-on): Add verify.
11591         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
11592         (to_char): New function.
11593         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
11595 2015-09-21  Pádraig Brady  <P@draigBrady.com>
11597         nanosleep: fix return code for interrupted replacement
11598         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
11599         that we return -1 in the case the call is interrupted by a signal,
11600         rather than the current value of 1.
11601         Diagnosed and tested by Daniel Richard G.
11603 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
11605         Diagnose ERE '()|\1'
11606         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
11607         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
11608         track of the set of previously-completed subexpressions available
11609         before the first alternative, and restore this set just before
11610         parsing each subsequent alternative.  This lets us diagnose the
11611         invalid back-reference in the ERE '()|\1'.
11613         regex: merge patches from libc
11615         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
11616         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
11617         * lib/regex_internal.h:
11618         Include <libc-lock.h> instead of <bits/libc-lock.h>.
11620         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
11621         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
11622         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
11623         wcscoll.
11624         * lib/regexec.c (check_node_accept_bytes): Likewise.
11626         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
11627         Fix regex wcrtomb namespace (bug 18496).
11628         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
11629         instead of wcrtomb.
11631         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
11632         Fix regex wctype namespace (bug 18495).
11633         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
11634         instead of towlower.
11635         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
11636         instead of iswlower.  Call __towupper instead of towupper.
11637         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
11638         instead of iswalnum.
11640         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
11641         * lib/regcomp.c (parse_bracket_exp): Initialize type to
11642         COLL_SYM in a couple of places to avoid uninitialized variable
11643         wanings on tilegx gcc 4.8.2.
11645         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
11646         * lib/regex_internal.h: Remove NOT_IN_libc.
11648         2014-11-17  Andreas Schwab  <schwab@suse.de>
11649         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
11651         2014-09-11  Roland McGrath  <roland@hack.frob.com>
11652         Move findidx nested functions to top-level.
11653         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
11654         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
11655         Pass new arguments to findidx.
11656         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
11657         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
11658         Don't #include it inside the function.  Pass new arguments to findidx.
11659         * lib/regex_internal.h:
11660         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
11661         (re_string_elem_size_at): Don't #include it inside the function.
11662         Pass new arguments to findidx.
11664         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
11665         Check if DEBUG is defined in regex_internal.c
11666         * lib/regex_internal.c: Check if DEBUG is defined and is set.
11668 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
11670         ceill: detect buggy OpenBSD implementation
11671         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
11672         which returns zero for small values.  Discussed here:
11673         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
11675 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
11677         mountlist: add me_mntroot field on Linux machines
11678         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
11679         mount_entry so Linux machines based on /proc/self/mountinfo can
11680         distinguish between bind mounts and original mounts.  In reality bind
11681         mounts aren't treated differently than mountroot=/ mounts by the
11682         kernel, but the user often wants these bind mounts distinguished.
11683         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
11684         More details at https://pad.lv/1432871
11686 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
11688         doc: Describe to use multiple instances of gnulib
11689         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
11690         instances of gnulib with different modules can be used, for example one
11691         for a lib and another one for associated tools.
11693 2015-09-01  Pádraig Brady  <P@draigBrady.com>
11695         base32: mark function as __attribute__ const
11696         * lib/base32.h (isbase32): Mark __attribute__ const as
11697         suggested by GCC, and consistent with the base64 module.
11699 2015-08-20  Daiki Ueno  <ueno@gnu.org>
11701         gnulib-tool: don't transform binary files with sed
11702         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
11703         .mo and .class files.
11704         Reported by Denis Denisov.
11706 2015-08-10  Daiki Ueno  <ueno@gnu.org>
11708         gperf: respect silent rules
11709         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
11710         V_GPERF_0 for silent rules.
11711         * modules/iconv_open (Makefile.am): Use V_GPERF.
11712         * modules/unicase/locale-language (Makefile.am): Likewise.
11713         * modules/unicase/special-casing (Makefile.am): Likewise.
11714         * modules/unictype/category-byname (Makefile.am): Likewise.
11715         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
11716         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
11717         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
11718         * modules/unictype/property-byname (Makefile.am): Likewise.
11719         * modules/unictype/scripts (Makefile.am): Likewise.
11720         * modules/uninorm/composition (Makefile.am): Likewise.
11722 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
11724         Improve port of stdalign to C++11
11725         Problem reported by Sundaram in:
11726         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
11727         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
11728         (__alignas_is_defined): Define if C++11 or newer.
11730 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
11732         pmccabe2html: fix gawk regex escaping
11733         * build-aux/pmccabe2html: Add one more backslash to properly
11734         escape the gsub replacement value.  Fixes this error:
11735         gawk: ./build-aux/pmccabe2html:425: \
11736         warning: escape sequence `\&' treated as plain `&'
11738 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
11740         time_rz: port to pedantic memcpy
11741         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
11742         that reject memcpy (..., NULL, 0).
11744 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
11746         time_rz: port better to MinGW
11747         Don't change tzname, as this makes MinGW dump core (Bug#21020).
11748         Instead, store the tzname copy in the struct tm_zone object.
11749         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
11750         * lib/strftime.c [!_LIBC]:
11751         * lib/time_rz.c: Include time-internal.h.
11752         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
11753         name from *TZ rather than from TZNAME, doable because *TZ now has
11754         a tzname_copy member.
11755         * lib/time-internal.h: New file, with contents taken from
11756         lib/time_rz.c.  It's separate because strftime.c now accesses
11757         struct tm_zone members.
11758         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
11759         New member tzname_copy.
11760         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
11761         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
11762         Initialize tzname_copy member.
11763         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
11764         in tzname_copy member.
11765         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
11766         (restore_tzname): Remove; no longer needed.  All calls removed.
11767         * modules/time_rz (Files): Add lib/time-internal.h.
11769         time: port __need_time_t to MinGW
11770         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
11771         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
11773 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11775         strftime: fix newly-introduced bug on Solaris
11776         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
11777         consistently at the start, rather than doing some of the setup at
11778         the start and some in the %Z format spec.  This is cleaner, and
11779         works better with time_rz on platforms like Solaris where struct
11780         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
11781         mktime_z and localtime_rz can mess up the tzname cache.
11783         test-strftime: test for Solaris bug
11784         * modules/strftime-tests (Depends-on): Add strerror.
11785         * tests/test-strftime.c: Include <errno.h>.
11786         (posixtm_test): New function, containing the old 'main'.
11787         (struct tzalloc_test, struct localtime_rz_test): New types.
11788         (TZ, LT): New static vars.
11789         (tzalloc_test): New function.
11790         (main): Rewrite in terms of posixtm_test and tzalloc_test.
11792         time_rz: port to Solaris etc.
11793         Works around a tzname problem on platforms like Solaris that have
11794         tzname but not tm_zone, by setting tzname at the appropriate time
11795         and restoring it later.
11796         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
11797         New static vars.
11798         (save_abbr) [HAVE_TZNAME]: Set them.
11799         (revert_tz) [HAVE_TZNAME]: Clear or use them.
11800         (restore_tzname): New function.
11801         (localtime_rz, mktime_z): Use it.
11803         time_rz: now LGPL
11804         * modules/time_rz (License): Now LGPL, because strftime depends on it.
11806         time_rz: make a constant 'const'
11807         * lib/time_rz.c (local_tz): Now const.
11809         time_rz: fix off-by-one typo
11810         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
11812 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
11814         fprintftime, strftime: use timezone_t args
11815         * NEWS: Document the change.
11816         * lib/fprintftime.h (fprintftime):
11817         * lib/strftime.c (extra_args) [my_strftime]:
11818         * lib/strftime.h (nstrftime):
11819         Time zone arg is now of type timezone_t, not int.
11820         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
11821         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
11822         (my_strftime) [emacs && !my_strftime]:
11823         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
11824         Remove; Emacs doesn't need this any more.
11825         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
11826         fprintftime and nstrftime to call tzset.
11827         (ut) [!my_strftime]: Remove, replacing with ...
11828         (tz) [!my_stftime]: ... this new macro.  All uses changed.
11829         (strftime_case_): Use localtime_rz and mktime_z instead
11830         of localtime_r and mktime.
11831         * modules/fprintftime (Depends-on): Add time_rz.
11832         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
11833         * tests/test-strftime.c (main): Adjust to new nstrftime API.
11835         time_rz: new module
11836         * MODULES.html.sh: Add time_rz.
11837         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
11838         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
11839         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
11840         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
11841         New var HAVE_TIMEZONE_T (default 0).
11842         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
11843         New var GNULIB_TIME_RZ (default 0).
11844         * modules/time (time.h): Substitute the new vars.
11846         flexmember: license is now unlimited
11847         * modules/flexmember (License): Change to unlimited,
11848         since its only source file gives an unlimited license.
11850 2015-07-15  Eric Blake  <eblake@redhat.com>
11852         maint: update copyright paper procedures
11853         * config/srclist.txt: Drop outdated files.
11854         * doc/Copyright/conditions.txt: Update to latest.
11855         * doc/Copyright/assign.changes.manual: Delete.
11856         * doc/Copyright/assign.future.manual: Likewise.
11857         * doc/Copyright/assign.manual: Likewise.
11858         * doc/Copyright/assign.translation.manual: Likewise.
11859         * doc/Copyright/disclaim.changes.manual: Likewise.
11860         * doc/Copyright/disclaim.manual: Likewise.
11861         * doc/Copyright/disclaim.program: Likewise.
11863 2015-07-07  Daiki Ueno  <ueno@gnu.org>
11865         localename: fix link error on Illumos
11866         Illumos defines __sun, but does not have getlocalename_l nor the
11867         equivalent.  This partially reverts commit 387c214.
11868         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
11869         available, as well as uselocale.
11870         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
11871         use getlocalename_l if it is not available.
11873 2015-07-07  Daiki Ueno  <ueno@gnu.org>
11875         unistr/uN-strtok-tests: avoid a trivial leak
11876         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
11877         input and delim after the multibyte delimiter tests.
11879 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
11881         file-has-acl, acl-permissions: fix HP-UX typos
11882         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
11883         * lib/file-has-acl.c (file_has_acl):
11884         * lib/set-permissions.c (context_acl_from_mode)
11885         (context_aclv_from_mode, set_acls):
11886         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
11887         They were introduced by the recent ACL changes.
11889         regex: match current GNU grep behavior
11890         These symbols have not matched GNU grep behavior for quite some time.
11891         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
11892         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
11893         Change to match current GNU behavior.
11894         Simplify by expressing it as differences from POSIX BREs and EREs.
11895         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
11897 2015-07-03  Jim Meyering  <meyering@fb.com>
11899         set-permissions.c: adjust acl_from_mode's cpp guard
11900         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
11901         directives identical to those guarding the sole use.
11902         Otherwise, on some systems, we'd get a warning about
11903         the function being defined but not used.
11904         Also, filter through cppi to correct misleading indentation
11905         of cpp directives.
11907 2015-07-03  Pádraig Brady  <P@draigBrady.com>
11909         tests: restrict shells to those that support 'local'
11910         The local keyword is very widely supported and used
11911         in tests in coreutils and grep at least.  Therefore
11912         restrict to testing with shells that support it.
11913         This mainly excludes /bin/sh on Solaris.
11914         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
11916 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
11917         and Daiki Ueno  <ueno@gnu.org>
11919         unistr/uN-strtok: handle multibyte delimiters
11920         Previously, uN_strtok moved PTR to the next unit to the token end.
11921         When DELIM contained a multibyte character, the new position could
11922         be a middle of a multibyte character.
11923         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
11924         after the token.
11925         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
11926         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
11927         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
11928         * modules/unistr/u8-strtok (Depends-on): Depend on
11929         unistr/u8-strmblen.
11930         * modules/unistr/u16-strtok (Depends-on): Depend on
11931         unistr/u16-strmblen.
11932         * modules/unistr/u32-strtok (Depends-on): Depend on
11933         unistr/u32-strmblen.
11934         * tests/unistr/test-u-strtok.h: New file.
11935         * tests/unistr/test-u8-strtok.c: New file.
11936         * tests/unistr/test-u16-strtok.c: New file.
11937         * tests/unistr/test-u32-strtok.c: New file.
11938         * modules/unistr/u8-strtok-tests: New file.
11939         * modules/unistr/u32-strtok-tests: New file.
11940         * modules/unistr/u16-strtok-tests: New file.
11942 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
11944         update-copyright: fix test failure with perl >= 5.22 (trivial)
11945         * build-aux/update-copyright: Escape a literal left curly bracket,
11946         required with perl >= 5.22
11948 2015-07-02  Daiki Ueno  <ueno@gnu.org>
11950         u{16,32}-strstr-tests: relax timeout condition
11951         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
11952         tests can take longer than 5 seconds to complete.
11953         Reported by Dagobert Michelsen in:
11954         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
11955         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
11956         seconds to 10 seconds.
11957         * tests/unistr/test-u32-strstr.c (main): Likewise.
11959 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
11961         gnulib-common.m4: change the ARFLAGS default to 'cr'
11962         In some GNU/Linux distributions people started to compile 'ar'
11963         binary with --enable-deterministic-archives (binutils project).
11964         That, however, in combination with previous autotools long time
11965         working default AR{_,}FLAGS=cru causes warnings on such
11966         installations:
11967         ar: `u' modifier ignored since `D' is the default (see `U')
11968         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
11969         set already.
11971 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
11973         selinux-h: avoid double free after *getfilecon()
11974         Originally reported by Ben Shelton on bug-tar:
11975         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
11976         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
11977         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
11978         param should be freed by freecon(3) (regardless the return value).
11980 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
11982         fix pty related tests issues on Windows (trivial)
11983         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
11984         however it's still present in tests/ subdirectory of the final project.
11985         Therefore avoid it to pass `make check`.
11986         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
11987         will just return -ENOSYS, so avoid this non applicable test allowing
11988         the build to proceed.
11990 2015-07-01  Pádraig Brady  <P@draigBrady.com>
11992         acl: fix definition of acl_from_mode on FreeBSD
11993         This was causing basic coreutils copy operations to fail
11994         with ENOTSUP or ENOENT error messages.
11995         * lib/acl-internal.h (acl_from_mode): Only define when
11996         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
11997         of acl_from_mode() defined in lib/set-permissions.c to
11998         be used on FreeBSD at least.
11999         * lib/set-permissions.c: Fix up comment spelling,
12000         and a redundant variable assignment; noticed in passing.
12002 2015-06-30  Pádraig Brady  <P@draigBrady.com>
12004         readutmp: port to FreeBSD >= 9
12005         * lib/readutmp.h: Map utmpxname() to setutxdb().
12006         With that coreutils who(1) and pinky(1) tests pass.
12008 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
12010         mgetgroups: port to strict OS X
12011         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
12012         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
12013         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
12014         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
12016 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
12018         mgetgroups: port to strict OS X
12019         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
12020         Document the getgrouplist problem.
12021         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
12022         New macro.
12023         (mgetgroups): Use it.
12024         * m4/mgetgroups.m4 (gl_MGETGROUPS):
12025         Check for OS X signature for getgrouplist.
12027 2015-06-29  Jim Meyering  <meyering@fb.com>
12029         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
12030         It started like this when building coreutils' latest on OS X,
12031         invoking ./configure with a nonempty --cache=.cache:
12033           lib/linkat.c:46:42: error: operator '||' has no right operand
12034           lib/linkat.c: In function 'rpl_linkat':
12035           lib/linkat.c:330:27: error: #if with no expression
12037         Here's linkat.c's line 46:
12039           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
12041         Here's some context:
12043           $ grep linkat_nofoll .cache
12044           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
12045           $ grep LINKAT_SYM lib/config.h
12046           #define LINKAT_SYMLINK_NOTSUP
12048         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
12049         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
12050         but that violates a tenet of AC_CACHE_CHECK: it must
12051         have no side effect other than setting its cache variable.
12053         What happens is that when the cache is set, we'd skip the
12054         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
12055         defined to whatever value it happened to have in configure's
12056         environment.  In my case, it was not defined, so this later code:
12058           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
12059             [Define to 1 if linkat can create hardlinks to symlinks])
12061         would emit code with an empty RHS.
12063         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
12064         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
12066 2015-06-28  Jim Meyering  <meyering@fb.com>
12068         mountlist: avoid an unused-label warning on OS X
12069         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
12070         Building on OS X, I saw a warning about the "free_then_fail" label
12071         being unused.  Give it the _GL_UNUSED_LABEL attribute.
12073         error.c: correct printf-style format: %d -> %u
12074         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
12075         rather than %d, to match the type of "line_number", unsigned int.
12077 2015-06-25  Pádraig Brady  <P@draigBrady.com>
12079         fts: avoid reading beyond the heap allocation
12080         GCC 5.1.1 with -O2 and -fsanitize=address reports
12081         a read of size 4 from a heap object of size 3 is indeed invalid,
12082         though this may be due to incorrect padding assumptions by GCC, see:
12083         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
12084         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
12085         * modules/fts: Depend on stdalign.
12087 2015-06-24  Pádraig Brady  <P@draigBrady.com>
12089         savedir: avoid undefined behavior in qsort call
12090         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
12091         "runtime error: null pointer passed as argument 1,
12092          which is declared to never be null"
12093         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
12095 2015-06-24  Pádraig Brady  <P@draigBrady.com>
12097         userspec: avoid undefined behavior in gettext call
12098         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
12099         "runtime error: null pointer passed as argument 2,
12100          which is declared to never be null"
12101         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
12103 2015-06-20  Glenn Morris  <rgm@gnu.org>
12105         gitlog-to-changelog: improve gitmerge.el commits
12106         Let the Emacs ChangeLog generation process exclude "skipped"
12107         messages from merge commits (Bug#20717).
12108         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
12110 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
12112         wchar: fix MinGW compilation warnings
12113         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
12114         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
12115         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
12117 2015-06-20  Daiki Ueno  <ueno@gnu.org>
12119         uniname/uniname-tests: use pristine data files
12120         For copyright and maintenance reasons, use the data files from UCD
12121         without modification.
12122         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
12123         (getfield): Remove.
12124         (aliases_count): New global variable.
12125         (fill_names): Skip comments and empty lines in the input.  Don't
12126         use getfield.
12127         (fill_aliases): Likewise.
12128         (main): Change the expected command line arguments to:
12129         NAMES... ["--" ALIASES...].
12130         * tests/uniname/test-uninames.sh: Adjust to the change in
12131         test-uninames.c.
12132         * tests/uniname/UnicodeDataNames.txt: Remove.
12133         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
12134         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
12135         file from Unicode 8.0.0.
12137 2015-06-19  Pádraig Brady  <P@draigBrady.com>
12139         linked-list, linkedhash-list: avoid compiler warnings
12140         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
12141         -Werror=suggest-attribute=pure (from GCC 5.1.1).
12143 2015-06-19  Daiki Ueno  <ueno@gnu.org>
12145         libunistring: bump minimum version to 0.9.6
12146         * all modules depending on updated Unicode data: Regenerate.
12147         The modules are listed by a script that does:
12148         - for each file listed by: git show --oneline --name-only 705f4efc
12149           - deduce the containing modules, based on "Files:"
12150         - deduce the modules which depend on the containing modules, based
12151           on "Depends-on:"
12153 2015-06-18  Daiki Ueno  <ueno@gnu.org>
12155         uniname/uniname: update to Unicode 8.0.0
12156         * lib/uniname/uninames.h: Regenerate.
12157         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
12158         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
12160 2015-06-18  Daiki Ueno  <ueno@gnu.org>
12162         libunistring: update to Unicode 8.0.0
12163         * lib/gen-uni-tables.c (SIZEOF): New macro.
12164         (output_numeric): Increase the maximum number of fractions from
12165         128 to 160.  Increase the level3 value width from 7 bits to 8
12166         bits.  Use SIZEOF instead of a hard-coded integer.
12167         (output_blocks): Decrease the cut-off threshold from 0x30000 to
12168         0x28000.
12169         (fill_blocks): Increase the maximum number of blocks from 256 to
12170         384.  Use SIZEOF instead of a hard-coded integer.
12171         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
12172         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
12173         value width.
12174         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
12175         a new case added to LBP22.
12176         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
12177         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
12178         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
12179         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
12180         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
12181         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12182         lib/uniwidth/width.c.
12183         * all generated files under lib/uni* and tests/uni*: Regenerate.
12185 2015-06-16  Pádraig Brady  <P@draigBrady.com>
12187         gnu-web-doc-update: add --mirror to remove stale files
12188         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
12189         out of date files from the CVS server.  Since this is usually
12190         appropriate, a prompt is given when the option is not specified,
12191         along with the `cvs remove` command that would be run.
12193 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
12195         acl-permissions: pacify -Wsuggest-attribute=const
12196         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
12197         * lib/acl-internal.h (free_permission_context):
12198         Declare with attribute const if ! (defined USE_ACL &&
12199         (HAVE_ACL_GET_FILE || defined GETACL)).
12201         fsync: document AIX misbehavior
12202         * doc/posix-functions/fsync.texi (fsync):
12203         Document failure on AIX with read-only file descriptor.
12205 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
12207         stdio: Don't redefine gets when using C++
12208         * lib/stdio.in.h (gets): Disable warning on C++.
12210 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
12212         acl-permissions: port to AIX, C89 HP-UX
12213         Problems reported by Michael Felt.
12214         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
12215         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
12216         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
12217         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
12218         Add cast for AIX, whose system calls are declared to accept
12219         char * even though the arguments are really char const *.
12220         * lib/get-permissions.c (get_permissions):
12221         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
12222         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
12223         that broke a build.
12224         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
12225         Rework types to pacify xlc.
12227 2015-06-03  Pádraig Brady  <P@draigBrady.com>
12229         vasprintf-posix: avoid compiling vasnprintf where possible
12230         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
12231         module where not required.  For example on a GNU/Linux system
12232         when gnulib-tool is run with the --conditional-dependencies option.
12234 2015-06-02  Pádraig Brady  <P@draigBrady.com>
12236         file-has-acl: fix build on Mac OS X 10
12237         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
12238         which has an incompatible 6 parameter getxattr() call.
12239         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
12240         call on Mac OS X >= 10.4.
12241         * doc/glibc-functions/fgetxattr.texi: Likewise.
12242         * lib/file-has-acl.c: Revert to more complete combined check.
12243         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
12244         Reported by Jack Howarth.
12246 2015-06-02  Pádraig Brady  <P@draigBrady.com>
12248         prefix-gnulib-mk: remove no longer needed special case
12249         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
12250         continued lib_SOURCES lines are no longer present,
12251         so special case handling of such entries is not required.
12253 2015-06-01  Pádraig Brady  <P@draigBrady.com>
12255         acl: don't depend on the deprecated qacl module
12256         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
12258 2015-06-01  Pádraig Brady  <P@draigBrady.com>
12260         gnulib-tool: concatenate lib_SOURCES to a single line
12261         * gnulib-tool: Refactor the line merging sed logic,
12262         and use that to output a single lib_SOURCES line for each module.
12263         gnulib using projects often postprocess this output to prepend
12264         subdir paths to each item, and having a single line simplifies this
12265         processing allowing better decoupling from the gnulib-tool output.
12267 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
12269         pthread_sigmask: discount system version if a simple macro (trivial)
12270         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
12271         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
12272         function to ensure it's available.
12274 2015-05-31  Pádraig Brady  <P@draigBrady.com>
12276         readlinkat: avoid OS X 10.10 trailing slash bug
12277         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
12278         has this bug.
12279         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
12280         that OS X 10.10 has this function.
12281         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
12282         as done for readlink().
12283         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
12284         trailing slash bug, and assume readlinkat() has the same issue.
12285         Also fix a typo where $gl_cv_decl_readlink_works was tested,
12286         rather than the correct $gl_cv_decl_readlinkat_works.
12288 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
12290         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
12291         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
12292         module rewrite.
12294         acl-permissions: Fix build on Solaris and Cygwin
12295         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
12296         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
12297         ace_entries variables have moved into struct permission_context but
12298         they were still accessed as local variables here.
12300 2015-05-29  Pádraig Brady  <P@draigBrady.com>
12302         linkat: avoid OS X 10.10 trailing slash with symlink bug
12303         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
12304         causes the symlink to be dereferenced, and if it points
12305         to a non existent file, that file will be created as
12306         a hard link to "path1".
12307         This fixes a test failure in test-linkat.c.
12308         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
12309         this case.  The existing workaround in linkat.c for
12310         trailing slash issues, suffices for this case.
12311         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
12312         the list of platforms with trailing slash issues.
12314 2015-05-28  Pádraig Brady  <P@draigBrady.com>
12316         unlinkat: handle ignoring of ".." on Darwin 14
12317         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
12318         on Mac OS X 10.10, where it ignores paths with a trailing "..",
12319         so handle in the same manner.
12320         * m4/unlinkat.m4: Comment on this Darwin issue.
12321         * doc/posix-functions/unlink.texi: Update the latest version
12322         where the issue was seen.
12323         * doc/posix-functions/unlinkat.texi: Mention this issue.
12324         Fixes a test failure in test-unlinkat.c.
12326 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
12328         qacl: split into qcopy-acl and qset-acl
12329         Emacs needs the former, but not the latter.
12330         * modules/acl-permissions: New file, containing most of the old qacl.
12331         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
12332         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
12333         * modules/qcopy-acl, modules/qset-acl: New files.
12334         * MODULES.html.sh (File system functions):
12335         Mention the new modules, and mention qacl while we're at it.
12337 2015-05-27  Glenn Morris  <rgm@gnu.org>
12339         gitlog-to-changelog: new option --ignore-line
12340         (This patch is imported from the GNU Emacs master.)
12341         This option ignores individual commit lines matching a pattern.
12342         * build-aux/gitlog-to-changelog: Add --ignore-line option.
12344 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
12346         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
12347         Implement get_permissions and set_permissions primitives for getting all
12348         the permissions of a file, storing them, and later setting them. (In the
12349         minimal case, the permissions consist only of a file mode.) Reimplement
12350         qset_acl and qcopy_acl based on these new primitives: this avoids code
12351         duplication and makes error handling more consistent.
12352         The Solaris and Cygwin code still uses duplicate code paths for setting
12353         a file mode while making sure that no acls exist and setting an explicit
12354         acl; this is no worse than before, but could be cleaned up.  The AIX
12355         code still doesn't read ACLs, it only makes sure that acls don't get in
12356         the way when setting a file mode.
12357         * lib/acl-internal.h (struct permission_context): New data structure.
12358         (get_permissions, set_permissions, free_permission_context): Declare.
12359         * lib/acl-internal.c (free_permission_context): New helper function.
12360         * lib/get-permissions.c (get_permissions): New helper function split off
12361         from qcopy_acl.
12362         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
12363         AIX, set a file's permissions based only on a file mode.
12364         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
12365         other platforms construct a temporary acl from the file mode and set
12366         that acl in the same way as setting an acl read from the source file.
12367         This should help avoid code duplication and inconsistent / buggy
12368         behavior.
12369         (set_acls): New helper function Split off from qcopy_acl.
12370         (chmod_or_fchmod): Moved here from qset-acl.c.
12371         (set_permissions): New helper function.
12372         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
12373         set_permissions.
12374         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
12375         * modules/qacl: Add get-permissions.c and set-permissions.c.
12377         file-has-acl: Split feature tests again (Bug#20667)
12378         * lib/file-has-acl.c: Instead of testing for
12379         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
12380         define them when needed.
12381         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
12382         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
12384 2015-05-27  Pádraig Brady  <P@draigBrady.com>
12386         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
12387         This avoids a conflict with "FORTIFY_SOURCE" variants
12388         of the string functions when they're replaced on NetBSD-6.0.1
12389         and Darwin-14.3.0 at least.
12390         * lib/string.in.h: Avoid including our "lib/string.h" while
12391         including the system <string.h>.
12393 2015-05-26  Eric Blake  <eblake@redhat.com>
12395         stdio: limit __gnu_printf__ witness to gcc 4.4+
12396         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
12397         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
12399         error: use correct printf attributes on mingw
12400         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
12402         inttypes: force correct mingw PRIdMAX even without <stdio.h>
12403         * modules/inttypes (Depends-on): Require extensions, so that mingw
12404         always uses GNU style inttypes.
12405         * lib/inttypes.in.h: On mingw, include <stdio.h>.
12407         stdio: fix probe on mingw under gcc 5.1
12408         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
12409         around new gcc preprocessor rules.
12411 2015-05-07  Glenn Morris  <rgm@gnu.org>
12413         gitlog-to-changelog: parse "Tiny-change"
12414         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
12415         "Copyright-paperwork-exempt".  (Bug#20324)
12417 2015-05-06  Pádraig Brady  <P@draigBrady.com>
12419         doc: document glibc posix_fallocate() issues
12420         * doc/posix-functions/posix_fallocate.texi: Mention the
12421         glibc efficiency problems and issues with NFS.
12423 2015-05-05  Karl Berry  <karl@freefriends.org>
12425         * build-aux/gendocs.sh (usage): document new css default
12426         for HTML (--htmlarg).
12428 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
12430         extern-inline: no need for workaround in GCC 5.1
12431         * doc/extern-inline.texi (extern inline):
12432         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
12433         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
12434         around these bugs in GCC 5.1 and later.  Maybe in a decade or
12435         two we can remove these workarounds.
12437 2015-04-28  Pádraig Brady  <P@draigBrady.com>
12439         eealloc, pagealign_alloc, xalloc: avoid clang warnings
12440         Avoid [-Wunknown-attributes] warnings like:
12441         warning: unknown attribute '__alloc_size__' ignored
12442         * lib/xalloc.h: Don't use the __alloc_size__  attribute
12443         with clang, as support has been fully removed as of clang 3.5:
12444         https://github.com/llvm-mirror/clang/commit/c047507a
12445         * lib/eealloc.h: Likewise.
12446         * lib/pagealign_alloc.h: Likewise.
12448 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
12450         tests: pacify GCC 5.1's stricter printf checking
12451         * tests/test-dirname.c (main):
12452         * tests/test-getaddrinfo.c (simple):
12453         * tests/test-getlogin.c (main):
12454         * tests/test-getndelim2.c (main):
12455         * tests/test-inttostr.c (CK):
12456         * tests/test-md5.c (main):
12457         * tests/test-read-file.c (main):
12458         * tests/test-sha1.c (main):
12459         Fix mismatches between printf format and value signedness.
12460         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
12461         Remove, as CAST_VAL always returned a value of type uintmax_t.
12463         fts: port to GCC 5.1 with --enable-gcc-warnings
12464         Without this fix, GCC 5.1 (correctly) warns about a subscript
12465         error on the fts_name component of FTSENT.  It's actually a
12466         flexible member, so define it that way on C99 or later hosts.
12467         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
12468         structure that now has a flexible array member.
12469         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
12470         (FTSENT): fts_name is now flexible on C99-or-later platforms.
12471         * modules/fts (Depends-on): Add flexmember.
12473 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
12475         file-has-acl: port to CentOS 6
12476         Problem reported by Tom G. Christensen in:
12477         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
12478         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
12479         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
12480         HAVE_GETXATTR.
12481         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
12482         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
12483         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
12484         file-has-acl.c actually needs.
12486 2015-04-26  Pádraig Brady  <P@draigBrady.com>
12488         file-has-acl: always return false when ACLs aren't supported
12489         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
12490         change the GNU/Linux getxattr path, to transform "not supported"
12491         errors to a false return rather than an error.  This is handled
12492         within file_has_acl() due to the platform specific tests to
12493         determine if ACLs are not supported.
12495 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
12497         gettext: propagate po/Makefile.in.in too
12498         * build-aux/po/Makefile.in.in: Copy from latest gettext.
12499         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
12500         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
12501         between Makefile.in.in and the gettext-runtime m4 files.
12503 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
12505         file-has-acl: new module, split from acl
12506         And add a new module file-has-acl-tests to match.
12507         I ran into a problem with the recent changes to the acl module,
12508         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
12509         When using the fixed version with Emacs, I discovered that
12510         file-has-acl wasn't separated out well enough for Emacs (e.g., it
12511         had multiple libraries, but needed only one), so I fixed that too.
12512         * NEWS: Document this incompatible change.
12513         * modules/file-has-acl, modules/file-has-acl-tests: New files.
12514         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
12515         Initialize gl_need_lib_has_acl.
12516         (gl_FUNC_ACL): Require it.
12517         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
12518         Move the file-has-acl.c-relevant stuff to ...
12519         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
12520         use_xattrs = 0' typo, and omit some needless work.  Set
12521         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
12522         when gl_FUNC_ACL is called.
12523         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
12524         (Link): Remove $(LIB_HAS_ACL).
12525         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
12526         (check_PROGRAMS): Move stuff relevant to file-has-acl to
12527         modules/file-has-acl-tests.
12528         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
12530         manywarnings: add GCC 5.1 warnings
12531         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
12532         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
12533         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
12534         -Wsuggest-override, -Wuse-without-only.  Change
12535         -Wnormalized=... operands to match 5.1.
12536         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
12537         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
12538         -Wdiscarded-qualifiers, -Wformat-signedness,
12539         -Wincompatible-pointer-types, -Wint-conversion,
12540         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
12541         -Wshift-count-negative, -Wshift-count-overflow,
12542         -Wsizeof-array-argument, -Wsuggest-final-methods,
12543         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
12544         and add -Warray-bounds=2 as a special case.
12546 2015-04-21  Simon Josefsson  <simon@josefsson.org>
12548         doc: update FDL template to match FDL examples.
12549         * doc/alloca-opt.texi:
12550         * doc/alloca.texi:
12551         * doc/c-ctype.texi:
12552         * doc/c-strcase.texi:
12553         * doc/c-strcaseeq.texi:
12554         * doc/c-strcasestr.texi:
12555         * doc/c-strstr.texi:
12556         * doc/c-strtod.texi:
12557         * doc/c-strtold.texi:
12558         * doc/ctime.texi:
12559         * doc/error.texi:
12560         * doc/gcd.texi:
12561         * doc/gnulib-tool.texi:
12562         * doc/inet_ntoa.texi:
12563         * doc/intprops.texi:
12564         * doc/lib-symbol-visibility.texi:
12565         * doc/maintain.texi:
12566         * doc/parse-datetime.texi:
12567         * doc/quote.texi:
12568         * doc/regexprops-generic.texi:
12569         * doc/standards.texi: Remove spurious 'with' in FDL license
12570         template.
12572 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
12574         lstat: fix cross-compilation 'ln -s' problem
12575         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
12576         Have the test program call 'symlink' rather than a separate
12577         script run 'ln -s'; this is more likely to work in
12578         cross-compilation environments.  Reported by Pavel Fedin in:
12579         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
12581 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
12583         gendocs.sh: default to a common CSS style sheet for HTML output
12584         * build-aux/gendocs.sh (htmlarg): Change default value.
12586 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
12588         gnulib-tool: output bold attribute more portably
12589         * gnulib-tool (func_show_module_list): Change hexadecimal
12590         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
12591         encoded numbers as arguments to `printf' is not portable,
12592         and is not claimed by POSIX.  This is the case with FreeBSD.
12594 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
12596         qacl: Simplify HP-UX acl_nontrivial check
12597         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
12598         acl_nontrivial. Check if the acl has at most three entries instead (it must
12599         have exactly three entries according to the HP-UX documentation). Ignore
12600         uids and gids as long as an entry is either for a user (i.e., the owner),
12601         a group (i.e., the owning group), or others.
12602         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
12603         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
12605 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
12607         acl: On Linux, check for acls without libacl
12608         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
12609         library function to check for the presence of acls, avoiding a library.
12610         * lib/file-has-acl.c: Include xattr headers if we have them.
12611         (file_has_acl): On Linux, use getxattr().
12612         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
12613         file_has_acl(). Check for xattr headers and getxattr().
12615 2015-04-14  Ángel González  <keisial@gmail.com>
12617         tempname: avoid unused parameter warnings (trivial)
12618         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
12619         (try_nocreate): Likewise.
12621 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
12623         fseeko: fix build failure on NetBSD >= 6 (trivial)
12624         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
12625         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
12627 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12629         gitlog-to-changelog: port to MS-Windows
12630         * build-aux/gitlog-to-changelog (git_dir_option):
12631         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
12632         MS-Windows Perl.  Reported by Eli Zaretskii in:
12633         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
12635 2015-04-07  Karl Berry  <karl@gnu.org>
12637         gendocs: new option --tex for passing args to texi2dvi.
12638         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
12639         (TEXI2DVI): cut to just command name.
12640         (usage): mention new option, and update copyright.
12641         <generate_tex>: use it.
12643 2015-04-07  Karl Berry  <karl@gnu.org>
12645         * config/srclistvars.sh (GETTEXT): new definition.
12646         * config/srclist.txt: use it for gettext .m4 files.
12647         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
12648         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
12649         and continuing into April.
12651 2015-04-07  Daiki Ueno  <ueno@gnu.org>
12653         uniname/uniname-tests: fix failure due to alias
12654         Reported by Jack Howarth in:
12655         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
12656         * tests/uniname/test-uninames.c (name_has_alias): New function.
12657         (test_inverse_lookup): Exclude character name with valid alias,
12658         from randomly generated character names.
12659         (main): Fill unicode_aliases before calling test functions.
12661 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
12663         hash: remove deprecated hash_insert0 function
12664         * lib/hash.h (hash_insert0): Remove deprecated function.
12665         * lib/hash.c (hash_insert0): Likewise.
12667 2015-04-02  Pádraig Brady  <P@draigBrady.com>
12669         mountlist: remove dependency on libmount
12670         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
12671         directly, rather than depending on libmount, which has many
12672         dependencies due to its dependence on libselinux, as detailed at:
12673         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
12674         Note we restrict this to __linux__ as that's probably where this
12675         interface will remain.  If ever porting, it would be best
12676         to first pull the makedev() wrapper from coreutils to a gnulib module.
12677         Note also we don't add a getline dependency to the mountlist module,
12678         as all Linux versions are sufficient.
12680 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
12682         stddef: port to pre-C11 GCC on x86
12683         On this platform, max_align_t should have an alignment of 8 even
12684         though the storage alignments of double, long, etc. max out at 4.
12685         Inspired by a comment of Andreas Schwab's here:
12686         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
12687         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
12688         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
12689         * tests/test-stddef.c: Test __alignof__ too, if available.
12691 2015-03-24  Pádraig Brady  <P@draigBrady.com>
12693         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
12694         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
12696 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
12698         yesno: make EOL optional in ENABLE_NLS case also (trival)
12699         * lib/yesno.c (yesno): Check for EOL before replacing.
12700         * tests/test-yesno.sh: Add a test case (test along with gettext).
12702 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
12704         fdopendir-tests: test it does not close its arg
12705         * tests/test-fdopendir.c (main): Test that fdopendir does not
12706         close its argument.  From a suggestion by David Grayson in:
12707         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
12709 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
12711         gitlog-to-changelog: trim trailing white space
12712         * build-aux/gitlog-to-changelog (main):
12713         Trim trailing white space from commit message lines.
12714         This is helpful for processing the GNU Emacs repository,
12715         which dates back to 1985 and contains a lot of such lines.
12717         gitlog-to-changelog: new option --ignore-matching
12718         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
12719         Support new option --ignore-matching=PAT, which ignores all
12720         commit messages whose first line matches PAT.
12722 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
12724         fdopendir: port better to MinGW
12725         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
12726         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
12727         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
12728         * modules/fdopendir (Depends-on): Add dirfd.
12730 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
12732         fdopendir: fix typo in comment
12733         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
12735 2015-03-09  Eric Blake  <eblake@redhat.com>
12737         error: document all entry points provided
12738         * doc/glibc-functions/error_print_progname.texi
12739         (error_print_progname): Mention the error module.
12740         * doc/glibc-functions/error_at_line.texi (error_at_line):
12741         Likewise.
12742         * doc/glibc-functions/error_message_count.texi
12743         (error_message_count): Likewise.
12744         * doc/glibc-functions/error_one_per_line.texi
12745         (error_one_per_line): Likewise.
12747 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
12749         vasnprintf: pacify clang 3.5.0
12750         Problem reported by Werner Lemberg in:
12751         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
12752         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
12753         The casts aren't needed, since the characters in question are ASCII.
12755 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
12757         glob, etc.: port to MSVC v18 on MS-Windows 8.1
12758         * lib/dirent--.h (GNULIB_defined_opendir):
12759         * lib/dirent.in.h (GNULIB_defined_opendir)
12760         (GNULIB_defined_closedir):
12761         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
12762         #undef only if Gnulib defined it.
12764         poll: port to MSVC v18 on MS-Windows 8.1
12765         Problem reported by Gisle Vanem in:
12766         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
12767         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
12768         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
12769         Add sys_socket.
12771 2015-02-24  Pádraig Brady  <P@draigBrady.com>
12773         tests: support stderr verification with returns_()
12774         * tests/init.sh (returns_): Disable tracing for this wrapper
12775         function, so that stderr of the wrapped command is unchanged,
12776         allowing for verification of the contents.
12778 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
12780         passfd: avoid valgrind uninitalised data warning
12781         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
12782         to include just the fd we've initialized, rather than including
12783         the extra space used for alignment.
12785 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
12787         uniwbrk/u32-wordbreaks-tests: fix copyright
12788         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
12790         dup2: doc and test for Android bug
12791         Reported by Kevin Cernekee in:
12792         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
12793         * doc/posix-functions/dup2.texi (dup2): Document the bug.
12794         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
12796 2015-02-23  Kevin Cernekee  <cernekee@google.com>
12798         Replace dup2() on Android
12799         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
12800         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
12801         fails.  Using rpl_dup2() fixes this because it has an explicit test
12802         for this condition.
12804 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
12806         Android doesn't define RLIM_SAVED_*
12807         Portability problem reported by Kevin Cernekee in:
12808         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
12809         * doc/posix-headers/sys_resource.texi (sys/resource.h):
12810         Mention the portability problem.
12811         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
12812         Define if not defined.
12813         * m4/dup2.m4 (gl_FUNC_DUP2):
12814         * m4/fcntl.m4 (gl_FUNC_FCNTL):
12815         Likewise.
12817 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
12819         vasnprintf-posix-tests: use consistent test
12820         * tests/test-vasnprintf-posix.c (test_function):
12821         Use "<" in assert instead of "<=", for consistency with other tests.
12823 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
12825         printf, isinf, etc.: noncanonical != NaN
12826         Do not require that isinf, printf, etc. treat noncanonical
12827         values as NaNs.  Instead, require only that they do not crash.
12828         Problem reported by Joseph Myers in:
12829         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
12830         * doc/posix-functions/dprintf.texi (dprintf):
12831         * doc/posix-functions/fprintf.texi (fprintf):
12832         * doc/posix-functions/isfinite.texi (isfinite):
12833         * doc/posix-functions/isinf.texi (isinf):
12834         * doc/posix-functions/isnan.texi (isnan):
12835         * doc/posix-functions/printf.texi (printf):
12836         * doc/posix-functions/snprintf.texi (snprintf):
12837         * doc/posix-functions/sprintf.texi (sprintf):
12838         * doc/posix-functions/vdprintf.texi (vdprintf):
12839         * doc/posix-functions/vfprintf.texi (vfprintf):
12840         * doc/posix-functions/vprintf.texi (vprintf):
12841         * doc/posix-functions/vsnprintf.texi (vsnprintf):
12842         * doc/posix-functions/vsprintf.texi (vsprintf):
12843         Document this.
12844         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
12845         * m4/isinf.m4 (gl_ISINFL_WORKS):
12846         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
12847         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
12848         * tests/test-isfinite.c (test_isfinitel):
12849         * tests/test-isinf.c (test_isinfl):
12850         * tests/test-isnan.c (test_long_double):
12851         * tests/test-isnanl.h (main):
12852         * tests/test-snprintf-posix.h (test_function):
12853         * tests/test-sprintf-posix.h (test_function):
12854         * tests/test-vasnprintf-posix.c (test_function):
12855         * tests/test-vasprintf-posix.c (test_function):
12856 o       Test only that noncanonical values do not cause crashes, not that
12857         they are treated as NaNs.  In some cases this means a larger
12858         output buffer is needed.
12860 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
12862         fts: remove redundant close() (trivial)
12863         * lib/fts.c (fts_read): Remove redundant call to close().
12864         Spotted by coverity.
12866 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
12868         getdtablesize: port better for Android
12869         Problem reported by Kevin Cernekee in:
12870         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
12871         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
12872         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
12873         Instead, just use getrlimit, taking care to avoid Cygwin bug.
12875         poll: fixes for large fds
12876         * lib/poll.c (poll): Don't check directly for NFD too large.
12877         Don't rely on undefined behavior in FD_SET when an arg exceeds
12878         FD_SETSIZE.  Always set revents afterwards, even if to zero.
12879         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
12880         as that makes the test a bit stricter.
12882 2015-02-19  Kevin Cernekee  <cernekee@google.com>
12884         fcntl: Fix cross compiling
12885         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
12886         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
12888 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
12890         dup2, fcntl: cross-compile better for Android
12891         Problem reported by Kevin Cernekee in:
12892         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
12893         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
12894         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
12895         there's little need to cross-compile for older kernels nowadays.
12896         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
12897         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
12899 2015-02-18  Pádraig Brady  <P@draigBrady.com>
12901         getopt: don't crash on memory exhaustion
12902         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
12903         memory exhaustion.  In the _LIBC case we use alloca() as is
12904         already done in glibc, so we don't need to consider the separate
12905         error path in that awkward case.  Also fix a memory leak when
12906         ambiguous options are present.
12907         Reported by Tobias Stoeckmann
12909 2015-02-17  Mike Miller  <mtmiller@ieee.org>
12911         tempname: allow compilation with C++ (trivial)
12912         * lib/tempname.h [C++]: Specify extern "C" linkage.
12913         * lib/tempname.h (try_tempname):
12914         * lib/tempname.c (__try_tempname, __gen_tempname):
12915         Rename 'try' to 'tryfunc'.
12917 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
12919         dup2, fcntl: port to AIX
12920         * m4/dup2.m4 (gl_FUNC_DUP2):
12921         * m4/fcntl.m4 (gl_FUNC_FCNTL):
12922         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
12923         The former works on AIX 7.1 but the latter does not.
12924         Also, this may work better with Android; see:
12925         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
12927 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
12929         getdtablesize, dup2, fcntl: port to Android
12930         Problem reported by Kevin Cernekee in:
12931         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
12932         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
12933         Mention that getdtablesize doesn't work on Android.
12934         * lib/getdtablesize.c: Use getrlimit substitute only if
12935         getdtablesize is declared.  This should suffice for Cygwin
12936         while not breaking Android.
12937         * m4/dup2.m4 (gl_FUNC_DUP2):
12938         * m4/fcntl.m4 (gl_FUNC_FCNTL):
12939         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
12940         standardized but the latter is not, and sysconf works on Android.
12941         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
12942         Also check that getdtablesize is declared.
12943         This removes the need for a special case for Android.
12945 2015-02-16  Kevin Cernekee  <cernekee@google.com>
12947         localename: Implement gl_locale_name_thread_unsafe for Android
12948         * lib/localename.c: Android API level >= 21 supports two hardcoded
12949         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
12950         the internal __locale_t struct.
12952 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
12954         fts: avoid crash when a cycle is added while traversing
12955         This could be triggered by auto-mounting a recursive bind mount.
12956         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
12957         * lib/fts.c (fts_read): Avoid removing the original hash table item
12958         when leaving a directory that caused a cycle, and preserve the FTS_DC
12959         flag.
12961 2015-02-16  Daiki Ueno  <ueno@gnu.org>
12963         uniname/uniname: support character alias
12964         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
12965         Generate one-way mapping from aliases to codepoints in the
12966         generated tables.  Special case variation selectors to reduce
12967         table size.
12968         * lib/uniname/uniname.c (unicode_character_name): Special case
12969         variation selectors.
12970         (unicode_name_character): Special case variation selectors and
12971         their aliases.
12972         * lib/uniname/uninames.h: Regenerate.
12973         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
12974         * modules/uniname/uniname-tests (Files): Add
12975         tests/uniname/NameAliases.txt.
12976         * tests/uniname/test-uninames.c: Mark as static.
12977         (ALIASLEN): Define.
12978         (struct unicode_alias): New struct.
12979         (unicode_aliases): New variable.
12980         (fill_aliases): New function.
12981         (test_alias_lookup): New test function.
12982         (main): Run the 'test_alias_lookup' test if the second argument is
12983         given.
12984         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
12985         second argument.
12987 2015-02-11  Kevin Cernekee  <cernekee@google.com>
12989         Fix FILE struct compatibility with Android API level >= 21
12990         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
12991         __sferror.  Recent versions of Bionic's stdio.h no longer define
12992         __sferror.
12993         * lib/fbufmode.c: Likewise.
12994         * lib/fflush.c: Likewise.
12995         * lib/fpurge.c: Likewise.
12996         * lib/freadable.c: Likewise.
12997         * lib/freadahead.c: Likewise.
12998         * lib/freading.c: Likewise.
12999         * lib/freadptr.c: Likewise.
13000         * lib/freadseek.c: Likewise.
13001         * lib/fseeko.c: Likewise.
13002         * lib/fseterr.c: Likewise.
13003         * lib/fwritable.c: Likewise.
13005         Assume unbroken ungetc() on Android
13006         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
13007         test case passed when running on an Android host, and the code
13008         hasn't really changed since 2009.
13010         getdtablesize: Fix Android build
13011         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
13012         versions have this symbol in the .so library (at least 32-bit
13013         platforms) but are missing the declaration in the header file,
13014         causing the m4 logic to guess incorrectly.
13016         localename: Fix Android build
13017         * modules/localename (Depends-on): Add langinfo.
13019         getugroups: Fix Android build
13020         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
13021         functions.
13023         euidaccess: Fix Android build
13024         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
13025         AT_EACCESS gets declared.
13027         linkat_nofollow: Add fallback case for cross compiling
13028         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
13030         net_if: Handle content-free <net/if.h> system headers
13031         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
13032         struct if_nameindex.  If not, enable the replacement header.
13034         signal_h: Fix Android build
13035         * lib/signal.in.h: Add Android to the list of platforms that declare
13036         pthread_sigmask() in <pthread.h> instead of <signal.h>.
13038         duplocale: Fix Android build of duplocale-tests
13039         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
13040         is included by test-duplocale.c (but not by duplocale.c).
13041         * modules/duplocale-tests (configure.ac): Check for monetary.h.
13042         * tests/test-duplocale.c: Skip test if monetary.h is absent.
13043         * doc/posix-headers/monetary.texi: Add Android to the list of
13044         platforms missing monetary.h.
13046 2015-02-11  Pádraig Brady  <P@draigBrady.com>
13048         tests: avoid recent -Werror=unused-variable regression in test-locale
13049         * tests/test-locale.c (main): Reference the variable to avoid the
13050         "unused variable" warning.
13052 2015-02-11  Pádraig Brady  <P@draigBrady.com>
13054         maint: various whitespace cleanups in tempname
13055         * lib/tempname.c: Normalize spacing and line length.
13056         * lib/tempname.h: Likewise.
13057         * modules/tempname: Likewise.
13059 2015-02-11  Pádraig Brady  <P@draigBrady.com>
13061         tests: provide returns_() to simplify exit status checking
13062         * tests/init.sh (returns_): A new function for use in tests,
13063         to allow for easier checking of return values, where you expect
13064         a command to exit with failure status.  By checking for a particular
13065         exit code, you don't hide any crashes for example.
13067 2015-02-11  Pádraig Brady  <P@draigBrady.com>
13069         mountlist: only use libmount when specified
13070         There are currently many shared libs dependencies introduced by
13071         libmount with associated runtime and virt mem overhead.
13072         Therefore don't enable by default.
13073         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
13075 2015-02-08  Daiki Ueno  <ueno@gnu.org>
13077         uniname/unimame-tests: don't link with -lunistring
13078         * modules/uniname/uniname-tests (Makefile.am): Don't link against
13079         $(LIBUNISTRING).  Document the rationale why we need to
13080         conditionalize the test.
13082 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
13084         fstrcmp: don't assume strlen < INT_MAX
13085         * lib/fstrcmp.c: Include stddef.h and stdint.h.
13086         (uintptr_t): Remove, as we're now assuming stdint.
13087         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
13088         Prefer ptrdiff_t to int when the value could exceed INT_MAX
13089         if the input string is long.
13090         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
13091         uintptr_t to size_t when the underlying value is a pointer casted
13092         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
13093         * modules/fstrcmp (Depends-on): Add stdint.
13095         diffseq: prefer ptrdiff_t to ssize_t
13096         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
13097         ptrdiff_t is the natural type for signed indexes.
13098         On a few older platforms, ssize_t is narrower than size_t.
13100         xalloc: fix typo that suppressed warnings
13101         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
13102         This typo, introduced a couple of years ago, mistakenly suppressed
13103         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
13104         -Wmissing-declarations warnings.
13106         full-read: fix license notice typo
13107         * lib/full-read.h: Remove a stray line in the license notice.
13108         Reported by Sam Ellis in: http://bugs.gnu.org/19808
13110         crypto/gc: fix a -Wswitch warning
13111         Reported by Bruce Korb in:
13112         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
13113         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
13115 2015-02-03  Pádraig Brady  <P@draigBrady.com>
13117         gnulib-tool: fix handling of patch(1) diagnostics
13118         * gnulib-tool: Send diagnostics from patch(1) to stderr,
13119         as otherwise gnulib-tool will reparse that output and attempt
13120         to lookup modules.
13122 2015-02-03  Pádraig Brady  <P@draigBrady.com>
13124         bootstrap: exit immediately upon gnulib-tool failure
13125         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
13126         This was noticed when gnulib-tool exited early due to failure
13127         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
13128         but various confusing errors were then given as the build proceeded.
13130 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
13132         symlinkat: include all required header files
13133         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
13134         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
13135         Reported at https://savannah.gnu.org/bugs/index.php?44151
13136         and by Jack Howarth.
13138 2015-01-29  Pádraig Brady  <P@draigBrady.com>
13140         localename: support Solaris 12 and illumos
13141         * lib/localename.c (gl_locale_name_thread_unsafe): call
13142         getlocalename_l() on newer __sun platforms.
13143         Reported by Alexander Pyhalov.
13144         Fix suggested by Rich Burridge.
13146 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
13148         locale: fix tests on illumos (trivial)
13149         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
13150         so move from global scope to main().
13152 2015-01-24  Daiki Ueno  <ueno@gnu.org>
13154         unictype: avoid undefined left-shift behavior
13155         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
13156         gcc's -fsanitize=shift and running its tests triggered:
13157           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
13158             places cannot be represented in type 'int'
13159         Cast LHS to 'unsigned int' after integer promotion.
13160         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
13161         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
13163 2015-01-20  Daiki Ueno  <ueno@gnu.org>
13165         libunistring: bump version of unitypes dependants
13166         Due to the header file search order, all the headers which depend
13167         on unitypes.h need to be generated, when the preinstalled
13168         libunistring is older.
13169         * modules/unicase/base (configure.ac): Bump minimum version to
13170         0.9.4.
13171         * modules/uniconv/base (configure.ac): Likewise.
13172         * modules/unilbrk/base (configure.ac): Likewise.
13173         * modules/uninorm/base (configure.ac): Likewise.
13174         * modules/unistdio/base (configure.ac): Likewise.
13175         * modules/unistr/base (configure.ac): Likewise.
13176         * modules/uniwbrk/base (configure.ac): Likewise.
13177         * modules/uniwidth/base (configure.ac): Likewise.
13179 2015-01-20  Daiki Ueno  <ueno@gnu.org>
13181         unictype/category-none: fix link with libunistring
13182         Since _UC_CATEGORY_NONE is not a public symbol, it will be
13183         prefixed with "libstring_" when compiled as part of libunistring.
13184         To avoid undefined symbol at link time, increase the minimum
13185         version when the dependant modules are updated.
13186         * modules/unictype/category-none (configure.ac): Bump minimum
13187         version to 0.9.5.
13189 2015-01-20  Daiki Ueno  <ueno@gnu.org>
13191         unitypes: fix build with installed libunistring
13192         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
13193         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
13194         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
13196 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
13198         time: port to MinGW32 3.21
13199         Problem reported by Eli Zaretskii in:
13200         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
13201         * lib/time.in.h:
13202         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
13203         * modules/time (Depends-on):
13204         Fall back on unistd.h if the other include files don't define
13205         struct timespec.
13207         update-copyright: apply to self
13208         * build-aux/update-copyright: Fix copyright date.  How ironic!
13210 2015-01-15  Daiki Ueno  <ueno@gnu.org>
13212         libunistring: update to Unicode 7.0.0
13213         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
13214         Manichaean names.
13215         * lib/unictype/joininggroup_name.h: Likewise.
13216         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
13217         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
13218         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
13219         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
13220         (fill_arabicshaping, joining_group_as_c_identifier): Support those
13221         enum values.
13222         (is_property_alphabetic): Accept newly added characters to
13223         cuneiform numeric signs.
13224         (is_property_default_ignorable_code_point): Reject U+0605.
13225         (FIELDLEN): Increase from 120 to 160.
13226         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
13227         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
13228         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
13229         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
13230         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
13231         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
13232         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
13233         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
13234         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
13235         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
13236         U+1E8D0..U+1E8D6.
13237         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
13238         * tests/uniwidth/test-uc_width2.sh: Same updates as in
13239         lib/uniwidth/width.c.
13240         * all generated files under lib/uni* and tests/uni*: Regenerate.
13242 2015-01-14  Daiki Ueno  <ueno@gnu.org>
13244         libunistring: update to Unicode 6.3.0
13245         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
13246         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
13247         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
13248         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
13249         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
13250         Update WB5, WB9, WB10, WB13a, and WB13b.
13251         * tests/uniwbrk/test-uc-wordbreaks.c
13252         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
13253         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
13254         (UC_BIDI_PDI): New enumeration values.
13255         (bidi_category_byname): Support those enum values.
13256         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
13257         dedicated property assigned.
13258         (is_property_case_ignorable): Check 0x0027.
13259         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
13260         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
13261         (output_wbp): Support those enum values.
13262         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
13263         (UC_BIDI_PDI): New enumeration values.
13264         * lib/unictype/bidi_byname.gperf: Add those property names.
13265         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
13266         U+180E, U+1A1B, and U+2066..U+2069.
13267         * tests/uniwidth/test-uc_width2.sh: Same updates as in
13268         lib/uniwidth/width.c.
13269         * all generated files under lib/uni* and tests/uni*: Regenerate.
13271 2015-01-14  Daiki Ueno  <ueno@gnu.org>
13273         libunistring: update to Unicode 6.2.0
13274         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
13275         (unilbrk_table): Adjust table size.
13276         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
13277         for LBP_RI.
13278         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
13279         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
13280         Normalize table index skipping ignored properties.
13281         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
13282         WBP_EXTEND and WBP_FORMAT, which are now computed without using
13283         the table.
13284         * lib/uniwbrk/wbrktable.h: Adjust table size.
13285         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
13286         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
13287         Support rule GB8a.
13288         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
13289         * tests/unigbrk/test-uc-is-grapheme-break.c
13290         (graphemebreakproperty_to_string): Support GBP_RI.
13291         * tests/uniwbrk/test-uc-wordbreaks.c
13292         (wordbreakproperty_to_string): Support WBP_RI.
13293         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
13294         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
13295         (output_lbp): Support LBP_RI.  Adjust some characters changed from
13296         LBP_AL to LBP_ID.
13297         (output_lbp): Support LBP_RI.
13298         (WBP_RI): New enumeration value.
13299         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
13300         (output_wbp): Support WBP_RI.
13301         (GBP_RI): New enumeration value.
13302         (output_gbp_test, fill_org_gbp): Support GBP_RI.
13303         * all generated files under lib/uni* and tests/uni*: Regenerate.
13305 2015-01-14  Daiki Ueno  <ueno@gnu.org>
13307         libunistring: update to Unicode 6.1.0
13308         * lib/gen-uni-tables.c (output_joining_group): Switch to
13309         3-level table to accommodate joining groups defined with higher
13310         codepoint value.  Since there are only 88 groups defined in
13311         Unicode 7.0.0, use 7-bit packed format for level3 entries.
13312         (get_lbp): Update for Unicode 6.1.0.
13313         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
13314         3-level table.
13315         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
13316         joining group name.
13317         * lib/unictype/joininggroup_name.h: Likewise.
13318         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
13319         (unilbrk_table): Adjust table size.
13320         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
13321         for LBP_HL.
13322         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
13323         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
13324         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
13325         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
13326         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
13327         U+302E..U+302F.
13328         * tests/uniwidth/test-uc_width2.sh: Same updates as in
13329         lib/uniwidth/width.c.
13330         * all generated files under lib/uni* and tests/uni*: Regenerate.
13331         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
13333 2015-01-15  Daiki Ueno  <ueno@gnu.org>
13335         uniwbrk/u32-wordbreaks-tests: add conformance test
13336         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
13337         tests/uniwbrk/test-uc-wordbreaks.c,
13338         tests/uniwbrk/test-uc-wordbreaks.sh, and
13339         tests/uniwbrk/WordBreakTest.txt.
13340         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
13341         test-uc-wordbreaks to $(check_PROGRAMS), and define
13342         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
13343         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
13344         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
13346 2015-01-15  Daiki Ueno  <ueno@gnu.org>
13348         uniwbrk: ignore Extended/Format characters at BOL not BOS
13349         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
13350         characters if the previous character property is one of
13351         WBP_NEWLINE, WBP_CR, and WBP_LF.
13353 2015-01-11  Jim Meyering  <meyering@fb.com>
13355         test-strstr.c: avoid a trivial leak
13356         * tests/test-strstr.c (main): Free haystack.
13358         update-copyright: recognize groff's \(co marker
13359         * build-aux/update-copyright (circle_c_re): Also accept
13360         uses of \(co, as found in gzip.1.
13362 2015-01-08  Pádraig Brady  <P@draigBrady.com>
13364         maint.mk: fix compatibility with OS X nm
13365         * top/maint.mk (_gl_tight_scope): Use the -g option to
13366         show exported items rather than the -e option which is
13367         ignored on all platforms except OS X where it gives an error.
13368         Reported by Assaf Gordon.
13370 2015-01-07  KO Myung-Hun  <komh@chollian.net>
13372         localcharset: improve charset detection on OS/2
13373         Use system codepage when appropriate.  Map OS/2 codepages to
13374         GNU canonical charset names if possible.
13375         * lib/config.charset: Don't output aliases if "$os" is os2*.
13376         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
13377         result for OS/2.
13378         (locale_charset) [OS2]: Use system codepage if codeset is omitted
13379         from the locale name which is neither "C" nor "POSIX".
13381 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
13383         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
13384         This reverts the last patch but one, as it shouldn't be needed now
13385         that the typo is fixed.
13386         * lib/count-leading-zeros.h (count_leading_zeros_ll):
13387         * lib/count-trailing-zeros.h:
13388         * lib/count-one-bits.h:
13389         Go back to using 64-bit intrinsics.
13391         count-leading-zeros: fix pragma typos
13392         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
13393         Fix typos in declaration of intrinsics when _MSC_VER.
13395 2015-01-06  Pádraig Brady  <P@draigBrady.com>
13397         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
13398         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
13399         intrinsics in this case.
13400         * lib/count-trailing-zeros.h: Likewise.
13401         * lib/count-one-bits.h: Likewise.
13403 2015-01-06  Daiki Ueno  <ueno@gnu.org>
13405         uniname/uniname: update to Unicode 7.0.0
13406         To accommodate new characters added since Unicode 5.1.0, this
13407         changes the internal representation of codepoint ranges.
13408         Previously, we grouped codepoint ranges by manually assigned 4-bit
13409         tag, which only allowed 16 groups.  This removes the limitation by
13410         switching to binary search on a table.  For the detail rationale
13411         and the benchmark results, see:
13412         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
13413         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
13414         to INDEX, as it no longer represents a codepoint.
13415         (range): New struct.
13416         (main): Switch to intervals list from a bit-pattern based
13417         classification.
13418         * lib/uniname/uninames.h: Regenerate.
13419         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
13420         * modules/uniname/base (configure.ac): Bump minimum version to
13421         0.9.5.
13422         * modules/uniname/uniname (configure.ac): Bump minimum version to
13423         0.9.5.
13425 2015-01-05  Eric Blake  <eblake@redhat.com>
13427         doc: update INSTALL from autoconf
13428         * doc/install.texi: Resync from autoconf.
13429         * doc/INSTALL: Reflect recent autoconf update.
13430         * doc/INSTALL.ISO: Likewise.
13431         * doc/INSTALL.UTF-8: Likewise.
13433         stdio: fix use of PRIdMAX on modern mingw
13434         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
13435         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
13436         to work with modern mingw.
13438 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
13440         pthread: detect git mingw builds with only partial pollution
13441         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
13442         pollution, as seen temporarily in Fedora 21.
13444 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
13446         lib-symbol-versions: cache script check
13447         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
13448         Cache the check for linker version scripts.
13449         From a suggestion by Christophe Curis in:
13450         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
13452 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
13454         maint: fix grammar nits in propername (trivial change)
13455         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
13456         and use an adequate verb and tense.
13458 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
13460         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
13461         * module/gendocs: Add 'doc/gendocs_template_min'.
13463         * build-aux/gendocs.sh: Change email addresses and upstream URLs
13464         from to Gnulib's.
13465         (scripturl, templateurl): Adjust accordingly.
13467 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
13469         gendocs: copyright date and version fix
13470         Reported by Karl Berry in:
13471         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
13472         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
13473         Fix copyright date.
13474         * build-aux/gendocs.sh (scriptversion): Update.
13476 2015-01-01  Karl Berry  <karl@gnu.org>
13478         * doc/install.texi,
13479         * build-aux/mdate-sh,
13480         * build-aux/depcomp,
13481         * build-aux/config.guess,
13482         * build-aux/config.sub,
13483         * build-aux/ar-lib,
13484         * build-aux/compile: revert copyright updates (some from last
13485         year) in slaved files.
13487 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
13489         version-etc: new year
13490         * doc/gnulib.texi:
13491         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
13492         * all files: Run 'make update-copyright'.
13494 2014-12-30  Pádraig Brady  <P@draigBrady.com>
13496         xstrtol: ensure errno is reset
13497         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
13498         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
13500         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
13502 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
13504         utimens: fix dependency typo
13505         * modules/utimens (Depends-on): Remove 'assure'.
13506         This bug was introduced in the recent 'assure' patch.
13508 2014-12-22  Eric Blake  <eblake@redhat.com>
13510         docs: mention why libgen.h is bad
13511         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
13513 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
13515         assure: new module
13516         This works better than 'assert' when compiling with -DNDEBUG,
13517         as it avoids some compiler diagnostics in that case.
13518         Reported by Norihiro Tanaka in:
13519         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
13520         * MODULES.html.sh (func_all_modules): Add 'assure'.
13521         * lib/assure.h, modules/assure: New files.
13522         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
13523         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
13524         Prefer 'assure' to 'assert'.
13525         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
13526         * modules/chdir-long, modules/cycle-check, modules/fchdir:
13527         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
13528         Depend on 'assure'.
13530 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
13532         stdalign: port better to HP compilers
13533         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
13534         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
13536         stdalign: work around Apple GCC 4.0 bug
13537         Reported by David Fang in:
13538         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
13539         * lib/stdalign.in.h (_Alignas):
13540         * m4/stdalign.m4 (gl_STDALIGN_H):
13541         Do not use aligned attribute with GCC 4.0 on Apple.
13543 2014-12-16  Pádraig Brady  <P@draigBrady.com>
13545         getcwd: fix test failure on OS X 10.9
13546         * m4/getcwd-path-max.m4: Avoid the replacement if it
13547         won't be effective due to the PATH_MAX limitation of lstat().
13548         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
13549         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
13550         for this case for use in tests, and also exclude this
13551         case when setting REPLACE_GETCWD.
13552         * tests/test-getcwd.c (test_long_name): Restrict the
13553         tested path length so that lstat() will not be passed
13554         a path greater than PATH_MAX.
13555         Also key a test condition on HAVE_OPENAT_SUPPORT rather
13556         than AT_FDCWD, since the latter is set unconditionally
13557         since Sep 2009 in commit 52c658e9.
13559 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
13561         parse-datetime: avoid a compiler warning with byacc (trivial)
13562         * lib/parse-datetime.y (yylex): Use the same prototype in the
13563         function definition as the declaration, to avoid a -Wstrict-prototypes
13564         warning seen when using byacc.
13566 2014-12-12  Daiki Ueno  <ueno@gnu.org>
13568         unicase/locale-language-tests: fix LOCALE_FR test
13569         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
13570         a French locale with traditional encoding.
13571         Reported by umerqayam in:
13572         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
13574 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
13576         stddef: support C11's max_align_t
13577         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
13578         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
13579         Do not undef, as that might cause max_align_t to be defined twice.
13580         Instead, change use to check for _GL_STDDEF_WINT_T too.
13581         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
13582         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
13583         Check for max_align_t.
13584         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
13585         * modules/stddef-tests (Depends-on): Add stdalign.
13586         * tests/test-stddef.c: Test max_align_t.
13588 2014-12-11  Daiki Ueno  <ueno@gnu.org>
13590         unistd: fix iOS check conditional
13591         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
13592         as 0 or 1 in <TargetConditionals.h>, and the previous check always
13593         yielded true on non-iOS environment.
13594         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
13595         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
13596         they are defined.
13598 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
13600         posixtm: avoid compiler warning in a better way
13601         * lib/posixtm.c (IF_LINT): Remove.
13602         (year, posix_time_parse):
13603         Return true (not 0) if successful.  All callers changed.
13604         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
13606 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
13608         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
13609         started with '/' on EMX.
13611 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
13613         freopen: workaround freopen() on OS/2 kLIBC
13614         * lib/freopen.c (rpl_freopen): Workaround.
13615         * m4/freopen.m4: Add os2* case.
13617         get_shared_library_fullname: port to EMX
13618         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
13619         on EMX, respectively.
13620         (_DLL_InitTerm): New on EMX.
13621         (get_shared_library_fullname): Implement on EMX.
13623         find_executable: port to EMX
13624         * lib/progreloc.c (find_executable): Implement on EMX.
13626         sched: check struct sched_param in spawn.h as well
13627         * lib/sched.in.h: Include spawn.h on kLIBC.
13628         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
13630 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
13632         bootstrap: Allow perl modules in $buildreq
13633         * build-aux/bootstrap: Add case for perl modules.
13635 2014-12-08  Pádraig Brady  <P@draigBrady.com>
13637         apply _GL_ATTRIBUTE_PURE to some inline functions
13638         clang 3.4.2 flagged these inline functions as pure
13639         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
13640         * lib/sig-handler.h (get_handler): Likewise.
13641         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
13642         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
13644 2014-12-06  Pádraig Brady  <P@draigBrady.com>
13646         vasnprintf: fix potential use after free
13647         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
13648         flagged by clang-analyzer 3.4.2.
13650 2014-12-05  Pádraig Brady  <P@draigBrady.com>
13652         filevercmp, posixtm: avoid compiler warnings with -O3
13653         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
13654         * lib/posixtm.c: (IF_LINT): Define.
13655         (posix_time_parse): Use it to void a "may be used uninitialized"
13656         warning, seen only with -O3.
13658 2014-12-05  Bruno Haible  <bruno@clisp.org>
13660         Fix LDBL80_WORDS macro on big endian platforms.
13661         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
13662         LDBL80_WORDS macro.
13663         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
13664         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13665         * tests/test-isfinite.c (test_isfinitel): Likewise.
13666         * tests/test-isinf.c (test_isinfl): Likewise.
13667         * tests/test-isnan.c (test_long_double): Likewise.
13668         * tests/test-isnanl.h (main): Likewise.
13669         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
13670         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
13671         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
13672         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
13673         Reported by Pádraig Brady.
13675 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
13677         git-version-gen: do not print new line characters
13678         * build-aux/git-version-gen: Use printf instead of echo and tr.
13680         gnulib-tool: recognize x:* as an absolute path
13681         * gnulib-tool (func_gnulib_dir): Add ?:* case.
13682         (func_relconcat): Likewise.
13684 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
13686         argp: avoid extraneous translation and mem leak with empty pre doc
13687         * lib/argp-help.c (argp_doc): Never translate the empty string,
13688         when "\v" is the first or last character of the string, as that
13689         has a reserved meaning to return the header info from a po file.
13690         This also fixes a small memory leak in the !post case.
13691         The issue can be seen with this command for example:
13692         LC_MESSAGES=en_US grub2-mknetdir --help
13694 2014-11-27  Daiki Ueno  <ueno@gnu.org>
13696         uniname/uniname-tests: skip if system's libunistring is used
13697         * modules/uniname/uniname-tests (Makefile.am): Skip test if
13698         uniname/uniname module is not compiled.
13700 2014-11-27  Pádraig Brady  <P@draigBrady.com>
13702         printf: fix configure check on big endian systems
13703         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
13705 2014-11-22  Daiki Ueno  <ueno@gnu.org>
13707         pipe-filter-gi, pipe-filter-ii: port to AIX
13708         On AIX 7.1, 'select' is defined as static and cannot be referred
13709         to from inline function.
13710         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
13711         the definition...
13712         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
13713         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
13715 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
13717         gitlog-to-changelog: add --until
13718         * build-aux/gitlog-to-changelog: Support new --until option.
13719         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
13721 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
13723         extern-inline: update commentary about GCC bugs
13724         * m4/extern-inline.m4: Add another GCC bug number to comments.
13726 2014-11-13  Daiki Ueno  <ueno@gnu.org>
13728         gen-uni-tables: untabify
13729         * lib/gen-uni-tables.c: Untabify.
13731 2014-11-13  Daiki Ueno  <ueno@gnu.org>
13733         gen-uni-tables: check out-of-range values added to 3-level tables
13734         * lib/gen-uni-tables.c (output_category, output_bidi_category)
13735         (output_joining_type, output_ident_category): Check out-of-range
13736         values added to 3-level tables.
13738 2014-11-13  Daiki Ueno  <ueno@gnu.org>
13740         gen-uni-tables: utilize 'assert'
13741         * lib/gen-uni-tables.c: Include <assert.h>.
13742         (output_category, output_combclass, output_decimal_digit_test)
13743         (output_decimal_digit, output_digit_test, output_digit)
13744         (output_numeric, get_mirror_value, fill_properties)
13745         (fill_property30, is_property_alphabetic)
13746         (is_property_default_ignorable_code_point)
13747         (is_property_uppercase, is_property_lowercase)
13748         (is_property_cased, is_property_case_ignorable)
13749         (is_property_changes_when_lowercased, is_property_iso_control)
13750         (is_property_math, fill_arabicshaping, output_joining_group)
13751         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
13752         (output_wbp, fill_org_gbp, get_decomposition)
13753         (output_decomposition, fill_composition_exclusions)
13754         (debug_output_composition_tables, output_composition_tables)
13755         (redistribute_casefolding_rules, output_casing_rules): Use
13756         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
13757         reporting.
13759 2014-11-13  Daiki Ueno  <ueno@gnu.org>
13761         gen-uni-tables: cosmetic improvements
13762         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
13763         variables specification.
13764         (is_outdigit): Remove unused function.
13766 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
13768         fcntl-h-tests: port to PA-RISC GNU/Linux
13769         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
13771 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
13773         fts: port to C89
13774         Problem reported for MSVC 16 by Gisle Vanem in:
13775         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
13776         * lib/fts.c (fts_build): Avoid declaration before statement.
13778 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
13780         unistd: port to iOS
13781         Problem reported by André Klitzing in:
13782         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
13783         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
13785 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
13787         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
13788         Problem reported by Alan Modra in:
13789         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
13790         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
13791         Always cast the function arg, reverting this part of the previous
13792         change.
13794 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
13796         obstack: avoid potentially-nonportable function casts
13797         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
13798         Remove, replacing with ...
13799         (call_chunkfun, call_freefun): New static functions.
13800         All uses changed.  Avoid potentially-nonportable casts.
13801         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
13802         (_obstack_begin_worker): Omit last two args, since they
13803         rely on potentially-nonportable casts.  All callers changed.
13804         * lib/obstack.h (_OBSTACK_CAST): New macro.
13805         Use it everywhere the old API used a potentially-nonportable cast.
13806         The new API doesn't cast.
13807         (struct obstack): Use unions rather than requiring
13808         potentially-nonportable casts.
13809         (obstack_chunkfun, obstack_freefun): Return void.
13811 2014-11-03  Alan Modra  <amodra@gmail.com>
13813         obstack: fix macro return values
13814         * lib/obstack.h (obstack_next_free): Return void *.
13815         (obstack_1grow_fast, obstack_blank_fast): Return void.
13816         For __GNUC__ macros:
13817         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
13818         For !__GNUC__ macros:
13819         (obstack_make_room, obstack_grow, obstack_grow0)
13820         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
13822 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
13824         obstack: do not assume system-supplied obstack is size_t safe
13825         * m4/obstack.m4: New file.
13826         * modules/obstack (Files): Add it.
13828         obstack: port to platforms that #define __alignof__
13829         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
13830         not if !_LIBC.  We don't know of any platforms that #define
13831         __alignof__, but it might be useful in tests.  Conversely,
13832         glibc assumes GCC.
13834 2014-11-03  Pádraig Brady  <P@draigBrady.com>
13836         linkat: don't unconditionally replace on GNU/Linux
13837         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
13838         was redundant for a few reasons.  It was present to support compiling
13839         on new systems but running on the old narrow window of Linux 2.6.1[67].
13840         It setup and cleaned up test files which weren't actually used.
13841         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
13842         implicit in the following check.
13844 2014-11-03  Pádraig Brady  <P@draigBrady.com>
13846         linkat: wrap to handle symlinks on OS X 10.10
13847         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
13848         but not usable because it doesn't support creating hardlinks
13849         to symlinks.  Therefore add a generic test for this capability
13850         and fallback to our emulation if linkat() fails with ENOTSUP.
13852 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
13854         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
13855         * doc/posix-functions/open.texi (open):
13856         * doc/posix-functions/openat.texi (openat):
13857         Document that these functions do not set errno to ELOOP when
13858         a symlink is opened with O_NOFOLLOW.
13860 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
13862         obstack: add NEWS entry for recent incompatible changes
13863         * NEWS: Describe recent changes.
13865 2014-10-30  Pádraig Brady  <P@draigBrady.com>
13867         mountlist: don't use libmount to decide on dummy/remote
13868         * lib/mountlist.c (read_file_system_list): Don't use the libmount
13869         routines to determine whether a file system is dummy or remote,
13870         as they're not currently compatible.  For example the remoteness
13871         is determined on file system type (for which the list seems incomplete),
13872         rather than simply checking for a ':' in the device name.
13873         Also libmount currently determines that 'tmpfs' is a dummy file system
13874         even though it has associated storage.
13876 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
13878         obstack: prefer __alignof__ to alignof
13879         This is for portability to pre-4.7 GCC when compiling glibc.
13880         See Joseph S. Myers in:
13881         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
13882         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
13883         New macro, defined by including and using <alignof.h>.
13884         (MAX): New macro.
13885         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
13886         Do not use enums as they are not portable to some broken compilers.
13887         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
13889         obstack: prefer alignof to calculating alignments by hand
13890         * lib/obstack.c: Include <stdalign.h>.
13891         (struct fooalign): Remove.
13892         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
13893         * modules/obstack (Depends-on): Add stdalign.
13895 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
13897         obstack: use size_t alignments and check for overflow
13898         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
13899         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
13900         * lib/obstack.h (struct obstack.alignment_mask):
13901         Use _OBSTACK_SIZE_T, not int, for alignments.
13902         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
13903         overflows, e.g., when adding the alignment.
13905 2014-10-29  Alan Modra  <amodra@gmail.com>
13907         obstack: 64-bit obstack support, part 3
13908         This finally enables full 64-bit obstack support.  The glibc
13909         shared library specific code is removed from obstack.c too, and
13910         the error handling code conditionally compiled under control of
13911         another macro, _OBSTACK_NO_ERROR_HANDLER.
13912         * lib/obstack.h: Include string.h earlier.
13913         (_OBSTACK_INTERFACE_VERSION): Define.
13914         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
13915         * lib/obstack.c: Don't include shlib-compat.h.
13916         (OBSTACK_INTERFACE_VERSION): Delete.
13917         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
13918         glibc code is compatible with version 2.  Don't include stdio.h for
13919         __GNU_LIBRARY.
13920         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
13921         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
13922         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
13923         glibc shared library specific source.
13925         obstack: 64-bit obstack support, part 2
13926         This gets us 4G obstack support, without changing ABI
13927         compatibility, apart from possibly introducing some
13928         signed/unsigned comparison warnings in code that uses obstack.h.
13929         a) Replace "int" size parameters, return values, and macro local vars
13930            with _OBSTACK_SIZE_T, an "unsigned int" for now.
13931         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
13932         c) Make all obstack macros checking available room use obstack_room.
13933            "next_free + desired > chunk_limit" may wrap the lhs for chunks
13934            allocated near the top of memory.
13935         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
13936         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
13937         in place of "int" size parameters, return values and local vars.
13938         (_CHUNK_SIZE_T): Define.
13939         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
13940         union use an _OBSTACK_SIZE_T integer type.
13941         For __GNUC__ versions of the following macros...
13942         (obstack_room): Rename local var.
13943         (obstack_make_room): Use obstack_room.
13944         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
13945         obstack_int_grow, obstack_blank): Likewise.
13946         (obstack_finish): Use unsigned comparison when comparing aligned
13947         next_free against chunk_limit.
13948         (obstack_free): Cast OBJ to remove possible const qualifier.
13949         For !__GNUC__ versions of the following macros...
13950         (obstack_make_room): Use obstack_room.
13951         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
13952         obstack_int_grow, obstack_blank): Likewise.
13953         (obstack_finish): Use unsigned comparision when comparing aligned
13954         next_free against chunk_limit.
13955         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
13956         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
13957         _OBSTACK_SIZE_T.
13958         (_obstack_begin, _obstack_begin_1): Likewise.
13959         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
13960         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
13962         obstack: 64-bit obstack support, part 1
13963         a) Correct calls to alloc function, to use a size_t arg.  "long" is
13964            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
13965            and "size_t" 64 bits.
13966         b) Consolidate _obstack_begin and _obstack_begin1 code.
13967         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
13968         use "size_t" rather than "long".
13969         (_obstack_begin, _obstack_begin1): Likewise.
13970         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
13971         obstack_chunkfun): Update alloc function casts.
13972         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
13973         (chunkfun_type, freefun_type): New typdefs.
13974         (_obstack_begin_worker): Split out from ..
13975         (_obstack_begin, _obstack_begin_1): ..here.
13977         obstack: tidy part 2
13978         a) Don't be concerned about "not polluting the namespace with stddef.h
13979            symbols" in obstack.h, since gnulib string.h includes stddef.h
13980            anyway, and it seems unlikely that anyone would care.
13981         b) Don't roll our own slow memcpy in _obstack_newchunk.
13982         c) Rename obstack_free to _obstack_free.  This makes the naming
13983            consistent with other obstack functions and obviates the need for
13984            __obstack_free.  Ancient obstack.c defined both obstack_free and
13985            _obstack_free.  We continue to do that for _LIBC via an alias.
13986         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
13987            is clever, but nowadays gcc warns on undefined macros.  You'll get
13988            an undefined macro warning if simulating an old gcc with -U__GNUC__
13989            -U__GNUC_MINOR__ -D__GNUC__=1.
13990         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
13991         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
13992         (__obstack_free): Delete, update refs.
13993         (_obstack_free): Rename from obstack_free.
13994         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
13995         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
13996         * lib/obstack.c: Don't include stddef.h.
13997         (COPYING_UNIT): Delete.
13998         (_obstack_begin): Formatting fix.
13999         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
14000         (_obstack_free): Rename from __obstack_free, update alias.  Move
14001         undef of obstack_free to where it is needed.
14003         obstack: tidy part 1
14004         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
14005            to me, and result in overlong lines after later patches.
14006         b) Move error handling code, to avoid a forward declaration and to
14007            simplify later patches in this series.
14008         * lib/obstack.h (struct obstack <temp>): Rename fields of union
14009         and update all uses.
14010         * lib/obstack.c: Include stdlib.h earlier.
14011         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
14012         in file.
14013         (print_and_abort): Remove now redundant forward declaration.
14015 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
14017         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
14018         Without this change, in bleeding-edge fileutils Autoconf complains
14019         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
14020         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
14021         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
14022         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
14024 2014-10-24  Daiki Ueno  <ueno@gnu.org>
14026         iconv: avoid false detection of non-working iconv
14027         The INBUF arguments of iconv can be either 'const char **'
14028         or 'char **'.  If CC is g++, the difference causes a compile error
14029         and thus leads to a false detection of non-working iconv.
14030         Reported by Eli Zaretskii and Werner LEMBERG in:
14031         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
14032         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
14033         iconv.  Bump serial number.
14035 2014-10-23  Pádraig Brady  <P@draigBrady.com>
14037         bootstrap: print more diagnostics for missing programs
14038         * build-aux/bootstrap: only suppress stderr when checking for
14039         alternative program names.  This supports programs issuing non
14040         standard error messages.
14042 2014-10-23  Pádraig Brady  <P@draigBrady.com>
14044         bootstrap: only update the gnulib submodule
14045         * build-aux/bootstrap: Restrict the "submodule update" command
14046         to the gnulib path.
14048 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
14050         symlinkat: port to AIX 7.1
14051         * doc/posix-functions/symlinkat.texi (symlinkat):
14052         Mention AIX porting problem.
14053         * lib/symlinkat.c: Always include errno.h.
14054         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
14055         * lib/unistd.in.h (symlinkat): Add replacement machinery.
14056         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
14057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
14058         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
14059         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
14060         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
14062         readlinkat: port to AIX 7.1
14063         * doc/posix-functions/readlink.texi (readlink):
14064         * doc/posix-functions/readlinkat.texi (readlinkat):
14065         Mention AIX porting problem.
14066         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
14067         New function.
14068         * lib/unistd.in.h (readlinkat): Add replacement machinery.
14069         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
14070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
14071         * modules/readlinkat (configure.ac): Also compile replacement
14072         if REPLACE_READLINKAT.
14073         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
14075 2014-10-12  Karl Berry  <karl@gnu.org>
14077         * doc/posix-functions/dirname.texi: remove spurious {.
14079 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
14081         basename, dirname: Improve documentation.
14082         * doc/posix-functions/basename.texi: Mention dirname module and
14083         base_name() function.
14084         * doc/posix-functions/dirname.texi: Mention dir_name() and
14085         mdir_name() functions.
14086         Suggested by Werner LEMBERG <wl@gnu.org>.
14088 2014-09-24  Jim Meyering  <meyering@fb.com>
14090         exclude: declare exclude_patopts static
14091         * lib/exclude.c (exclude_patopts): Declare static,
14092         to avoid triggering a -Wmissing-prototypes warning.
14093         The alternative (declaring it in the .h file) would
14094         require publicizing the private "struct patopts".
14096 2014-09-21  Werner Lemberg  <wl@gnu.org>
14098         dirname: support compilation with C++
14099         * lib/dirname.h: Add necessary C linkage declarations.
14101 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
14103         qsort_r: include <config.h>
14104         Problem reported by Tom G. Christensen in:
14105         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
14106         * lib/qsort.c [!_LIBC]: Include <config.h> first.
14108 2014-09-16  Dylan Cali  <calid1984@gmail.com>
14110         avltree-list: avoid compiler warnings (trivial)
14111         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
14112         -Werror=suggest-attribute=pure.
14113         * lib/gl_array_list.c: Likewise.
14114         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
14115         declaration to avoid -Werror=missing-prototypes.  This is not added
14116         to a header as only exported for tests.  Add (void) to the
14117         check_invariants() call to indicate we're discarding the result
14118         in this context which avoids -Werror=unused-value.  Note we don't
14119         use ignore_value here to avoid a dependency as we know we'll not
14120         be adding __attribute__((warn_unused_result)) to check_invariants().
14121         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
14123 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
14125         qsort_r: new module, for GNU-style qsort_r
14126         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
14128 2014-09-15  Werner LEMBERG  <wl@gnu.org>
14130         strerror_r-posix: support compilation with C++
14131         * lib/strerror_r.c: Add necessary C linkage declarations.
14133 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
14135         fcntl-h: fix compilation with Intel C++ compiler (trivial)
14136         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
14138 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
14140         mountlist: use /proc/self/mountinfo when available
14141         Use libmount to propagate device IDs provided by Linux in
14142         /proc/self/mountinfo.  This will give more accurate output when
14143         using df in chroot'ed environments as the device IDs are not
14144         determined by stat() which may be inaccurate within the chroot.
14145         * lib/mountlist.c (read_file_system_list): Use the libmount routines
14146         from util-linux to parse "/proc/self/mountinfo" or fall back to
14147         standard getmntent() processing.
14148         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
14149         getmntent() is used, as is the case on GNU/Linux.
14151 2014-09-07  Eric Wong  <normalperson@yhbt.net>
14153         users.txt: add cmogstored
14154         cmogstored has used gnulib since the beginning in 2012 to support
14155         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
14157 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
14159         Trivial change.
14160         * gnulib-tool: Use same options as build-aux/bootstrap to download
14161         PO files.
14163 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
14165         Trivial change.
14166         * gnulib-tool: Fallback to wget when rsync of PO files fails.
14168 2014-09-04  Eric Blake  <eblake@redhat.com>
14170         maintainer-makefile: add syntax check for useless ';;'
14171         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
14173 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
14175         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
14176         Problem reported by Assaf Gordon in:
14177         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
14178         Apparently Ubuntu is doing some fancy link-time optimization
14179         that doesn't work with -lpthread but does work with -pthread.
14180         Work around the bug by preferring -pthread to -lpthread.
14181         * m4/pthread.m4 (gl_PTHREAD_CHECK):
14182         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
14183         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14184         Treat -pthread like -lpthread.
14186 2014-09-04  Eric Blake  <eblake@redhat.com>
14188         error: drop spurious semicolon
14189         * lib/error.c (__error_at_line): Fix ';;'.
14191 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
14193         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
14194         * m4/gnulib-common.m4 (AC_C_RESTRICT):
14195         Override AC_C_RESTRICT unconditionally.
14196         Update from autoconf, incorporating:
14197         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
14198         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
14200 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
14202         manywarnings: add GCC 4.9 warnings
14203         Also, make it easier to maintain this in the future.
14204         * build-aux/gcc-warning.spec: Add -Wabi-tag,
14205         -Wconditionally-supported, -Wdelete-incomplete,
14206         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
14207         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
14208         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
14209         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
14210         only for older GCC versions that need them.  Handle
14211         -Wnormalized=nfc specially, so that the 'comm' command used
14212         for maintenance doesn't get confused.
14214 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
14216         vasnprintf: fix bugs in width computation
14217         * lib/vasnprintf.c (VASNPRINTF):
14218         Rework previous change, which introduced a bug,
14219         to avoid the warning in a different way.
14220         Avoid undefined behavior if the width arg is less than -INT_MAX.
14221         Avoid unnecessary use of HAS_WIDTH local.
14223 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
14225         vasnprintf: Avoid signed/unsigned comparison warning.
14226         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
14227         compare end addr of generated string w/ maximum end addr.
14229 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
14231         parse-datetime: Avoid pointer difference.
14232         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
14233         instead of calculating difference of pointers.  This removes an
14234         annoying warning, devoid of any use.
14236 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
14238         qsort_r: new module, for GNU-style qsort_r
14239         This works even on FreeBSD, which has an incompatible qsort_r API.
14240         * MODULES.html.sh: Add it.
14241         * doc/glibc-functions/qsort_r.texi: It's now supported.
14242         * lib/qsort.c: New file, taken from glibc with minor changes
14243         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
14244         removed.
14245         * lib/qsort_r.c: New file, compiled only on FreeBSD.
14246         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
14247         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
14248         * modules/qsort_r, modules/qsort_r-tests: New files.
14249         * modules/stdlib (Makefile): Set up its defaults.
14250         * tests/test-qsort_r.c: New file.
14252 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
14254         vla: new module
14255         GNU RCS can use this, mostly for documentation I expect.  See:
14256         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
14257         * MODULES.html.sh: Add vla.
14258         * lib/vla.h, modules/vla: New files.
14260 2014-08-07  Daiki Ueno  <ueno@gnu.org>
14262         localename: make gl_locale_name_thread really thread-safe on Windows
14263         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
14264         "glthread/lock.h".
14265         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
14266         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
14268 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
14270         getpass: don't assume struct termios
14271         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
14272         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
14273         * lib/getpass.c (getpass): Port to systems lacking struct termios.
14275         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
14276         Problem reported by Jonas 'Sortie' Termansen in:
14277         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
14278         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
14279         Implement via sysconf for platforms that lack getdtablesize.
14281         vararrays: modernize AC_C_VARARRAYS for C11
14282         This backports a change I recently made to Autoconf.
14283         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
14284         VLAs are not supported, as this is what C11 does.  The old macro
14285         HAVE_C_VARARRAYS is still defined if they are supported, but is
14286         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
14288 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
14290         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
14291         * build-aux/install-reloc (func_create_wrapper): Also wrap
14292         strerror-override, stat, stat.
14294 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
14296         sys_select: fix FD_ZERO problem on Solaris 10
14297         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
14298         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
14299         to expand to an expression that invoked memset without necessarily
14300         including <string.h>.  The problem was that the first include
14301         defined _SYS_TIME_H, causing the second include to short-circuit.
14302         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
14303         Also, fix what appears to be a cut-and-paste typo, by replacing
14304         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
14305         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
14307         accept: document Solaris 10 type glitch
14308         * doc/posix-functions/accept.texi (accept): Mention that
14309         Solaris 10 'accept' takes void * last arg, not socklen_t *.
14311 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
14313         extern-inline: port to FreeBSD, DragonFly
14314         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
14315         is present if either __DragonFly__ or __FreeBSD__ is defined.
14316         FreeBSD problem reported by Andrey Borzenkov in:
14317         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
14318         Also, worry about __APPLE__ only if __MACH__ is also defined,
14319         as this is more consistent with the rest of gnulib.
14320         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
14321         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
14323 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
14325         regex: Make #if/#ifdef usage consistent for DEBUG
14326         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
14327         of the inconsistent usage of #if and #ifdef as that works with
14328         both Glibc and Gnulib's style.
14330 2014-07-31  Eric Blake  <eblake@redhat.com>
14332         openat-die: use _Noreturn markup
14333         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
14334         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
14335         _Noreturn.
14337 2014-07-30  Eric Blake  <eblake@redhat.com>
14339         test-open: port to cygwin, which lacks Fortify
14340         * tests/test-open.h (ALWAYS_INLINE): New macro.
14341         (__always_inline): Don't abuse internal symbol on non-glibc.
14343 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
14345         localename: Enforce declarations before statements.
14346         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
14347         first statement.
14349 2014-07-18  Jim Meyering  <meyering@fb.com>
14351         test-userspec: don't look up numeric user names
14352         * tests/test-userspec.c: I found a system for which getpwnam("0")
14353         returned a pointer to a non-root user's entry, and that made the
14354         test fail.
14355         (T): Prefix each numeric input with "+", to inhibit lookup.
14357 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
14359         localcharset, localename: MS-Windows support for non-default locales
14360         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
14361         falling back on the default system codepage, try extracting
14362         the codepage from what 'setlocale' returns.  This allows to
14363         take into account changes of the codeset due to non-default
14364         locale set by a previous call to 'setlocale'.
14365         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
14366         Define if not already defined.
14367         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
14368         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
14369         current locale by calling 'setlocale', then converting the
14370         locale name into LCID by calling 'get_lcid'.  This allows to
14371         take into account changes in the current locale from the
14372         default one, in contrast to GetThreadLocale.
14374 2014-07-14  Daiki Ueno  <ueno@gnu.org>
14376         announce-gen: avoid failure when Digest::SHA is installed
14377         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
14378         Digest::SHA1->new in print_checksums fails.
14379         * build-aux/announce-gen (digest_classes): New associative array
14380         for available message digest implementations.
14381         (print_locations): Use it.
14383 2014-07-13  Pádraig Brady  <P@draigBrady.com>
14385         gettext: revert "update macros to version 0.19"
14386         This reverts commit 9b9370ca, as it currently requires that
14387         developers of any project that explicitly uses the gettext module
14388         or implicitly uses it through the utimens-tests or
14389         futimens-tests modules, use gettext >= 0.19.
14390         However there are some stability and availablity issues with
14391         that version at present.  We can reinstate this soon, when stability
14392         is addressed and packages are more readily available.
14394 2014-07-12  Jim Meyering  <meyering@fb.com>
14396         regex: don't deref NULL upon heap allocation failure
14397         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
14398         failure in one more place.
14399         To trigger the segfault, configure grep -with-included-regex,
14400         build it, and run these commands:
14401         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
14402         I discovered this while replying to a private report from
14403         Jens Schleusener about excessive memory consumption by grep
14404         when using a regular expression like the one above.
14406 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
14408         regex: fix memory leak in compiler
14409         Fix by Andreas Schwab in:
14410         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
14411         * lib/regcomp.c (parse_reg_exp): Deallocate partially
14412         constructed tree before returning error.
14414 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
14416         announce-gen: avoid perl warnings
14417         * build-aux/announce-gen: add two minor checks to avoid
14418         "use of uninitialized value" warnings when command-line parameters are
14419         missing.
14421 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
14423         localename: avoid -Wsuggest-attribute={const,pure} warnings
14424         * lib/localename.c (string_has): Tag internal function as pure.
14425         * lib/localename.h (gl_locale_name_default): Tag extern declaration
14426         as const when appropriate.
14428 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
14430         nl_langinfo: Fix last change.
14431         * lib/nl_langinfo.c (includes): Drop redundant include.
14433 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
14435         error: Fix -Wundef warnings in glibc
14436         * lib/error.c [_LIBC]: Define default macros for
14437         glibc.
14438         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
14439         Check _LIBC before STRERROR_R_CHAR_P.
14441         error: Sync from glibc master
14442         * lib/error.c [_LIBC]: Remove INTUSE usage.
14443         (error_tail): Remove unused macro ALLOCA_LIMIT.
14444         Fix potential buffer overflow.  Fix potential NULL dereference
14445         in strcmp.
14447 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
14449         nl_langinfo: fix build under mingw
14450         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
14452 2014-07-09  Andrew D Warshall  <warshall@99main.com>
14454         mountlist: do not classify a bind-mounted dir entry as "dummy"
14455         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
14456         1-argument getmntent() (instead of assuming absence).
14458 2014-07-08  Eric Blake  <eblake@redhat.com>
14460         maint.mk: less syntax-check noise when SIGPIPE is ignored
14461         * top/maint.mk (_sc_header_without_use)
14462         (sc_require_config_h_first): Parse full list.
14464 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
14465             Paul Eggert  <eggert@cs.ucla.edu>
14467         nl_langinfo: CODESET on MS-Windows and more items from localeconv
14468         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
14469         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
14470         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
14471         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
14472         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
14473         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
14474         Include <stdio.h> if Microsoft Windows.
14475         Include <time.h> if !REPLACE_NL_LANGINFO.
14476         (ctype_codeset): New function, taken from rpl_nl_langinfo,
14477         and with improvements for Microsoft Windows.
14478         (rpl_nl_langinfo): Use it.
14479         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
14480         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
14481         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
14482         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
14483         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
14484         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
14485         corresponding values returned by 'localeconv'.  Compute the values
14486         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
14487         'strftime' with a suitable struct tm value.
14489 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
14491         Bruno Haible has stepped down as maintainer.
14492         See Karl Berry in:
14493         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
14494         Daiki Ueno has volunteered to maintain libunistring; see:
14495         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
14496         * modules/gen-uni-tables, modules/libunistring:
14497         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
14498         * modules/unicase/base, modules/unicase/cased:
14499         * modules/unicase/empty-prefix-context:
14500         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
14501         * modules/unicase/locale-language, modules/unicase/special-casing:
14502         * modules/unicase/tocasefold, modules/unicase/tolower:
14503         * modules/unicase/totitle, modules/unicase/toupper:
14504         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
14505         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
14506         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
14507         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
14508         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
14509         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
14510         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
14511         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
14512         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
14513         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
14514         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
14515         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
14516         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
14517         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
14518         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
14519         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
14520         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
14521         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
14522         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
14523         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
14524         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
14525         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
14526         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
14527         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
14528         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
14529         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
14530         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
14531         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
14532         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
14533         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
14534         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
14535         * modules/unicase/ulc-casexfrm, modules/unicodeio:
14536         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
14537         * modules/uniconv/u16-conv-to-enc:
14538         * modules/uniconv/u16-strconv-from-enc:
14539         * modules/uniconv/u16-strconv-from-locale:
14540         * modules/uniconv/u16-strconv-to-enc:
14541         * modules/uniconv/u16-strconv-to-locale:
14542         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
14543         * modules/uniconv/u32-strconv-from-enc:
14544         * modules/uniconv/u32-strconv-from-locale:
14545         * modules/uniconv/u32-strconv-to-enc:
14546         * modules/uniconv/u32-strconv-to-locale:
14547         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
14548         * modules/uniconv/u8-strconv-from-enc:
14549         * modules/uniconv/u8-strconv-from-locale:
14550         * modules/uniconv/u8-strconv-to-enc:
14551         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
14552         * modules/unictype/bidicategory-all:
14553         * modules/unictype/bidicategory-byname:
14554         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
14555         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
14556         * modules/unictype/bidiclass-byname:
14557         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
14558         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
14559         * modules/unictype/block-all, modules/unictype/block-list:
14560         * modules/unictype/block-of, modules/unictype/block-test:
14561         * modules/unictype/category-C, modules/unictype/category-Cc:
14562         * modules/unictype/category-Cf, modules/unictype/category-Cn:
14563         * modules/unictype/category-Co, modules/unictype/category-Cs:
14564         * modules/unictype/category-L, modules/unictype/category-LC:
14565         * modules/unictype/category-Ll, modules/unictype/category-Lm:
14566         * modules/unictype/category-Lo, modules/unictype/category-Lt:
14567         * modules/unictype/category-Lu, modules/unictype/category-M:
14568         * modules/unictype/category-Mc, modules/unictype/category-Me:
14569         * modules/unictype/category-Mn, modules/unictype/category-N:
14570         * modules/unictype/category-Nd, modules/unictype/category-Nl:
14571         * modules/unictype/category-No, modules/unictype/category-P:
14572         * modules/unictype/category-Pc, modules/unictype/category-Pd:
14573         * modules/unictype/category-Pe, modules/unictype/category-Pf:
14574         * modules/unictype/category-Pi, modules/unictype/category-Po:
14575         * modules/unictype/category-Ps, modules/unictype/category-S:
14576         * modules/unictype/category-Sc, modules/unictype/category-Sk:
14577         * modules/unictype/category-Sm, modules/unictype/category-So:
14578         * modules/unictype/category-Z, modules/unictype/category-Zl:
14579         * modules/unictype/category-Zp, modules/unictype/category-Zs:
14580         * modules/unictype/category-all, modules/unictype/category-and:
14581         * modules/unictype/category-and-not, modules/unictype/category-byname:
14582         * modules/unictype/category-longname, modules/unictype/category-name:
14583         * modules/unictype/category-none, modules/unictype/category-of:
14584         * modules/unictype/category-or, modules/unictype/category-test:
14585         * modules/unictype/category-test-withtable:
14586         * modules/unictype/combining-class:
14587         * modules/unictype/combining-class-all:
14588         * modules/unictype/combining-class-byname:
14589         * modules/unictype/combining-class-longname:
14590         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
14591         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
14592         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
14593         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
14594         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
14595         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
14596         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
14597         * modules/unictype/digit, modules/unictype/joininggroup-all:
14598         * modules/unictype/joininggroup-byname:
14599         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
14600         * modules/unictype/joiningtype-all:
14601         * modules/unictype/joiningtype-byname:
14602         * modules/unictype/joiningtype-longname:
14603         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
14604         * modules/unictype/mirror, modules/unictype/numeric:
14605         * modules/unictype/property-all, modules/unictype/property-alphabetic:
14606         * modules/unictype/property-ascii-hex-digit:
14607         * modules/unictype/property-bidi-arabic-digit:
14608         * modules/unictype/property-bidi-arabic-right-to-left:
14609         * modules/unictype/property-bidi-block-separator:
14610         * modules/unictype/property-bidi-boundary-neutral:
14611         * modules/unictype/property-bidi-common-separator:
14612         * modules/unictype/property-bidi-control:
14613         * modules/unictype/property-bidi-embedding-or-override:
14614         * modules/unictype/property-bidi-eur-num-separator:
14615         * modules/unictype/property-bidi-eur-num-terminator:
14616         * modules/unictype/property-bidi-european-digit:
14617         * modules/unictype/property-bidi-hebrew-right-to-left:
14618         * modules/unictype/property-bidi-left-to-right:
14619         * modules/unictype/property-bidi-non-spacing-mark:
14620         * modules/unictype/property-bidi-other-neutral:
14621         * modules/unictype/property-bidi-pdf:
14622         * modules/unictype/property-bidi-segment-separator:
14623         * modules/unictype/property-bidi-whitespace:
14624         * modules/unictype/property-byname:
14625         * modules/unictype/property-case-ignorable:
14626         * modules/unictype/property-cased:
14627         * modules/unictype/property-changes-when-casefolded:
14628         * modules/unictype/property-changes-when-casemapped:
14629         * modules/unictype/property-changes-when-lowercased:
14630         * modules/unictype/property-changes-when-titlecased:
14631         * modules/unictype/property-changes-when-uppercased:
14632         * modules/unictype/property-combining:
14633         * modules/unictype/property-composite:
14634         * modules/unictype/property-currency-symbol:
14635         * modules/unictype/property-dash:
14636         * modules/unictype/property-decimal-digit:
14637         * modules/unictype/property-default-ignorable-code-point:
14638         * modules/unictype/property-deprecated:
14639         * modules/unictype/property-diacritic:
14640         * modules/unictype/property-extender:
14641         * modules/unictype/property-format-control:
14642         * modules/unictype/property-grapheme-base:
14643         * modules/unictype/property-grapheme-extend:
14644         * modules/unictype/property-grapheme-link:
14645         * modules/unictype/property-hex-digit:
14646         * modules/unictype/property-hyphen:
14647         * modules/unictype/property-id-continue:
14648         * modules/unictype/property-id-start:
14649         * modules/unictype/property-ideographic:
14650         * modules/unictype/property-ids-binary-operator:
14651         * modules/unictype/property-ids-trinary-operator:
14652         * modules/unictype/property-ignorable-control:
14653         * modules/unictype/property-iso-control:
14654         * modules/unictype/property-join-control:
14655         * modules/unictype/property-left-of-pair:
14656         * modules/unictype/property-line-separator:
14657         * modules/unictype/property-logical-order-exception:
14658         * modules/unictype/property-lowercase, modules/unictype/property-math:
14659         * modules/unictype/property-non-break:
14660         * modules/unictype/property-not-a-character:
14661         * modules/unictype/property-numeric:
14662         * modules/unictype/property-other-alphabetic:
14663         * modules/unictype/property-other-default-ignorable-code-point:
14664         * modules/unictype/property-other-grapheme-extend:
14665         * modules/unictype/property-other-id-continue:
14666         * modules/unictype/property-other-id-start:
14667         * modules/unictype/property-other-lowercase:
14668         * modules/unictype/property-other-math:
14669         * modules/unictype/property-other-uppercase:
14670         * modules/unictype/property-paired-punctuation:
14671         * modules/unictype/property-paragraph-separator:
14672         * modules/unictype/property-pattern-syntax:
14673         * modules/unictype/property-pattern-white-space:
14674         * modules/unictype/property-private-use:
14675         * modules/unictype/property-punctuation:
14676         * modules/unictype/property-quotation-mark:
14677         * modules/unictype/property-radical:
14678         * modules/unictype/property-sentence-terminal:
14679         * modules/unictype/property-soft-dotted:
14680         * modules/unictype/property-space:
14681         * modules/unictype/property-terminal-punctuation:
14682         * modules/unictype/property-test, modules/unictype/property-titlecase:
14683         * modules/unictype/property-unassigned-code-value:
14684         * modules/unictype/property-unified-ideograph:
14685         * modules/unictype/property-uppercase:
14686         * modules/unictype/property-variation-selector:
14687         * modules/unictype/property-white-space:
14688         * modules/unictype/property-xid-continue:
14689         * modules/unictype/property-xid-start:
14690         * modules/unictype/property-zero-width, modules/unictype/scripts:
14691         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
14692         * modules/unictype/syntax-c-whitespace:
14693         * modules/unictype/syntax-java-ident:
14694         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
14695         * modules/unigbrk/u16-grapheme-breaks:
14696         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
14697         * modules/unigbrk/u32-grapheme-breaks:
14698         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
14699         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
14700         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
14701         * modules/unigbrk/uc-is-grapheme-break:
14702         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
14703         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
14704         * modules/unilbrk/u16-width-linebreaks:
14705         * modules/unilbrk/u32-possible-linebreaks:
14706         * modules/unilbrk/u32-width-linebreaks:
14707         * modules/unilbrk/u8-possible-linebreaks:
14708         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
14709         * modules/unilbrk/ulc-possible-linebreaks:
14710         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
14711         * modules/uniname/uniname, modules/uninorm/base:
14712         * modules/uninorm/canonical-decomposition:
14713         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
14714         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
14715         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
14716         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
14717         * modules/uninorm/nfkc, modules/uninorm/nfkd:
14718         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
14719         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
14720         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
14721         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
14722         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
14723         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
14724         * modules/unistdio/base, modules/unistdio/u-printf-args:
14725         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
14726         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
14727         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
14728         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
14729         * modules/unistdio/u16-u16-sprintf:
14730         * modules/unistdio/u16-u16-vasnprintf:
14731         * modules/unistdio/u16-u16-vasprintf:
14732         * modules/unistdio/u16-u16-vsnprintf:
14733         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
14734         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
14735         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
14736         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
14737         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
14738         * modules/unistdio/u32-u32-asnprintf:
14739         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
14740         * modules/unistdio/u32-u32-sprintf:
14741         * modules/unistdio/u32-u32-vasnprintf:
14742         * modules/unistdio/u32-u32-vasprintf:
14743         * modules/unistdio/u32-u32-vsnprintf:
14744         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
14745         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
14746         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
14747         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
14748         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
14749         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
14750         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
14751         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
14752         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
14753         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
14754         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
14755         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
14756         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
14757         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
14758         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
14759         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
14760         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
14761         * modules/unistr/u16-check, modules/unistr/u16-chr:
14762         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
14763         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
14764         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
14765         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
14766         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
14767         * modules/unistr/u16-move, modules/unistr/u16-next:
14768         * modules/unistr/u16-prev, modules/unistr/u16-set:
14769         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
14770         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
14771         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
14772         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
14773         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
14774         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
14775         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
14776         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
14777         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
14778         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
14779         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
14780         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
14781         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
14782         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
14783         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
14784         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
14785         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
14786         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
14787         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
14788         * modules/unistr/u32-next, modules/unistr/u32-prev:
14789         * modules/unistr/u32-set, modules/unistr/u32-startswith:
14790         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
14791         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
14792         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
14793         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
14794         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
14795         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
14796         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
14797         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
14798         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
14799         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
14800         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
14801         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
14802         * modules/unistr/u8-check, modules/unistr/u8-chr:
14803         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
14804         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
14805         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
14806         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
14807         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
14808         * modules/unistr/u8-next, modules/unistr/u8-prev:
14809         * modules/unistr/u8-set, modules/unistr/u8-startswith:
14810         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
14811         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
14812         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
14813         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
14814         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
14815         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
14816         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
14817         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
14818         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
14819         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
14820         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
14821         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
14822         * modules/uniwbrk/base, modules/uniwbrk/table:
14823         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
14824         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
14825         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
14826         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
14827         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
14828         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
14829         * modules/uniwidth/width, modules/utf16-ucs4:
14830         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
14831         * modules/utf8-ucs4-unsafe:
14832         Change maintainer from Bruno Haible to Daiki Ueno.
14833         This is my guess at the libunistring modules; please feel free
14834         to fix if I guessed incorrectly.
14835         * modules/accept4, modules/acl, modules/acos, modules/acosf:
14836         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
14837         * modules/areadlink, modules/array-list, modules/array-mergesort:
14838         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
14839         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
14840         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
14841         * modules/binary-io, modules/bison-i18n, modules/btowc:
14842         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
14843         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
14844         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
14845         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
14846         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
14847         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
14848         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
14849         * modules/closedir, modules/concat-filename, modules/copy-file:
14850         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
14851         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
14852         * modules/csharpcomp-script, modules/csharpexec:
14853         * modules/csharpexec-script, modules/ctype, modules/diffseq:
14854         * modules/dprintf, modules/dprintf-posix, modules/dup:
14855         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
14856         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
14857         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
14858         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
14859         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
14860         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
14861         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
14862         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
14863         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
14864         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
14865         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
14866         * modules/findprog, modules/findprog-lgpl, modules/floor:
14867         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
14868         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
14869         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
14870         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
14871         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
14872         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
14873         * modules/freadable, modules/freadahead, modules/freadptr:
14874         * modules/freadseek, modules/freopen, modules/frexp:
14875         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
14876         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
14877         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
14878         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
14879         * modules/ftello, modules/full-read, modules/full-write:
14880         * modules/fwritable, modules/fwriteerror, modules/gcd:
14881         * modules/get-rusage-as, modules/get-rusage-data:
14882         * modules/getdtablesize, modules/getrusage, modules/gettext:
14883         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
14884         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
14885         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
14886         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
14887         * modules/iconv, modules/iconv-h, modules/iconv_open:
14888         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
14889         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
14890         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
14891         * modules/integer_length_ll, modules/ioctl, modules/isatty:
14892         * modules/isblank, modules/isnand, modules/isnand-nolibm:
14893         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
14894         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
14895         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
14896         * modules/javaexec, modules/javaexec-script, modules/javaversion:
14897         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
14898         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
14899         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
14900         * modules/lib-symbol-visibility, modules/libsigsegv:
14901         * modules/linked-list, modules/linkedhash-list, modules/list:
14902         * modules/localcharset, modules/locale, modules/localeconv:
14903         * modules/localename, modules/lock, modules/log, modules/log-ieee:
14904         * modules/log10, modules/log10-ieee, modules/log10f:
14905         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
14906         * modules/log1p, modules/log1p-ieee, modules/log1pf:
14907         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
14908         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
14909         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
14910         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
14911         * modules/logf, modules/logf-ieee, modules/login_tty:
14912         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
14913         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
14914         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
14915         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
14916         * modules/mbscspn, modules/mbsinit, modules/mbslen:
14917         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
14918         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
14919         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
14920         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
14921         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
14922         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
14923         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
14924         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
14925         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
14926         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
14927         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
14928         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
14929         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
14930         * modules/posix_spawn, modules/posix_spawn-internal:
14931         * modules/posix_spawn_file_actions_addclose:
14932         * modules/posix_spawn_file_actions_adddup2:
14933         * modules/posix_spawn_file_actions_addopen:
14934         * modules/posix_spawn_file_actions_destroy:
14935         * modules/posix_spawn_file_actions_init:
14936         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
14937         * modules/posix_spawnattr_getpgroup:
14938         * modules/posix_spawnattr_getschedparam:
14939         * modules/posix_spawnattr_getschedpolicy:
14940         * modules/posix_spawnattr_getsigdefault:
14941         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
14942         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
14943         * modules/posix_spawnattr_setschedparam:
14944         * modules/posix_spawnattr_setschedpolicy:
14945         * modules/posix_spawnattr_setsigdefault:
14946         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
14947         * modules/pow, modules/powf, modules/printf-frexp:
14948         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
14949         * modules/progname, modules/propername, modules/pselect:
14950         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
14951         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
14952         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
14953         * modules/read, modules/readdir, modules/readlink:
14954         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
14955         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
14956         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
14957         * modules/relocatable-script, modules/remainder:
14958         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
14959         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
14960         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
14961         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
14962         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
14963         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
14964         * modules/setlocale, modules/sh-quote, modules/shutdown:
14965         * modules/signal, modules/signbit, modules/sigpipe:
14966         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
14967         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
14968         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
14969         * modules/snippet/link-warning, modules/snippet/unused-parameter:
14970         * modules/snprintf, modules/snprintf-posix, modules/spawn:
14971         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
14972         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
14973         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
14974         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
14975         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
14976         * modules/streq, modules/strerror_r-posix, modules/striconv:
14977         * modules/striconveh, modules/striconveha, modules/strncat:
14978         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
14979         * modules/sublist, modules/sys_resource, modules/sys_utsname:
14980         * modules/sys_wait, modules/system-posix, modules/system-quote:
14981         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
14982         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
14983         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
14984         * modules/truncf, modules/truncf-ieee, modules/truncl:
14985         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
14986         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
14987         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
14988         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
14989         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
14990         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
14991         * modules/wait-process, modules/waitpid, modules/wcpcpy:
14992         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
14993         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
14994         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
14995         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
14996         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
14997         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
14998         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
14999         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
15000         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
15001         * modules/write, modules/xconcat-filename, modules/xlist:
15002         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
15003         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
15004         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
15005         * modules/y0, modules/y1, modules/yn:
15006         Remove Bruno Haible as maintainer; if he's the sole maintainer,
15007         change the maintainer to 'all'.  Let's hope someone volunteers.
15009 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
15011         mktime: merge #if/#ifdef usage from glibc
15012         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
15013         as that works with both Glibc's and Gnulib's style.
15014         See thread starting at Siddhesh Poyarekar's bug report at:
15015         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
15017 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
15019         git-version-gen: improve option descriptions
15020         * build-aux/git-version-gen: Mention that --prefix and --fallback
15021         have a mandatory argument.
15023 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
15025         regex: fix memory leak in compiler
15026         Fix by Andreas Schwab in:
15027         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
15028         * lib/regcomp.c (parse_expression): Deallocate partially
15029         constructed tree before returning error.
15031         regex: merge patch from libc
15032         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
15033         Combine __USE_BSD and __USE_SVID into __USE_MISC.
15034         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
15036 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
15038         acl: port to gcc -Wredundant-decls
15039         From a request by Dmitry Antipov in:
15040         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
15041         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
15042         "#ifndef _GL_ACL_H".
15044 2014-06-11  Bruce Korb  <bkorb@gnu.org>
15045         Jim Meyering  <meyering@fb.com>
15047         parse-duration: eliminate 68-year duration limit
15048         * lib/parse-duration.c: Include "intprops.h".
15049         (TIME_MAX): Rename to MAX_DURATION and define to
15050         TYPE_MAXIMUM(time_t).
15051         * modules/parse-duration (Depends-on): Add intprops.
15052         Reported by Jonas 'Sortie' Termansen.
15054 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
15056         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
15057         * modules/pthread (Depends-on): Add 'extensions', as it defines
15058         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
15059         (configure.ac-early): New section.
15060         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
15061         it is no longer needed.
15063 2014-06-14  Pádraig Brady  <P@draigBrady.com>
15065         pthread: define thread-safe macros on some platforms
15066         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
15067         for thread-safe operation on some platforms.
15069 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
15071         regex: don't be multithreaded if USE_UNLOCKED_IO.
15072         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
15073         * lib/regex_internal.h: Do not use multithreaded version if
15074         USE_UNLOCKED_IO is defined.  This is a hack, but it works
15075         around a porting bug with coreutils 8.22 on AIX 7.1.
15077 2014-06-11  Daiki Ueno  <ueno@gnu.org>
15079         gettext: update macros to version 0.19
15080         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
15081         depend on gl_EXTERN_INLINE and drop support for older Bison
15082         versions.
15084 2014-06-10  Pádraig Brady  <P@draigBrady.com>
15086         select,poll: fix console handle check on windows 8
15087         lib/poll.c (IsConsoleHandle): Change from testing the lower
15088         2 bits of the handle to the more expensive but accurate syscall.
15089         lib/select.c: Likewise.
15091 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
15093         select: fix waiting on anonymous pipes on MS-Windows
15094         * lib/select.c (rpl_select): Fall back to polling when select()
15095         indicates there is nothing to check, while due to the timeout not
15096         expiring, activity is indicated on one of the handles.
15097         Also clear the TIMEOUT argument if the timer does expire.
15099 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
15101         times: fix to return non constant value on MS-Windows
15102         * lib/times.c (times): Don't use the process creation time,
15103         rather clock() which on windows returns the number of
15104         clock ticks since the process started.
15106 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
15108         isatty: fix to work on windows 8
15109         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
15110         2 bits of the handle to the more expensive but accurate syscall.
15112 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
15114         maint: fix typo in fdl.texi
15115         * doc/fdl.texi: Fix typo (missing '@').
15116         Somehow this was in fdl.texi but not fdl-1.3.texi.
15118 2014-06-06  Ben Walton  <bdwalton@gmail.com>
15120         mountlist: avoid hasmntopt const type warning on solaris
15121         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
15122         with char * instead of const char *.  Passing the constant string
15123         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
15124         to avoid the warning.
15126 2014-06-04  Eric Blake  <eblake@redhat.com>
15128         maintainer-makefile: delete obsolete code
15129         * top/maint.mk (build_aux): Drop old code, as threatened.
15131         maintainer-makefile: avoid spurious error messages
15132         * top/maint.mk (syntax-check): Guard definition and use of
15133         $(shell) by whether Makefile is present.
15135 2014-06-03  Ben Walton  <bdwalton@gmail.com>
15137         rename: avoid unused-but-set-variable compiler warning
15138         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
15139         it is possible that dst_exists may be set but not used.  Mark it with
15140         the unused attribute to avoid compiler warnings.
15142 2014-06-02  Ben Walton  <bdwalton@gmail.com>
15144         rename: mark a label as potentially unused
15145         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
15146         by marking the out label as potentially unused.
15147         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
15149 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
15151         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
15152         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
15154 2014-06-02  Ben Walton  <bdwalton@gmail.com>
15156         acl: apply pure attribute to two functions
15157         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
15158         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
15160 2014-06-01  Pádraig Brady  <P@draigBrady.com>
15162         gnulib-common.m4: add _GL_UNUSED_LABEL
15163         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
15164         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
15166 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
15168         dup2, fcntl, fcntl-h: port to AIX 7.1
15169         This fixes some porting problems discovered when testing the latest
15170         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
15171         in grep but it could be important for other applications.
15172         * doc/posix-functions/dup2.texi:
15173         * doc/posix-functions/fcntl.texi:
15174         * doc/posix-headers/fcntl.texi:
15175         Document AIX bugs.
15176         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
15177         Define to 0 if outside 'int' range.
15178         * m4/dup2.m4 (gl_FUNC_DUP2):
15179         * m4/fcntl.m4 (gl_FUNC_FCNTL):
15180         Check for getdtablesize.  If it's available, test a value just
15181         outside its range instead of testing 1000000.  When cross-compiling,
15182         guess that AIX will fail this improved test.
15184 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
15186         printf, config.rpath: Port to FreeBSD 10.
15187         Problem reported by Tijl Coosemans in:
15188         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
15189         * build-aux/config.rpath (hardcode_libdir_flag_spec)
15190         (hardcode_direct): Simplify FreeBSD configuration.
15191         (library_names_spec): Don't mishandle FreeBSD 10+.
15192         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
15193         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
15194         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
15195         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
15196         Don't mishandle FreeBSD 10+ when cross-compiling.
15198         ftoastr: work around compiler bug in IBM xlc 12.1
15199         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
15200         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
15201         around a compiler bug in IBM xlc 12.1.0.0: it complains
15202         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
15203         _GL_FLT_PREC_BOUND.'
15205 2014-05-30  Kieran Colford  <colfordk@gmail.com>
15207         valgrind-tests: fixed misleading help message
15208         * m4/valgrind-tests.m4: The help message generated by configure
15209         implied that valgrind was disabled by default, which it wasn't.
15210         Adjusted the help message using s/enable/disable/ to clarify.
15212 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
15214         isfinite, isinf, isnan tests: fix for little-endian PowerPC
15215         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
15216         first double of a PowerPC "double double" pair.
15217         * tests/test-isinf.c (test_isinfl): Likewise.
15218         * tests/test-isnan.c (test_long_double): Likewise.
15219         * tests/test-isnanl.h (main): Likewise.
15220         * tests/test-signbit.c (test_signbitl): Likewise.
15222 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15224         exclude-tests: port to AIX 7.1
15225         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
15226         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
15227         the regex code uses locks.
15229 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
15231         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
15232         Without this fix, Emacs would sometimes call sigprocmask instead
15233         of pthread_sigmask, which is a no-no in multithreaded applications.
15234         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
15235         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
15236         Suppress check for pthread_sigmask working without -lpthread if
15237         the application always links with -lpthread.  Do not link with
15238         $LIBMULTITHREAD if gl_THREADLIB is not defined.
15239         * m4/timer_time.m4 (gl_TIMER_TIME):
15240         Require gl_THREADLIB only if it is defined.  Do not append
15241         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
15243 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
15245         gnulib-tool: wget translations using --no-verbose rather than --quiet
15246         This allows the user to see error messages if any (--quiet hides them)
15247         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
15249 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
15251         gnulib-tool: adjust translation wget to avoid a https redirection
15252         Context: http://translationproject.org/latest/gnulib redirects to
15253            https://translationproject.org/latest/gnulib/
15254         Rationale: if the user falls back to wget, she doesn't have rsync and
15255         is probably in a minimal build environment, where packages such as
15256         'ca-certificates' are missing as well, resulting in a failed (and
15257         difficult to detect since ignored) translation initial fetch.
15258         Consequently let's avoid https if possible, and add the missing
15259         trailing slash.  This also avoids an unnecessary 302 redirection.
15260         * gnulib-tool: Add trailing slash to gnulib URL.
15262 2014-05-22  Pádraig Brady  <P@draigBrady.com>
15264         getlogin_r-tests: check return value rather than errno
15265         * tests/test-getlogin_r.c (main): As per POSIX we should be
15266         verifying the return value from getlogin_r() rather than errno.
15268 2014-05-22  Pádraig Brady  <P@draigBrady.com>
15270         getlogin_r-tests: fix various issues in recent change
15271         * tests/test-getlogin_r.c: Include required headers that were
15272         missed in recent commit eec20b4e.
15273         Also consistently check the errno rather than the return value from
15274         getlogin_r as POSIX only specifies that non zero is returned on error.
15275         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
15277 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
15279         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
15280         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
15281         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
15282         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
15283         * lib/spawn-pipe.c:
15284         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
15285         and then 'int open64(const char *, int, ...);', which means the
15286         declaration for 'open' gets lost if we later '#undef open'.
15287         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
15288         where the compilation reported the non-fatal error "In function
15289         'openat_proc_name' ... warning: implicit declaration of function
15290         'open'".  In this case the error is relatively harmless, but in
15291         other cases it might not be so minor.
15293 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
15295         xalloc: don't potentially generate invalid code for xmemdup calls
15296         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
15297         this function can initialize the newly-allocated storage with new
15298         pointers, which means this function is not malloc-like.  See:
15299         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
15301 2014-05-19  Pádraig Brady  <P@draigBrady.com>
15303         getlogin_r-tests: avoid false failure under sudo/ssh etc.
15304         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
15305         changes from commit 97249cf29 to not depend on environment variables.
15307 2014-05-18  Pádraig Brady  <P@draigBrady.com>
15309         getlogin-tests: avoid false failure under cron
15310         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
15311         since that's not what's under test.  Centos 6 was seen to return
15312         EINVAL for ttyname() when run from cron.
15314 2014-05-16  Jim Meyering  <meyering@fb.com>
15316         mbrtowc.m4: fix a comment typo
15317         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
15318         emitted documentation string.
15320 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15322         mbrlen, mbrtowc: fix bug with empty input
15323         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
15324         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
15325         so this is mainly for documentation.
15326         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
15327         (gl_FUNC_MBRTOWC): Use it.
15328         * tests/test-mbrtowc.c (main): Test for the bug.
15330 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
15332         doc: document mbrtowc and mbrlen problem with empty input
15333         * doc/posix-functions/mbrlen.texi (mbrlen):
15334         * doc/posix-functions/mbrtowc.texi (mbrtowc):
15335         Document portability problem when the input string is empty.  See:
15336         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
15338         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
15339         Problem reported by Eli Zaretskii in:
15340         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
15341         * doc/posix-functions/execl.texi (execl):
15342         * doc/posix-functions/execle.texi (execle):
15343         * doc/posix-functions/execlp.texi (execlp):
15344         * doc/posix-functions/execv.texi (execv):
15345         * doc/posix-functions/execve.texi (execve):
15346         * doc/posix-functions/execvp.texi (execvp):
15347         Mention spawn+exit problem on non-Cygwin Windows platforms.
15349 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
15351         getlogin-tests: avoid false failure under sudo/ssh etc.
15352         * modules/getlogin-tests (configure.ac): Check for ttyname().
15353         * tests/test-getlogin.c (main): Don't depend on environment variables
15354         to correlate with getlogin(), since sudo and ssh etc. can tamper
15355         with the LOGNAME and USER env vars.  Instead lookup the name from
15356         the uid associated with the stdin tty.
15358 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
15360         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
15361         These were found when building the latest grep snapshot on IRIX 6.5.
15362         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
15363         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
15364         never used later.
15365         * lib/quotearg.c (quoting_options_from_style):
15366         * lib/xstrtol.c (__xstrtol):
15367         Use enum instead of 0, to pacify IRIX 6.5 cc.
15369 2014-04-18  Pádraig Brady  <P@draigBrady.com>
15371         gitlog-to-changelog: revert inclusion of git-log-fix file
15372         * build-aux/git-log-fix: Delete dummy file.
15373         * modules/gitlog-to-changelog: Don't reference (overwrite)
15374         the project specific git-log-fix file.
15376 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
15378         maint.mk: Relax the copyright check to cater for non FSF projects
15379         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
15380         to not require the "Free" suffix after the copyright years.
15382 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
15384         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
15385         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
15386         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
15387         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
15388         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
15390 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
15392         exclude: port to strict C99
15393         Strict C does not allow converting a function pointer to void *
15394         and vice versa.  Pass a pointer to a function pointer instead.
15395         * lib/exclude.c (add_exclude_file):
15396         Pass the address of the function pointer.
15397         (call_addfn): And deference the address here, to match.
15399 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
15401         regex: do not depend on malloc-gnu
15402         * modules/regex (Depends-on): Remove malloc-gnu.
15403         It's no longer needed, because of the 2012-12-29 patch
15404         "regex: port to hosts where malloc (0) == NULL".
15405         Reported by Nathan Kennedy in:
15406         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
15408 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
15410         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
15411         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
15412         * doc/posix-functions/expl.texi: Mention the workaround.
15414 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
15416         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
15417         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
15418         size to be zero even when the pointer is nonnull.  This
15419         accommodates the use case where P is malloc (0) and *PN is 0 on a
15420         host where malloc (0) yields nonnull.
15422 2014-04-09  Eric Blake  <eblake@redhat.com>
15424         fts: avoid unnecessary strlen calls
15425         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
15427 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
15429         fts: avoid unnecessary strlen calls
15430         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
15431         when that can be faster than strlen.
15433 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
15435         fts: avoid unnecessary strlen calls
15436         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
15437         (fts_build): Store the length of the dp->d_name entry in a local variable
15438         instead of calling strlen() several times via the above, removed macro.
15439         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
15440         run by ~4%, yet this reduces the execution time by about a third if run
15441         via "ltrace -c rm -rf some-dir".
15443 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
15445         obstack: Remove ancient NeXTSTEP gcc support conditional
15446         This change will ease merging with glibc.  The "#if ... __NEXT__"
15447         causes a warning with -Wundef which glibc now enables by default.
15448         Problem reported by Will Newton in
15449         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
15450         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
15451         so go with that.
15452         * lib/obstack.h (__extension__):
15454 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
15456         obstack: merge with glibc changes
15457         * lib/obstack.c, lib/obstack.h: Merge from glibc.
15458         This is mostly indenting and commentary changes.
15459         Instances of 'register' have been removed.
15461 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
15463         strftime: wrap macros in "do {...} while(0)"
15464         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
15465         this macro in "do {...} while(0)" to prevent false use as a
15466         single statement, e.g., in an un-braced "{}" else-block.
15467         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
15468         (strftime_case_): Remove 'else' after 'goto' - which was the
15469         only non-fatal, un-braced use of one of the above macros.
15470         Spotted by coverity (NESTING_INDENT_MISMATCH).
15472 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
15474         modechange: avoid memory leaks for invalid octal modes
15475         * lib/modechange.c (mode_compile): During the parsing of
15476         notations like +40, free the 'mc' buffer for invalid mode
15477         strings like +17777 (greater than the maximum octal mode),
15478         =18 (bad octal mode characters) or u=1 ('affected' with
15479         octal modes).
15480         Reproducer, e.g.:
15481             $ valgrind --leak-check=full chmod +17777 file
15482         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
15483         add notations +40, 00440, etc.".
15484         Spotted by coverity (RESOURCE_LEAK).
15486 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
15488         gitlog-to-changelog: include a dummy git-log-fix file
15489         Problem reported by Nathan Stratton Treadway in:
15490         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
15491         * build-aux/git-log-fix: New file.
15493 2014-03-13  Jim Meyering  <meyering@fb.com>
15495         gitlog-to-changelog: also include the file, git-log-fix
15496         * modules/gitlog-to-changelog (Files): Add git-log-fix.
15497         Reported by Assaf Gordon.
15499 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
15501         regex: port to OS X 10.8.5 en_US.UTF-8 locale
15502         This fixes a bug when ignoring case and when comparing the
15503         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
15504         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
15505         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
15506         titlecase letter is neither lowercase nor uppercase, but
15507         uppercasing the titlecase letter (via towupper) yields the
15508         uppercase letter, so the two letters should match when ignoring case.
15509         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
15510         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
15511         Don't test whether a character is lowercase before uppercasing it.
15513 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
15515         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
15516         This is basically one of the options Bruno Haible proposed in:
15517         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
15518         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
15519         * lib/stdint.in.h: Use it.
15520         * modules/stdint (Depends-on): Add sys_types.
15522 2014-02-26  Pádraig Brady  <P@draigBrady.com>
15524         parse-datetime: fix crash or infloop in TZ="" parsing
15525         * lib/parse-datetime.y (parse_datetime): Break out of the
15526         TZ="" parsing loop once the second significant " is found.
15527         Also skip over any subsequent whitespace to be consistent
15528         with the non TZ= case.
15529         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
15531 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
15533         savedir: new symbol for fast-read version
15534         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
15535         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
15536         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
15537         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
15539 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
15541         unistd: port readlink to Mac OS X 10.3.9
15542         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
15543         around self-include problem in Mac OS X 10.3.9 when combined with
15544         readlink module.  Problem reported by Klaus Zietler in
15545         <http://bugs.gnu.org/16825>.
15547 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
15549         diffseq: remove TOO_EXPENSIVE heuristic
15550         Problem with diffutils reported by Vincent Lefevre in
15551         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
15552         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
15553         Although appropriate for circa-1993 hardware, these days the heuristic
15554         seems to be more trouble than it's worth.
15555         * lib/diffseq.h: Modernize citations.
15556         (struct context): Remove member too_expensive.
15557         All uses changed.
15558         (struct partition): Remove members lo_minimal, hi_minimal.
15559         All uses changed.
15560         (diag, compareseq): Remove arg find_minimal.  All uses changed.
15561         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
15562         1993 to make 'diff' run faster (but not as well) on large inputs.
15563         These days, computers are fast enough that it's typically better
15564         to run slower but more accurately.
15565         * lib/fstrcmp.c: Remove duplicate comment.
15566         * lib/fstrcmp.c (strcmp_bounded):
15567         * lib/git-merge-changelog.c (compute_differences):
15568         Adjust to diffseq.h changes.
15569         * NEWS: Document the change.
15571         savedir: simplify by using stpcpy
15572         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
15573         (streamsavedir): Use stpcpy instead.
15574         * modules/savedir (Depends-on): Add stpcpy.
15576 2014-02-21  Pádraig Brady  <P@draigBrady.com>
15578         spawn: fix link error on uclibc
15579         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
15580         to incorporate -lrt if needed (on uclibc for example).
15581         * modules/posix_spawn: Reference the substituted LIB.
15583 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
15584         timer: fix uClibc detection of threading
15585         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
15586         enabled in uClibc.
15588 2014-02-21  Eric Blake  <eblake@redhat.com>
15590         maintainer-makefiles: provide AC_PROG_SED for older autoconf
15591         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
15593 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
15595         exclude: add support for posix regexps
15597         This commit adds support for POSIX extended regular expressions
15598         and fixes a long-standing memory leak (pattern buffer was never
15599         freed).  It also implements a new interface function to read
15600         exclude patterns from a FILE, which passes an additional parameter
15601         to its callback function, thereby allowing to preserve its state
15602         between invocations.
15604         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
15605         (pattern_buffer): New struct.
15606         (exclude): New member patbuf.
15607         (exclude_add_pattern_buffer): New function.
15608         (free_exclude_segment): Free regexps.
15609         (free_exclude): Free allocated pattern buffers.
15610         (exclude_patopts): New function.
15611         (file_pattern_matches): Use exclude_patopts.
15612         (add_exclude): support regexps.
15613         (add_exclude_fp): New function.
15614         (add_exclude_file): Rewrite using add_exclude_fp.
15615         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
15616         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
15617         (add_exclude_fp)
15618         (add_exclude_file): Rewrite using add_exclude_fp.
15619         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
15620         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
15621         (add_exclude_fp)
15622         (exclude_add_pattern_buffer): New prototypes.
15623         * modules/exclude: Depends on regex and filename.
15625 2014-02-20  Eric Blake  <eblake@redhat.com>
15627         maintainer-makefiles: use $(SED) for syntax check
15628         * modules/maintainer-makefile (configure.ac): Check for sane sed.
15629         * top/maint.mk: Change sed to $(SED).
15631 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
15632             Paul Eggert  <eggert@cs.ucla.edu>
15634         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
15635         Patch based on an idea by Dick Streefland in
15636         <https://savannah.gnu.org/patch/?7892>.
15637         * NEWS: Document this.
15638         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
15639         (direntry_t, comparison_function): New types.
15640         (direntry_cmp_name): New function.
15641         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
15642         (streamsavedir, savedir): New arg OPTION.
15643         (streamsavedir): Simplify memory allocation.
15644         (fdsavedir): Remove.
15645         * lib/savedir.h (enum savedir_option): New type.
15646         (streamsavedir, savedir): New arg OPTION.
15647         (fdsavedir): Remove.
15649 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
15651         file-type: add support for doors and other less-common file types
15652         Problem with S_ISDOOR reported by Rich Burridge.
15653         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
15654         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
15655         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
15657 2014-01-23  Eric Blake  <eblake@redhat.com>
15659         pthread: work around winpthread header pollution on mingw
15660         * lib/time.in.h: Move pthread workarounds...
15661         * lib/pthread.in.h: ...here.
15662         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
15663         detect macro pollution on mingw.
15664         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
15666 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
15668         qacl: check for fchmod
15669         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
15670         and qset-acl.c both use HAVE_FCHMOD.
15672 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
15674         fdopen-tests: port to Tru64
15675         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
15676         descriptor that is not open, as POSIX doesn't specify the
15677         resulting behavior and the test does not work on Tru64.
15678         Problem reported by Steven M. Schweda in:
15679         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
15681         stdalign: port to HP-UX compilers
15682         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
15683         if __HP_cc or __HP_aCC are nonzero.
15685 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
15687         strtoimax: port to platforms lacking 'long long'
15688         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
15689         check whether strtoll is declared, which causes the C file to
15690         wrongly report an error.  Problem reported by Steven M. Schweda in:
15691         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
15692         * lib/strtoimax.c (strtoull):
15693         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
15694         (strtoll): Declare only if HAVE_LONG_LONG_INT.
15696 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
15698         relocatable-perl: fix texi syntax
15699         * doc/relocatable-maint.texi: Escape braces.
15701 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
15703         relocatable-perl: like relocatable-script, but for Perl scripts
15704         * build-aux/relocatable.pl.in: Add.
15705         * doc/relocatable-maint.texi: Add documentation.
15706         * modules/relocatable-perl: Add.
15708 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
15710         tests: fix export bug in previous patch
15711         Problem reported by Jim Meyering.
15712         * tests/init.sh (re_shell): New var, which is exported instead of
15713         re_shell_.
15715         tests: simplify porting to Solaris 10 /bin/sh
15716         Some test cases in 'grep' need a shell that groks '$(';
15717         export re_shell_ for their benefit.  Problem reported for 'grep'
15718         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
15719         * tests/init.sh (re_shell_): Export if it's used.
15721 2014-01-06  Eric Blake  <eblake@redhat.com>
15723         md5, sha1, sha256, sha512: support older autoconf
15724         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
15725         for autoconf < 2.63b.
15727         include_next: port to autoconf 2.63
15728         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
15730 2014-01-04  Jim Meyering  <meyering@fb.com>
15732         maint: add a gnulib-local rule to keep non-ascii out of .texi files
15733         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
15734         so that "make sc_maint" will ding anyone who puts non-ascii
15735         in any of gnulib's .texi files.
15737 2014-01-03  Jim Meyering  <meyering@fb.com>
15739         freadable, fwritable, fwriting: declare with the "pure" attribute
15740         * lib/freadable.h (freadable): Declare with the "pure" attribute.
15741         * lib/fwritable.h (fwritable): Likewise.
15742         * lib/fwriting.h (fwriting): Likewise.
15743         Suggested by Bruno Haible.
15745         maint.mk: adapt openat.h-include-without-use test
15746         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
15747         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
15748         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
15749         With this change, running "make sc_maint" in gnulib's top-level
15750         directory now passes for me.
15752 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
15754         doc: use ASCII in .texi files where UTF-8 isn't needed
15755         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
15756         * doc/posix-functions/setkey.texi, doc/regex.texi:
15757         Use ASCII input, not UTF-8.
15759 2014-01-02  Jim Meyering  <meyering@fb.com>
15761         freading: declare with the "pure" attribute
15762         * lib/freading.h (freading): Declare with the "pure" attribute.
15764         manywarnings: remove -Wmudflap
15765         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
15766         it is no longer supported in gcc-4.9-to-be.
15768 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
15770         relocatable-script: remove unused code
15771         Problem reported by Reuben Thomas in:
15772         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
15773         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
15775 2014-01-01  Jim Meyering  <meyering@fb.com>
15777         maint: fix public-submodule-commit to work with newer git
15778         * top/maint.mk (public-submodule-commit): Remove excess quoting.
15779         We were over-quoting the test arguments, and somewhere prior to
15780         version 1.8.5.2.229, git stopped removing those excess quotes,
15781         which made the test fail, since the unexpanded strings would
15782         always differ; using GIT_TRACE=1 confirmed that the git merge-base
15783         command wasn't even being run.
15785 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
15787         doc: update main copyright year
15788         * doc/gnulib.texi: Update copyright date.
15790 2014-01-01  Eric Blake  <eblake@redhat.com>
15792         version-etc: new year
15793         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
15794         * all files: run 'make update-copyright'
15796 2013-12-24  Eric Blake  <eblake@redhat.com>
15798         passfd: give nicer error for recvfd at eof
15799         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
15800         * tests/test-passfd.c (main): Enhance test to cover this.
15802 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
15804         gettimeofday: port recent C++ fix to Emacs
15805         Without this further patch, Emacs won't build due to
15806         the portcheck failing.  Also, this simplifies the patch a bit.
15807         * lib/time.in.h (localtime, gmtime): Don't replace unless
15808         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
15809         * lib/time.in.h (localtime, gmtime):
15810         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
15811         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
15812         * modules/time (time.h):
15813         Don't worry about the possibility of localtime and gmtime
15814         being absent; they're present in all C libraries we know about.
15815         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
15816         Don't assume sys_time is present and has been initialized.
15817         Instead, use a hack that should work even if it hasn't been.
15818         Don't use a portcheck for gmtime or localtime; this supports
15819         the hack.
15820         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
15822 2013-12-17  John W. Eaton  <jwe@gnu.org>
15824         gettimeofday: fix C++ crosscompilation
15826         Never replace gmtime and localtime by macros when compiling with
15827         C++, this prevents <ctime> from being included.
15829         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
15830         define gmtime and localtime as preprocessor macros.  Instead
15831         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
15832         REPLACE_LOCALTIME substitutions.
15833         * lib/time.in.h: Declare gmtime and localtime when needed.
15834         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
15835         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
15836         * modules/time: Depend on gettimeofday, and substitute the above
15837         variables in time.h.
15839 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
15841         qacl: port to Windows better
15842         See Eli Zaretskii in
15843         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
15844         * lib/file-has-acl.c (acl_access_nontrivial):
15845         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
15846         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
15848 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
15850         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
15851         * lib/gl_openssl.h: Cast void pointers to a specific type.
15853 2013-12-07  Pádraig Brady  <P@draigBrady.com>
15855         open-tests: fix build failure with -Werror=old-style-declaration
15856         * tests/test-open.h: Reorder the inline to avoid the issue.
15858 2013-12-07  Pádraig Brady  <P@draigBrady.com>
15860         md5, sha1, sha256, sha512: fix link error with partial libcrypto
15861         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
15862         init time, so that if early checks find crypto routines,
15863         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
15864         avoiding link failures.
15866 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
15868         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
15869         This provides a new way to specify the default for
15870         gl_CRYPTO_CHECK, one that is reflected in the --help message.
15871         Emacs uses this, as well as the old way.
15872         This attempts to implement a suggestion by Pádraig Brady in
15873         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
15874         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
15875         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
15877         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
15878         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
15879         Add support for a new option, --with-openssl=auto, which causes
15880         the library to be used if available and silently ignored if not.
15881         Add support to allow configure.ac to specify its own
15882         default, by setting with_openssl_default before invoking gl_INIT.
15884 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
15886         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
15887         Problem reported by Daiki Ueno in:
15888         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
15889         * tests/test-open.h (__always_inline):
15890         New macro, if not already defined.
15891         (test_open): Use it.
15893 2013-12-04  Eric Blake  <eblake@redhat.com>
15895         include_next: minimize code duplication
15896         * modules/include_next (Depends-on): Add absolute-header.
15897         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
15898         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
15900 2013-12-04  Pádraig Brady  <P@draigBrady.com>
15902         getcwd: fix compile error in configure check
15903         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
15905 2013-12-04  Pádraig Brady  <P@draigBrady.com>
15907         regex: suppress core dumps from detection code
15908         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
15909         to suppress core dumps that may well occur on glibc systems.
15910         These core dumps might not be cleaned up automatically, or could
15911         trigger some system core dump handling logic.
15913 2013-12-03  Pádraig Brady  <P@draigBrady.com>
15915         md5, sha1, sha256, sha512: support mandating use of openssl
15916         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
15917         description, to list the now 3 separate options.  also don't
15918         mention the default=no, since this is implicit given the option
15919         is described as --with-openssl rather than --without-openssl.
15920         If projects change the default they're free to document that.
15921         with --with-openssl[=yes] we now error out when the specified
15922         hash algorithm is not available in libcrypto.
15924 2013-12-03  Ivailo  <xakepa10@gmail.com>
15926         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
15927         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
15928         -Wformat-nonliteral checks, as these edge cases are part of the test.
15930 2013-12-03  Eric Blake  <eblake@redhat.com>
15932         regex: avoid glibc deadlock during configure
15933         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
15934         glibc bug 15078 in turn triggers bug 16159.
15935         Reported by Michal Privoznik.
15937 2013-12-02  Pádraig Brady  <P@draigBrady.com>
15939         md5, sha1, sha256, sha512: use openssl routines if available.
15940         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
15941         routines will be used if available, requiring apps to link @LIB_CRYPTO@
15942         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
15943         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
15944         in the standard system location.
15945         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
15946         * m4/sha256.m4: Likewise with SHA256.
15947         * m4/sha512.m4: Likewise with SHA512.
15948         * m4/md5.m4: Likewise with MD5.
15949         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
15950         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
15951         * lib/sha256.h: Likewise with SHA256.
15952         * lib/sha512.h: Likewise with SHA512.
15953         * lib/md5.h: Likewise with MD5.
15954         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
15955         * lib/sha256.c: Likewise with SHA256.
15956         * lib/sha512.c: Likewise with SHA512.
15957         * lib/md5.c: Likewise with MD5.
15958         * modules/crypto/sha1 (Link:): Add the new optional lib.
15959         (Depends-on:): Add dependency on extern-inline.
15960         * modules/crypto/sha256: Likewise.
15961         * modules/crypto/sha512: Likewise.
15962         * modules/crypto/md5: Likewise.
15963         * modules/crypto/sha1-tests: Reference the lib here too.
15964         * modules/crypto/md5-tests: Likewise.
15965         * modules/crypto/gc-des-tests: Likewise.
15966         * modules/crypto/gc-hmac-md5-tests: Likewise.
15967         * modules/crypto/gc-hmac-sha1-tests: Likewise.
15968         * modules/crypto/gc-hmac-sha256-tests: Likewise.
15969         * modules/crypto/gc-hmac-sha512-tests: Likewise.
15970         * modules/crypto/gc-md5-tests: Likewise.
15971         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
15972         * modules/crypto/gc-sha1-tests: Likewise.
15973         * modules/crypto/gc-tests: Likewise.
15974         * modules/crypto/hmac-md5-tests: Likewise.
15975         * modules/crypto/hmac-sha1-tests: Likewise.
15976         * modules/crypto/hmac-sha256-tests: Likewise.
15977         * modules/crypto/hmac-sha512-tests: Likewise.
15979 2013-11-29  RV1971  <rv1971@web.de>
15981         base64: (trivial) fix compilation regression on some compilers
15982         * lib/base64.c: Don't return the void function,
15983         instead split to a separate return statement.
15985 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
15987         ignore-value: revert previous code change
15988         * lib/ignore-value.h (ignore_value): Use __extension__ and
15989         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
15990         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
15991         Change the comment to try to explain this better.
15993 2013-11-27  Pádraig Brady  <P@draigBrady.com>
15995         selinux-h: improve stub types and add more stub functions
15997         * lib/se-selinux.in.h: Change security_context_t to a typedef
15998         rather than a define, as it's a pointer type and so is better
15999         as a typedef to avoid issues declaring multiple variables
16000         with the comma operator.  Also add stub for string_to_security_class().
16001         * lib/se-context.in.h: Add stub functions for
16002         context_{type,range,role,user}_get().
16004 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
16006         ignore-value: prefer GCC version back through 2.0
16007         The code didn't match the comments, so I did a bit of software
16008         archaeology.  GCC 2.0 seems to support __extension__ and
16009         __typeof__, so fix both code and comments to use 2.0.
16010         * lib/ignore-value.h (ignore_value): Use __extension__ and
16011         __typeof__ for GCC 2.0 through 3.3, too.
16013 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
16015         pty: Activate the signature wrapper of forkpty.
16016         The intended preprocessor macro HAVE_FORKPTY is
16017         never defined, yet `lib/forkpty.c' depends on it.
16019         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
16020         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
16021         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
16023 2013-11-18  Jim Meyering  <meyering@fb.com>
16024         and Paul Eggert  <eggert@cs.ucla.edu>
16026         quotearg: don't attempt to store 1 << 31 into an "int"
16027         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
16028         gcc's new -fsanitize=undefined and running its tests triggered some
16029         new test failures due to undefined behavior, all with this diagnostic:
16030           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
16031             cannot be represented in type int
16032         Rather than shifting "1" left to form a mask, shift the bits right and
16033         simply use "1" as the mask.
16035 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
16037         error: depend on stdio
16038         Problem reported by Nikos Mavrogiannopoulos in
16039         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
16040         * modules/error (Depends-on): Add stdio.
16042 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
16044         * doc/relocatable-maint.texi (Supporting Relocation): Improve
16045         wording.
16046         Reported by Reuben Thomas <rrt@sc3d.org>.
16048 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
16050         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
16051         New function and macro, to work around _DARWIN_C_SOURCE problem.
16052         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
16054 2013-11-11  Pádraig Brady  <P@draigBrady.com>
16056         base64: provide a fast path for encoding well sized buffers
16057         Avoid conditionals in the base64 encoding loop,
16058         which was seen to give 60% better throughput.
16059         * lib/base64.c (base64_encode_fast): A new function to be called
16060         when we don't want to NUL terminate, and we have enough space
16061         in the output to encode the given input.
16062         (base64_encode): Call the _fast() version when appropriate.
16063         Also remove a redundant mask with 0x3F on the first encoded byte.
16065 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
16067         extern-inline: port better to OS X 10.9
16068         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
16069         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
16070         OS X 10.9, except for g++ where the bug is still present.
16071         See <http://trac.macports.org/ticket/41033>.
16073 2013-11-08  Eric Blake  <eblake@redhat.com>
16075         fpending: fix regression on DragonFly BSD
16076         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
16077         * lib/fpending.h (__fpending): Don't declare twice.
16078         Reported by GW in
16079         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
16081 2013-11-05  Jim Meyering  <meyering@fb.com>
16083         hash: relax license to LGPLv2+, for libguestfs
16084         * modules/hash (License): Change from GPL to LGPLv2+.
16086 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
16088         intprops: port to Oracle Studio c99
16089         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
16090         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
16092 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
16094         obstack: pacify HP C
16095         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
16096         warning "conversion from pointer to smaller integer" from HP
16097         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
16098         C89 or later nowadays, so cast to void instead of int.  Privately
16099         reported by H.Merijn Brand.  Also, change header to match glibc's,
16100         to make checking against glibc easier.
16102 2013-10-29  Jim Meyering  <meyering@fb.com>
16104         maint.mk: prefer gpgv2 over gpgv
16105         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
16106         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
16107         Reported by Gary Vaughan.
16109 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
16111         isnan: port to VAX
16112         Reported by John Klos for NetBSD-5/VAX in
16113         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
16114         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
16115         (FUNC): Use it.
16117 2013-10-28  Jim Meyering  <meyering@fb.com>
16119         gnulib-tool: protect against CDPATH
16120         * gnulib-tool: Many "cd" built-in functions print a directory name
16121         to stdout when CDPATH is set, e.g.,
16122           $ bash -c 'CDPATH=/; cd tmp'
16123           /tmp
16124         Unset it, when possible.  Prompted by a comment from Bruce Korb.
16126         maint.mk: restore functionality removed by recent change...
16127         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
16128         the context of a shallow-cloned gnulib repository: "git describe"
16129         would fail in such a directory.  However, that change made it so
16130         the reported gnulib revision no longer includes the version number
16131         or a commit count, even when run from a full clone.
16132         * top/maint.mk (gnulib-version): Use the full "git describe"
16133         output when possible, e.g., the form above, rather than the
16134         abbreviated, no-tag, no-commit-count string, and fall back to
16135         using a 10-byte hash, rather than the default minimal-length
16136         hash prefix, since while the minimal-length one may be fine today,
16137         it is likely not to be unique for very long.
16139 2013-10-26  Jim Meyering  <meyering@fb.com>
16141         maint.mk: fix "release" target to build _version
16142         This fixes a bug in README-release whereby following the outlined
16143         steps, one would publish a tarball whose programs would report
16144         --version output not consistent with the package version number.
16145         This bug caused grep-2.15 to produce a grep program whose
16146         --version option made it print 2.14.56-1e3d rather than 2.15.
16147         * top/maint.mk (release): Making this target build "_version"
16148         ensures that the new version number is reflected in configure.
16150 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
16152         install-reloc: Support multi-binary installation.
16153         * build-aux/install-reloc: Support installing multiple programs in
16154         one invocation, as done by Automake starting with commit
16155         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
16156         Haible <bruno@clisp.org>, archived at
16157         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
16158         Reported by Sylvain <beuc@gnu.org>.
16160 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
16162         selinux-h: Really build without selinux when library is missing.
16163         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
16164         continue without selinux, as already told in the warning message.
16166 2013-10-21  Jim Meyering  <meyering@fb.com>
16168         regex: also remove dependency on HAVE_WCSCOLL
16169         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
16171 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
16173         xfreopen: Fix typo. s/frepoen/freopen/
16174         * lib/xfreopen.c: Fix description.
16175         * modules/xfreopen: Likewise.
16177 2013-10-21  Jim Meyering  <meyering@fb.com>
16179         regex: don't depend on wcscoll
16180         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
16181         It is no longer used.
16183 2013-10-20  Jim Meyering  <meyering@fb.com>
16185         error: add the printf attribute to a static function
16186         * lib/error.c (error_tail): Add the printf attribute, to placate
16187         gcc's -Werror=suggest-attribute=format option.
16189 2013-09-30  Jim Meyering  <meyering@fb.com>
16191         fpending, obstack, strerror-override: use pure+const function attrs
16192         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
16193         * lib/obstack.c (_obstack_allocated_p): Likewise.
16194         * lib/obstack.h (_obstack_memory_used): Likewise.
16195         (_obstack_memory_used): Likewise.
16196         * lib/strerror-override.h (strerror_override): Declare with
16197         the "const" attribute.
16199 2013-10-18  Eric Blake  <eblake@redhat.com>
16201         extern-inline: make safe for -Wundef usage
16202         Reported by Vladimir 'phcoder' Serbinenko in
16203         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
16204         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
16206 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
16208         mkfifo-tests, etc.: allow HP-UX 11.11 bug
16209         Problem reported by Daniel Richard G. in
16210         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
16211         * doc/posix-functions/mkfifo.texi (mkfifo):
16212         * doc/posix-functions/mkfifoat.texi (mkfifoat):
16213         * doc/posix-functions/mknod.texi (mknod):
16214         * doc/posix-functions/mknodat.texi (mknodat):
16215         Document the HP-UX 11.11 bug.
16216         * tests/test-mkfifo.h (test_mkfifo):
16217         Allow the HP-UX 11.11 bug.
16219 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
16221         acl: allow cross-compilation to Gentoo
16222         Problem reported by Gabriel Marcano in
16223         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
16224         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
16225         test only whether it links.
16227 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
16229         mgetgroups: remove dependency on realloc-gnu
16230         The dependency violates the comment in realloc-gnu, which
16231         says that tests can't depend on realloc-gnu; some tests depend
16232         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
16233         Problem reported by Daniel Richard G. in
16234         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
16235         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
16236         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
16237         not realloc-gnu.
16239 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
16241         regex-tests: port to HP-UX 11.11
16242         Problem reported by Daniel Richard G. in
16243         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
16244         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
16246 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
16248         verify: document some 'assume' pitfalls
16249         * doc/verify.texi (Compile-time Assertions):
16250         Mention that 'assume (E)' can sometimes slow things down.
16251         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
16253 2013-10-10  Eric Blake  <eblake@redhat.com>
16255         strtoumax: fix typo in previous commit.
16256         * modules/strtoumax (Depends-on): Fix typo.
16257         * modules/strtoimax (Depends-on): Likewise.
16259 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
16261         strtoumax: port to Solaris 8
16262         This problem was introduced in the recent HP-UX patch.
16263         Reported by Tom G. Christensen in
16264         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
16265         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
16266         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
16268 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
16270         strtoimax, strtoumax: port to HP-UX 11.11
16271         Problem reported by Daniel Richard G. in
16272         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
16273         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
16274         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
16275         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
16276         REPLACE_STRTOUMAX.
16277         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
16278         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
16279         Replace the function if defined as a macro but not as a function.
16280         * modules/inttypes-incomplete (inttypes.h): Substitute
16281         REPLACE_STRTOUMAX.
16282         * modules/strtoumax (configure.ac): Replace strtoumax if
16283         REPLACE_STRTOUMAX.
16285 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
16287         strtoimax: port to HP-UX 11.11
16288         Problem reported by Daniel Richard G.
16289         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
16290         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
16291         they might clash with inttypes.h.
16293 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
16295         New module 'count-trailing-zeros'.
16296         * MODULES.html.sh: Mention it.
16297         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
16298         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
16299         * modules/count-trailing-zeros-tests:
16300         * tests/test-count-trailing-zeros.c:
16301         New files.
16303         count-leading-zeros: port to MSC; support types wider than 64 bits
16304         The ideas behind the MSC port are stolen from Emacs.
16305         * lib/count-leading-zeros.h:
16306         Don't include verify.h: it's no longer needed, as types wider than
16307         64 bits are now supported.
16308         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
16309         performance with MSC.  All uses changed.  Do not assume that TYPE
16310         has at most 64 bits.
16311         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
16312         All uses changed.  Fold the subtraction from 31 into the table.
16314         count-one-bits: port to MSC; support types wider than 64 bits
16315         The ideas behind the MSC port are stolen from Emacs.
16316         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
16317         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
16318         Don't include verify.h: it's no longer needed, as types wider than
16319         64 bits are now supported.
16320         (COUNT_ONE_BITS_GENERIC): New macro.
16321         (popcount_supported) [_MSC_VER]: New inline function.
16322         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
16323         performance with MSC.  All uses changed.  Do not assume that TYPE
16324         has at most 64 bits.
16325         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
16327 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
16329         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
16330         * lib/mountlist.c (read_file_system_list): fix leak of directory
16331         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
16333 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
16335         tests: improve diagnostic when an assertion fails
16336         * tests/macros.h (ASSERT): Report the assertion that failed.
16338 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
16340         verify: new macro 'assume'
16341         This is taken from Emacs, and should be generally useful.
16342         * doc/verify.texi (assume): Document it.
16343         * lib/verify.h (assume): New macro.
16344         (__has_builtin): Expand to 0 if not defined.
16346 2013-09-26  Eric Blake  <eblake@redhat.com>
16348         dup2, dup3: work around another cygwin crasher
16349         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
16350         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
16351         * tests/test-dup2.c (main): Likewise.
16352         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
16353         * lib/dup3.c (dup3): Likewise.
16354         * doc/posix-functions/dup2.texi (dup2): Document it.
16355         * doc/glibc-functions/dup3.texi (dup3): Likewise.
16357         getdtablesize: work around cygwin issue
16358         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
16359         * modules/getdtablesize (configure.ac): Build replacement.
16360         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
16361         * modules/unistd (Makefile.am): Expose the witness.
16362         * lib/unistd.in.h (getdtablesize): Declare replacement.
16363         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
16364         * tests/test-getdtablesize.c (main): Test it.
16365         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
16367 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
16369         pmccabe2html: escaping of special characters
16370         Escape all '<', '>', and '&' in HTML output.
16371         * build-aux/pmccabe2html (html_fnc): Call gsub()
16372         instead of sub() to capture all '<', '>', and '&'.
16373         Neither of '<' and '>' is special in a regexp,
16374         so first arguments to gsub() are corrected. Also,
16375         in replacement strings, ampersand must be escaped.
16376         Finally, '&' must be handled first, then '<' and '>'.
16378 2013-09-24  Eric Blake  <eblake@redhat.com>
16380         manywarnings: enable nicer gcc warning messages
16381         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
16382         some -f options for optimal warnings.
16384 2013-09-21  Jim Meyering  <meyering@fb.com>
16386         timespec: use the new TIMESPEC_RESOLUTION in a few more places
16387         * lib/timespec-add.c (timespec_add): Also replace 999999999
16388         with TIMESPEC_RESOLUTION - 1.
16389         * lib/timespec-sub.c (timespec_sub): Likewise.
16391 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
16393         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
16394         Problem reported by Dagobert Michelsen via Eric Blake in
16395         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
16396         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
16397         not AC_COMPILE_IFELSE.
16399 2013-09-23  Eric Blake  <eblake@redhat.com>
16401         configmake: support new --runstatedir option
16402         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
16403         even if autoconf was too old to provide the command line option.
16404         * modules/configmake (Makefile.am): Propagate it to .h file.
16406 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16408         ctype, string: depend on extern-inline
16409         This is needed to complete the recent OS X fixes.
16410         Also, fix related documentation as suggested by Eric Blake.
16411         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
16412         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
16413         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
16414         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
16415         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
16416         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
16417         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
16418         * doc/posix-functions/toupper.texi:
16419         List the 'ctype' gnulib module.
16420         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
16421         * doc/posix-functions/strncpy.texi:
16422         List the 'string' gnulib module.
16423         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
16424         Add string.
16425         * modules/ctype, modules/string (Depends-on): Add extern-inline.
16427 2013-09-19  Pádraig Brady  <P@draigBrady.com>
16429         userspec: support optional parameters to parse_user_spec()
16430         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
16431         then avoid group processing and treat the full spec as a user.
16432         (parse_with_separator): Allow the USERNAME and GROUPNAME to
16433         be optional params (NULL), in which case they're ignored.
16435 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
16437         timespec: new function make_timespec, and new constants
16438         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
16439         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
16440         (make_timespec): New function.
16441         * lib/dtotimespec.c (dtotimespec):
16442         * lib/timespec-add.c (timespec_add):
16443         * lib/timespec-sub.c (timespec_sub):
16444         * lib/utimens.c (validate_timespec):
16445         * lib/utimensat.c (rpl_utimensat):
16446         Use these new constants and functions.
16448         stdio: OS X port of putc_unlocked + extern inline
16449         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
16450         * doc/posix-functions/putc_unlocked.texi:
16451         * doc/posix-functions/putchar_unlocked.texi:
16452         Document this portability problem.
16454         signal: OS X port of sigaddset etc. + extern inline
16455         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
16456         (sigismember): #undef on problematic Apple platforms.
16457         * doc/posix-functions/sigaddset.texi:
16458         * doc/posix-functions/sigdelset.texi:
16459         * doc/posix-functions/sigemptyset.texi:
16460         * doc/posix-functions/sigfillset.texi:
16461         * doc/posix-functions/sigismember.texi:
16462         Document this portability problem.
16464         extern-inline: do not always suppress extern inline on OS X
16465         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
16466         extern inline on Apple only if the particular compile-time
16467         configuration is known to have the problem.
16468         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
16469         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
16470         other Gnulib modules.
16472         extern-inline: document fixes for ctype and wctype macros
16473         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
16474         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
16475         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
16476         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
16477         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
16478         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
16479         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
16480         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
16481         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
16482         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
16483         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
16484         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
16485         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
16486         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
16487         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
16488         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
16489         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
16490         * doc/posix-functions/strncpy.texi:
16491         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
16492         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
16493         Document that Gnulib fixes portability problems with these
16494         functions on OS X 10.8 and earlier when called from plain inline
16495         or extern inline functions.
16497 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
16499         fflush, freadahead, fseeko: Fix for Android
16500         Suggested by Bruno Haible in:
16501         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
16502         * lib/stdio-impl.h: Use local __sfileext definition.
16504 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
16506         pmccabe2html: Portability to other awk versions.
16507         The functions systime() and strftime() are available
16508         in Gawk only.  Properly close two HTML-tags 'style'
16509         and 'span'.
16510         * build-aux/pmccabe2html (BEGIN): Store timing
16511         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
16512         systime() in HTML_COMMENT.
16513         (html_header): Correctly close tag 'style'.
16514         (END): Replace strftime() by CHRONOS_TIME.  Close
16515         tag 'span' correctly, not as 'div'.
16517 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
16519         getgroups: statement without effect
16520         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
16521         Change equality conditional to expected assignment.
16523 2013-09-09  Eric Blake  <eblake@redhat.com>
16525         glob: fix compilation
16526         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
16528 2013-09-07  Eric Blake  <eblake@redhat.com>
16530         glob: fix build for platforms without __THROW
16531         * lib/glob.in.h (__THROW): Add definition again.
16533 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
16535         regex-quote: fix buffer access out of bounds
16536         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
16537         * lib/regex-quote.c (regex_quote_spec_pcre):
16538         Fix typo that resulted in an out-of-bounds read.
16540 2013-09-04  Eric Blake  <eblake@redhat.com>
16542         glob: avoid -Wattribute warnings on glibc
16543         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
16544         __THROWNL, not __THROW, on static functions.
16545         * lib/glob.in.h (__THROW): Adjust...
16546         (__THROWNL): ...accordingly.
16548 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
16550         headers: check that _GL_INLINE_HEADER_BEGIN is defined
16551         Suggested by Bruce Korb in:
16552         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
16553         * doc/extern-inline.texi (extern inline):
16554         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
16555         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
16556         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
16557         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
16558         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
16559         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
16560         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
16561         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
16562         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
16563         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
16564         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
16565         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
16566         * lib/xtime.h:
16567         Check that _GL_INLINE_HEADER_BEGIN is defined.
16569 2013-08-29  Pádraig Brady  <P@draigBrady.com>
16571         bootstrap: remove the --version requirement from ancillary tools
16572         * build-aux/bootstrap (check_exists): A new refactored function to
16573         determine if a command exists.
16574         (find_tool): Use the new function which does not require the
16575         --version option to be supported.
16576         (check_versions): Use the new function.
16578 2013-08-26  Simon Josefsson  <simon@josefsson.org>
16580         gc: support HMAC-SHA256 and HMAC-SHA512.
16581         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
16582         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
16583         functions.
16584         (gc_hmac_md5): Use symbolic constant.
16585         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
16586         (gc_hmac_sha256, gc_hmac_sha512): New functions.
16587         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
16588         * m4/sha256.m4: Protect against empty expansion.
16589         * m4/sha512.m4: Likewise.
16590         * lib/hmac-sha256.c: New file.
16591         * lib/hmac-sha512.c: Likewise.
16592         * m4/gc-hmac-sha256.m4: Likewise.
16593         * m4/gc-hmac-sha512.m4: Likewise.
16594         * m4/gc-sha256.m4: Likewise.
16595         * m4/gc-sha512.m4: Likewise.
16596         * modules/crypto/gc-hmac-sha256: Likewise.
16597         * modules/crypto/gc-hmac-sha256-tests: Likewise.
16598         * modules/crypto/gc-hmac-sha512: Likewise.
16599         * modules/crypto/gc-hmac-sha512-tests: Likewise.
16600         * modules/crypto/hmac-sha256: Likewise.
16601         * modules/crypto/hmac-sha256-tests: Likewise.
16602         * modules/crypto/hmac-sha512: Likewise.
16603         * modules/crypto/hmac-sha512-tests: Likewise.
16604         * tests/test-gc-hmac-sha256.c: Likewise.
16605         * tests/test-gc-hmac-sha512.c: Likewise
16606         * tests/test-hmac-sha256.c: Likewise.
16607         * tests/test-hmac-sha512.c: Likewise
16609 2013-08-24  Daiki Ueno  <ueno@gnu.org>
16611         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
16612         of AC_CHECK_DECLS.
16614 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
16616         selinux-at: omit unnecessary include
16617         * lib/selinux-at.c: Don't include dosname.h; not needed, since
16618         this source file doesn't use its macros, and subsidiary files that
16619         use the macros already include it.
16621 2013-08-21  Eric Blake  <eblake@redhat.com>
16623         d-ino: avoid false negative on symlink
16624         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
16625         Reported by Stephane Chazelas.
16627 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
16629         bootstrap: port to OpenBSD sed
16630         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
16631         does not interpret `-' as a file argument to mean stdin.
16633 2013-08-15  Eric Blake  <eblake@redhat.com>
16635         warnings: minor optimization
16636         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
16638         warnings: check -Wfoo rather than -Wno-foo
16639         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
16640         -Wno-, test if the compiler recognizes the positive form instead.
16642 2013-08-15  Karl Berry  <karl@gnu.org>
16644         * config/srclist-update: add option "doclicense" to placate
16645         pulling *.texi files from Emacs.  Write terse usage
16646         documentation at the top.
16648 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
16650         xvasprintf-tests: port to GCC with hardening flags
16651         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
16652         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
16653         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
16655 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
16657         fpending: port to recent Cygwin change to stdio_ext.h
16658         Reported by LRN in
16659         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
16660         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
16661         just declare __fpending unless it's a macro.
16662         A duplicate decl shouldn't hurt.
16663         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
16664         call compiles and links, instead of separately checking for
16665         decl and lib function.
16666         * modules/fpending (configure-ac):
16667         Adjust to fpending.m4's renaming of shell variable.
16669 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
16671         sys_time: port to OpenBSD
16672         * lib/sys_time.in.h: Simply delegate to the system's header
16673         in the BSDish cases as well.  Problem reported by Mike Miller in
16674         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
16675         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
16676         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
16677         wider than time_t.
16679 2013-08-09  Pádraig Brady  <P@draigBrady.com>
16681         bootstrap: support checksum utils having -c but not --status
16682         * build-aux/bootstrap: Only look for sha1sum if updating po files.
16683         Add sha1 to the list of supported checksum utils since it's now
16684         supported through adjustments below.
16685         (update_po_files): Remove the use of --status
16686         in a way that will suppress all error messages, but since this is
16687         only used to minimize updates, it shouldn't cause an issue.
16688         Exit early if there is a problem updating the po file checksums.
16689         (find_tool): Remove the check for --version support as this
16690         is optional as per commit 86186b17.  Don't even check for the
16691         presence of the command as if that is needed, it's supported
16692         through configuring prerequisites in bootstrap.conf.
16693         Prompt that when a tool isn't found, one can define an environment
16694         variable to add to the hardcoded search list.
16696 2013-08-05  Jim Meyering  <meyering@fb.com>
16698         regex: port to non-glibc/lock-using systems
16699         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
16700         system with GNULIB_LOCK would fail due to absence of the
16701         included "glthread/lock.h".  This would affect any package
16702         for which the "lock" module is used only by the regex module,
16703         and not explicitly used.
16704         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
16705         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
16706         Add a dependency on the "lock" module.
16708 2013-07-20  Daiki Ueno  <ueno@gnu.org>
16710         localecharset: make locale_charset thread-safe on Mac OS X
16711         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
16712         instead of MB_CUR_MAX.
16714 2013-07-20  Daiki Ueno  <ueno@gnu.org>
16716         gettext: update to version 0.18.3
16717         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
16718         require AC_PROG_SED to allow user to specify custom sed command when
16719         generating en@quot PO file.
16721 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
16723         bootstrap: use correct source when copying build-aux files
16724         * build-aux/bootstrap (gnulib_extra_files): This variable is
16725         relative to upstream gnulib layout, not downstream.
16727 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
16729         tmpdir: fix bug in VMS port
16730         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
16731         See Steven M. Schweda in
16732         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
16734 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
16736         tmpdir: port to VMS, to // != /, and to long dirs
16737         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
16738         __secure_getenv, so that we're more like the glibc version.
16739         All uses changed.
16740         (path_search): Don't put slash after directory if __VMS.
16741         Problem reported by Steven M. Schweda in
16742         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
16743         Simplify code to add slash; no need for a loop.
16744         Do not remove trailing slash from "//".
16745         Do not assume dlen <= INT_MAX.
16747 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16749         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
16750         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
16751         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
16752         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
16754         accept4, dup3, pipe2: port to Cygwin
16755         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
16756         * lib/accept4.c (accept4) [O_BINARY]:
16757         * lib/dup3.c (dup3) [O_BINARY]:
16758         * lib/pipe2.c (pipe2) [O_BINARY]:
16759         Use set_binary_mode, not setmode.
16760         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
16761         * modules/binary-io (Depends-on): Remove module indicator.
16762         These last two bits undo the previous change to pipe2 and binary-io.
16764 2013-07-09  Pádraig Brady  <P@draigBrady.com>
16766         mountlist: add support for deallocating returned list entries
16767         * lib/mountlist.c (free_mount_entry): A new exported function
16768         to deallocate a mount list entry.
16769         (read_file_system_list): Refactor to use the new deallocation function.
16770         Suggested by Anton Ovchinnikov.
16772 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
16774         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
16775         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
16776         * lib/stdalign.in.h (_Alignas, _Alignof):
16777         Port to FreeBSD 9.1, and to C11 and C++11.
16778         (_Alignas): Also support ICC.
16779         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
16780         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
16782 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
16784         fnmatch: don't goto over declaration
16785         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
16786         undefined behavior for goto over a declaration.
16787         Problem reported by Charlie Brown in
16788         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
16790         pipe2: decouple from binary-io a bit
16791         This is for Emacs, which needs pipe2 but not binary-io.
16792         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
16793         * modules/binary-io (Depends-on): Add module indicator.
16795 2013-07-03  Eric Blake  <eblake@redhat.com>
16797         mgetgroups: relax license to LGPLv2+
16798         * modules/getugroups (License): Change from GPLv3+.
16799         * modules/mgetgroups (License): Likewise.
16800         * modules/getgroups (License): Change from LGPLv3+.
16802         xalloc-oversized: relax license to LGPLv2+
16803         * modules/xalloc-oversized (License): Change from GPLv3+.
16805         nproc: relax license to LGPLv2+
16806         * modules/nproc (License): Change from LGPLv3+.
16808         bootstrap: honor --no-git
16809         * build-aux/bootstrap: Don't even try to use git when user is
16810         pointing to a static checkout.
16812 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
16814         ignore-value: port to gcc -pedantic
16815         * lib/ignore-value.h (ignore_value):
16816         Port to gcc -pedantic, by using __extension__.
16817         Reindent as per usual gnulib style nowadays.
16818         Simplify GCC version check.
16820 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
16822         extern-inline: port to gcc -std=c89
16823         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
16824         Do not use __gnu_inline__ if pedantic and pre-C99.
16826 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
16828         doc: document extern-inline
16829         * doc/extern-inline.texi: New file.
16830         * doc/gnulib.texi (alloca-opt): Include it.
16831         * m4/extern-inline.m4: Move some comments to documentation,
16832         and others closer to what they describe.
16834         doc: chatter less
16835         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
16836         (updated-stamp): Use it.  This causes 'make' to output just
16837         one file name rather than zillions.
16839         fflush, fseeko: port to musl cross-compiles
16840         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
16841         on some implementation that (1) is not known to be buggy,
16842         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
16843         cross-compiled to so we can't easily check for lack of
16844         conformance.  This is for cross-compiling to musl.
16845         Reported by Rich Felker in
16846         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
16847         * m4/fclose.m4 (gl_FUNC_FCLOSE):
16848         * m4/fflush.m4 (gl_FUNC_FFLUSH):
16849         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
16850         Adjust to above change.
16851         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
16852         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
16853         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
16854         known not to work, or unknown.
16856 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
16858         msvc-inval: port to mingw-w64
16859         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
16860         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
16861         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
16863 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
16865         getcwd-lgpl: port to Tru64
16866         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
16867         Problem reported by Steven M. Schweda in
16868         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
16870         tests: port large-fd POSIX spawn tests to OS X
16871         Problem reported by Daiki Ueno in
16872         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
16873         * tests/test-posix_spawn_file_actions_addclose.c:
16874         * tests/test-posix_spawn_file_actions_adddup2.c:
16875         * tests/test-posix_spawn_file_actions_addopen.c:
16876         Include <limits.h>, for OPEN_MAX, if available.
16877         (big_fd): New static function.
16878         (main): Use it.
16880 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
16882         tests/nap.h: use an adaptive delay to avoid ctime update issues
16883         The recent change in nap.h (5191133e) decreased the probability of lost
16884         races to about a third, however such problems could still be observed
16885         in virtual machines and openSUSE's OBS.
16886         Before, nap() detected the needed time once empirically and then used
16887         that delay (together with a small correction multiplier) in further
16888         calls.  This problem has been reported and discussed several times,
16889         including guesses about possible kernel issues:
16890         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
16891         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
16892         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
16893         http://bugs.gnu.org/12820
16894         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
16895         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
16896         Now, nap() avoids the race alltogether by verifying on a reference
16897         file whether a timestamp difference has happened.
16898         * tests/nap.h (nap_fd): Define file descriptor variable for the
16899         witness file.
16900         (nap_works): Change return value to bool.  Change passing
16901         the old file's status by value instead of by reference as this function
16902         does no longer update that timestamp; rename the function argument from
16903         st to old_st.  Remove the local variables cdiff and mdiff because that
16904         function now returns true/false instead of the precise delay.
16905         (guess_delay): Remove function.
16906         (clear_tmp_file): Add new function to close and unlink the witness file.
16907         (nap): Instead of re-using the delay which has been calculated during
16908         the first call, avoid the race by actually verifying that a timestamp
16909         difference can be observed on the current file system.  Use an adaptive
16910         approach for the delay to minimize execution time.  Assert that the
16911         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
16912         = 2^31 - 1 = 2.1s.
16913         Use atexit to call clear_tmp_file when the process terminates.
16915 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
16917         sig2str: port to C++
16918         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
16919         Reported by Daniel J Sebald in
16920         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
16922 2013-05-30  Eric Blake  <eblake@redhat.com>
16924         docs: mention cygwin shortcoming in <sys/un.h>
16925         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
16927         vasnprintf: silence mingw compiler warning
16928         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
16930 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
16932         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
16933         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
16934         This fixes a porting bug I recently reintroduced in regex, and
16935         some other instances that I discovered while testing the fix.
16936         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
16937         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
16938         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
16939         with an empty argument if this is a pedantic pre-C99 GCC.
16940         * lib/verify.h: Do not use _Static_assert if this is a pedantic
16941         pre-C11 GCC.
16943         regex: adapt to locking regime instead of depending on pthread
16944         Instead of depending on pthread, adapt to whatever thread
16945         modules are in use.  Problem reported by Ludovic Courtès in
16946         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
16947         and by Mats Erik Andersson in
16948         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
16949         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
16950         Support either the 'lock' module, or the 'pthread' module, or
16951         no module.
16952         (lock_lock, lock_unlock): New macros.
16953         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
16954         * modules/lock, modules/pthread (configure.ac): Add module indicator.
16955         * modules/regex (Depends-on): Remove pthread.
16957 2013-05-22  Eric Blake  <eblake@redhat.com>
16959         getgroups: document portability issues
16960         * doc/glibc-functions/initgroups.texi (initgroups): Mention
16961         multithread safety.
16962         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
16963         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
16964         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
16965         getugroups.
16966         * doc/posix-functions/getgroups.texi (getgroups): Mention
16967         multithread safety and mgetgroups.
16969 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
16971         test-lchown, test-chown: also skip test if chown fails with EPERM
16972         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
16973         skip this test, to handle FAT file systems.
16974         * tests/test-chown.h (test_chown): Likewise.
16976 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16978         regex: fix dfa race in multithreaded uses
16979         Problem reported by Ludovic Courtès in
16980         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
16981         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
16982         New macros.  All uses of __libc_lock_define, __libc_lock_init
16983         changed to use the first two of these.
16984         (__libc_lock_lock, __libc_lock_unlock): New macros, for
16985         non-glibc platforms.
16986         (struct re_dfa_t): Define the lock unconditionally.
16987         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
16988         '#ifdef _LIBC"s.
16989         * modules/regex (Depends-on): Add pthread, if we use the
16990         included regex.
16992         * lib/regcomp.c: Do actions that are not needed for glibc,
16993         but may be needed elsewhere.
16994         (regfree, re_compile_internal): Destroy the lock.
16995         (re_compile_internal): Check for lock-initialization failure.
16997         malloca: port to compilers that reject size-zero arrays
16998         This fixes a bug introduced in my previous patch.
16999         * lib/malloca.c (struct preliminary_header): Use an int
17000         rather than a character array of size int; that's simpler.
17001         (struct header): Remove, replacing with ...
17002         (union header): New type.  This avoids the need for declaring a
17003         character array of size zero, which is not allowed on some platforms.
17004         All uses changed.
17006 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
17008         parse-datetime, tests: don't use "string" + int
17009         Recent versions of 'clang' complain about C source code that
17010         uses expressions of the form '"string literal" + integer',
17011         I guess on the theory that it's confusing for readers who are
17012         used to C++.  On those grounds I suppose it's OK to make this
17013         minor style change.
17014         * lib/parse-datetime.y (parse_datetime):
17015         * tests/test-fchdir.c (main):
17016         * tests/test-snprintf-posix.h (test_function):
17017         * tests/test-snprintf.c (main):
17018         * tests/test-vasnprintf-posix.c (test_function):
17019         * tests/test-vasnprintf.c (test_function):
17020         * tests/test-vsnprintf.c (main):
17021         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
17022         Rewrite '"str" + E' to '&"str"[E]'.
17024 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
17026         argmatch: port to C++
17027         * lib/argmatch.h [__cplusplus]: Add extern "C".
17029         argp: typo fix
17030         * lib/argp-help.c: Typo in comment.
17032 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
17034         manywarnings: update for GCC 4.8.0
17035         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
17036         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
17037         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
17038         -Wmissing-noreturn, as they are duplicates of other warnings.
17039         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
17040         was documented to be flaky in earlier versions of GCC.
17042         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
17043         * tests/test-spawn.c (main):
17044         * tests/test-sys_socket.c (main):
17045         * tests/test-sys_wait.c (main):
17046         Don't have a switch value that isn't covered by a case.
17048         getaddrinfo-tests: port --enable-gcc-warnings to clang
17049         * tests/test-getaddrinfo.c (simple):
17050         Avoid casts from looser to stricter-aligned pointers.
17052         thread: port --enable-gcc-warnings to clang
17053         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
17054         Include <signal.h>, to pacify a warning about pthread_sigmask.
17056         stdio: use __REDIRECT for fwrite, fwrite_unlocked
17057         * lib/stdio.in.h (fwrite):
17058         When working around bug 11959, use __REDIRECT rather than '#define
17059         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
17060         fix the -Wunused-value issue with clang, and it works with GCC too.
17061         Problem with targeting reported by Eric Blake in
17062         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
17063         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
17064         debugging the fwrite issue.
17066         stdio: port --enable-gcc-warnings to clang
17067         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
17068         since the GCC workaround for fwrite does not pacify clang.
17070         sig2str: port --enable-gcc-warnings to clang
17071         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
17073         obstack: port --enable-gcc-warnings to clang
17074         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
17075         Avoid casts from looser to stricter-aligned pointers.
17077         memchr2: port --enable-gcc-warnings to clang
17078         * lib/memchr2.c (memchr2):
17079         Avoid casts from looser to stricter-aligned pointers.
17081         mbsstr: port --enable-gcc-warnings to clang
17082         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
17083         Avoid casts from looser to stricter-aligned pointers.
17085         malloca: port --enable-gcc-warnings to clang
17086         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
17087         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
17089         inttostr: port --enable-gcc-warnings to clang
17090         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
17092         warnings: port to clang
17093         Problem reported by Daniel P. Berrange via Eric Blake in
17094         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
17095         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
17096         (gl_WARN_ADD): Use it.
17098 2013-05-11  Jim Meyering  <meyering@fb.com>
17100         quotearg: do not read beyond end of buffer
17101         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
17102         end of an ARG for which no length was specified.  With an N-byte
17103         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
17104         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
17105         via coreutils' misc/sort-debug-keys.sh test and detected by running
17106         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
17107         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
17108         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
17109         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
17110         characters correctly."
17112 2013-05-11  Daiki Ueno  <ueno@gnu.org>
17114         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
17115         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
17116         compilation target is Mac OS X 10.6.
17117         Problem reported by parafin and Andoni Morales in
17118         <http://savannah.gnu.org/bugs/?37844> and
17119         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
17121 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
17123         mkdir-p: remove assumptions about umask and mode
17124         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
17125         umask is 0, or that MODE is a subset of MODE_BITS.
17127 2013-05-10  Eric Blake  <eblake@redhat.com>
17129         maint.mk: catch more abuse of HAVE_DECL in syntax-check
17130         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
17132 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
17134         deps: require Automake >= 1.9.6 in generated Makefile fragments
17136         That is the same minimal version required in the DEPENDENCIES file.
17137         Moreover, the old code generated a requirement of Automake >= 1.5,
17138         and that is an insanely outdated version.
17140         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
17141         * tests/havelib/rpathlx/Makefile.am: Likewise.
17142         * tests/havelib/rpathly/Makefile.am: Likewise.
17143         * tests/havelib/rpathlyx/Makefile.am: Likewise.
17144         * tests/havelib/rpathlz/Makefile.am: Likewise.
17145         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
17146         * tests/havelib/rpathx/Makefile.am: Likewise.
17147         * tests/havelib/rpathy/Makefile.am: Likewise.
17148         * tests/havelib/rpathz/Makefile.am: Likewise.
17150 2013-05-08  Eric Blake  <eblake@redhat.com>
17152         bootstrap: AC_INIT may have more than four parameters
17153         * build-aux/bootstrap (extract_package_name): Correctly extract
17154         non-empty tarname field.  Avoid range in regex.
17155         Based on a report by Sami Kerola <kerolasa@iki.fi>.
17157 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
17159         qacl: port to MS-Windows port of GNU Emacs
17160         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
17161         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
17162         port of GNU Emacs.  Problem reported by Eli Zaretskii in
17163         <http://bugs.gnu.org/14295#14>.
17165 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
17167         acl: include quote.h
17168         * lib/copy-acl.c: Include quote.h.
17169         * lib/set-acl.c: Likewise.
17171 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
17173         fchownat, renameat, unlinkat: update statat dependencies
17174         These modules use statat and lstatat, not fstatat; so depend on
17175         the statat module, which was split out recently from fstatat.
17176         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
17177         * modules/renameat: Likewise.  Also delete fstat.
17178         URL: http://bugs.gentoo.org/468790
17180 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
17182         Assume gnulib is checked out from Git, not CVS
17184         In fact, access to the gnulib repository through CVS has been
17185         disabled, or more precisely, got broken and was never restored; see:
17186         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
17188         Note that support for CVS is not removed completely and unthinkingly
17189         by this change: only support for CVS checkouts of gnulib itself is
17190         removed.  For example, the 'bootstrap' script still cater to .cvsingore
17191         files and CVS directories, for the benefit of those poor gnulib clients
17192         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
17194         * gnulib-tool: Simplify accordingly.
17195         * posix-modules: Likewise.
17196         * MODULES.html.sh: Likewise.
17197         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
17198         repository.
17199         * doc/gnulib-intro.texi: Likewise.
17200         * doc/gnulib-readme.texi: Likewise.
17201         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
17202         sample '.gitignore' file rather than a sample '.cvsignore'.
17203         * NEWS: Update.
17204         * m4/extensions.m4: While at it, remove a comment mistakenly referring
17205         to "CVS Autoconf" rather than "git Autoconf".
17207 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
17209         utimensat-tests, etc.: try to fix some races
17210         Problem reported by Bernhard Voelker in
17211         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
17212         I don't know whether this patch fixes that race condition, but it
17213         fixes *some* race conditions, so it should be a win.
17214         * modules/chown-tests (Depends-on):
17215         * modules/fchownat-tests (Depends-on):
17216         * modules/fdutimensat-tests (Depends-on):
17217         * modules/futimens-tests (Depends-on):
17218         * modules/lchown-tests (Depends-on):
17219         * modules/stat-time-tests (Depends-on):
17220         * modules/utimens-tests (Depends-on):
17221         * modules/utimensat-tests (Depends-on):
17222         Depend on nanosleep, not usleep.
17223         * modules/chown-tests (test_chown_LDADD):
17224         * modules/lchown-tests (test_lchown_LDADD):
17225         * modules/stat-time-tests (test_stat_time_LDADD):
17226         New macro.
17227         * modules/fchownat-tests (test_fchownat_LDADD):
17228         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
17229         * modules/futimens-tests (test_futimens_LDADD):
17230         * modules/utimens-tests (test_utimens_LDADD):
17231         * modules/utimensat-tests (test_utimensat_LDADD):
17232         Add $(LIB_NANOSLEEP).
17233         * modules/stat-time-tests (Files): Add tests/nap.h.
17234         * tests/nap.h: Include <limits.h>, for INT_MAX.
17235         (lt_mtime): Remove.
17236         (diff_timespec): New function.
17237         (get_stat): Rename from get_mtime.  All callers changed.
17238         (nap_works): Determine the needed delay by inspecting the
17239         file system's timestamp jumps; this should be more reliable.
17240         Look at both mtime and ctime, and take the maximum of the two jumps.
17241         (nap_works, guess_delay):
17242         Return a nanosecond count, not a microsecond count.
17243         All callers changed.
17244         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
17245         failure.
17246         (nap): Multiply the guess by 1.125, to accommodate the case where
17247         the file system's clock is a bit slower than nanosleep's clock.
17248         * tests/test-stat-time.c (BASE): New macro.
17249         Include nap.h.
17250         (nap): Remove; nap.h now defines this.  This removes a duplicate
17251         implementation of 'nap'.
17253         utimens, utimensat: work around Solaris UTIME_OMIT bug
17254         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
17255         Linux kernel 2.6.32 does.  Work around it in the same way.
17256         * doc/posix-functions/futimens.texi (futimens):
17257         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
17258         * lib/utimens.c (fdutimens, lutimens):
17259         * lib/utimensat.c (rpl_utimensat): Work around the bug.
17261         gettext: now it's your responsibility to add -I$(top_builddir)/intl
17262         Formerly, it was your responsibility to do this for all Makefile.ams
17263         other than Gnulib's.  Now it's your responsibility to do it for
17264         Gnulib's Makefile.am, too.
17265         * NEWS: Document this.
17266         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
17268         acl: include errno.h to get errno
17269         Reported by Daiki Ueno in
17270         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
17271         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
17273 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
17275         tests: don't assume getdtablesize () <= 10000000
17276         * modules/cloexec-tests:
17277         * modules/dup2-tests:
17278         * modules/dup3-tests:
17279         * modules/nonblocking-tests:
17280         * modules/posix_spawn_file_actions_addclose-tests:
17281         * modules/posix_spawn_file_actions_adddup2-tests:
17282         * modules/posix_spawn_file_actions_addopen-tests:
17283         * modules/unistd-safer-tests:
17284         Depend on the getdtablesize module.
17285         * tests/test-cloexec.c:
17286         * tests/test-dup-safer.c:
17287         * tests/test-dup2.c:
17288         * tests/test-dup3.c:
17289         * tests/test-fcntl.c:
17290         * tests/test-nonblocking.c:
17291         * tests/test-posix_spawn_file_actions_addclose.c:
17292         * tests/test-posix_spawn_file_actions_adddup2.c:
17293         * tests/test-posix_spawn_file_actions_addopen.c:
17294         Don't assume getdtablesize () <= 10000000.
17296 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
17298         extern-inline: work around bug in Sun c99
17299         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
17300         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
17302 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
17304         qacl: new module, broken out from the acl module
17305         This is for GNU Emacs, which wants the acl functions but does
17306         not want 'error' invoked when they fail.
17307         * lib/acl-internal.h: Do not include error.h, quote.h.
17308         (ENOSYS, ENOTSUP): Remove; no longer needed.
17309         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
17310         * lib/acl.h: Include <stdbool.h>.
17311         (acl_errno_valid): New function.
17312         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
17313         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
17314         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
17315         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
17316         (ACL_INTERNAL_INLINE): Remove; no longer needed.
17317         * lib/file-has-acl.c (file_has_acl):
17318         * lib/qcopy-acl.c (qcopy_acl):
17319         * lib/qset-acl.c (qset_acl):
17320         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
17321         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
17322         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
17323         lib/file-has-acl.c, m4/acl.m4 to qacl module.
17324         Add lib/set-acl.c.
17325         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
17326         Add qacl.
17327         (configure.ac): Move gl_FUNC_ACL to qacl module.
17328         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
17329         Rename set-mode-acl.c to set-acl.c.
17330         * lib/acl-errno-valid.c: New file.
17331         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
17332         copy_acl function remains in copy-acl.c.
17333         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
17334         (_): Remove; not needed.
17335         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
17336         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
17337         * modules/qacl: New file, moved from the old modules/acl.
17338         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
17339         Remove set-mode-acl.c, copy-acl.c.
17340         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
17342         alignof, intprops, malloca: port better to IBM's C compiler
17343         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
17344         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
17345         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
17347 2013-04-25  Daiki Ueno  <ueno@gnu.org>
17349         wctype-h: fix gettext link error on mingw
17350         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
17351         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
17352         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
17353         rpl_towupper and rpl_towupper.
17355 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
17357         regex-tests, regex: allow glibc re_search behavior
17358         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
17359         re_search input data to make the multi-character collating element
17360         in it clearly visible, and treat re_search return code 0 as valid.
17361         * m4/regex.m4 (gl_REGEX): Likewise.
17363 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
17365         stdalign: doc fix
17366         * doc/posix-headers/stdalign.texi (stdalign.h):
17367         Gnulib doesn't support '_Alignof expr'.
17369 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
17371         stdalign: port to stricter ISO C11
17372         ISO C11 says that _Alignof's operand must be a parenthesized type.
17373         Problem reported by Eli Zaretskii in
17374         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
17375         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
17376         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
17378 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
17380         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
17381         Problem reported by Marco Atzeri in
17382         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
17383         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
17384         Simply delegate to the system <sys/select.h> in this case too.
17385         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
17386         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
17387         be needed on Solaris either.
17388         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
17389         Simply delegate to the system <sys/time.h> in this case.
17391 2013-03-19  Karl Berry  <karl@gnu.org>
17393         * build-aux/gnupload: check for erroneous (with gnupload) use of
17394         ftp-upload.gnu.org, tweak help.
17396 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
17398         copy-file, rpmatch: fix problems found by cppcheck
17399         Reported by Arno Onken in
17400         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
17401         * lib/rpmatch.c (try): Fix memory leak.
17402         * lib/copy-file.c: Include "ignore-value.h".
17403         (qcopy_file_preserving): Ignore chown value.
17404         * modules/copy-file (Depends-on): Add ignore-value.
17406 2013-01-27  Jim Meyering  <jim@meyering.net>
17408         prefix-gnulib-mk: give better diagnostics
17409         * build-aux/prefix-gnulib-mk: Don't just "die".
17410         Give better diagnostics upon failure.
17412 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
17414         putenv: port to Solaris 10
17415         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
17416         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
17417         is not what is wanted here.
17418         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
17419         declaration, not for its existence.
17421 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
17423         mktime: fix configure typo
17424         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
17426 2013-03-12  Eric Blake  <eblake@redhat.com>
17428         regex-tests: skip UTF-8 test on mingw
17429         * modules/regex-tests (Depends-on): Add localcharset.
17430         * tests/test-regex.c (main): Use it to skip test on mingw.
17432 2013-03-11  Eric Blake  <eblake@redhat.com>
17434         tests: make it easier to bypass alarm time in debugger
17435         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
17436         * tests/test-memmem.c (main): Likewise.
17437         * tests/test-passfd.c (main): Likewise.
17438         * tests/test-ptsname.c (main): Likewise.
17439         * tests/test-ptsname_r.c (main): Likewise.
17440         * tests/test-strcasestr.c (main): Likewise.
17441         * tests/test-strstr.c (main): Likewise.
17443         regex: port to mingw's recent addition of undeclared alarm
17444         * doc/posix-functions/alarm.texi (alarm): Document that alarm
17445         exists but still doesn't work in newer mingw.
17446         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
17447         not existence.  Ensure SIGALRM is not trapped.
17448         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
17449         * m4/regex.m4 (gl_REGEX): Likewise.
17450         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
17451         * tests/test-regex.c (main): Use correct probe for alarm.
17453         putenv: avoid compilation warning on mingw
17454         * lib/putenv.c (_unsetenv): Protect variable declaration.
17455         (putenv): Fix indentation.
17457 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
17459         unistd: don't prevent Tru64 Unix from using gnulib strtod.
17460         * lib/unistd.in.h: be careful not to include un-needed system
17461         stdlib.h from here, because that prevents gnulib stdlib.h from
17462         defining rpl_strtod correctly.
17464 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
17466         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
17467         changesets, but for the 'precision 0' test.
17468         * tests/test-vasprintf-posix.c (test_function): Don't insist on
17469         round-to-even, since POSIX says rounding is implementation-defined
17470         and OS X 10.8.2 rounds 1.51 to 1 here.
17472         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
17473         changeset.
17474         * tests/test-vasprintf-posix.c (test_function): Don't insist on
17475         round-to-even, since POSIX says rounding is implementation-defined
17476         and OS X 10.8.2 rounds 1.5 to 1 here.
17478 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
17480         vasnprintf-posix-tests: allow rounding 1.5 to 1
17481         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
17482         round-to-even, since POSIX says rounding is implementation-defined
17483         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
17484         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
17486         bootstrap: port to FreeBSD
17487         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
17488         that treat '--' differently.  Reported by Mats Erik Andersson in
17489         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
17491 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
17493         regex: rename remaining __attribute calls to __attribute__.
17494         2012-02-25 changed definition of __attribute, but left some uses
17495         unchanged, preventing compilation of regex module on most non-gcc
17496         environments.
17497         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
17498         (lookup_collation_sequence_value, build_range_exp)
17499         (build_collating_symbol): Set attributes with newly renamed
17500         __attribute__ decorator.
17501         * lib/regex_internal.c (re_string_peek_byte_case)
17502         (re_node_set_compare, re_node_set_contains): Likewise.
17503         * lib/regexec.c (acquire_init_state_context): Likewise.
17505 2013-03-06  Bruno Haible  <bruno@clisp.org>
17507         execute: Revert last change, but use a different condition.
17508         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
17509         on Windows.
17511 2013-03-05  Eric Blake  <eblake@redhat.com>
17513         execute: drop dead code
17514         * lib/execute.c (nonintr_close, nonintr_open): Delete.
17516 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
17518         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
17519         * m4/non-recursive-gnulib-prefix-hack.m4
17520         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
17521         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
17522         <http://bugs.gnu.org/10305#237>.
17524 2013-03-04  Eric Blake  <eblake@redhat.com>
17526         test-getsockopt: avoid compiler warning
17527         * tests/test-getsockopt.c (includes): Ensure close is declared.
17529 2013-03-02  Bruno Haible  <bruno@clisp.org>
17531         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
17532         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
17534 2013-03-02  Bruno Haible  <bruno@clisp.org>
17536         gettext: Update to version 0.18.2.
17537         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
17538         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
17539                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
17541 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
17543         regex: merge patches from libc
17545         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
17546         * lib/regex_internal.h (__attribute__): Rename from __attribute.
17547         All uses changed.
17548         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
17549         (re_string_wchar_at, re_string_elem_size_at):
17550         Mark function as possibly unused.
17552         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
17553         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
17554         elements compare against the byte sequence of it, not its name.
17556 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
17558         putenv: port better to native Windows
17559         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
17560         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
17561         (_unsetenv): Use _putenv if available.
17562         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
17563         a bit less likely to cause damage.
17564         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
17565         Fix the wrong value with SetEnvironmentVariable.
17566         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
17567         code better.
17569 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
17571         regex: ignore old-style-definition warnings
17572         * lib/regex.c: Add pragma to ignore these warnings.
17573         Problem reported for GNU tar by Pavel Raiskup.
17575 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
17577         getcwd: support coreutils better
17578         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
17579         but this might not be correct in coreutils, which disables
17580         the raw decl checks.  Problem reported by Nagendra in
17581         <http://bugs.gnu.org/10305#192>.
17582         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
17583         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
17584         Test the getcwd function, not any macro, since getcwd.c wants the
17585         function.
17586         * m4/getcwd.m4 (gl_FUNC_GETCWD):
17587         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
17588         compile, as might happen if there's a macro but no function.
17590         strtod: support coreutils better
17591         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
17592         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
17593         disables the raw decl checks.  This assumes there is an underlying
17594         strtod, but that's a safe assumption these days.
17595         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
17597         mountlist: port to HP NonStop
17598         Reported by Joachim Schmitz in
17599         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
17600         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
17601         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
17603 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
17605         extern-inline: avoid compilation error with HP-UX cc
17606         Reported by Richard Lloyd in
17607         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
17608         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
17609         Suppress extern inline with HP-UX cc.  This should be safe,
17610         though it may hurt performance.  Perhaps someone with some HP-UX
17611         experience can come up with a higher-performance fix.
17613 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
17615         putenv: fix heap corruption with mixed putenv/_putenv
17616         Problem reported by Michael Goffioul in
17617         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
17618         * lib/putenv.c (putenv) [HAVE__PUTENV]:
17619         Rely on _putenv to allocate the new environment.
17620         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
17621         * modules/putenv (configure.ac): Use it.
17623 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
17625         unsetenv etc.: port to Solaris 11 + GNU Emacs
17626         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
17627         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
17628         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
17629         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
17630         idea but is too painful to fix right now), and without this gnulib
17631         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
17632         compiling unsetenv.c on Solaris 11.  Fix the problem for
17633         unsetenv.c, and fix other similar occurrences.
17635 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
17637         secure_getenv: fix C++ declaration typo
17638         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
17639         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
17640         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
17642 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
17644         careadlinkat: stop exporting careadlinkatcwd
17645         Only Emacs used it directly, and Emacs no longer needs it.
17646         * NEWS: Document this simplification.
17647         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
17648         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
17649         for readlink.
17650         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
17651         Don't include stdlib.h; no longer needed.
17652         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
17653         * lib/relocwrapper.c: Adjust comment to match new dependencies.
17654         * modules/areadlink (Depends-on): Add readlink.
17655         (Maintainer): Add self.
17656         * modules/careadlinkat (Depends-on): Remove readlink.
17658         extensions: port better to HP-UX
17659         This is merged from git Autoconf.
17660         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
17661         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
17662         so that it's compatible with the value used when compiling.
17664         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
17665         Problem reported by Mats Erik Andersson in
17666         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
17667         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
17668         openpty function exists, not merely when we intend to replace it.
17669         This corrects the 2013-01-31 patch, which mistakenly defined
17670         HAVE_OPENPTY even on hosts that lacked it.
17672 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
17674         secure_getenv: fix include typo
17675         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
17677         secure_getenv: port better to FreeBSD and Solaris
17678         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
17679         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
17680         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
17681         This works better on BSDish platforms.
17682         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
17683         Test for issetugid if __secure_getenv is missing.
17685 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
17687         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
17688         Some of these changes are merged in from git Autoconf.
17689         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
17690         When deciding whether to define _XOPEN_SOURCE, inspect the
17691         preprocessor macro __hpux instead of the more-heavyweight
17692         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
17693         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
17694         as the key for __EXTENSIONS__.
17696         unistd: avoid namespace pollution on non-glibc systems
17697         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
17698         This avoids namespace pollution on non-glibc systems, by causing
17699         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
17700         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
17701         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
17703 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
17705         tmpdir: use secure_getenv
17706         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
17707         Define to secure_getenv, not getenv.
17708         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
17709         as that's now secure_getenv's job.
17710         * modules/tmpdir (Depends-on): Add secure_getenv.
17712         tempname: use secure_getenv
17713         * lib/tempname.c (__secure_getenv) [!_LIBC]:
17714         Define to secure_getenv, not getenv.
17715         * modules/tempname (Depends-on):
17716         Add secure_getenv.
17718         secure_getenv: new module
17719         * MODULES.html.sh (Extra functions based on ANSI C 89):
17720         Add secure_getenv.
17721         * doc/glibc-functions/secure_getenv.texi: New file.
17722         * doc/gnulib.texi: Include it.
17723         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
17724         New files.
17725         * lib/stdlib.in.h (secure_getenv): New decl.
17726         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
17727         * modules/stdlib (stdlib.h):
17728         Add secure_getenv checks.
17730 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
17732         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
17733         Reported for OS X 10.8.2 by Assaf Gordon in
17734         <http://bugs.gnu.org/13516>.
17735         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
17736         !HAVE_OPENAT && !HAVE_FDOPENDIR.
17737         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
17738         so that they can be kept in sync more easily.  Avoid PATH_MAX
17739         test on the Hurd.  Sync from test-getcwd.c for errno tests after
17740         mkdir or chdir failure.
17741         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
17742         lib/getcwd.c.
17743         (test_abort_bug): Do not test for the deep directory bug unless we
17744         have openat support.  Avoid PATH_MAX test on the Hurd.
17746         regex-tests, regex: fix bug: memset undeclared
17747         * tests/test-regex.c: Don't include regex.h twice.  Include
17748         string.h, to declare memset.  Christensen's report also mentioned
17749         this issue.
17750         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
17751         test-regex.c, to avoid future problems like this.  Remove
17752         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
17753         twice.
17755         regex-tests: fix link errors on older Solaris
17756         These need to link with @LIBINTL@ to get libintl_gettext.
17757         Problem reported by Tom G. Christensen in
17758         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
17759         * modules/regex-tests (test_regex_LDADD): New macro.
17761 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
17763         regex-tests: new module
17764         * modules/regex-tests, tests/test-regex.c: New files.
17766         regex: fix off-by-one error in configure test
17767         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
17769 2013-01-31  Eric Blake  <eblake@redhat.com>
17771         regex: avoid infinite configure test
17772         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
17774 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
17776         openpty: fix bug where HAVE_OPENPTY wasn't defined
17777         See the thread starting at:
17778         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
17779         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
17780         openpty function exists, not merely when we intend to replace it.
17782 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
17784         sys_time: port to Solaris 2.6
17785         There is a circularity problem on Solaris 2.6, where <time.h> includes
17786         <sys/time.h> for struct timespec.  The include nesting is gnulib
17787         <time.h>, system <time.h>, gnulib <sys/time.h>, system
17788         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
17789         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
17790         <sys/siginfo.h>; the last, innermost file needs struct
17791         timestruc_t, which is defined in <sys/time.h>, which has not been
17792         fully parsed.  Problem reported by Tom G. Christensen in
17793         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
17794         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
17795         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
17796         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
17797         uses split double-inclusion guards.
17799 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
17801         regex: test for buffer overrun
17802         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
17803         for the just-fixed regex bug.
17805 2013-01-29  Andreas Schwab  <schwab@suse.de>
17807         regex: fix buffer overrun in regexp matcher [BZ #15078]
17808         * lib/regexec.c (extend_buffers): Add parameter min_len.
17809         (check_matching): Pass minimum needed length.
17810         (clean_state_log_if_needed): Likewise.
17811         (get_subexp): Likewise.
17813 2013-01-28  Pádraig Brady  <P@draigBrady.com>
17815         mountlist: don't consider "devtmpfs" as dummy
17816         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
17817         as there is storage associcated with it.
17819 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
17821         futimens-tests, utimens-tests: Depend on gettext.
17822         This works around a problem introduced in my 2013-01-12 patch,
17823         which added @LIBINTL@ to these modules.
17824         * modules/futimens-tests (Depends-on):
17825         * modules/utimens-tests (Depends-on): Add gettext.
17827 2013-01-26  Eric Blake  <eblake@redhat.com>
17829         test-getpeername: fix typo
17830         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
17832 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
17834         bootstrap: remove the need for a sorted .gitignore file
17835         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
17836         rename to insert_if_absent(), so that we don't need or generate
17837         a sorted .gitignore file.  We do require a .gitignore with no
17838         existing duplicate entries and enforce that.
17839         (sort_patterns): Remove this function as we now use the simpler
17840         technigue of inserting blacklist entries at the top of the file,
17841         assuming gnulib won't be inserting !whitelist entries.
17843 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17845         readlinkat: don't depend on gl_FUNC_OPENAT
17846         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
17847         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
17848         renameat.m4, symlinkat.m4; but one thing at a time.
17850         statat: new module, split out from fstatat
17851         GNU Emacs needs the POSIX-specified fstatat, but not the
17852         gnulib-specified statat and lstat.  Split the latter two into a
17853         new module 'statat'.
17854         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
17855         * lib/openat.h, lib/statat.c (STATAT_INLINE):
17856         Rename from FSTATAT_INLINE. All uses changed.
17857         * modules/fstatat (Files): Remove lib/statat.c.
17858         (gl_MODULE_INDICATOR([fstatat])): Remove.
17859         (lib_SOURCES): Remove.
17860         (Maintainer): Add self.
17861         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
17862         * tests/test-fstatat.c (BASE): Don't define if already defined.
17863         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
17865 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
17867         tests: don't assume fd 99 is closed
17868         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
17869         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
17870         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
17871         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
17872         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
17873         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
17874         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
17875         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
17876         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
17877         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
17878         * tests/test-fwrite.c, tests/test-getpeername.c:
17879         * tests/test-getsockname.c, tests/test-getsockopt.c:
17880         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
17881         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
17882         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
17883         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
17884         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
17885         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
17886         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
17887         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
17888         * tests/test-unlinkat.c, tests/test-unlockpt.c:
17889         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
17890         Close file descriptor 99, instead of assuming it's already closed.
17892 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
17894         stpncpy: port to OS X 10.8
17895         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
17896         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
17898 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
17900         unistd: port to recent mingw
17901         * lib/unistd.in.h: Remove special invocation convention for mingw,
17902         which breaks for the latest mingw version.  See John W. Eaton in
17903         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
17905         largefile: port better to Mac OS X 10.5
17906         This patch is backported from Autoconf git.
17907         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
17908         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
17909         with ino_t size being different for configuration time versus
17910         build/run time.  Problem reported by PHO in
17911         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
17913 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
17915         doc: clarify -Werror
17916         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
17917         clarify that it's intended for developers, not for ordinary builds,
17918         and mention --enable-gcc-warnings as one possible use.
17920 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
17922         stdint: fix build with Android's Bionic fox x86
17923         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
17924         was already included as _SSIZE_T_DEFINED_ might also be defined
17925         in include/machine/_types.h, which is included by stdio.h
17927 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
17929         net_if-tests: port to Solaris 7 + GCC 3.4.6
17930         Problem reported by Tom G. Christensen in
17931         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
17932         * tests/test-net_if.c (ni): Move to next the code that uses it,
17933         so that it's declared only if needed.
17935 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
17937         net_if-tests: port to older Solaris
17938         Problem reported by Tom G. Christensen in
17939         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
17940         * modules/net_if-tests (NET_IF_LIB): New substitution.
17941         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
17942         (HAVE_IF_NAMEINDEX): New C macro.
17943         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
17945         system-quote-tests: port to older Solaris
17946         Problem reported by Tom G. Christensen in
17947         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
17948         * tests/test-system-quote-child.c (fopen, fread): Undef.
17950         c-xvasprintf etc.: fix link errors on older Solaris
17951         These need to link with @LIBINTL@ to get libintl_gettext.
17952         Problem reported by Tom G. Christensen in
17953         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
17954         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
17955         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
17956         * modules/futimens-tests (test_futimens_LDADD):
17957         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
17959 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
17961         locale: port to Solaris 2.6 and 7 + GNU gettext
17962         * lib/locale.in.h: Just include_next <locale.h> when
17963         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
17964         when combining the localename module with GNU gettext 0.18.2.
17965         Problem reported by Tom G. Christensen in
17966         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
17968 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
17970         stdlib: port to Solaris 2.6
17971         Also, the code worked on Solaris 7 through 9 only by accident.
17972         Problem reported by Tom G. Christensen in
17973         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
17974         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
17975         simply include the system stdlib.h.
17976         * lib/getopt.in.h (__need_system_stdlib_h):
17977         * lib/pthread.in.h (__need_system_stdlib_h):
17978         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
17979         Define when including <stdlib.h>, to avoid problems at least for
17980         the pthread case on Solaris 2.6 and 7.  These .h files can get by
17981         with the system stdlib.h.
17983 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
17985         doc: update main copyright year
17986         * doc/gnulib.texi: Update copyright date.
17988         doc: improve ISO 8601 discussion
17989         * doc/parse-datetime.texi (Combined date and time of day items):
17990         Specify more carefully what formats are supported and what is
17991         done with excess precision.
17993 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
17995         doc: avoid small caps
17996         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
17997         they're more trouble than they're worth.  Suggested by Karl Berry
17998         in <http://bugs.gnu.org/13360>.
18000         regex: conform to strict C
18001         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
18002         From Aharon Robbins.
18004         gnulib-tool: fix incompatibility with autopoint 0.18.2
18005         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
18006         Problem reported by Tom G. Christensen in
18007         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
18009 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
18011         fprintftime: bring back and reword fwrite comment
18012         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
18014         stdio: remove now-unnecessary stdio.c
18015         Since stdio.in.h no longer uses inline functions, we no longer
18016         need to compile the extern versions.
18017         * lib/stdio.c: Remove.
18018         * modules/stdio (Files): Remove lib/stdio.c.
18019         (lib_SOURCES): Remove.
18021         unicodeio: depend on stdio, not ignore-value
18022         * lib/unicodeio.c: Do not include ignore-value.h.
18023         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
18024         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
18026         fprintftime: depend on stdio, not ignore-value
18027         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
18028         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
18029         since the stdio module arranges to silence that warning now.
18030         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
18032 2012-10-04  Simon Josefsson  <simon@josefsson.org>
18034         stdint-tests: Fix expanded-before-required-warning.
18035         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
18037 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
18039         fwrite: silence __wur only for older glibc versions
18040         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
18041         This will help us remove this workaround some time in the far future.
18043 2013-01-03  Eric Blake  <eblake@redhat.com>
18045         fwrite: silence __wur without using inline
18046         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
18047         just gcc, and in a way that avoids inline issues.
18048         * modules/stdio (Depends-on): Drop extern-inline.
18050 2013-01-03  Jim Meyering  <jim@meyering.net>
18052         update-copyright: avoid copyright notice date corruption
18053         Given a sequence of copyright year numbers in which the final
18054         one was a two-digit number that happened to be a substring of
18055         a preceding four-digit year number, we would mistakenly update
18056         the substring (from two- to four-digit) rather than the two-digit
18057         number at the end, which, combined with the addition of the current
18058         4-digit year number would yield two 5-digit year numbers, e.g.,
18059         here, it would convert the first "99" to "1999, 2013" rather than
18060         the final one:
18061           1991, 99
18062           11999, 20131, 1999
18063         * build-aux/update-copyright: Tighten a regexp.
18064         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
18065         Reported by Joseph Myers in
18066         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
18068 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
18070         regex: omit needless signed-pointer casts
18071         * lib/regcomp.c (build_charclass, build_charclass_op):
18072         Use char *, not unsigned char *, for class name and extra.
18073         The char values are always nonnegative so there's no need to
18074         insist on unsigned char * here, and using char * removes the need
18075         for casts.  Reported by Aharon Robbins in
18076         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
18078         regex: support Gawk, which never uses alloca
18079         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
18080         Do not include in this case.  Gawk doesn't supply a substitute
18081         alloca.h and doesn't need one.
18083         regex: port __libc_lock_define usage to C89
18084         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
18085         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
18086         does not conform to C89, as it has an empty macro argument.
18087         Reported by Aharon Robbins in
18088         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
18090 2013-01-01  Eric Blake  <eblake@redhat.com>
18092         maint: update all copyright year number ranges
18093         Run "make update-copyright".
18095         version-etc: bump copyright year reported in --version
18096         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
18098 2012-12-31  Eric Blake  <eblake@redhat.com>
18100         sigprocmask-tests: skip test if pid is unexpectedly large
18101         * tests/test-sigprocmask.c (main): Add range check.
18103         git-version-gen: avoid test -z portability glitch
18104         * build-aux/git-version-gen: Prefer portable test spelling, since
18105         git-version-gen is run on more than just developer machines.
18107 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
18109         git-version-gen: add --fallback option to use if git is not present
18110         * build-aux/git-version-gen: Add support for the new option --fallback,
18111         which comes into play when there is no $tarball_version_file and
18112         git is not working.
18113         (scriptversion): Update.
18115         maint.mk: handle missing git with more grace
18116         * top/maint.mk (no-submodule-changes, public-submodule-commit):
18117         Quietly proceed if git is not present.
18119 2012-12-31  Eric Blake  <eblake@redhat.com>
18121         dup2: work around cygwin bug
18122         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
18123         * lib/dup2.c (rpl_dup2): Work around it.
18124         * doc/posix-functions/dup2.texi (dup2): Document it.
18126 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
18128         regex: remove unnecessary dependency on localcharset.h
18129         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
18130         hasn't been needed for years.
18131         * modules/regex (Depends-on): Remove localcharset.
18133         regex: revert single-byte change
18134         * lib/regexec.c (check_node_accept_bytes): Revert previous change
18135         to this function.  This was alredy fixed in a different way, at
18136         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
18137         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
18138         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
18140         regex: simplify based on Gawk version
18141         * lib/regex_internal.c (re_dfa_add_node): Simplify.
18142         Reported by Aharon Robbins in
18143         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
18145 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
18147         regex: check that pattern char is single-byte
18148         Reported by Aharon Robbins in
18149         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
18150         * lib/regexec.c (check_node_accept_bytes):
18151         Return 0 if the pattern string has a multibyte character here.
18153         regex: implement rational ranges
18154         Reported by Aharon Robbins in
18155         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
18156         * lib/regcomp.c (build_range_exp) [!_LIBC]:
18157         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
18158         Implement rational ranges.
18160         regex: avoid redefining __wctype
18161         Reported by Aharon Robbins in
18162         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
18163         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
18164         #undef before defining.
18166         regex: port to hosts where malloc (0) == NULL
18167         Reported by Aharon Robbins in
18168         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
18169         * lib/regex_internal.c (re_node_set_alloc):
18170         Don't assume that malloc (0) yields nonnull.
18171         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
18172         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
18173         * modules/regex (Files): Add m4/eealloc.m4.
18175         regex: port to C89
18176         Reported by Aharon Robbins in
18177         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
18178         * lib/regcomp.c (init_word_char): Declaration before statement.
18180         regex: merge glibc changes
18181         Also, copy the license wording from glibc.  This simplifies
18182         merging changes.  gnulib-tool will change the wording to GPL as
18183         appropriate, when importing it to other packages.  The only
18184         glibc change made since the last merge, which needs merging, is:
18185         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
18186         * lib/regex_internal.h (gettext): Remove use of INTUSE.
18188         * users.txt: Add Emacs.
18190         doc: omit mention of version when not needed
18191         * doc/gnulib-intro.texi (Portability and Application Code):
18192         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
18193         Don't mention particular dates or versions when not necessary, so
18194         that the documentation won't go out of date so quickly.
18196         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
18198 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
18200         bootstrap: pass --force to autoreconf.
18201         * build-aux/bootstrap (AUTORECONFFLAGS): New.
18202         Add "--force" so that Automake's ylwrap and other such tools
18203         be updated at each bootstrap invocation.
18204         Use it.
18206 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18208         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
18209         The earlier patch forgot to update one of the #if conditions, causing
18210         a problem on Debian testing i386 reported by Mats Erik Andersson
18211         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
18212         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
18213         (__argp_fmtstream_puts, argp_fmtstream_puts)
18214         (__argp_fmtstream_write, argp_fmtstream_write)
18215         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
18217         * doc/gnulib-readme.texi: Minor fixups.
18218         (Portability guidelines): Modernize URLs.  Remove some repetition.
18219         (Indent with spaces not TABs): Reword to avoid too-long lines.
18220         Remove some '@ifset standalone' stuff that isn't used.
18222         * doc/gnulib-readme.texi (Portability guidelines):
18223         ctype.h, not ctime.h.
18225         Correct name of POSIX.1-2001.
18226         * doc/posix-functions/fgetc.texi (fgetc):
18227         * doc/posix-functions/fgets.texi (fgets):
18228         * doc/posix-functions/fread.texi (fread):
18229         * doc/posix-functions/fscanf.texi (fscanf):
18230         * doc/posix-functions/getc.texi (getc):
18231         * doc/posix-functions/getchar.texi (getchar):
18232         * doc/posix-functions/scanf.texi (scanf):
18233         POSIX.1-2001, not POSIX-2001.
18235         doc: move README into manual
18236         * README: Move contents to new file doc/gnulib-readme.texi.
18237         Replace with a one-line summary.
18238         * doc/gnulib.texi (Brief Overview): New section,
18239         with old intro preface.  Include gnulib-readme.texi for contents.
18240         (Philosophy): Rename from "Introduction", since this
18241         section no longer introduces the rest.  Write a new preface.
18242         * doc/gnulib-readme.texi: New file, with the old contents of
18243         README texinfo-ized.  This way, the README info appears
18244         in the online and printed manual.
18246 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
18248         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
18249         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
18250         c_vasprintf() prototype.
18252 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
18254         c-vasprintf: Fix "empty declaration" warning reported by GCC.
18255         * lib/c-vasprintf.h: Remove stray semicolon.
18257 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
18259         gettext: avoid obsolete macro AM_PROG_MKDIR_P
18260         It is obsolete and is planned to be removed from Automake 1.14; see
18261         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
18262         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
18263         (installdirs-data, installdirs-data-yes):
18264         Use $(MKDIR_P), not $(mkdir_p).
18265         * m4/intl.m4 (AM_INTL_SUBDIR):
18266         * m4/po.m4 (AM_PO_SUBDIRS):
18267         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
18269 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18271         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
18272         On this platform, we are not optimizing but we are using
18273         the substitute for extern inlines, so compile as if
18274         C99-style extern inline, or a substitute, is available.
18275         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
18276         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
18277         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
18278         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
18279         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
18280         Declare as ARGP_FS_EI, not as extern.
18281         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
18282         (__option_is_short, _option_is_end, __option_is_end)
18283         [!_LIBC && __USE_EXTERN_INLINES]:
18284         Declare as ARGP_EI, not as extern.
18286 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
18288         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
18289         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
18290         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
18291         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
18292         ...), as the latter is fatal with older Autoconfs.
18293         Problem reported and fix suggested by Eric Blake in thread starting at
18294         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
18296 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
18298         AC_PROG_MKDIR_P: don't workaround if not buggy
18299         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
18300         Define only for Autoconf versions before 2.62.
18301         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
18302         undocumented m4_PACKAGE_VERSION, for consistency with the
18303         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
18304         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
18305         was introduced in 2.62.
18307 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
18309         New 'c-*printf' modules for formatted output in C locale.
18311         New module 'c-vasnprintf'.
18312         * modules/c-vasnprintf: New file.
18313         * lib/c-vasnprintf.c: New file.
18314         * lib/c-vasnprintf.h: New file.
18316         New module 'c-snprintf'.
18317         * modules/c-snprintf: New file.
18318         * modules/c-snprintf-tests: New file.
18319         * lib/c-snprintf.c: New file.
18320         * lib/c-snprintf.h: New file.
18321         * tests/test-c-snprintf.c: New file.
18322         * tests/test-c-snprintf.sh: New file.
18324         New module 'c-vsnprintf'.
18325         * modules/c-vsnprintf: New file.
18326         * modules/c-vsnprintf-tests: New file.
18327         * lib/c-vsnprintf.c: New file.
18328         * lib/c-vsnprintf.h: New file.
18329         * tests/test-c-vsnprintf.c: New file.
18330         * tests/test-c-vsnprintf.sh: New file.
18332         New module 'c-vasprintf'.
18333         * modules/c-vasprintf: New file.
18334         * modules/c-vasprintf-tests: New file.
18335         * lib/c-asprintf.c: New file.
18336         * lib/c-vasprintf.c: New file.
18337         * lib/c-vasprintf.h: New file.
18338         * tests/test-c-vasprintf.c  +: New file.
18339         * tests/test-c-vasprintf.sh: New file.
18341         New module 'c-xvasprintf'.
18342         * modules/c-xvasprintf: New file.
18343         * modules/c-xvasprintf-tests: New file.
18344         * lib/c-xasprintf.c: New file.
18345         * lib/c-xvasprintf.c: New file.
18346         * lib/c-xvasprintf.h: New file.
18347         * tests/test-c-xvasprintf.c: New file.
18348         * tests/test-c-xvasprintf.sh: New file.
18350 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18352         argp: better 'inline'
18353         Use extern-inline module to declare extern inline functions.
18354         This avoids some bogus warning diagnostics.  Problem discovered
18355         when modifying GNU tar to use the manywarnings module.
18356         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
18357         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
18358         Define based on extern-inline.
18359         * modules/argp (Depends-on): Add extern-inline.
18361 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
18363         filemode, sys_stat: Handle MPX files a la AIX.
18364         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
18365         * lib/sys_stat.in.h (S_ISMPX): New macro.
18366         * tests/test-sys_stat.c: Add tests for MPX files.
18368 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
18370         x-to-1: honor $PERL
18371         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
18372         a chance to use his preferred version of Perl.  This is typically
18373         required by Darwin users whose default /usr/bin/perl does not have all
18374         the libraries required by help2man, and who need to use their MacPorts
18375         installation of Perl instead.
18377 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
18379         gnu-web-doc-update: add all the new files, even in new directories
18380         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
18381         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
18382         Use it.
18383         (main): Don't use cvsutils to get the list of unknown files,
18384         just add all the existing files and directories.
18386 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
18388         gnu-web-doc-update: improve --help
18389         * build-aux/gnu-web-doc-update: Move comments into --help.
18391 2012-12-07  Eric Wong  <normalperson@yhbt.net>
18393         mountlist: recognize more "dummy" file systems
18394         * lib/mountlist.c (ME_DUMMY_0):
18395         Add these dummy FS names to the list:
18396         - "debugfs" virtual filesystem for kernel debugging
18397         - "devpts" PTY slave filesystem
18398         - "devtmpfs" device filesystem on top of tmpfs/ramfs
18399         - "fusectl" control filesystem for FUSE
18400         - "mqueue" enumerates POSIX message queues
18401         - "rpc_pipefs" kernel <-> userspace bridge for NFS
18402         - "sysfs" is for exporting kernel objects
18403         - "devfs" device filesystem for Linux 2.4 and FreeBSD
18405 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
18407         extern-inline: avoid incompatibility with Darwin Libc
18408         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
18409         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
18410         Problem reported by Akim Demaille in
18411         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
18413 2012-12-11  Simon Josefsson  <simon@josefsson.org>
18415         gnupload: Work with GnuPG using gpg-agent (for smartcards).
18416         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
18417         let it handle password prompting.
18419 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
18421         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
18422         * lib/canonicalize.c (canonicalize_filename_mode):
18423         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
18424         fetching the current directory.  Don't overrun the beginning of
18425         rpath if there's no slashes after the MS-Windows drive letter.
18427 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
18429         maint.mk: avoid extra forks
18430         * top/maint.mk (_cfg_mk): The GNU make manual documents that
18431         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
18432         So use that instead of "$(shell test -f FILE && echo FILE)".
18434 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
18436         vasnprintf: fix ASCII_ONLY typo
18437         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
18438         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
18439         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
18440         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
18441         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
18443 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
18445         list, oset, xlist, xoset: fix extern inline issue with C99
18446         This was introduced by my recent changes for 'inline'.
18447         Problem reported for gettext by Daiki Ueno in
18448         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
18449         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
18450         (gl_list_nx_create, gl_list_size, gl_list_node_value)
18451         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
18452         (gl_list_previous_node, gl_list_get_at)
18453         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
18454         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
18455         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
18456         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
18457         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
18458         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
18459         (gl_list_iterator_free, gl_sortedlist_search)
18460         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
18461         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
18462         (gl_sortedlist_remove):
18463         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
18464         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
18465         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
18466         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
18467         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
18468         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
18469         (gl_list_add_at, gl_sortedlist_add):
18470         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
18471         Wrap these extern decls inside "#if 0", because they are implemented
18472         as inline functions, and extern inline is not what's wanted here.
18473         It would simplify these .h files to remove the extern decls entirely,
18474         although a downside would be less-clear separation between
18475         specification and implementation.
18477 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
18479         sys_stat: no 'static inline'
18480         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
18481         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
18483         extern-inline: no 'static inline'
18484         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
18485         Do not require AC_C_INLINE.
18486         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
18487         'static inline', for older compilers.
18489         snippet/warn-on-use: no 'static inline'
18490         * build-aux/snippet/warn-on-use.h:
18491         Remove unnecessary 'inline' in comment.
18493         rbtree-list, rbtreehash-list: no 'static inline'
18494         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
18495         * lib/gl_anytree_list2.h (node_at):
18496         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
18497         (gl_oset_first, add_nodes_to_buckets):
18498         Now static, not static inline.
18500         regex: no 'static inline'
18501         * lib/regex_internal.c (calc_state_hash):
18502         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
18503         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
18504         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
18505         Now static, not static inline.
18506         (inline) [__GNUC__ < 3 && _LIBC]:
18507         Remove macro; no longer needed.
18509         xvasprintf: no 'static inline'
18510         * lib/xvasprintf.c (xstrcat):
18511         Now static, not static inline.
18512         * m4/xvasprintf.m4 (gl_XVASPRINTF):
18513         Do not require AC_C_INLINE.
18515         parse-datetime, parse-duration: no 'static inline'
18516         * lib/parse-datetime.y (to_uchar):
18517         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
18518         (scale_n_add):
18519         Now static, not static inline.
18520         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
18521         * modules/parse-duration (configure.ac):
18522         Do not require AC_C_INLINE.
18524         getaddrinfo: no 'static inline'
18525         * lib/getaddrinfo.c (validate_family):
18526         Now static, not static inline.
18527         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
18528         Do not require AC_C_INLINE.
18530         ftruncate, fts, lstat, openat, raise: no 'static inline'
18531         * lib/ftruncate.c (chsize_nothrow):
18532         * lib/fts.c (opendirat, diropen):
18533         * lib/lstat.c (orig_lstat):
18534         * lib/openat.c (orig_openat):
18535         * lib/raise.c (raise_nothrow):
18536         Now static, not static inline.
18537         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
18538         * m4/fts.m4 (gl_FUNC_FTS_CORE):
18539         * m4/lstat.m4 (gl_PREREQ_LSTAT):
18540         * m4/openat.m4 (gl_PREREQ_OPENAT):
18541         * m4/raise.m4 (gl_PREREQ_RAISE):
18542         Do not require AC_C_INLINE.
18544         fflush, stat: no 'static inline'
18545         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
18546         (clear_ungetc_buffer, disable_seek_optimization)
18547         (restore_seek_optimization, update_fpos_cache):
18548         * lib/stat.c (orig_stat):
18549         Now static, not static inline.
18550         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
18551         (update_fpos_cache):
18552         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
18553         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
18554         * m4/stat.m4 (gl_PREREQ_STAT):
18555         Do not require AC_C_INLINE.
18557         error, filevercmp: no 'static inline'
18558         * lib/error.c (is_open, flush_stdout):
18559         * lib/filevercmp.c (order):
18560         Now static, not static inline.
18561         * m4/error.m4 (gl_PREREQ_ERROR):
18562         * modules/filevercmp (configure.ac):
18563         Do not require AC_C_INLINE.
18565         dup, execute, fatal-signal, etc.: no 'static inline'
18566         * lib/dup.c (dup_nothrow):
18567         * lib/execute.c (nonintr_close, nonintr_open):
18568         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
18569         * lib/fopen.c (orig_fopen):
18570         * lib/freadseek.c (freadptrinc):
18571         * lib/freopen.c (orig_freopen):
18572         * lib/fstat.c (orig_fstat, fstat_nothrow):
18573         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
18574         (get_rusage_as_via_iterator):
18575         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
18576         * lib/getdtablesize.c (_setmaxstdio_nothrow):
18577         * lib/isatty.c (_isatty_nothrow):
18578         * lib/open.c (orig_open):
18579         * lib/read.c (read_nothrow):
18580         * lib/sigprocmask.c (signal_nothrow):
18581         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
18582         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
18583         * lib/wait-process.c (unregister_slave_subprocess):
18584         * lib/write.c (write_nothrow):
18585         Now static, not static inline.
18586         * lib/spawn-pipe.c (nonintr_open): Define only if
18587         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
18588         * m4/dup.m4 (gl_PREREQ_DUP):
18589         * m4/execute.m4 (gl_EXECUTE):
18590         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
18591         * m4/fopen.m4 (gl_PREREQ_FOPEN):
18592         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
18593         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
18594         * m4/fstat.m4 (gl_PREREQ_FSTAT):
18595         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
18596         * m4/isatty.m4 (gl_PREREQ_ISATTY):
18597         * m4/open.m4 (gl_PREREQ_OPEN):
18598         * m4/read.m4 (gl_PREREQ_READ):
18599         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
18600         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
18601         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
18602         * m4/wait-process.m4 (gl_WAIT_PROCESS):
18603         * m4/write.m4 (gl_PREREQ_WRITE):
18604         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
18605         Do not require AC_C_INLINE.
18607         c-strtod, memcoll, readutmp: no 'static inline'
18608         * lib/c-strtod.c (c_locale):
18609         * lib/memcoll.c (strcoll_loop):
18610         * lib/readutmp.c (desirable_utmp_entry):
18611         Now static, not static inline.
18612         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
18613         * m4/memcoll.m4 (gl_MEMCOLL):
18614         * m4/readutmp.m4 (gl_READUTMP):
18615         Do not require AC_C_INLINE.
18617         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
18618         * lib/arctwo.c (to_uchar):
18619         * lib/md4.c (set_uint32):
18620         * lib/md5.c (set_uint32):
18621         * lib/sha1.c (set_uint32):
18622         * lib/sha256.c (set_uint32):
18623         * lib/sha512.c (set_uint64):
18624         Now static, not static inline.  This is a bit simpler, and doesn't
18625         affect performance with GCC and default optimization.
18626         * m4/arctwo.m4 (gl_ARCTWO):
18627         * m4/md4.m4 (gl_MD4):
18628         * m4/md5.m4 (gl_MD5):
18629         * m4/sha1.m4 (gl_SHA1):
18630         * m4/sha256.m4 (gl_SHA256):
18631         * m4/sha512.m4 (gl_SHA512):
18632         Do not require AC_C_INLINE.
18634         cond, lock, thread: better 'inline'
18635         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
18636         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
18637         New macros.  Use them instead of static inline, for header functions.
18638         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
18639         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
18640         * lib/glthread/lock.c (gl_waitqueue_init)
18641         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
18642         * lib/glthread/thread.c (get_current_thread_handle):
18643         Change 'static inline' to 'inline'.
18644         * lib/glthread/cond.h, lib/glthread/thread.h:
18645         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18646         * m4/cond.m4 (gl_COND):
18647         * m4/lock.m4 (gl_PREREQ_LOCK):
18648         * m4/thread.m4 (gl_THREAD):
18649         Do not require AC_C_INLINE.
18650         * modules/cond, modules/thread (Depends-on): Add extern-inline.
18652         chdir-long, cycle-check, savewd: better 'inline'
18653         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
18654         (find_non_slash):
18655         * lib/cycle-check.c (is_zero_or_power_of_two):
18656         * lib/savewd.c (savewd_delegating):
18657         Change 'static inline' to 'inline'.
18658         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
18659         Replace all remaining uses of 'static inline' with it.
18660         * lib/savewd.h:
18661         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18662         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
18663         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
18664         * m4/savewd.m4 (gl_SAVEWD):
18665         Do not require AC_C_INLINE.
18666         * modules/savewd (Depends-on): Add extern-inline.
18668         base32, base64: no need for 'inline'
18669         * lib/base32.c (to_uchar, get_8, decode_8):
18670         * lib/base64.c (to_uchar, get_4, decode_4):
18671         Change 'static inline' to 'inline'.
18672         * m4/base32.m4 (gl_PREREQ_BASE32):
18673         * m4/base64.m4 (gl_PREREQ_BASE64):
18674         Do not require AC_C_INLINE.
18676         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
18677         * lib/gl_array_oset.c (gl_array_nx_add_at):
18678         (gl_array_remove_at):
18679         * lib/gl_linkedhash_list.c (hash_resize_after_add)
18680         (add_to_bucket, remove_from_bucket):
18681         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
18682         Change 'static inline' to 'static', as it's simpler to omit
18683         'inline' unless there's a significant performance advantage.
18685         list, oset, xlist, xoset, xsublist: simplify via extern inline
18686         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
18687         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
18688         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
18689         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
18690         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
18691         New macro.  Replace all uses of 'static inline' with it.
18692         [HAVE_INLINE]: Implement functions as *_INLINE functions,
18693         instead of as macros FOO that are defined to static inline
18694         functions FOO_inline.
18695         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
18696         * lib/gl_xsublist.c:
18697         Reimplement from scratch, by defining the corresponding *_INLINE
18698         macro and including the corresponding .h file.  This is simpler.
18699         * modules/list, modules/oset, modules/xlist, modules/xoset:
18700         (Files): Remove m4/gl_list.m4.
18701         (configure.ac): Remove gl_LIST.
18702         * m4/gl_list.m4: Remove.
18703         * modules/list, modules/oset, modules/xlist, modules/xoset:
18704         * modules/xsublist:
18705         (Depends-on): Depend on extern-inline, not inline.
18707         xalloc: better 'inline'
18708         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
18709         New macro.  Replace all uses of 'static inline' with it.
18710         (static_inline): Remove.
18711         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
18712         Let 'extern inline' do the work automatically, instead of doing
18713         it by hand.
18714         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
18715         Remove.  All uses removed.
18716         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
18718         gethrxtime: better 'inline'
18719         * lib/xtime.c: New file.
18720         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
18721         * lib/xtime.h (XTIME_INCLUDE):
18722         New macros.  Replace all uses of 'static inline' with them.
18723         * lib/gethrxtime.c (gethrxtime): Define only if
18724         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
18725         this source file is now always compiled, because of the extern inline.
18726         * lib/gethrxtime.h, lib/xtime.h:
18727         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18728         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
18729         if gethrtime works, as they're not needed in that case.
18730         (gl_XTIME): Do not require AC_C_INLINE.
18731         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
18732         compiled now.  Move the check into gl_GETHRXTIME.
18733         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
18734         (Depends-on): Add extern-inline.
18735         (configure.ac): gethrxtime is always compiled now.
18736         (lib_SOURCES): Add gethrxtime.c.
18738         wctype-h: better 'inline'
18739         * lib/wctype-h.c: New file.
18740         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
18741         New macro.  Replace all uses of 'static inline' with it.
18742         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18743         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
18744         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
18745         (Depends-on): Add extern-inline.
18747         unistd: better 'inline'
18748         * lib/unistd.c: New file.
18749         * lib/unistd.in.h (_GL_UNISTD_INLINE):
18750         New macro.  Replace all uses of 'static inline' with it.
18751         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18752         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
18753         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
18754         (Depends-on): Add extern-inline.
18756         sys_socket: better 'inline'
18757         * lib/sys_socket.c: New file.
18758         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
18759         New macro.  Replace all uses of 'static inline' with it.
18760         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18761         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
18762         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
18763         (Depends-on): Add extern-inline.
18765         stdio: better 'inline'
18766         * lib/stdio.c: New file.
18767         * lib/stdio.in.h (_GL_STDIO_INLINE):
18768         New macro.  Replace all uses of 'static inline' with it.
18769         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18770         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
18771         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
18772         (Depends-on): Add extern-inline.
18774         sigaction: better 'inline'
18775         * lib/sig-handler.c: New file.
18776         * lib/sig-handler.h (SIG_HANDLER_INLINE):
18777         New macro.  Replace all uses of 'static inline' with it.
18778         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18779         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
18780         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
18781         (Depends-on): Add extern-inline.
18783         selinux-h: better 'inline'
18784         * lib/se-context.c, lib/se-selinux.c: New files.
18785         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
18786         * lib/se-context.in.h (SE_CONTEXT_INLINE):
18787         New macro.  Replace all uses of 'static inline' with it.
18788         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18789         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
18790         New macro.  Replace all uses of 'static inline' with it.
18791         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18792         * modules/selinux-h (Files, lib_SOURCES):
18793         Add lib/se-context.c, lib/se-selinux.c.
18794         (Depends-on): Add extern-inline.
18795         (configure.ac): Do not require AC_C_INLINE.
18797         pthread: better 'inline'
18798         * lib/pthread.c: New file.
18799         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
18800         New macro.  Replace all uses of 'static inline' with it.
18801         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18802         * m4/pthread.m4 (gl_PTHREAD_CHECK):
18803         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
18804         * modules/pthread (Files): Add lib/pthread.c.
18805         (Depends-on): Add extern-inline.
18807         math: better 'inline'
18808         * lib/math.c: New file.
18809         * lib/math.in.h (_GL_MATH_INLINE):
18810         New macro.  Replace all uses of 'static inline' with it.
18811         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18812         * m4/math_h.m4 (gl_MATH_H):
18813         Do not require AC_C_INLINE.
18814         * modules/math (Files, lib_SOURCES):
18815         Add lib/math.c.
18816         (Depends-on): Add extern-inline.
18818         count-one-bits: better 'inline'
18819         * lib/count-one-bits.c: New file.
18820         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
18821         New macro.  Replace all uses of 'static inline' with it.
18822         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18823         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
18824         Do not require AC_C_INLINE.
18825         * modules/count-one-bits (Files, lib_SOURCES):
18826         Add lib/count-one-bits.c.
18827         (Depends-on): Add extern-inline.
18829         count-leading-zeros: better 'inline'
18830         * lib/count-leading-zeros.c: New file.
18831         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
18832         New macro.  Replace all uses of 'static inline' with it.
18833         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18834         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
18835         Do not require AC_C_INLINE.
18836         * modules/count-leading-zeros (Files, lib_SOURCES):
18837         Add lib/count-leading-zeros.c.
18838         (Depends-on): Add extern-inline.
18840         bitrotate: better 'inline'
18841         * lib/bitrotate.c: New file.
18842         * lib/bitrotate.h (BITROTATE_INLINE):
18843         New macros.
18844         Replace all uses of 'static inline' with them.
18845         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
18846         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
18847         (Depends-on): Add extern-inline.
18848         (configure.ac): Do not require AC_C_INLINE.
18850 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
18852         maint.mk: avoid gratuitous failure
18853         Reported by Stefano Lattarini in
18854         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
18855         * top/maint.mk (public-submodule-commit): Quote more safely.
18857 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
18859         canonicalize, canonicalize-lgpl: support MS-Windows file names
18860         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
18861         for test cases, which it'd be nice to add at some point.
18862         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
18863         * lib/canonicalize.c (canonicalize_filename_mode):
18864         * lib/canonicalize-lgpl.c (__realpath):
18865         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
18866         slash is at the beginning of the file name.  Use ISSLASH, instead
18867         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
18868         the first character with '/'.  Test for
18869         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
18870         with a drive letter.
18871         * lib/canonicalize.c (SLASHES): New macro.
18872         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
18874 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
18876         fts: introduce FTS_VERBATIM
18877         * lib/fts_.h (FTS_VERBATIM): New bit flag.
18878         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
18879         * lib/fts.c (fts_open): Honor it.
18881 2012-11-09  Pádraig Brady  <P@draigBrady.com>
18883         getlogin-tests: allow errno == ENXIO
18884         * tests/test-getlogin.c (main): Skip tests if getlogin fails
18885         with errno == ENXIO (No controlling tty).
18886         getlogin_r-tests: Likewise. Also allow errno == ENOENT
18887         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
18888         with errno == ENOENT.  This was reported to happen in various
18889         situations on GNU/Linux.
18891 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
18893         getlogin-tests: allow errno == ENOENT
18894         * tests/test-getlogin.c (main): Skip tests if getlogin fails
18895         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
18896         when running a test in an Emacs shell buffer.
18898 2012-11-08  Jim Meyering  <jim@meyering.net>
18900         tests/nap.h: avoid warning about unused variable
18901         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
18903         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
18904         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
18905         white space before each of the special-cased file names, to avoid
18906         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
18907         in http://bugs.gnu.org/12830.
18909 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
18911         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
18912         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
18913         fails with errno == EBADF when fd is opened with O_PATH.
18914         Reported by Jim Meyering in
18915         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
18916         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
18917         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
18919 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
18921         test-utimens: speed up by taking shorter naps
18922         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
18923         New functions.
18924         (nap): Use them, to do a better job of guessing the delay.
18925         On Fedora 17 with ext4 atop md atop hard disks, this made
18926         test-utimens run 10x faster, because the test napped for
18927         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
18928         <http://bugs.gnu.org/12820#11>.
18930 2012-11-07  Jim Meyering  <jim@meyering.net>
18932         mountlist.c: fix a compilation failure
18933         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
18934         I introduced while transforming commit v0.0-7683-g613bcb6
18936 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
18938         errno: port to LynxOS 178 2.2.2
18939         Problem reported by Joel Brobecker in
18940         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
18941         * doc/posix-headers/errno.texi (errno.h): Document this.
18942         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
18943         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
18944         Supply a string for EILSEQ.
18945         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
18947 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
18949         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
18950         Linux kernel 2.6.39 introduced O_PATH (see
18951         <http://lwn.net/Articles/433854/>) and this is a better fallback
18952         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
18953         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
18954         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
18955         * lib/fcntl.in.h (O_ACCMODE):
18956         * tests/test-fcntl-h.c (main):
18957         Do not reject O_ACCMODE merely because it has more than the
18958         minimal number of bits, as POSIX allows extensions here.
18960 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
18962         mountlist: do not classify a bind-mounted dir entry as "dummy"
18963         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
18964         the "none"-testing clause.
18965         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
18966         exception for bind-mounted directories.
18968 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
18970         quote: provide a means to escape strings with nul characters
18971         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
18972         (quote, quote_n): Rename formal arguments for consistency with
18973         quotearg.
18975 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
18977         test-raise: don't assume 199 is an invalid signal
18978         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
18980         sh-quote-tests: port to Solaris 9
18981         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
18982         Problem reported by Dagobert Michelsen in
18983         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
18985 2012-10-28  Jim Meyering  <jim@meyering.net>
18987         maint.mk: rename a new configurable variable
18988         * top/maint.mk (_gl_translatable_string_re): Rename from
18989         translation-markers: _gl_ prefix to insulate from user Makefile code,
18990         and the _re suffix to inform that it's a regular expression.
18992 2012-10-26  Eric Blake  <eblake@redhat.com>
18994         maint.mk: let packages tweak sc_po_check pattern
18995         * top/maint.mk (sc_po_check): Add translation-markers, to allow
18996         finding files with other translation markers.
18998 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
19000         euidaccess: speed up 'configure' on GNU hosts
19001         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
19002         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
19003         it's needed only in this case.  Use AC_CHECK_DECLS, not
19004         AC_CHECK_DECLS_ONCE.
19005         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
19006         or AC_REQUIRE for AC_FUNC_GETGROUPS.
19008         * lib/regexec.c (re_search_internal): Fix grammar in comment.
19010 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
19012         fchmodat, fchownat, fstatat: port to non-inlining compilers
19013         Problem reported for FreeBSD 9 by Jim Meyering in
19014         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
19015         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
19016         New files, which define FCHMODAT_INLINE etc.
19017         * lib/fchmodat.c (FCHMODAT_INLINE):
19018         * lib/fchownat.c (FCHOWNAT_INLINE):
19019         * lib/fstatat.c (FSTATAT_INLINE):
19020         Remove, as chmodat.c etc. now do this.
19021         * modules/fchmodat (Files): Add lib/chmodat.c.
19022         * modules/fchownat (Files): Add lib/chownat.c.
19023         * modules/fstatat (Files): Add lib/statat.c.
19025 2012-10-15  Jim Meyering  <jim@meyering.net>
19027         fchmodat.c, fchownat.c: compile-impeding typos
19028         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
19029         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
19030         Introduced in commit v0.0-7636-gd202279.
19032 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
19034         fcntl-h: support GNU flags like O_IGNORE_CTTY
19035         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
19036         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
19037         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
19038         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
19039         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
19040         Define to 0 if not already defined.
19041         * tests/test-fcntl-h.c: Test these new flags.
19043 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
19045         faccessat, etc.: support AT_FDCWD-only use
19046         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
19047         this function only if its first argument is AT_FDCWD.
19048         Emacs wants faccessat for AT_EACCESS but not for any first-arg
19049         values other than AT_FDCWD, so it doesn't want all the openat
19050         machinery with fchdir etc.
19051         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
19052         * modules/fstatat, modules/mkdirat, modules/openat (Files):
19053         * modules/unlinkat (Files):
19054         Remove lib/openat-priv.h, as at-internal supplies this file.
19055         Removing this file here allows us to support programs like Emacs
19056         that avoid at-internal.
19058         faccessat: speed up 'configure' on mainstream hosts
19059         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
19060         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
19061         since it's only on unusual platforms that we need to check for
19062         'access', and it's better not to slow 'configure' down on all
19063         platforms.
19065         faccessat: port to Solaris 10
19066         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
19067         Needed on Solaris 10, which doesn't have AT_EACCESS,
19068         so we need the Gnulib fcntl.h, which defines it.
19070 2012-10-14  Pádraig Brady  <P@draigBrady.com>
19071         canonicalize: fix C89 compilation
19072         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
19073         declarations so C89 is supported.  Also remove the comment
19074         referencing memorty allocation as the suggested feature could
19075         not be implemented as suggested.
19076         Reported by Michael Goffioul.
19078 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
19080         group-member: omit unnecessary dependencies
19081         This is for Emacs, which has its own allocator and where we
19082         don't want to use xalloc.
19083         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
19084         since we no longer use xmalloc.  Do not include stdbool.h, since
19085         the changes below happen to remove the only use of bool.
19086         (GROUPBUF_SIZE): New constant.
19087         (struct group_info): Remove n_groups member.  Add groupbuf member.
19088         This lets us get the groups without using malloc, usually.
19089         (free_group_info, get_group_info): Adjust to this.
19090         (get_group_info): Return the number of groups found, or -1 on error.
19091         Use plain malloc not xmalloc, and treat its failure as if there
19092         are no groups, as the user already loses in case of error.
19093         (group_member): Simplify, based on changes to get_group_info.
19094         * modules/group-member (Depends-on): Remove dependencies on
19095         xalloc and stdbool.  Add dependency on xalloc-oversized.
19097 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
19099         gethrxtime: port to C++
19100         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
19102 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
19104         ptsname: fix macro-name typo
19105         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
19107 2012-10-03  Simon Josefsson  <simon@josefsson.org>
19109         inttostr: Relax license.
19110         * modules/inttostr (License): Change from LGPL to LGPLv2+.
19112 2012-10-03  Eric Blake  <eblake@redhat.com>
19114         ptsname_r: support ptys returned by FreeBSD posix_openpt
19115         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
19116         lives in /dev/pts/.
19118 2012-10-02  Eric Blake  <eblake@redhat.com>
19120         pselect: reject invalid file descriptors
19121         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
19122         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
19123         * modules/pselect (Depends-on): Add dup2.
19124         * doc/posix-functions/pselect.texi (pselect): Document this.
19126         select: reject invalid file descriptors
19127         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
19128         * lib/select.c (rpl_select) [!win32]: Work around it.
19129         * modules/select (Depends-on): Add dup2.
19130         * doc/posix-functions/select.texi (select): Document this.
19132         select: enhance test
19133         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
19134         New functions.
19135         (test_function): Enhance test.
19136         (do_select_bad_fd): Avoid any stale errno values.
19138         ptsname: reject invalid file descriptors
19139         http://www.austingroupbugs.net/view.php?id=503
19140         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
19141         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
19142         * modules/stdlib (Makefile.am): Replace witness.
19143         * lib/stdlib.in.h (ptsname): Allow for replacement.
19144         * modules/ptsname (configure.ac): Trigger replacement.
19145         * doc/posix-functions/ptsname.texi (ptsname): Document this.
19147 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
19149         hash-pjw-bare: new module
19150         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
19151         * lib/hash-pjw-bare.h: Likewise.
19152         * modules/hash-pjw-bare: New file.
19153         * MODULES.html.sh (Misc): Add it.
19155 2012-10-02  Eric Blake  <eblake@redhat.com>
19157         manywarnings: cater to more gcc infelicities
19158         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
19159         -Wuninitialized without -O.
19161 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
19163         select, poll tests: Make setsockopt invocation effective.
19164         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
19165         the bind() call.
19166         * tests/test-select.h (open_server_socket): Likewise.
19168 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
19170         sockets, sys_stat: restore AC_C_INLINE
19171         This undoes the 2012-09-22 patch.
19172         * m4/sockets.m4 (gl_SOCKETS):
19173         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
19174         Restore AC_C_INLINE, since MSVC requires __inline or _inline
19175         and does not support plain 'inline'.  Reported by Bruno Haible in
19176         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
19178 2012-09-30  Bruno Haible  <bruno@clisp.org>
19180         localeconv tests: Avoid test failure on OpenIndiana.
19181         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
19182         skip the 'grouping' and 'mon_grouping' tests.
19183         Reported by Jim Meyering.
19185 2012-09-30  Bruno Haible  <bruno@clisp.org>
19187         havelib: Follow libtool developments.
19188         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
19189         Suggested by Simon Josefsson.
19191 2012-09-29  Jim Meyering  <meyering@redhat.com>
19193         fstatat.c: fix a compile-impeding typo
19194         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
19195         Introduced in commit v0.0-7636-gd202279.
19196         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
19198 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
19200         extern-inline: provide a -Wundef safe config.h
19201         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
19202         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
19203         to produce a -Wundef warning free config.h.
19205 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
19207         hash-pjw: relax license to LGPLv2+
19208         * modules/hash-pjw (License): Relax, with consent of author.
19210 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
19212         maint.mk: fix strict vs. lazy variable issues with RELEASE
19213         * top/maint.mk (_equal): New function.
19214         (member_check): Strip the result to avoid spurious spaces.
19215         (url_dir_list): Do not use ifeq, which is strict, as it will
19216         require RELEASE_TYPE to be defined.
19217         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
19218         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
19219         (announcement_Cc_alpha,announcement_mail_headers_alpha)
19220         (announcement_Cc_beta,announcement_mail_headers_beta)
19221         (announcement_Cc_stable,announcement_mail_headers_stable): these.
19222         (release): Do not depend on $(release-type), as it forces its
19223         evaluation.  Bounce to it.
19225 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
19227         maint.mk: formatting changes
19228         * top/maint.mk: Indent bodies of if's.
19230 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
19232         maint.mk: factor the validation of RELEASE_TYPE
19233         With help from Jim Meyering.
19234         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
19235         * top/maint.mk (_empty, _sp): Move their definition earlier.
19236         (member-check, release-type): New.
19237         Use the latter instead of $(RELEASE_TYPE).
19238         Remove now useless local checks.
19240 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
19242         maint.mk: provide "make upload" to ease uploading
19243         See
19244         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
19245         Do not depend simply on the current $(VERSION), as there may have been
19246         new commits since the tarball generation.  Rather, rely on $(RELEASE),
19247         as "make release-commit" already does.
19249         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
19250         "make TYPE".
19252         * top/maint.mk (upload_command, upload, release): New.
19253         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
19254         (VERSION): first word of $(RELEASE) is always right.
19255         (emit_upload_commands): Adjust.
19256         * top/README-release: Update.
19258 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
19260         maint.mk: silent rules
19261         With help from Stefano Lattarini.
19262         * top/maint.mk (writable-files): Use $(AM_V_GEN).
19263         (announcement): Use $(AM_V_at).
19265 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
19267         localename: port gl_locale_name_thread_unsafe to FreeBSD
19268         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
19269         and use the simpler FreeBSD implementation on Mac OS X as well.
19270         Original idea suggested by Ed Maste in
19271         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
19273 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19275         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
19276         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
19277         * lib/mbuiter.c, lib/xsize.c: New files.
19278         * lib/binary-io.h (BINARY_IO_INLINE):
19279         * lib/eealloc.h (EEALLOC_INLINE):
19280         * lib/mbfile.h (MBFILE_INLINE):
19281         * lib/mbiter.h (MBITER_INLINE):
19282         * lib/mbuiter.h (MBUITER_INLINE):
19283         * lib/xsize.h (XSIZE_INLINE):
19284         New macros.
19285         Replace all uses of 'static inline' with them.
19286         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19287         * m4/eealloc.m4 (gl_EEALLOC):
19288         * m4/mbfile.m4 (gl_MBFILE):
19289         * m4/mbiter.m4 (gl_MBITER):
19290         * m4/xsize.m4 (gl_XSIZE):
19291         Do not require AC_C_INLINE.
19292         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
19293         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
19294         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
19295         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
19296         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
19297         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
19298         * modules/binary-io, modules/eealloc, modules/mbfile:
19299         * modules/mbiter, modules/mbuiter:
19300         (Depends-on): Add extern-inline.
19302         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
19303         * lib/pipe-filter-aux.c: New file.
19304         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
19305         Replace all uses of 'static inline' with it.
19306         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19307         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
19308         (filter_retcode): No real need for inline here.
19309         * modules/pipe-filter-gi, modules/pipe-filter-ii:
19310         (Files): Add lib/pipe-filter-aux.c.
19311         (Depends-on): Add extern-inline.
19312         (configure.ac): Do not require AC_C_INLINE.
19313         (lib_SOURCES): Add pipe-filter-aux.c.
19315         fdutimensat: omit unnecessary AC_C_INLINE
19316         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
19318         fchmodat, fchownat, fstatat: use extern-inline
19319         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
19320         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
19321         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
19322         New macros.
19323         * lib/openat.h:
19324         Replace all uses of 'static inline' with them.
19325         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19326         * modules/fchmodat, modules/fchownat, modules/fstatat:
19327         * modules/openat-h:
19328         (Depends-on):
19329         Add extern-inline.
19330         (configure.ac): Remove AC_C_INLINE.
19332         acl, mbchar, priv-set: use extern-inline
19333         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
19334         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
19335         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
19336         New macros.
19337         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
19338         Replace all uses of 'static inline' with it.
19339         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19340         * m4/acl.m4 (gl_FUNC_ACL):
19341         * m4/mbchar.m4 (gl_MBCHAR):
19342         * m4/priv-set.m4 (gl_PRIV_SET):
19343         Remove AC_C_INLINE, since 'inline' is no longer used directly.
19344         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
19345         Add extern-inline.
19347         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
19348         * m4/sockets.m4 (gl_SOCKETS):
19349         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
19350         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
19351         environments where it's already guaranteed to work, so we needn't
19352         check for it at 'configure'-time.
19354         tls-tests: omit unnecessary 'inline'
19355         * tests/test-tls.c (perhaps_yield): No longer inline.
19356         Simplicity and portability trump efficiency in test cases.
19358         utimens-tests: avoid unnecessary 'inline'
19359         * modules/fdutimensat-tests (configure.ac):
19360         * modules/futimens-tests (configure.ac):
19361         * modules/utimens-tests (configure.ac):
19362         * modules/utimensat-tests (configure.ac):
19363         Remove AC_C_INLINE.
19364         * tests/test-utimens-common.h (ctime_compare):
19365         No longer inline.  Simplicity and portability trump efficiency here.
19367         misc: don't limit commentary to inline functions
19368         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
19369         * lib/xalloc-oversized.h, lib/xsize.h:
19370         Contrast macros to functions in general, not just to inline functions,
19371         when the commentary does not apply only to inline functions.
19373 2012-09-20  Jim Meyering  <meyering@redhat.com>
19375         non-recursive-gnulib-prefix-hack: new module
19376         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
19377         the file that originated in Bison.
19378         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
19379         largely copied from a snippet that resided in bison's configure.ac.
19380         * modules/non-recursive-gnulib-prefix-hack: New file.
19381         * MODULES.html.sh (Support for maintaining and releasing projects):
19382         Add it.
19384 2012-09-18  Jim Meyering  <meyering@redhat.com>
19386         maint.mk: generalize _gl_tight_scope for non-recursive make
19387         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
19388         that *.h would describe additional .h files in the directory
19389         specified by $(_gl_TS_dir).  I.e., add this...
19390         (_gl_TS_other_headers): New variable.
19392         maint.mk: exempt trailing blanks found in "binary" files
19393         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
19394         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
19395         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
19397 2012-09-17  Jim Meyering  <meyering@redhat.com>
19399         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
19400         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
19401         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
19402         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
19404 2012-09-17  Jim Meyering  <meyering@redhat.com>
19406         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
19407         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
19408         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
19409         It is not in the same category as "exit (0)" or "exit (1)", and
19410         besides, I know of no symbolic name for that 77.  Reported by
19411         Richard W.M. Jones in
19412         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
19414 2012-09-17  Jim Meyering  <meyering@redhat.com>
19416         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
19417         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
19418         all uses of #define, not just those that start in column 1.
19419         Richard W.M. Jones reported a false positive in
19420         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
19422 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
19424         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
19425         * lib/localcharset.c (locale_charset) [DARWIN7]:
19426         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
19427         as these two values are incompatible.  Problem reported by Max Horn.
19428         For more discussion, please see
19429         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
19431         doc: document sticky-EOF issue
19432         * doc/posix-functions/fgetc.texi (fgetc):
19433         * doc/posix-functions/fgets.texi (fgets):
19434         * doc/posix-functions/fread.texi (fread):
19435         * doc/posix-functions/fscanf.texi (fscanf):
19436         * doc/posix-functions/getc.texi (getc):
19437         * doc/posix-functions/getchar.texi (getchar):
19438         * doc/posix-functions/scanf.texi (scanf):
19439         Mention that glibc and default Solaris do not conform to
19440         C99 and POSIX-2001 or later, with respect to how getchar
19441         etc. behave when feof reports nonzero.
19443 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
19445         poll: fix poll(0, NULL, msec)
19446         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
19447         but nfd is 0.  In that case poll should behave like select.
19449 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
19450             Paolo Bonzini  <bonzini@gnu.org>
19452         poll: fix for systems that can't recv() on a non-socket
19453         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
19454         is readable.  In this case POLLHUP will not be supported.
19455         * doc/posix-functions/poll.texi: Document this.
19457 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
19459         poll/select: document portability problems not fixed by Gnulib.
19460         * doc/posix-functions/poll.texi: poll does not work well on
19461         pipes under Windows.  It has the same limitations as select on
19462         BeOS.
19463         * doc/posix-functions/select.texi: select does not work well
19464         on pipes under Windows.
19466 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
19468         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
19469         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
19470         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
19471         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
19473 2012-09-06  Eric Blake  <eblake@redhat.com>
19475         net_if: give more details about the bug being fixed
19476         * doc/posix-headers/net_if.texi: Add clarification.
19478 2012-09-05  Eric Blake  <eblake@redhat.com>
19480         net_if: new module
19481         * modules/net_if: New module, borrowing ideas from netinet_in.
19482         * m4/net_if_h.m4: New file.
19483         * lib/net_if.in.h: Likewise.
19484         * doc/posix-headers/net_if.texi (net/if.h): Document it.
19485         * MODULES.html.sh (lacking POSIX:2008): Likewise.
19486         * tests/test-net_if.c: Make function checks conditional.
19487         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
19489 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
19491         readutmp: fix non-portable UT_PID use
19492         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
19493         Use `UT_PID (u) > 0' as absolute condition.
19495 2012-09-04  Jim Meyering  <meyering@redhat.com>
19497         fts: reduce two or more trailing spaces to just one, usually
19498         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
19499         or more slashes, trim all but the final one.  But if a name consists
19500         solely of two slashes, don't modify it.  If it consists solely of
19501         three or more slashes, strip all but one.
19503         This is part of the solution to a minor problem with rm:
19504         it would print a bogus ELOOP diagnostic when failing to remove
19505         the slash-decorated name of a symlink-to-directory:
19507             $ mkdir d && ln -s d s && env rm -r s/
19508             rm: cannot remove 's': Too many levels of symbolic links
19510         With the change below and a trivial don't-trim-trailing-slashes
19511         adjustment to remove.c, it does this:
19513             $ env rm -r s/
19514             rm: cannot remove 's/': Not a directory
19516         Improved by: Eric Blake
19518         fts: when there is no risk of overlap, use memcpy, not memmove
19519         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
19521 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
19523         stdbool: be more compatible with mixed C/C++ compiles
19524         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
19525         Define to bool, true, false, respectively, as GCC's builtin
19526         stdbool.h does.  Problem reported by Michael Goffioul in
19527         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
19529 2012-08-28  Jim Meyering  <meyering@redhat.com>
19531         revert last change: it was not needed
19532         * tests/test-vc-list-files-git.sh: There's already a test for
19533         a working git, just below.
19535 2012-08-28  Jim Meyering  <meyering@redhat.com>
19537         tests: test-vc-list-files-git.sh: skip if git is not available
19538         * tests/test-vc-list-files-git.sh: Skip this test when git is
19539         not available.
19541 2012-08-26  Bruno Haible  <bruno@clisp.org>
19543         gnulib-tool: Remove no-op option --no-changelog.
19544         * gnulib-tool (func_usage): Don't mention --no-changelog.
19545         (do_changelog): Remove variable.
19546         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
19548 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19550         doc: remove fdl-1.2.texi
19551         It is no longer used or maintained, and its use of @acronym
19552         is problematic.  See the thread containing
19553         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
19554         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
19555         * doc/old-licenses/fdl-1.2.texi: Remove.
19557         execinfo: port to FreeBSD
19558         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
19559         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
19560         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
19561         * modules/execinfo (Link): Add $(LIB_EXECINFO).
19563 2012-08-23  Jim Meyering  <meyering@redhat.com>
19565         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
19566         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
19567         to placate gcc's -Wold-style-declaration.
19569 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
19571         doc: do not use @acronym
19572         * doc/inet_ntoa.texi (inet_ntoa):
19573         * doc/parse-datetime.texi (Seconds since the Epoch)
19574         (Specifying time zone rules):
19575         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
19576         Don't use @acronym.  Problem reported by John Darlington in
19577         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
19579 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
19581         stdnoreturn: port to newer GCCs
19582         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
19583         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
19584         Problem reported by Jim Meyering in
19585         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
19586         Also, rename the 'test' function to a void a clash with the
19587         already-supplied 'main' function; this fixes a bug that incorrectly
19588         rejected GCC 4.7.1's <stdnoreturn.h>.
19589         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
19590         Document GCC problem.
19592 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
19594         pipe-filter: fix comment typo
19595         * lib/pipe-filter.h: Mention correct function.
19597 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
19599         execinfo: new module
19600         This is for Emacs.  Currently, it provides a no-effect stub
19601         on all platforms where it does not already work.
19602         It already works on glibc-based systems, and on Solaris 11.
19603         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
19604         New files.
19605         * doc/glibc-headers/execinfo.texi (execinfo.h):
19606         * MODULES.html.sh (Misc): Document it.
19608 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
19610         extern-inline: support old GCC 'inline'
19611         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
19612         if available.  This applies to GCC versions 2.7 through 4.2, or
19613         when newer GCC is using -fgnu89-inline.  The goal is to address
19614         some of the performance issues mentioned by Bruno Haible in
19615         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
19617 2012-08-20  Eric Blake  <eblake@redhat.com>
19619         maint.mk: avoid redundant file name in message
19620         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
19621         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
19622         (sc_makefile_path_separator_check): Remove bogus $(ME).
19624 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
19626         timer-time: fix link order when static linking on glibc
19627         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
19628         _after_ -lrt so that it's significant.
19630 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
19632         timespec: omit unnecessary AC_C_INLINE
19633         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
19635         stat-time: omit unnecessary AC_C_INLINE
19636         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
19637         Do not require AC_C_INLINE.
19639         ignore-value: omit unnecessary AC_C_INLINE
19640         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
19642         sys_select: avoid 'static inline'
19643         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
19645         mktime: avoid 'static inline'
19646         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
19647         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
19649 2012-08-19  Bruno Haible  <bruno@clisp.org>
19651         gnulib-tool: Improve coding style.
19652         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
19653         func_emit_lib_Makefile_am.
19654         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
19656 2012-08-19  Bruno Haible  <bruno@clisp.org>
19658         gnulib-tool: Fix indentation.
19659         * gnulib-tool (func_import): Fix indentation.
19661 2012-08-19  Bruno Haible  <bruno@clisp.org>
19663         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
19664         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
19665         on the list of removed files.
19667 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
19669         test-parse-datetime: avoid glibc leap-second glitch
19670         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
19671         with the 2012 rules.  Problem reported by Bruce Dubbs in
19672         <http://bugs.gnu.org/12206>.
19674 2012-08-14  Bruno Haible  <bruno@clisp.org>
19676         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
19677         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
19678         from argument.
19679         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
19681 2012-08-14  Eric Blake  <eblake@redhat.com>
19683         ldexp: relax license
19684         * modules/ldexp (License): Trivial relax, since the module only
19685         provides a permissively licensed m4 file.
19687 2012-08-13  Bruno Haible  <bruno@clisp.org>
19689         gnulib-tool: Fix persistence of --witness-c-macro option.
19690         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
19691         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
19693 2012-08-11  Eric Blake  <eblake@redhat.com>
19695         count-leading-zeros: use a lookup table on non-gcc compilers
19696         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
19697         alternate implementation, suggested by Jim Meyering.
19699 2012-08-10  Eric Blake  <eblake@redhat.com>
19701         count-leading-zeros: new module
19702         * modules/count-leading-zeros: New module.
19703         * m4/count-leading-zeros.m4: New file.
19704         * lib/count-leading-zeros.h: Likewise.
19705         * modules/count-leading-zeros-tests: New test.
19706         * tests/test-count-leading-zeros.c: New file.
19707         * MODULES.html.sh (Integer arithmetic functions): Document it.
19709 2012-08-07  Simon Josefsson  <simon@josefsson.org>
19710             Jim Meyering  <meyering@redhat.com>
19712         maintainer-makefile: Fix syntax error with dash.
19713         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
19714         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
19716 2012-08-05  Jim Meyering  <meyering@redhat.com>
19718         extern-inline: also ignore -Wmissing-declarations
19719         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
19720         required with gcc-4.8.0-to-be.
19722         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
19723         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
19724         for /error ?([^,]*)/.  This avoids false-positives for strings like
19725         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
19727 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
19729         gnumakefile: better interaction with Automake-NG
19730         * modules/gnumakefile [Makefile.am]: The makefiles generated by
19731         Automake-NG always contain a definition of VPATH, even in non-VPATH
19732         builds (its value being simply '.' in that case).  So, in the
19733         'clean-GNUmakefile' rule, to determine whether running under a
19734         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
19735         '$(VPATH)' expands to the empty string.
19737 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
19739         base64: Use extern C scope in header file, for C++.
19740         * lib/base64.h: Add C++ namespace protection.
19742 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
19744         stat-time, timespec, u64: support naive out-of-dir builds
19745         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
19746         Use '#include "foo.h"', not '#include <foo.h>', when including
19747         one's own interface.  This works better when configuring with
19748         out-of-directory builds, since packages need not add an
19749         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
19751 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
19753         utimens: use extern-inline
19754         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
19755         * lib/utimens.h: Add copyright notice, since this is now large enough
19756         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19757         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
19758         * modules/utimens (Depends-on): Add extern-inline.
19760         u64: use extern-inline
19761         * lib/u64.c: New file.
19762         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19763         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
19764         * modules/u64 (Files): Add lib/u64.c.
19765         (Depends-on): Add extern-inline.
19766         (configure.ac): No need to require AC_C_INLINE, since extern-inline
19767         does that now.
19768         (lib_SOURCES): Add u64.c.
19770         timespec: use extern-inline
19771         * lib/timespec.c: New file.
19772         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19773         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
19774         * modules/timespec (Files): Add lib/timespec.c.
19775         (Depends-on): Add extern-inline.
19776         (lib_SOURCES): Add timespec.c.
19778         stat-time: use extern-inline
19779         * lib/stat-time.c: New file.
19780         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19781         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
19782         * modules/stat-time (Files): Add lib/stat-time.c.
19783         (Depends-on): Add extern-inline.
19784         (lib_SOURCES): Add stat-time.c.
19786         extern-inline: new module
19787         * modules/extern-inline, m4/extern-inline.m4: New files.
19788         This is for better support of 'extern inline' a la ISO C99,
19789         with a portable alternative on compilers that do not support
19790         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
19791         of the Emacs executable, when compiled with debugging disabled,
19792         which is a typical way that Emacs is built while developing.
19794 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
19796         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
19797         * build-aux/do-release-commit-and-tag: Move variable definitions
19798         together.
19799         ($branch): Instead of defaulting to "master", default to the current
19800         branch (as gnu-web-doc-update does).
19801         (help): Display the current values of the option arguments.
19802         * top/maint.mk (release-commit): New.
19803         * top/README-release: Simplify the corresponding step.
19805 2012-07-30  Eric Blake  <eblake@redhat.com>
19807         passfd: fix comment on recvfd
19808         * lib/passfd.c (recvfd): Fix comment.
19809         Reported by Jann Horn <jannhorn@googlemail.com>.
19811 2012-07-30  Jim Meyering  <meyering@redhat.com>
19813         maint.mk: avoid a sub-shell
19814         * top/maint.mk (release-prep): Remove unneeded sub-shell.
19816 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
19818         maint.mk: use silent-rules support from Automake
19819         * top/maint.mk (news-check, vc-diff-check, announcement)
19820         (no-submodule-changes, alpha beta stable, release-prep)
19821         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
19823 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
19825         maint.mk: provide a web-manual-update target
19826         * top/maint.mk: here.
19827         * top/README-release: Use it to simplify the web manual update step.
19829 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
19831         README-release: shorten the circuit to post a news
19832         * top/README-release: Point directly to the news submission form.
19834 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
19836         gnu-web-doc-update: fix --help
19837         * build-aux/gnu-web-doc-update: The information "top level" was written
19838         twice.
19840 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
19842         maint.mk: absolute VPATH issue
19843         * top/maint.mk (release-prep): Help Git find .git/.
19844         From Jim Meyering.
19846 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
19848         gitlog-to-changelog: fix previous change
19849         * build-aux/gitlog-to-changelog: Fix condition.
19850         Add missing ";".
19852 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
19854         gitlog-to-changelog: don't expect .git to be in $srcdir
19855         Reported by Bruno Haible.
19856         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
19857         * build-aux/gitlog-to-changelog (&git_dir_option): New.
19858         Use it.
19860 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
19862         maint.mk: absolute VPATH build fix
19863         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
19864         $(srcdir) is not a parent of $(builddir).
19866 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
19868         clean-temp: Fix memory leak.
19869         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
19870         'files' members of tmpdir.
19872 2012-07-27  Jim Meyering  <meyering@redhat.com>
19874         maint.mk: new rule: refresh-gnulib-patches
19875         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
19876         Use this rule to refresh them.
19877         * top/maint.mk (refresh-gnulib-patches): New rule.
19879 2012-07-24  Bruno Haible  <bruno@clisp.org>
19881         gnulib-tool: Fix handling of inctests variable.
19882         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
19883         Reported by Nick Bowler <nbowler@elliptictech.com>.
19885 2012-07-22  Bruno Haible  <bruno@clisp.org>
19887         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
19888         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
19889         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
19890         Remove exemption for getpass.h.
19891         Suggested by Eric Blake.
19893 2012-07-20  Eric Blake  <eblake@redhat.com>
19895         verify: document conflict with -Wnested-externs
19896         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
19898         maint.mk: forbid exit(-1)
19899         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
19901 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
19903         fsusage: port back to Solaris
19904         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
19905         error (fsd not declared) on Solaris 10.  Reported privately by
19906         Andrew Borodin.
19908 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
19910         gnu-web-doc-update: fix error messages
19911         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
19913         gnu-web-doc-update: check the requirements.
19914         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
19915         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
19916         * build-aux/bootstrap (find_tool): Comment change.
19918 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
19920         maint.mk: minor simplication.
19921         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
19922         for default values.
19924 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
19926         gitlog-to-changelog: VPATH build issues
19927         If builddir is not a subdirectory of srcdir, running git from it will
19928         fail.
19929         * build-aux/gitlog-to-changelog (--srcdir): New option.
19931 2012-07-15  Bruno Haible  <bruno@clisp.org>
19933         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
19934         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
19935         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
19936         Remove exemption for fpending.h.
19937         Suggested by Eric Blake.
19939 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
19941         pthread_sigmask: fix bug on FreeBSD 9
19942         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
19943         Include string.h.
19944         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
19945         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
19946         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
19947         but pthread_sigmask (1729, NULL, NULL) returns zero.
19948         See <http://bugs.gnu.org/11884>.
19949         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
19950         by inspecting whether the main call changed the old mask.
19952 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
19954         README-release: make it more legible
19955         * top/README-release: Improve typography slightly.
19957 2012-07-15  Jim Meyering  <meyering@redhat.com>
19959         maint: require that each sc_... command start with "@"
19960         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
19961         "make sc_maint" helps us avoid this nit.
19963 2012-07-15  Jim Meyering  <meyering@redhat.com>
19965         maint.mk: add leading "@" to quiet new "make syntax-check" rule
19966         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
19968 2012-07-13  Eric Blake  <eblake@redhat.com>
19970         maint.mk: new syntax check for HAVE_DECL checks
19971         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
19972         * cfg.mk
19973         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
19974         Exempt some false positives.
19975         Based on a report by Karel Zak.
19977         argp: make HAVE_DECL usage consistent
19978         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
19979         macros, not whether they are defined.
19980         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
19981         convention with other declaration checks.
19982         Reported by Karel Zak, with suggestions from Paul Eggert.
19984         stat-time: relax license to LGPLv2+
19985         * modules/stat-time (License): Relax, with consent of all authors.
19987         strndup: fix m4 usage error
19988         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
19989         defined, to either 0 or 1.
19990         Reported by Karel Zak.
19992 2012-07-11  Jim Meyering  <meyering@redhat.com>
19994         maint: enable the sc_avoid_if_before_free syntax-check rule
19995         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
19996         (if_before_free_offenders_): Define.
19997         (if_before_free_basename_re_): Define.
19998         Exempt current files with useless if-before-free.
20000 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
20002         gettext: do not assume '#define ... defined ...' behavior
20003         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
20004         Do not use '#define FOO ... defined BAR ...', as the C standard says
20005         it's not portable to expect that this works after macro expansion.
20006         Problem reported for gzip by Steven M. Schweda in
20007         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
20009 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
20011         getloadavg: clean out old Emacs and Autoconf cruft
20012         See Glenn Morris in <http://bugs.gnu.org/11905>.
20013         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
20014         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
20015         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
20016         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
20018 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
20020         bootstrap: let warn be like tests/init.sh's warn_
20021         Reported by Jim Meyering.
20022         * build-aux/bootstrap (warn): Remove, replaced by...
20023         (warnf_, warn_): these.
20024         Adjust callers.
20025         Shorten messages that no longer fit in 80 columns.
20027 2012-07-09  Bruno Haible  <bruno@clisp.org>
20029         getopt: Simplify after Emacs changed.
20030         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
20031         (gl_GETOPT_IFELSE): Remove macro.
20033 2012-07-09  Jim Meyering  <meyering@redhat.com>
20035         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
20036         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
20038         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
20039         Bugs in both of those conspired to make the
20040         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
20041         _sc_search_regexp's handling of non-empty $in_files would filter
20042         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
20043         choice of in_files value meant there would be no match in most
20044         projects, due to the presence of two or more Makefile.in files.
20045         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
20046         Fix a bug in how a non-empty $$in_files was processed:
20047         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
20048         in spite of the name, it's a regexp, not a list of file names.
20050 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
20052         getloadavg, getopt: fix commentary re configure.in
20053         Autoconf is deprecating the name 'configure.in', so change it to
20054         to the new name 'configure.ac' in a couple of places.
20055         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
20056         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
20057         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
20058         Emacs has renamed it to configure.ac, and it no longer refers
20059         to these macros anyway.
20061         timespec: mark functions with const attributes
20062         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
20063         Mark with _GL_ATTRIBUTE_CONST.
20065 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
20067         canonicalize[-lgpl]: handle "guessing" values when cross-building
20068         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
20069         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
20070         matches "*yes" instead of just "yes".  Regression introduced in commit
20071         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
20073 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
20074             Bruno Haible  <bruno@clisp.org>
20076         canonicalize: make the right guess when cross-compiling to GNU
20077         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
20078         determine whether cross-compiling to glibc systems, so as to
20079         include GNU/Hurd.
20081 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
20083         timespec-sub: avoid duplicate include
20084         * lib/timespec-sub.c: Do not include <config.h> twice.
20085         Reported by Juanma Barranquero.
20087 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
20089         bootstrap: use a more consistent error reporting scheme
20090         * build-aux/bootstrap (warn, die): New.
20091         Use them.
20093 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
20095         sys_time: allow too-wide tv_sec
20096         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
20097         timeval even if tv_sec is wider than time_t.  This allows
20098         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
20099         as without this patch gnulib replaces struct timeval
20100         and OpenBSD futimes therefore has a type mismatch.
20101         * doc/posix-headers/sys_time.texi: Mention this.
20103         pthread: check for both pthread_create and pthread_join
20104         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
20105         alter the check so that it tests for both pthread_create and
20106         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
20107         Suggested by Bruno Haible and Richard Yao in
20108         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
20110         parse-datetime: doc tuneup
20111         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
20112         spacing issues.
20114 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
20116         do-release-commit-and-tag: fix the previous commit
20117         * build-aux/do-release-commit-and-tag: Actually the test was right,
20118         but the comment and the error message were misleading.
20119         Fix comment, and improve error message.
20120         Perform check first, so that NEWS is not modified uselessly.
20122         do-release-commit-and-tag: fix typo
20123         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
20124         _not_ start with a stub.
20126 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
20128         pthread: check for pthread_create, not pthread_join
20129         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
20130         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
20131         pthread_join in libc.  I hope this removes the need for all the
20132         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
20133         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
20135 2012-07-04  Jim Meyering  <meyering@redhat.com>
20137         parse-datetime: fix failure to diagnose invalid input
20138         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
20139         rather than diagnosing the invalid input.  Now it reports this:
20140         date: invalid date '\260'
20141         * lib/parse-datetime.y (to_uchar): Define.
20142         (yylex): Don't sign-extend "other" bytes.
20143         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
20144         Thanks to Bruno Haible for the patch to this file.
20145         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
20146         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
20148 2012-07-03  Jim Meyering  <meyering@redhat.com>
20150         bootstrap: do not require now-removed build-aux/missing
20151         Now that build-aux/missing is, er, missing, bootstrap would
20152         silently fail.
20153         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
20154         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
20155         no longer part of gnulib.
20156         Diagnose the failure.
20158 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
20160         alloca: add support for HP NonStop TNS/E native
20161         * lib/alloca.in.h (alloca): Support the new host.
20162         From a suggestion by Joachim Schmitz in
20163         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
20165 2012-07-02  Pádraig Brady  <P@draigBrady.com>
20167         fsusage: remove code not needed on non GNU/Linux systems.
20169         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
20170         Don't include headers no longer needed in this case.
20171         * lib/fsusage.c [STAT_STATVFS &&
20172         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
20173         STAT_STATFS2_FRSIZE to exclude code not used in this case.
20175 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
20177         fsusage: include files needed for glibc 2.6 fallback
20178         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
20179         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
20180         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
20181         Problem reported by Ludovic Courtès in
20182         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
20184         fsusage: avoid needless check on GNU/Linux
20185         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
20186         on GNU/Linux systems, since it can't possibly work.
20188 2012-07-01  Bruno Haible  <bruno@clisp.org>
20190         log: Fix an autoconf >= 2.64 warning.
20191         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
20192         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
20194 2012-06-28  Bruno Haible  <bruno@clisp.org>
20196         log10f: Fix possible configuration problem.
20197         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
20198         $LOGF_LIBM.
20199         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
20201 2012-06-28  Bruno Haible  <bruno@clisp.org>
20203         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
20204         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
20205         not gl_cv_func_unlink_works.
20206         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
20208 2012-06-27  Eric Blake  <eblake@redhat.com>
20210         config: drop scripts that automake says are not independent
20211         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
20212         * build-aux/elisp-comp: Delete.
20213         * build-aux/missing: Likewise.
20214         * build-aux/ylwrap: Likewise.
20215         * modules/elisp-comp: Likewise.
20216         * MODULES.html.sh: Drop mention of elisp-comp.
20217         * NEWS: Mention this.
20219 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
20221         root-uid: new module
20222         This is for portability to Tandem's NonStop Kernel.
20223         * lib/root-uid.h, modules/root-uid: New files.
20224         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
20225         * lib/write-any-file.c, tests/test-sethostname2.c:
20226         Include "root-uid.h".
20227         * lib/euidaccess.c (euidaccess):
20228         * lib/pt_chown.c (main):
20229         * lib/unlinkdir.c (cannot_unlink_dir):
20230         * lib/write-any-file.c (can_write_any_file):
20231         * m4/mknod.m4 (gl_FUNC_MKNOD):
20232         * tests/test-sethostname2.c (geteuid, main):
20233         Don't assume ROOT_UID == 0.
20234         * modules/euidaccess (Depends-on):
20235         * modules/pt_chown (Depends-on):
20236         * modules/sethostname-tests (Depends-on):
20237         * modules/unlinkdir (Depends-on):
20238         * modules/write-any-file (Depends-on):
20239         Add root-uid.
20241         regex: use locale-independent comparison for codeset name
20242         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
20243         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
20244         for codeset name.
20245         * lib/regex_internal.h: Do not include <strings.h>, since we
20246         no longer use strcasecmp.
20247         * modules/regex (Depends-on): Remove strcase.
20249 2012-06-23  Bruno Haible  <bruno@clisp.org>
20251         getopt-posix: No longer guarantee that option processing is resettable.
20252         * doc/posix-functions/getopt.texi: Drop description of problem with
20253         internal state. Fix info about mingw and msvc9.
20254         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
20255         option processing by getopt(). Run three test programs instead of one.
20256         Simplify cross-compilation guess.
20257         * NEWS: Mention the change.
20258         Reported by Rich Felker <dalias@aerifal.cx>.
20260 2012-06-26  Bruno Haible  <bruno@clisp.org>
20262         argp, regex: Ensure strcasecmp gets declared.
20263         * lib/argp-help.c: Include <strings.h>.
20264         * lib/regex_internal.h: Likewise.
20265         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
20267 2012-06-24  Bruno Haible  <bruno@clisp.org>
20269         ptsname_r: Make it consistent with ptsname on AIX.
20270         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
20271         implementation as for OSF/1.
20272         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
20273         a pty master.
20275         ptsname_r: Make it consistent with ptsname on OSF/1.
20276         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
20277         OSF/1.
20279 2012-06-24  Bruno Haible  <bruno@clisp.org>
20281         ttyname_r: Fix result on OSF/1, Solaris.
20282         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
20284 2012-06-24  Bruno Haible  <bruno@clisp.org>
20286         ptsname_r: Add support for Solaris.
20287         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
20288         Solaris.
20290         ptsname_r: Fix test failure on native Windows.
20291         * modules/ptsname_r (Depends-on): Add isatty.
20293         ptsname_r: Fix test failures on IRIX, Solaris.
20294         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
20295         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
20296         accordingly.
20297         * lib/ptsname_r.c: Include <fcntl.h>.
20298         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
20299         set errno if fd is invalid.
20300         * tests/test-isatty.c (main): Update comments.
20302 2012-06-24  Bruno Haible  <bruno@clisp.org>
20304         ptsname test: Extend test.
20305         * tests/test-ptsname.c: Include <errno.h>.
20306         (main): Test behaviour with invalid file descriptor.
20308 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
20310         time: fix obsolete comment
20311         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
20312         reference to HAVE_STRUCT_TIMESPEC in comment.
20314 2012-06-23  Bruno Haible  <bruno@clisp.org>
20316         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
20317         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
20318         does not handle abbreviated long options with equivalent
20319         disambiguations, set gl_replace_getopt to yes.
20320         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
20322 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
20324         time_r: fix typo that always overrode localtime_r decl
20325         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
20326         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
20327         not in a standard include.
20329 2012-06-22  Bruno Haible  <bruno@clisp.org>
20331         Write "Mac OS X" instead of "MacOS X".
20332         * README: Write "Mac OS X" instead of "MacOS X".
20333         * build-aux/bootstrap: Likewise.
20334         * build-aux/install-reloc: Likewise.
20335         * lib/acl-internal.h: Likewise.
20336         * lib/acl_entries.c: Likewise.
20337         * lib/argp-ba.c: Likewise.
20338         * lib/argp-pv.c: Likewise.
20339         * lib/config.charset: Likewise.
20340         * lib/copy-acl.c: Likewise.
20341         * lib/csharpexec.c: Likewise.
20342         * lib/euidaccess.c: Likewise.
20343         * lib/fbufmode.c: Likewise.
20344         * lib/fflush.c: Likewise.
20345         * lib/file-has-acl.c: Likewise.
20346         * lib/filemode.h: Likewise.
20347         * lib/fpurge.c: Likewise.
20348         * lib/freadable.c: Likewise.
20349         * lib/freadahead.c: Likewise.
20350         * lib/freading.c: Likewise.
20351         * lib/freadptr.c: Likewise.
20352         * lib/freadseek.c: Likewise.
20353         * lib/fseeko.c: Likewise.
20354         * lib/fseterr.c: Likewise.
20355         * lib/fsusage.c: Likewise.
20356         * lib/fwritable.c: Likewise.
20357         * lib/fwriting.c: Likewise.
20358         * lib/get-rusage-as.c: Likewise.
20359         * lib/get-rusage-data.c: Likewise.
20360         * lib/getdomainname.c: Likewise.
20361         * lib/idpriv-drop.c: Likewise.
20362         * lib/idpriv-droptemp.c: Likewise.
20363         * lib/localcharset.c: Likewise.
20364         * lib/locale.in.h: Likewise.
20365         * lib/localename.c: Likewise.
20366         * lib/mbsrtowcs-state.c: Likewise.
20367         * lib/nproc.c: Likewise.
20368         * lib/passfd.c: Likewise.
20369         * lib/posix_openpt.c: Likewise.
20370         * lib/printf-parse.c: Likewise.
20371         * lib/progreloc.c: Likewise.
20372         * lib/safe-read.h: Likewise.
20373         * lib/safe-write.h: Likewise.
20374         * lib/sched.in.h: Likewise.
20375         * lib/set-mode-acl.c: Likewise.
20376         * lib/signal.in.h: Likewise.
20377         * lib/stdint.in.h: Likewise.
20378         * lib/stdio-impl.h: Likewise.
20379         * lib/stdlib.in.h: Likewise.
20380         * lib/strtod.c: Likewise.
20381         * lib/sys_select.in.h: Likewise.
20382         * lib/tcgetsid.c: Likewise.
20383         * lib/unistd.in.h: Likewise.
20384         * lib/unlockpt.c: Likewise.
20385         * lib/vasnprintf.c: Likewise.
20386         * lib/vma-iter.c: Likewise.
20387         * lib/wcsrtombs-state.c: Likewise.
20388         * m4/acl.m4: Likewise.
20389         * m4/acosl.m4: Likewise.
20390         * m4/asinl.m4: Likewise.
20391         * m4/atanl.m4: Likewise.
20392         * m4/c-stack.m4: Likewise.
20393         * m4/cosl.m4: Likewise.
20394         * m4/expl.m4: Likewise.
20395         * m4/extensions.m4: Likewise.
20396         * m4/fdatasync.m4: Likewise.
20397         * m4/fmal.m4: Likewise.
20398         * m4/frexp.m4: Likewise.
20399         * m4/frexpf.m4: Likewise.
20400         * m4/frexpl.m4: Likewise.
20401         * m4/fsusage.m4: Likewise.
20402         * m4/getdomainname.m4: Likewise.
20403         * m4/getloadavg.m4: Likewise.
20404         * m4/getopt.m4: Likewise.
20405         * m4/gettext.m4: Likewise.
20406         * m4/gnulib-common.m4: Likewise.
20407         * m4/intdiv0.m4: Likewise.
20408         * m4/intlmacosx.m4: Likewise.
20409         * m4/largefile.m4: Likewise.
20410         * m4/ldexpl.m4: Likewise.
20411         * m4/link-follow.m4: Likewise.
20412         * m4/locale-ar.m4: Likewise.
20413         * m4/locale-fr.m4: Likewise.
20414         * m4/locale-ja.m4: Likewise.
20415         * m4/locale-tr.m4: Likewise.
20416         * m4/locale-zh.m4: Likewise.
20417         * m4/locale_h.m4: Likewise.
20418         * m4/lock.m4: Likewise.
20419         * m4/logl.m4: Likewise.
20420         * m4/mathfunc.m4: Likewise.
20421         * m4/minus-zero.m4: Likewise.
20422         * m4/mktime.m4: Likewise.
20423         * m4/mmap-anon.m4: Likewise.
20424         * m4/multiarch.m4: Likewise.
20425         * m4/nanosleep.m4: Likewise.
20426         * m4/nocrash.m4: Likewise.
20427         * m4/poll.m4: Likewise.
20428         * m4/printf-frexpl.m4: Likewise.
20429         * m4/printf.m4: Likewise.
20430         * m4/signbit.m4: Likewise.
20431         * m4/sinl.m4: Likewise.
20432         * m4/sqrtl.m4: Likewise.
20433         * m4/strerror_r.m4: Likewise.
20434         * m4/tanl.m4: Likewise.
20435         * m4/threadlib.m4: Likewise.
20436         * m4/ttyname_r.m4: Likewise.
20437         * m4/unlink.m4: Likewise.
20438         * m4/visibility.m4: Likewise.
20439         * m4/wcwidth.m4: Likewise.
20440         * tests/minus-zero.h: Likewise.
20441         * tests/test-alloca-opt.c: Likewise.
20442         * tests/test-copy-acl.sh: Likewise.
20443         * tests/test-copy-file.sh: Likewise.
20444         * tests/test-fdatasync.c: Likewise.
20445         * tests/test-file-has-acl.sh: Likewise.
20446         * tests/test-flock.c: Likewise.
20447         * tests/test-fsync.c: Likewise.
20448         * tests/test-localename.c: Likewise.
20449         * tests/test-malloca.c: Likewise.
20450         * tests/test-nonblocking-pipe.h: Likewise.
20451         * tests/test-nonblocking-socket.h: Likewise.
20452         * tests/test-openpty.c: Likewise.
20453         * tests/test-posix_openpt.c: Likewise.
20454         * tests/test-ptsname.c: Likewise.
20455         * tests/test-ptsname_r.c: Likewise.
20456         * tests/test-sameacls.c: Likewise.
20457         * tests/test-select.h: Likewise.
20458         * tests/test-set-mode-acl.sh: Likewise.
20459         * tests/test-snprintf-posix.h: Likewise.
20460         * tests/test-sprintf-posix.h: Likewise.
20461         * tests/test-strtod.c: Likewise.
20462         * tests/test-time.c: Likewise.
20463         * tests/test-vasnprintf-posix.c: Likewise.
20464         * tests/test-vasprintf-posix.c: Likewise.
20465         * doc/acl-resources.txt: Likewise.
20466         * doc/**/*.texi: Likewise.
20467         Reported by Max Horn <max@quendi.de>.
20469 2012-06-22  Bruno Haible  <bruno@clisp.org>
20471         grantpt: Relax requirement regarding invalid file descriptors.
20472         * lib/grantpt.c: Don't include <fcntl.h>.
20473         (grantpt): Don't verify the validity of the file descriptor.
20474         * modules/grantpt (Depends-on): Remove fcntl-h.
20475         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
20476         file descriptors.
20477         * doc/posix-functions/grantpt.texi: Document more platforms on which
20478         grantpt succeeds for invalid file descriptors.
20479         Reported by Rich Felker <dalias@aerifal.cx>.
20481 2012-06-22  Bruno Haible  <bruno@clisp.org>
20483         fbufmode test: Don't test unportable behaviour.
20484         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
20485         (main): Invoke it three times.
20486         Reported by Szabolcs Nagy <nsz@port70.net>
20487         and Rich Felker <dalias@aerifal.cx>.
20489 2012-06-21  Bruno Haible  <bruno@clisp.org>
20491         gnulib-tool: Refactor inctests variable.
20492         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
20493         (func_modules_transitive_closure,
20494         func_modules_transitive_closure_separately,
20495         func_import, func_create_testdir): Update.
20497         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
20498         * gnulib-tool: Accept option --without-tests.
20499         (func_usage): Document --without-tests option. Rearrange.
20500         (inctests): Normalize according to the mode.
20501         * NEWS: Mention the change.
20502         Suggested by Simon Josefsson.
20504 2012-06-21  Bruce Korb  <bkorb@gnu.org>
20506         parse-duration test: Avoid spurious output.
20507         * tests/test-parse-duration.sh: Reindent with leading tabs.
20509 2012-06-21  Jim Meyering  <meyering@redhat.com>
20511         maint: disable the strncpy prohibition
20512         * cfg.mk: Do not prohibit strncpy here.
20514 2012-06-21  Bruno Haible  <bruno@clisp.org>
20516         nonblocking: Avoid compilation error on mingw64.
20517         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
20518         fscanf.
20519         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
20520         * modules/vfscanf (configure.ac): Likewise.
20521         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
20522         definition only if stdio.h has prepared it.
20523         Reported by Daniel P. Berrange <berrange@redhat.com>.
20525 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
20527         gnulib-tool: Use readlink if it is available.
20528         * gnulib-tool (func_readlink): Choose function more appropriately.
20530 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
20532         posixtm-tests: port to buggy compiler
20533         Problem reported by Simon Josefsson in
20534         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
20535         * modules/posixtm-tests (Depends-on): Add stdint.
20536         * tests/test-posixtm.c (struct posixtm_test.t_expected):
20537         Now of type int_least64_t, not int64_t, both because that's
20538         what INT64_C returns and because int_least64_t works even
20539         on 72-bit hosts.
20540         (T): Use INT64_C on constants outside the traditional int range,
20541         to work around compiler bug noted by Simon.
20543         mktime: fix integer overflow in 'configure'-time test
20544         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
20545         after integer overflow.  Problem reported by Rich Felker in
20546         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
20547         Also, don't look for further instances of a bug if we've already
20548         found one instance; this helps 'configure' run faster.
20550 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
20552         tmpfile, clean-temp: Fix invocation of GetVersionEx.
20553         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
20554         GetVersionEx correctly.
20555         * lib/clean-temp.c (supports_delete_on_close): Likewise.
20557 2012-06-20  Bruno Haible  <bruno@clisp.org>
20559         fdopen: Allow implementations that don't reject invalid fd arguments.
20560         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
20561         succeeds.
20562         Reported by Rich Felker <dalias@aerifal.cx>.
20564 2012-06-20  Simon Josefsson  <simon@josefsson.org>
20566         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
20567         bring in LIBINTL.
20569 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
20571         init.sh: do not rely on autoupated PWD
20572         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
20573         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
20574         Although Nelson's bug was not necessarily fixed by this patch,
20575         it seems wise to make the change for safety.
20576         * tests/init.sh (path_prepend_): Do not rely on PWD updating
20577         automagically after 'cd'; this is not reliable on older shells.
20578         (setup_): Fail if we cannot cd to temporary directory.
20580 2012-06-19  Bruno Haible  <bruno@clisp.org>
20582         stat, fstat: Avoid warnings on mingw64.
20583         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
20584         redefining.
20585         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
20586         Reported by Daniel P. Berrange <berrange@redhat.com>.
20588 2012-06-19  Bruno Haible  <bruno@clisp.org>
20590         stdioext: Add support for musl libc.
20592         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
20593         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
20595         * m4/fseterr.m4: New file.
20596         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
20597         function exists.
20598         * modules/fseterr (Files): Add m4/fseterr.m4.
20599         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
20600         __fseterr does not exist.
20601         (Makefile.am): Remove fseterr.c from lib_SOURCES.
20603         * lib/freadable.h: Update comment.
20605         * lib/fwritable.h: Update comment.
20607         * lib/freading.h: Update comment.
20609         * lib/fwriting.h: Update comment.
20611         * m4/freadahead.m4: New file.
20612         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
20613         that function exists.
20614         * modules/freadahead (Files): Add m4/freadahead.m4.
20615         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
20616         __freadahead does not exist.
20617         (Makefile.am): Remove freadahead.c from lib_SOURCES.
20619         * m4/freadptr.m4: New file.
20620         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
20621         function exists.
20622         * modules/freadptr (Files): Add m4/freadptr.m4.
20623         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
20624         __freadptr does not exist.
20625         (Makefile.am): Remove freadptr.c from lib_SOURCES.
20627         * m4/freadseek.m4: New file.
20628         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
20629         exists.
20630         * modules/freadseek (Files): Add m4/freadseek.m4.
20631         (configure.ac): Invoke gl_FUNC_FREADSEEK.
20633         * lib/fpurge.c (fpurge): Update comment.
20635         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
20637 2012-06-19  Bruno Haible  <bruno@clisp.org>
20639         *printf-posix: Put more info into config.log.
20640         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
20641         exit code into config.log.
20643 2012-06-19  Bruno Haible  <bruno@clisp.org>
20645         getopt-gnu: Fix exit code overflow in autoconf test.
20646         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
20647         to keep them below < 128.
20649 2012-06-17  Jim Meyering  <meyering@redhat.com>
20651         maint.mk: fix typo in code to derive GPG key at release time
20652         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
20654 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
20656         regex: avoid warning when pointers are not long
20657         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
20658         and uintptr_t, not long, for portability to hosts where pointers and
20659         long have different sizes.  Issue noted by Daniel P. Berrange in
20660         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
20661         and fix suggested by Bruno Haible in
20662         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
20664 2012-06-17  Bruno Haible  <bruno@clisp.org>
20666         dummy: Relicense into the public domain.
20667         * modules/dummy (License): Set to "public domain".
20668         Suggested by Reuben Thomas.
20670 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
20672         announce-gen: VPATH issues
20673         * build-aux/announce-gen (--srcdir): New option, used to trim the
20674         $srcdir part of the path from $builddir to NEWS.
20675         * top/maint.mk (announcement): Adjust.
20677 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
20679         gnu-web-doc-update: VPATH builds
20680         * build-aux/gnu-web-doc-update (--builddir): New option.
20681         Revamp the handling of options.
20682         Prefer $(...) to `...`.
20683         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
20684         the template, and it is GNU mktemp specific.
20685         Prefer set -e to long series of &&.
20686         Restore the initial git branch, not "master".
20687         Properly initialize submodules (don't rely only on bootstrap).
20688         Do not reconfigure blindly, use config.status.
20689         * top/README-release: Update instructions for gnu-web-doc-update.
20691 2012-06-11  Jim Meyering  <meyering@redhat.com>
20693         maint.mk: revert most of the previous change re "all these"
20694         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
20695         For rationale, see the discussion at
20696         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
20698 2012-06-10  Karl Berry  <karl@gnu.org>
20700         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
20702         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
20704 2012-06-10  Bruce Korb  <bkorb@gnu.org>
20706         parse-duration: Relicense under LGPLv2+.
20707         * modules/parse-duration (License): Change to LGPLv2+.
20709 2012-06-10  Jim Meyering  <meyering@redhat.com>
20711         maint.mk: prohibit common grammar error: "all these"
20712         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
20713         the list of prohibited word sequences.  It should be "all of these".
20714         * lib/tempname.c (__gen_tempname): Fix one of them.
20716 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
20718         do-release-commit-and-tag: support VPATH builds
20719         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
20720         (noteworthy): Defined earlier to factor its value.
20721         (noteworthy_stub): New.
20722         Use it to factor.
20723         (help_version): Split into...
20724         (help, version): these.
20725         Adjust the option processing part.
20726         Support "--option=value" in addition to "--option value".
20727         (builddir): New.
20728         (--builddir): New option.
20729         * top/README-release: Document this.
20730         Reword slightly so that the reader cannot understand that he
20731         has to do these steps before calling do-release-commit-and-tag.
20733 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
20735         readme-release: also require announce-gen and maintainer-makefile
20736         * modules/readme-release (Depends-on): here.
20737         * modules/announce-gen, modules/do-release-commit-and-tag,
20738         modules/gnu-web-doc-update, modules/maintainer-makefile
20739         (Description): Point to readme-release.
20741 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
20743         maint.mk: fix VPATH issues.
20744         * top/maint.mk (news-check): GNU Make understand $< very well.
20745         (release-prep): NEWS is in $(srcdir).
20747 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
20749         readme-release: require the promoted modules.
20750         * modules/readme-release (Depends-on): Add
20751         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
20752         in this text.
20754 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
20755             Bruno Haible  <bruno@clisp.org>
20757         error, strerror-override: Support mingw64 from Fedora 17.
20758         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
20759         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
20760         EINPROGRESS.
20761         * lib/strerror-override.h (strerror_override): Test it.
20762         * lib/strerror-override.c (strerror_override): Likewise.
20763         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
20765 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
20766             Bruno Haible  <bruno@clisp.org>
20768         error, strerror-override: Support mingw64 from Fedora 17.
20769         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
20770         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
20771         * lib/strerror-override.h (strerror_override): Test it.
20772         * lib/strerror-override.c (strerror_override): Likewise.
20774 2012-06-03  Bruno Haible  <bruno@clisp.org>
20776         error, strerror-override: Support new errno values from POSIX:2008.
20777         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
20778         ENOTRECOVERABLE.
20779         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
20780         platforms.
20781         * lib/strerror-override.c (strerror_override): Conditionalize the
20782         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
20783         * lib/strerror-override.h (strerror_override): Declare also if
20784         GNULIB_defined_EOWNERDEAD is defined.
20785         * tests/test-errno.c (e130, e131): New variables.
20786         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
20787         ENOTRECOVERABLE.
20788         Reported by Paolo Bonzini.
20790 2012-05-31  Jim Meyering  <meyering@redhat.com>
20792         savewd: add missing dependency on sys_wait module
20793         * modules/savewd (Depends-on): Add sys_wait, needed at least
20794         for MSVC.  Report and suggested change by Michael Goffioul.
20796 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
20798         system-quote-tests: port to CentOS 5
20799         Problem reported by Tom G. Christensen in
20800         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
20801         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
20803 2012-05-29  Jim Meyering  <meyering@redhat.com>
20805         maint: fix typos in comments and ChangeLog
20806         Culprits identified and fixed mostly automatically using these commands:
20807         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
20808         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
20809         using http://github.com/lyda/misspell-check
20810         * ChangeLog: Fix typos.
20811         * doc/solaris-versions: Likewise.
20812         * lib/regexec.c (re_search_stub): Likewise.
20813         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
20815 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
20817         manywarnings: remove duplicate -Wmultichar entry
20818         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
20819         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
20820         so keep the entry marked as documented.
20822 2012-05-27  Karl Berry  <karl@gnu.org>
20824         * config/srclist.txt (mktime.c): remove last libc sync,
20825         perhaps just temporarily.
20827 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
20829         regex: don't assume uint64_t or uint32_t
20830         * lib/regcomp.c (init_word_char): Don't assume that the types
20831         uint64_t and uint32_t exist.  The C standard doesn't guarantee
20832         them, and on some 32-bit compilers there is no uint64_t.
20833         Problem reported by Gianluigi Tiesi in
20834         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
20836 2012-05-25  Jim Meyering  <meyering@redhat.com>
20838         maint.mk: add strncpy-prohibiting syntax-check rule
20839         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
20841 2012-05-24  Jim Meyering  <meyering@redhat.com>
20843         maint.mk: compute $(gpg_key_ID) more portably
20844         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
20845         That use of sed is not portable to some fringe systems.
20846         Reported by Paul Eggert in
20847         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
20849 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
20851         mktime: sync from glibc
20852         * config/srclist.txt: Uncomment mktime.c.
20853         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
20854         First, indent with tabs, since glibc uses tabs and doesn't want to
20855         change and we'd rather be identical to glibc.  Also, two small
20856         coding changes:
20857         (isdst_differ): Use &&, not &, as && is the usual style.
20858         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
20859         for clarity.
20861 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
20863         announce-gen: du -h is more portable than du --human
20864         * build-aux/announce-gen (sizes): Invoke du with -h instead
20865         of --human.  Accept leading white space in its output.
20867 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
20869         announce-gen: Improve diagnostics.
20870         * build-aux/announce-gen: When parsing command line options,
20871         prefer "announce-gen: option --release-type requires an argument"
20872         to "Option release-type requires an argument".
20874 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
20876         maint.mk: gpg_key_ID: use sed more portably
20877         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
20878         the closing brace.
20879         (refresh-po): Fuse two sed invocations into one.
20881 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
20883         gitlog-to-changelog: support the log message format used in Bison.
20884         * build-aux/gitlog-to-changelog: Support --strip-tab and
20885         --strip-cherry-picked.
20887 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
20889         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
20890         the rest of the current time slice to another thread in the current
20891         process. So if the thread that feeds the file decscriptor we're
20892         polling is not in the current process, we get busy-waiting.
20893         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
20894         Patch from Theodore Leblond.
20895         * lib/select.c: Split polling out of the loop that sets the output
20896         fd_sets.  Check for zero result and loop if the wait timeout is
20897         infinite.
20899 2012-05-21  Simon Josefsson  <simon@josefsson.org>
20901         select: Fix build error on IRIX 6.5.
20902         * lib/select.c: Include stddef.h for NULL.
20904 2012-05-21  Simon Josefsson  <simon@josefsson.org>
20906         gc: fix libgcrypt detection on older machines.
20907         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
20908         copyright years because the file has been distributed every year
20909         since it was created.
20911 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
20913         crypto: fix bug in large buffer handling
20914         Problem reported by Serge Belyshev for glibc in
20915         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
20916         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
20917         * lib/md4.c (md4_process_block):
20918         * lib/md5.c (md5_process_block):
20919         * lib/sha1.c (sha1_process_block):
20920         * lib/sha256.c (sha256_process_block):
20921         Don't assume the buffer length is less than 2**32.
20922         * lib/sha512.c (sha512_process_block): Likewise.
20923         Here, the bug is present only in the rare case where the host does
20924         not support uint64_t or where size_t is wider than 64 bits.
20925         Use u64size to work around the problems.
20926         * lib/u64.h (u64size): New macro.
20928 2012-05-15  Pádraig Brady  <P@draigBrady.com>
20930         fsusage: fix block size returned on older Linux 2.6
20932         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
20933         which is available since Linux 2.6.
20934         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
20935         when the member is available so it can be used as a fallback.
20936         * doc/posix-functions/statvfs.texi: Mention the hang issue
20937         on Linux < 2.6.36.
20939 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
20941         bootstrap: suppress stderr chatter
20942         * build-aux/bootstrap (insert_sorted_if_absent, main program):
20943         Omit unnecessary chatter to stderr.  The main program chatter
20944         was there only inadvertantly.
20946         bootstrap: .gitignore files created by autopoint, libtool
20947         I ran into this problem when bootstrapping the latest diffutils.
20948         After './bootstrap', 'git status' reported lots of untracked files
20949         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
20950         autopoint and do not need to be version-controlled.
20951         * build-aux/bootstrap: Put into .gitignore the files that
20952         autopoint and libtool create, by keeping track of files that exist
20953         after but not before these programs are run.
20954         (version_controlled_file): Move up.  2nd arg is now full file
20955         name, not base name; this is more convenient.  Put CVS at the end,
20956         as it's now somewhat deprecated.
20958 2012-05-14  Jim Meyering  <meyering@redhat.com>
20960         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
20961         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
20962         definition.  Reported by Bruno Haible.
20964 2012-05-13  Bruno Haible  <bruno@clisp.org>
20965             Paul Eggert  <eggert@cs.ucla.edu>
20967         binary-io: Define set_binary_mode function.
20968         * lib/binary-io.h (set_binary_mode): New function.
20969         (SET_BINARY): Define in terms of set_binary_mode.
20970         * modules/binary-io (configure.ac): Require AC_C_INLINE.
20971         * tests/test-binary-io.c (main): Accept an argument, and test either
20972         set_binary_mode or SET_BINARY depending on the argument.
20973         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
20974         argument. Clean up also t-bin-out0.tmp.
20976 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
20978         bootstrap: take advantage of POSIX shell features
20980         The 'bootstrap' script offered by Gnulib script already uses POSIX
20981         shell features (like $((...)) arithmetic expansions) that are not
20982         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
20983         means that bootstrap must already be run using a proper POSIX shell,
20984         which will thus provide more features, like ${var#pattern} parameter
20985         expansion or inversion of a command exit status with '!'.  We can
20986         thus use these features to improve the clarity and the performances
20987         of the bootstrap script.
20989         Suggested by Eric Blake.
20991         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
20992         of sed/expr plus command substitutions, to save some forks.  While
20993         we are at it, prefer the POSIX $(...) form of command substitution,
20994         rather than the legacy form `...` (since the former is visually
20995         clearer and interacts better with quoting), and prefer the idiom:
20996           "if ! CMD; then ACTION ..."
20997         over the idiom:
20998           "if CMD; then :; else ACTION ..."
20999         which was required by legacy Bourne shells not supporting '!'.
21001 2012-05-12  Bruno Haible  <bruno@clisp.org>
21003         system-quote: Add more comments.
21004         * lib/system-quote.h: Add more comments about wilcards and limitations.
21005         Suggested by Eli Zaretskii <eliz@gnu.org>.
21007         sh-quote, system-quote: Add comments about wildcards.
21008         * lib/sh-quote.h: Clarify what happens with wildcard characters.
21009         * lib/system-quote.h: Likewise.
21010         Reported by Eli Zaretskii <eliz@gnu.org>.
21012 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
21014         fsusage: check for GNU/Linux statvfs problem dynamically
21015         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
21016         Define STAT_STATFS2_BSIZE too, since in this case the code now
21017         checks dynamically whether statvfs is reliable, falling back on
21018         Linux-style statfs otherwise.
21019         (statvfs_works): New function, for dynamically testing statvfs.
21020         (get_fs_usage) [STAT_STATVFS]: Use it.
21021         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
21022         statvfs on GNU/Linux hosts, since it's now done dynamically.
21024 2012-05-10  Bruno Haible  <bruno@clisp.org>
21026         system-quote, execute, spawn-pipe: Escape '?' on Windows.
21027         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
21028         '?' character.
21029         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
21030         * tests/test-system-quote-main.c (check_all): Check also strings like
21031         "??????????".
21032         Reported by Eli Zaretskii <eliz@gnu.org>.
21034 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
21036         _Noreturn: port config.h to gcc -Wundef
21037         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
21038         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
21039         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
21041 2012-05-10  Bruno Haible  <bruno@clisp.org>
21043         system-quote: Refactor.
21044         * lib/system-quote.h (system_quote_copy): Fix comment.
21045         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
21046         New functions, extracted from system_quote_copy.
21047         (system_quote_length, system_quote_copy): Use these functions.
21048         Reported by Paul Eggert.
21050 2012-05-08  Bruno Haible  <bruno@clisp.org>
21052         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
21053         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
21055 2012-05-08  Bruno Haible  <bruno@clisp.org>
21057         Tests for module 'system-quote'.
21058         * modules/system-quote-tests: New file.
21059         * tests/test-system-quote.sh: New file.
21060         * tests/test-system-quote-main.c: New file.
21061         * tests/test-system-quote-child.c: New file.
21063         New module 'system-quote'.
21064         * lib/system-quote.h: New file.
21065         * lib/system-quote.c: New file.
21066         * modules/system-quote: New file.
21068 2012-05-08  Bruno Haible  <bruno@clisp.org>
21070         sh-quote: Make C++ safe and allow multiple inclusion.
21071         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
21072         declarations in extern "C".
21074 2012-05-08  Bruno Haible  <bruno@clisp.org>
21076         sh-quote tests: Make tests stricter.
21077         * tests/test-sh-quote.c (check_one): Check the return value of
21078         shell_quote_copy.
21079         (main): Check a string with a CR character. Check a string that
21080         contains UCHAR_MAX.
21082 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
21084         warnings.m4: provide a means to specify the program to compile.
21085         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
21086         (gl_WARN_ADD): here.
21087         Use gl_AS_VAR_APPEND.
21088         Support an argument to specify the program to compile.
21089         (gl_WARN_ADD): Accept an argument to specify the program to compile.
21090         AC_SUBST the WARN_CFLAGS when they are used.
21091         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
21092         leave this to gl_WARN_ADD.
21094 2012-05-08  Eric Blake  <eblake@redhat.com>
21096         doc: recommendations on gettext version
21097         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
21098         choice between versions.
21099         * DEPENDENCIES (gettext): Cover both approaches.
21101 2012-05-08  Jim Meyering  <meyering@redhat.com>
21103         init.sh: explain why EXEEXT support uses aliases rather than functions
21104         * tests/init.sh: Add a comment.
21106         init.sh: don't let bash aliases interfere with tests
21107         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
21108         is bash.  This avoids problems for those who alias standard commands to
21109         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
21110         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
21112 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
21114         stdint: be more consistent with glibc, SunOS libc
21115         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
21116         (gl_int_fast16_t, gl_uint_fast16_t)
21117         (gl_int_fast32_t, gl_uint_fast32_t)
21118         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
21119         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
21120         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
21121         Be consistent with glibc by default, and with SunOS 5.10 and later
21122         if __sun is defined.  This lessens the likelihood of clashes if
21123         code compiled for older hosts is combined with code compiled for
21124         newer ones.  Problem reported by Niels Möller in
21125         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
21127 2012-05-07  Eric Blake  <eblake@redhat.com>
21129         isatty: relax license to LGPLv2+
21130         * modules/isatty (License): Relax license.
21132 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
21134         stat-size: comment fix
21135         * lib/stat-size.h: Remove obsolete comment about indenting.
21137 2012-05-06  Bruno Haible  <bruno@clisp.org>
21139         Tests for module 'sh-quote'.
21140         * modules/sh-quote-tests: New file.
21141         * tests/test-sh-quote.c: New file.
21143 2012-05-06  Bruno Haible  <bruno@clisp.org>
21145         sh-quote: Improve shell_quote_argv's signature.
21146         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
21147         * lib/sh-quote.c (shell_quote_argv): Likewise.
21149 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
21151         stdint: document issues with int_fast8_t etc.
21152         * doc/posix-headers/stdint.texi (stdint.h): Say that other
21153         stdint.h substitutes may define these types differently.  See
21154         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
21156 2012-05-05  Bruno Haible  <bruno@clisp.org>
21158         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
21159         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
21160         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
21161         or 'guessing no (mishandles large arguments)'.
21163 2012-05-05  Bruno Haible  <bruno@clisp.org>
21165         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
21166         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
21167         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
21168         set gl_cv_func_link_follows_symlink to "guessing no".
21170 2012-05-05  Bruno Haible  <bruno@clisp.org>
21172         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
21173         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
21174         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
21175         "guessing no".
21176         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
21178 2012-05-05  Bruno Haible  <bruno@clisp.org>
21180         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
21181         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
21182         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
21183         set gl_cv_struct_dirent_d_ino to "guessing yes".
21185 2012-05-05  Bruno Haible  <bruno@clisp.org>
21187         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
21188         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
21189         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
21190         "guessing yes".
21192 2012-05-05  Bruno Haible  <bruno@clisp.org>
21194         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
21195         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
21196         compiling to a glibc system, set gl_cv_func_signbit and
21197         gl_cv_func_signbit_gcc to "guessing yes".
21199 2012-05-05  Bruno Haible  <bruno@clisp.org>
21201         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
21202         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
21203         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
21204         to "guessing yes".
21205         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
21206         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
21208 2012-05-05  Bruno Haible  <bruno@clisp.org>
21210         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
21211         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
21212         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
21213         gl_cv_func_realpath_works to "guessing yes".
21215 2012-05-05  Bruno Haible  <bruno@clisp.org>
21217         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
21218         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
21219         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
21221 2012-05-04  Bruno Haible  <bruno@clisp.org>
21223         Tweak last commit.
21224         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
21225         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21227 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
21229         unistd_h: make it easier to avoid sys_types_h
21230         This is useful for Emacs, which has its own method of porting to
21231         Windows, and which therefore does not need the sys_types_h module.
21232         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
21233         code moved here from gl_SYS_TYPES_H.
21234         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
21235         using the code directly.
21236         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
21237         gl_SYS_TYPES_H.
21238         * modules/sys_types (Files):
21239         * modules/unistd (Files): Add m4/off_t.m4.
21241 2012-05-03  Bruno Haible  <bruno@clisp.org>
21243         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
21244         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
21245         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
21246         "guessing yes" or "guessing no".
21247         (gl_FUNC_LSTAT): Update.
21248         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
21249         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
21250         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
21252 2012-05-03  Bruno Haible  <bruno@clisp.org>
21254         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
21255         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
21256         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
21257         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
21258         cross-compiling, choose the first alternative on glibc systems.
21259         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
21261 2012-05-03  Bruno Haible  <bruno@clisp.org>
21263         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
21264         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
21265         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
21267 2012-05-03  Bruno Haible  <bruno@clisp.org>
21269         chown: Avoid "guessing no" when cross-compiling to glibc systems.
21270         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
21272 2012-05-03  Bruno Haible  <bruno@clisp.org>
21274         Avoid "guessing no" guesses when cross-compiling to glibc systems.
21275         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
21276         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
21277         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
21278         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
21279         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
21280         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
21281         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
21282         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
21283         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
21284         compiling to glibc systems, set gl_cv_func_chown_slash_works,
21285         gl_cv_func_chown_ctime_works to "guessing yes".
21286         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
21287         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
21288         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
21289         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
21290         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
21291         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
21292         compiling to glibc systems, set gl_cv_func_open_directory_works to
21293         "guessing yes".
21294         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
21295         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
21296         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
21297         "guessing yes".
21298         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
21299         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
21300         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
21301         compiling to glibc systems, set gl_cv_func_floorf_ieee to
21302         "guessing yes".
21303         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
21304         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
21305         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
21306         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
21307         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
21308         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
21309         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
21310         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
21311         "guessing yes".
21312         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
21313         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
21314         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
21315         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
21316         "guessing yes".
21317         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
21318         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
21319         "guessing yes".
21320         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
21321         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
21322         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
21323         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
21324         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
21325         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
21326         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
21327         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
21328         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
21329         compiling to glibc systems, set gl_cv_func_log10f_ieee to
21330         "guessing yes".
21331         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
21332         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
21333         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
21334         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
21335         "guessing yes".
21336         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
21337         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
21338         "guessing yes".
21339         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
21340         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
21341         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
21342         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
21343         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
21344         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
21345         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
21346         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
21347         compiling to glibc systems, set gl_cv_func_mkfifo_works to
21348         "guessing yes".
21349         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
21350         compiling to glibc systems, set gl_cv_func_mknod_works to
21351         "guessing yes".
21352         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
21353         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
21354         "guessing yes".
21355         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
21356         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
21357         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
21358         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
21359         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
21360         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
21361         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
21362         compiling to glibc systems, set gl_cv_func_svid_putenv to
21363         "guessing yes".
21364         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
21365         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
21366         "guessing yes".
21367         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
21368         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
21369         "guessing yes".
21370         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
21371         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
21372         to "guessing yes".
21373         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
21374         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
21375         to "guessing yes".
21376         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
21377         compiling to glibc systems, set gl_cv_func_rmdir_works to
21378         "guessing yes".
21379         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
21380         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
21381         gl_cv_func_unlink_parent_fails to "guessing yes".
21382         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
21383         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
21384         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
21385         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
21386         gl_cv_func_rename_dest_works to "guessing yes".
21387         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
21388         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
21389         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
21390         compiling to glibc systems, set gl_cv_func_roundf_ieee to
21391         "guessing yes".
21392         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
21393         compiling to glibc systems, set gl_cv_func_roundl_ieee to
21394         "guessing yes".
21395         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
21396         compiling to glibc systems, set gl_cv_func_setenv_works to
21397         "guessing yes".
21398         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
21399         compiling to glibc systems, set gl_cv_func_unsetenv_works to
21400         "guessing yes".
21401         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
21402         compiling to glibc systems, set gl_cv_func_sleep_works to
21403         "guessing yes".
21404         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
21405         compiling to glibc systems, set gl_cv_func_stat_file_slash to
21406         "guessing yes".
21407         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
21408         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
21409         "guessing yes".
21410         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
21411         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
21412         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
21413         compiling to glibc systems, set gl_cv_func_truncf_ieee to
21414         "guessing yes".
21415         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
21416         compiling to glibc systems, set gl_cv_func_truncl_ieee to
21417         "guessing yes".
21418         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
21419         compiling to glibc systems, set gl_cv_func_usleep_works to
21420         "guessing yes".
21421         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
21422         compiling to glibc systems, set gl_cv_func_futimesat_works to
21423         "guessing yes".
21425 2012-05-03  Bruno Haible  <bruno@clisp.org>
21427         Say "guessing yes" or "guessing no" when cross-compiling.
21428         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
21429         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
21430         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
21431         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
21432         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
21433         am_cv_func_working_getline to "guessing yes" or "guessing no".
21434         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
21435         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
21436         (gl_FUNC_MEMMEM): When cross-compiling, set
21437         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
21438         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
21439         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
21440         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
21441         set gl_cv_func_strcasestr_works_always to "guessing yes" or
21442         "guessing no".
21443         (gl_FUNC_STRCASESTR): When cross-compiling, set
21444         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
21445         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
21446         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
21447         (gl_FUNC_STRSTR): When cross-compiling, set
21448         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
21449         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
21450         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
21451         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
21452         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
21454 2012-05-01  Bruno Haible  <bruno@clisp.org>
21456         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
21457         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
21458         * build-aux/reloc-ldflags: Likewise.
21459         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
21461 2012-05-01  Bruno Haible  <bruno@clisp.org>
21463         gnulib-tool: Remove transitional code.
21464         * gnulib-tool: Don't warn about --import with 0 arguments any more.
21465         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21467 2012-05-01  Bruno Haible  <bruno@clisp.org>
21469         getcwd: Fix misindentation.
21470         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
21472 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
21474         exclude: process exclude and include directives in order
21475         This restores the pre-2009 behavior, and is part of a fix of a
21476         grep bug reported by Quentin Arce in
21477         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
21478         * lib/exclude.c (struct exclude): Remove 'tail' member.
21479         (new_exclude_segment): Prepend the new segment instead of appending.
21480         Return void, since that's now more convenient.
21481         (file_pattern_matches): Renamed from excluded_file_pattern_p.
21482         (file_name_matches): Renamed from excluded_file_name_p.
21483         (file_pattern_matches, file_name_matches):
21484         Return true if the pattern matches, not if it excludes.
21485         All callers changed.
21486         (excluded_file_name): Process the list in reverse order;
21487         since the list is now reversed this restores the pre-2009 behavior.
21488         (add_exclude): Adjust to new reversed-order list.  Use local var
21489         rather than macro, for clarity.
21490         * tests/test-exclude7.sh: Adjust to corrected behavior.
21492         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
21493         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
21494         it's not possible here.  Handle the case of \ at end of pattern
21495         without dumping core.
21496         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
21498         _Noreturn: future-proof non-GNU and non-MSVC compilers
21499         * build-aux/snippet/_Noreturn.h (_Noreturn):
21500         * m4/gnulib-common.m4 (gl_COMMON_BODY):
21501         Do not define _Noreturn if __STDC_VERSION__ indicates this is
21502         C11 or later.  This is more likely to work with random future C
21503         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
21504         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
21506         exclude: handle wildcards with FNM_EXTMATCH
21507         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
21508         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
21509         comment that "has wildcards" really means "has or may have
21510         wildcards".  Simplify by avoiding the need to call strcspn.
21512 2012-04-29  Bruno Haible  <bruno@clisp.org>
21514         gnulib-tool: Fix list of authors.
21515         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
21517 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
21519         bootstrap: support Automake-NG in $buildreq
21520         * bootstrap (check_versions): Handle automake and aclocal from
21521         Automake-NG specially.  They can be specified as respectively
21522         the "automake-ng" and "aclocal-ng" requirements.
21524 2012-04-25  Eric Blake  <eblake@redhat.com>
21526         bootstrap: only force latest Makefile.in.in for gettext module
21527         * build-aux/bootstrap (with_gettext): Only install latest
21528         Makefile.in.in for projects requesting bleeding edge gettext.
21530 2012-04-22  Bruno Haible  <bruno@clisp.org>
21532         doc: Mention reason for replacement on glibc/Linux systems.
21533         * doc/posix-functions/dprintf.texi: Mention the problem with special
21534         'long double' values.
21535         * doc/posix-functions/fprintf.texi: Likewise.
21536         * doc/posix-functions/printf.texi: Likewise.
21537         * doc/posix-functions/snprintf.texi: Likewise.
21538         * doc/posix-functions/sprintf.texi: Likewise.
21539         * doc/posix-functions/vdprintf.texi: Likewise.
21540         * doc/posix-functions/vfprintf.texi: Likewise.
21541         * doc/posix-functions/vprintf.texi: Likewise.
21542         * doc/posix-functions/vsnprintf.texi: Likewise.
21543         * doc/posix-functions/vsprintf.texi: Likewise.
21544         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
21545         platforms with F_DUPFD_CLOEXEC problems.
21546         * doc/posix-functions/glob.texi: Mention which platforms are affected
21547         by the problem with symbolic links.
21548         * doc/posix-functions/linkat.texi: Mention the problem with
21549         AT_SYMLINK_FOLLOW on Linux.
21551 2012-04-22  Bruno Haible  <bruno@clisp.org>
21553         pwrite: Don't replace on all platforms.
21554         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
21556 2012-04-22  Bruno Haible  <bruno@clisp.org>
21558         rint* tests: Avoid gcc warnings.
21559         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
21560         * tests/test-rintf.c (INFINITY, NAN): Likewise.
21561         * tests/test-rintl.c (INFINITY, NAN): Likewise.
21563 2012-04-21  Bruno Haible  <bruno@clisp.org>
21565         users.txt: Update.
21566         * users.txt: Add freedink, wdiff. Update URLs for projects that have
21567         switched from CVS to git, bzr, or svn.
21569 2012-04-21  Bruno Haible  <bruno@clisp.org>
21571         Large File Support for native Windows platforms.
21573         * m4/largefile.m4 (gl_LARGEFILE): New macro.
21574         * modules/largefile (configure.ac): Require gl_LARGEFILE.
21576         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
21577         type.
21578         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
21579         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
21580         * doc/posix-headers/sys_types.texi: Mention the effect of the
21581         'largefile' module.
21583         * lib/fcntl.in.h: Add comments about off_t.
21584         * modules/fcntl-h (Depends-on): Add sys_types.
21586         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
21587         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
21588         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
21589         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
21590         * modules/unistd (Depends-on): Add sys_types.
21591         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
21593         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
21594         instead of lseek.
21595         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
21596         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
21597         * modules/lseek (Depends-on): Add sys_types.
21599         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
21600         msvc-nothrow.h.
21601         (SetFileSize): New function.
21602         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
21603         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
21604         if Large File Support is requested.
21605         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
21606         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
21608         * lib/stdio.in.h: Add comments about off_t.
21609         * modules/stdio (Depends-on): Add sys_types.
21611         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
21612         instead of ftello.
21613         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
21614         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
21615         (gl_PREREQ_FTELLO): New macro.
21616         * modules/ftello (Depends-on): Add sys_types.
21617         (configure.ac): Incoke gl_PREREQ_FTELLO.
21619         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
21620         instead of fseeko.
21621         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
21622         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
21623         (gl_PREREQ_FSEEKO): New macro.
21624         * modules/fseeko (Depends-on): Add sys_types.
21625         (configure.ac): Invoke gl_PREREQ_FSEEKO.
21627         * lib/sys_stat.in.h: Add comments about off_t.
21628         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
21629         64-bit integer for st_size in 'struct stat'.
21630         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
21631         Define _GL_WINDOWS_64_BIT_ST_SIZE.
21632         * modules/sys_stat (Depends-on): Add sys_types.
21633         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
21635         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
21636         instead of stat or _stat.
21638         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
21639         'struct _stati64' instead of fstat and 'struct stat'.
21640         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
21641         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
21643         Reported by Ray Satiro <raysatiro@yahoo.com>.
21645 2012-04-19  Eric Blake  <eblake@redhat.com>
21647         bootstrap: accommodate older libtool
21648         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
21649         Reported by Daniel P. Berrange.
21651 2012-04-19  Jim Meyering  <meyering@redhat.com>
21653         announce-gen: avoid failure due to lack of Digest::SHA1
21654         Even with the preferred Digest::SHA available, this script
21655         would fail when the backup module, Digest::SHA1, was not installed.
21656         * build-aux/announce-gen: Quote the conditional use of "use".
21657         Reported by Reuben Thomas in:
21658         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
21660         bootstrap: don't let a user's CDPATH setting affect this script
21661         When CDPATH is set, cd will sometimes generate output.
21662         When "cd" is run in a subshell whose output matters, that
21663         surprising-to-some output can cause malfunction.
21664         Unsetting CDPATH turns off this shell "feature."
21665         * build-aux/bootstrap (CDPATH): Unset.
21666         Reported by Reuben Thomas in:
21667         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
21668         and inspired by his patch here:
21669         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
21671 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
21672         and Jim Meyering  <meyering@redhat.com>
21674         maint.mk: catch "see @xref{}" and similar
21675         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
21676         prohibit "See also @xref{", "Also see @pxref{", and similar.
21678 2012-04-16  Jim Meyering  <meyering@redhat.com>
21680         bootstrap: really use gnulib's po/Makefile.in.in
21681         * build-aux/bootstrap: Correct the source file name in previous change.
21682         Reported by Akim Demaille.
21684         configmake: correct minor inconsistency in Makefile rule
21685         * modules/configmake (Makefile.am): All other rules like this one
21686         run the final "mv -f ..." in the same backslash-continued command
21687         as the one that does everything else.  This one put the mv -f ...
21688         command on a separate, non-backslash-continued line.
21689         Make it like the others.
21691         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
21692         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
21693         the one from gettext.  Reported by Akim Demaille.
21695 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
21697         Fix recursion of install-* into po directories.
21698         Bison's install-pdf bug reported by Hans Aberg at
21699         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
21700         * build-aux/po/Makefile.in.in (install-dvi, install-html)
21701         (install-info, install-pdf, install-ps): New targets.
21703 2012-04-16  Jim Meyering  <meyering@redhat.com>
21705         maint: avoid spurious "make sc_maint" failure
21706         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
21707         exempt all *.class file names, for lib/javaversion.class.
21709 2012-04-15  Bruno Haible  <bruno@clisp.org>
21711         lseek: Make configure test independent of environment.
21712         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
21713         Windows, we know that lseek() on pipes is broken; skip the runtime
21714         test.
21716 2012-04-14  Bruno Haible  <bruno@clisp.org>
21718         stat: Bypass buggy override in mingw64.
21719         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
21720         * lib/stat.c (stat) [mingw64]: Define to _stat.
21721         * doc/posix-functions/stat.texi: Mention mingw64 bug.
21723 2012-04-14  Bruno Haible  <bruno@clisp.org>
21725         pathmax: Fix compilation error on MSVC 9.
21726         * modules/pathmax (Depends-on): Add unistd.
21728 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
21730         README: document pointer comparison assumption
21731         * README (Portability guidelines): Document assumption about
21732         pointer comparisons, in response to a recent bug-gnulib comment by
21733         Jeffrey Kegler.
21735 2012-04-12  Bruno Haible  <bruno@clisp.org>
21737         Tests for module 'getrusage'.
21738         * modules/getrusage-tests: New file.
21739         * tests/test-getrusage.c: New file.
21741         New module 'getrusage'.
21742         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
21743         warn-on-use.h.
21744         (getrusage): New declaration.
21745         * lib/getrusage.c: New file.
21746         * m4/getrusage.m4: New file.
21747         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
21748         is declared.
21749         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
21750         HAVE_GETRUSAGE.
21751         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
21752         snippet/c++defs, snippet/warn-on-use.
21753         (Makefile.am): Update generation of sys/resource.h. Substitute
21754         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
21755         * modules/getrusage: New file.
21756         * doc/posix-functions/getrusage.texi: Mention the new module.
21758 2012-04-12  Bruno Haible  <bruno@clisp.org>
21760         Tests for module 'sys_resource'.
21761         * modules/sys_resource-tests: New file.
21762         * tests/test-sys_resource.c: New file.
21764         New module 'sys_resource'.
21765         * lib/sys_resource.in.h: New file.
21766         * m4/sys_resource_h.m4: New file.
21767         * modules/sys_resource: New file.
21768         * doc/posix-headers/sys_resource.texi: Mention the new module.
21770 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
21772         ioctl: Fix compilation error on mingw.
21773         * lib/ioctl.c: Include <windows.h>.
21774         Also reported by Ray Satiro <raysatiro@yahoo.com>.
21776 2012-04-04  Jim Meyering  <meyering@redhat.com>
21778         regex: correct #pragma guard expression
21779         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
21780         not 4.3.  Correct its cpp guard expression.
21782 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
21784         regex: remove unnecessary type punning
21785         Problem reported by Vladimir Serbinenko in
21786         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
21787         * lib/regex.h (struct re_pattern_buffer): Change the type of
21788         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
21789         Fix comment to match code.
21790         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
21791         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
21792         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
21793         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
21794         (set_regs):
21795         Omit no-longer-necessary casts.
21797 2012-04-03  Bruno Haible  <bruno@clisp.org>
21799         Tests for module 'ilogbl'.
21800         * modules/ilogbl-tests: New file.
21801         * tests/test-ilogbl.c: New file.
21803         New module 'ilogbl'.
21804         * lib/math.in.h (ilogbl): New declaration.
21805         * lib/ilogbl.c: New file.
21806         * m4/ilogbl.m4: New file.
21807         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
21808         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
21809         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
21810         Split sed invocation, to avoid the limit of 100 substitutions of
21811         HP-UX 'sed'.
21812         * modules/ilogbl: New file.
21813         * tests/test-math-c++.cc: Check the declaration of ilogbl.
21814         * doc/posix-functions/ilogbl.texi: Mention the new module.
21816 2012-04-03  Bruno Haible  <bruno@clisp.org>
21818         Tests for module 'ilogbf'.
21819         * modules/ilogbf-tests: New file.
21820         * tests/test-ilogbf.c: New file.
21822         New module 'ilogbf'.
21823         * lib/math.in.h (ilogbf): New declaration.
21824         * lib/ilogbf.c: New file.
21825         * m4/ilogbf.m4: New file.
21826         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
21827         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
21828         REPLACE_ILOGBF.
21829         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
21830         REPLACE_ILOGBF.
21831         * modules/ilogbf: New file.
21832         * tests/test-math-c++.cc: Check the declaration of ilogbf.
21833         * doc/posix-functions/ilogbf.texi: Mention the new module.
21835 2012-04-03  Bruno Haible  <bruno@clisp.org>
21837         Tests for module 'ilogb'.
21838         * modules/ilogb-tests: New file.
21839         * tests/test-ilogb.c: New file.
21840         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
21841         tests/test-logb-ieee.h.
21843         New module 'ilogb'.
21844         * lib/math.in.h (ilogb): New declaration.
21845         * lib/ilogb.c: New file.
21846         * m4/ilogb.m4: New file.
21847         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
21848         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
21849         REPLACE_ILOGB.
21850         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
21851         REPLACE_ILOGB.
21852         * modules/ilogb: New file.
21853         * tests/test-math-c++.cc: Check the declaration of ilogb.
21854         * doc/posix-functions/ilogb.texi: Mention the new module.
21856 2012-04-03  Bruno Haible  <bruno@clisp.org>
21858         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
21859         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
21860         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
21861         (main): Check their values.
21862         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
21863         problem.
21865 2012-04-03  Bruno Haible  <bruno@clisp.org>
21867         Tests for module 'logbl-ieee'.
21868         * modules/logbl-ieee-tests: New file.
21869         * tests/test-logbl-ieee.c: New file.
21871         New module 'logbl-ieee'.
21872         * modules/logbl-ieee: New file.
21874         Tests for module 'logb-ieee'.
21875         * modules/logb-ieee-tests: New file.
21876         * tests/test-logb-ieee.c: New file.
21878         New module 'logb-ieee'.
21879         * modules/logb-ieee: New file.
21881         Tests for module 'logbf-ieee'.
21882         * modules/logbf-ieee-tests: New file.
21883         * tests/test-logbf-ieee.c: New file.
21884         * tests/test-logb-ieee.h: New file.
21886         New module 'logbf-ieee'.
21887         * modules/logbf-ieee: New file.
21889 2012-04-03  Bruno Haible  <bruno@clisp.org>
21891         Tests for module 'logbl'.
21892         * modules/logbl-tests: New file.
21893         * tests/test-logbl.c: New file.
21895         New module 'logbl'.
21896         * lib/math.in.h (logbl): New declaration.
21897         * lib/logbl.c: New file.
21898         * m4/logbl.m4: New file.
21899         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
21900         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
21901         REPLACE_LOGBL.
21902         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
21903         REPLACE_LOGBL.
21904         * modules/logbl: New file.
21905         * tests/test-math-c++.cc: Check the declaration of logbl.
21906         * doc/posix-functions/logbl.texi: Mention the new module.
21908 2012-04-02  Bruno Haible  <bruno@clisp.org>
21910         Tests for module 'logbf'.
21911         * modules/logbf-tests: New file.
21912         * tests/test-logbf.c: New file.
21914         New module 'logbf'.
21915         * lib/math.in.h (logbf): New declaration.
21916         * lib/logbf.c: New file.
21917         * m4/logbf.m4: New file.
21918         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
21919         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
21920         REPLACE_LOGBF.
21921         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
21922         REPLACE_LOGBF.
21923         * modules/logbf: New file.
21924         * tests/test-math-c++.cc: Check the declaration of logbf.
21925         * doc/posix-functions/logbf.texi: Mention the new module.
21927 2012-04-02  Bruno Haible  <bruno@clisp.org>
21929         logb tests: More tests.
21930         * tests/test-logb.h: New file, based on tests/test-logb.c and
21931         tests/test-frexp.h.
21932         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
21933         (main): Just invoke test_function.
21934         * modules/logb-tests (Files): Add tests/test-logb.h,
21935         tests/minus-zero.h, tests/randomd.c.
21936         (Makefile.am): Add randomd.c to test_logb_SOURCES.
21938         logb: Provide replacement and workarounds.
21939         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
21940         is 1.
21941         * lib/logb.c: New file.
21942         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
21943         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
21944         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
21945         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
21946         * modules/logb (Files): Add lib/logb.c.
21947         (Depends-on): Add isfinite, frexp, isnand.
21948         (configure.ac): Compile the replacement code logb.c if needed.
21949         * tests/test-math-c++.cc: Check the declaration of logb.
21950         * doc/posix-functions/logb.texi: Mention the replacement and the bug
21951         with subnormal numbers.
21953 2012-04-02  Bruno Haible  <bruno@clisp.org>
21955         log10* tests: Speed up.
21956         * tests/test-log10.h (test_function): Reduce amount of random numbers
21957         to test.
21959 2012-04-01  Bruno Haible  <bruno@clisp.org>
21961         logf-ieee: Fix test whether logf works.
21962         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
21964 2012-04-01  Bruno Haible  <bruno@clisp.org>
21966         log10l: Work around log10l-ieee test failure on IRIX 6.5.
21967         * lib/log10l.c: Include <float.h>
21968         (log10l): On IRIX, normalize the +Infinity value.
21969         * modules/log10l (Depends-on): Add 'float'.
21970         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
21971         +Infinity.
21973         log10f-ieee: Work around test failure on NetBSD 5.1.
21974         * m4/log10f-ieee.m4: New file.
21975         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
21976         test whether log10f works with a negative argument. Replace it if not.
21977         * lib/log10f.c (log10f): For negative arguments, return NaN.
21978         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
21979         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
21980         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
21982         log10f-ieee: Work around test failure on Solaris 9.
21983         * modules/log10f-ieee (Depends-on): Add log10-ieee.
21984         (configure.ac): Require gl_FUNC_LOG10F.
21986         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
21987         * m4/log10-ieee.m4: New file.
21988         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
21989         whether log10 works with a negative argument. Replace it if not.
21990         * lib/log10.c (log10): For negative arguments, return NaN.
21991         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
21992         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
21993         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
21995         Tests for module 'log10l-ieee'.
21996         * modules/log10l-ieee-tests: New file.
21997         * tests/test-log10l-ieee.c: New file.
21999         New module 'log10l-ieee'.
22000         * modules/log10l-ieee: New file.
22002         Tests for module 'log10-ieee'.
22003         * modules/log10-ieee-tests: New file.
22004         * tests/test-log10-ieee.c: New file.
22006         New module 'log10-ieee'.
22007         * modules/log10-ieee: New file.
22009         Tests for module 'log10f-ieee'.
22010         * modules/log10f-ieee-tests: New file.
22011         * tests/test-log10f-ieee.c: New file.
22012         * tests/test-log10-ieee.h: New file.
22014         New module 'log10f-ieee'.
22015         * modules/log10f-ieee: New file.
22017 2012-04-01  Bruno Haible  <bruno@clisp.org>
22019         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
22020         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
22021         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
22022         workaround.
22023         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
22024         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
22025         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
22026         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
22027         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
22028         (Depends-on): Update conditions.
22029         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
22030         IRIX 6.5, OSF/1 5.1 problems.
22032 2012-04-01  Bruno Haible  <bruno@clisp.org>
22034         log10f: Work around OSF/1 5.1 bug.
22035         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
22036         * lib/log10f.c (log10f): If logf exists, use it and provide just the
22037         workaround.
22038         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
22039         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
22040         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
22041         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
22042         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
22043         (Depends-on): Update conditions.
22044         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
22046 2012-04-01  Bruno Haible  <bruno@clisp.org>
22048         log10: Work around OSF/1 5.1 bug.
22049         * lib/math.in.h (log10): New declaration.
22050         * lib/log10.c: New file.
22051         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
22052         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
22053         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
22054         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
22055         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
22056         * modules/log10 (Files): Add lib/log10.c.
22057         (Depends-on): Add math.
22058         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
22059         * tests/test-math-c++.cc: Check the declaration of log10.
22060         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
22062 2012-03-31  Bruno Haible  <bruno@clisp.org>
22064         log10l tests: More tests.
22065         * modules/log10l-tests (Files): Add tests/test-log10l.h,
22066         tests/minus-zero.h, tests/randoml.c.
22067         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
22068         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
22069         (main): Invoke test_function.
22071         log10f tests: More tests.
22072         * modules/log10f-tests (Files): Add tests/test-log10.h,
22073         tests/minus-zero.h, tests/randomf.c.
22074         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
22075         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
22076         (main): Invoke test_function.
22078         log10 tests: More tests.
22079         * tests/test-log10.h: New file.
22080         * modules/log10-tests (Files): Add tests/test-log10.h,
22081         tests/minus-zero.h, tests/randomd.c.
22082         (Makefile.am): Add randomd.c to test_log10_SOURCES.
22083         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
22084         (main): Invoke test_function.
22086 2012-03-31  Simon Josefsson  <simon@josefsson.org>
22088         fflush: Fix syntax error.
22089         * lib/fflush.c: Include unused-parameter.h, needed for
22090         _GL_UNUSED_PARAMETER.
22091         * modules/fflush (Depends-on): Add snippet/unused-parameter.
22093 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
22095         regex: pacify GCC when compiling GRUB
22096         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
22097         a diagnostic.  Reported by Vladimir Serbinenko in
22098         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
22100 2012-03-29  Eric Blake  <eblake@redhat.com>
22102         stdio: don't assume gets any more
22103         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
22104         support.
22105         * modules/stdio (Makefile.am): Likewise.
22106         * lib/stdio-read.c (gets): Likewise.
22107         * tests/test-stdio-c++.cc: Likewise.
22108         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
22109         * lib/stdio.in.h (gets): Make warning occur in more places.
22110         * doc/posix-functions/gets.texi (gets): Update documentation.
22111         Reported by Christer Solskogen.
22113         maint.mk: fix syntax checks without exclusions
22114         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
22115         Reported by Daniel P. Berrange.
22117         strerror_r: avoid compiler warning
22118         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
22119         level.
22121         fflush: avoid compiler warning
22122         * lib/fflush.c (update_fpos_cache): Mark variables that are
22123         potentially unused.
22125 2012-03-25  Bruno Haible  <bruno@clisp.org>
22127         Tests for module 'localeconv'.
22128         * modules/localeconv-tests: New file.
22129         * tests/test-localeconv.c: New file.
22131         New module 'localeconv'.
22132         * lib/locale.in.h (localeconv): New declaration.
22133         * lib/localeconv.c: New file.
22134         * m4/localeconv.m4: New file.
22135         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
22136         REPLACE_LOCALECONV.
22137         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
22138         REPLACE_LOCALECONV.
22139         * modules/localeconv: New file.
22140         * modules/nl_langinfo (Depends-on): Add localeconv.
22141         * modules/human (Depends-on): Likewise.
22142         * doc/posix-functions/localeconv.texi: Mention the new module.
22144 2012-03-25  Bruno Haible  <bruno@clisp.org>
22146         locale: Provide a complete 'struct lconv'.
22147         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
22148         'struct lconv' does not contain int_p_cs_precedes.
22149         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
22150         * doc/posix-headers/locale.texi: Update.
22152         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
22153         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
22154         * doc/posix-headers/locale.texi: Update.
22156         locale: Provide a working 'struct lconv'.
22157         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
22158         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
22159         'struct lconv' does not even contain decimal_point.
22160         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
22161         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
22162         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
22163         * doc/posix-headers/locale.texi: Mention the problems with
22164         'struct lconv'.
22165         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
22167 2012-03-24  Bruno Haible  <bruno@clisp.org>
22169         Enable common subexpression optimization in GCC.
22170         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
22171         macros.
22172         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
22173         GCC attribute 'const'.
22174         (uc_locale_language): Declare with GCC attribute 'pure'.
22175         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
22176         with GCC attribute 'const'.
22177         * lib/unictype.in.h (uc_is_general_category_withtable,
22178         uc_combining_class, uc_combining_class_name,
22179         uc_combining_class_long_name, uc_bidi_class_name,
22180         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
22181         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
22182         uc_decimal_value, uc_digit_value, uc_numeric_value,
22183         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
22184         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
22185         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
22186         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
22187         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
22188         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
22189         Declare with GCC attribute 'const'.
22190         (uc_general_category_name, uc_general_category_long_name,
22191         uc_general_category_byname, uc_general_category,
22192         uc_is_general_category, uc_combining_class_byname,
22193         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
22194         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
22195         Declare with GCC attribute 'pure'.
22196         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
22197         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
22198         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
22199         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
22200         with GCC attribute 'pure'.
22201         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
22202         'const'.
22203         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
22204         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
22205         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
22206         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
22207         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
22208         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
22209         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
22210         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
22211         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
22212         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
22213         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
22214         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
22215         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
22216         GCC attribute 'pure'.
22217         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
22218         'const'.
22219         * lib/uniwidth.in.h (uc_width): Simplify declaration.
22220         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
22221         u32_strwidth): Declare with GCC attribute 'pure'.
22223         Enable common subexpression optimization in GCC.
22224         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
22225         (alphasort): Declare with GCC attribute 'pure'.
22226         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
22227         (atoll): Declare with GCC attribute 'pure'.
22228         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
22229         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
22230         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
22231         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
22232         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
22233         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
22234         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
22236 2012-03-24  Bruno Haible  <bruno@clisp.org>
22238         gnulib-tool: Avoid unintended error output from 'cmp'.
22239         * gnulib-tool (func_add_file, func_update_file, func_import): Use
22240         "cmp -s", not "cmp > /dev/null".
22242 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
22244         gnulib-tool: fix imprecise comments w.r.t. an automake bug
22246         It's not just Automake versions < 1.9b that creates an empty
22247         pkgdatadir at installation time if pkgdata_DATA is specified
22248         to empty; modern automake versions do this as well, at least
22249         until automake 1.11.4 (not yet released at the moment of writing,
22250         but soon to appear).  That behaviour was generally considered a
22251         feature rather than a bug, at least until this discussion:
22252         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
22254         See also automake bugs #10997 and #11030.
22256         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
22257         reference to relevant automake bug numbers.
22258         (func_emit_tests_Makefile_am): Likewise.
22260 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
22262         announce-gen: use Digest::SHA when possible
22263         * build-aux/announce-gen: Use Digest::SHA when possible, falling
22264         back to Digest::SHA1 if necessary.
22266 2012-03-20  Jim Meyering  <meyering@redhat.com>
22268         tests: avoid gcc warnings about argv vs. const initializers
22269         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
22270         warnings about discarding 'const' qualifier from pointer target type.
22271         * tests/test-posix_spawn2.c (main): Likewise.
22273 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
22275         README-release: simplify slightly
22276         * top/README-release: Run "git checkout master" only once.
22278 2012-03-15  Mark Wielaard  <mark@klomp.org>
22280         git-merge-changelog: add specific example on how to use with hg.
22281         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
22283 2012-03-18  Mark Wielaard  <mark@klomp.org>
22285         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
22287 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
22289         git-version-gen: don't let "prefix" envvar cause trouble
22290         * build-aux/git-version-gen (prefix): Initialize properly,
22291         so as not to use a value specified via the environment.
22292         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
22294 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
22296         regex: diagnose too-large repeat counts in EREs
22297         Previously, the code did not diagnose the too-large repeat count
22298         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
22299         as if it were 'b\{1000000000}', which is unexpected.
22300         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
22301         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
22302         is a reasonable one for this problem.  Another option would be to
22303         create a new REG_OVERFLOW error for repeat counts that are too large.
22304         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
22305         count is too large, so that the caller can distinguish the two cases.
22306         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
22307         "Too large" return code, and that repeat counts are one example of this.
22309 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
22311         doc: some glibc x32 integer width issues
22312         * doc/posix-headers/sys_types.texi (sys/types.h):
22313         * doc/posix-headers/time.texi (time.h):
22314         Mention that glibc x32 does not conform to POSIX in a couple of
22315         areas related to integer widths.
22317 2012-03-15  Bruno Haible  <bruno@clisp.org>
22319         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
22320         * lib/fma.c (VOLATILE): New macro.
22321         (FUNC): Use it to work around a GCC compiler bug.
22323 2012-03-13  Bruno Haible  <bruno@clisp.org>
22325         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
22326         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
22327         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
22328         REPLACE_HYPOTL to 1.
22329         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
22331 2012-03-13  Bruno Haible  <bruno@clisp.org>
22333         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
22334         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
22335         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
22336         REPLACE_REMAINDERL to 1.
22337         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
22338         bug.
22340 2012-03-13  Bruno Haible  <bruno@clisp.org>
22342         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
22343         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
22344         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
22345         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
22346         too big rounding errors.
22347         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
22348         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
22349         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
22350         (Depends-on): Update conditions.
22351         * tests/test-sqrtl.c (my_ldexpl): New function.
22352         (main): Add test of a particular value.
22353         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
22355 2012-03-13  Pádraig Brady  <P@draigBrady.com>
22357         doc: Update timer_* platform portability notes.
22358         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
22359         that always return ENOSYS.
22360         * doc/posix-functions/timer_delete.texi: Likewise.
22361         * doc/posix-functions/timer_gettime.texi: Likewise.
22362         * doc/posix-functions/timer_settime.texi: Likewise.
22364 2012-03-13  Bruno Haible  <bruno@clisp.org>
22366         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
22367         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
22368         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
22369         REPLACE_CBRTL to 1.
22370         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
22372 2012-03-13  Bruno Haible  <bruno@clisp.org>
22374         remainderl: Avoid compilation error on AIX >= 5.2.
22375         * lib/math.in.h (remainderl): Undefine macro from the system header.
22377 2012-03-13  Bruno Haible  <bruno@clisp.org>
22379         Avoid compilation errors with MSVC option -fp:strict.
22380         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
22381         * lib/cbrtf.c: Likewise.
22382         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
22384 2012-03-12  Bruno Haible  <bruno@clisp.org>
22386         uninorm: Don't crash in out-of-memory conditions.
22387         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
22388         gracefully.
22389         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
22390         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
22392 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
22394         quote: fix syntax-check
22395         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
22396         also exports quote_quoting_options.
22398 2012-03-12  Simon Josefsson  <simon@josefsson.org>
22400         Collapse list of copyright years to ranges.  See
22401         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
22402         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
22403         build-aux/csharpexec.sh.in, build-aux/gnupload,
22404         build-aux/install-reloc, build-aux/javacomp.sh.in,
22405         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
22406         build-aux/move-if-change, build-aux/reloc-ldflags,
22407         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
22409 2012-03-11  Bruno Haible  <bruno@clisp.org>
22411         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
22412         * m4/log2f-ieee.m4: New file.
22413         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
22414         whether log2f works with a minus zero argument. Replace it if not.
22415         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
22416         (Depends-on): Add log2-ieee.
22417         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
22418         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
22420         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
22421         * m4/log2-ieee.m4: New file.
22422         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
22423         whether log2 works with a minus zero argument. Replace it if not.
22424         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
22425         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
22426         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
22428         Tests for module 'log2l-ieee'.
22429         * modules/log2l-ieee-tests: New file.
22430         * tests/test-log2l-ieee.c: New file.
22432         New module 'log2l-ieee'.
22433         * modules/log2l-ieee: New file.
22435         Tests for module 'log2-ieee'.
22436         * modules/log2-ieee-tests: New file.
22437         * tests/test-log2-ieee.c: New file.
22439         New module 'log2-ieee'.
22440         * modules/log2-ieee: New file.
22442         Tests for module 'log2f-ieee'.
22443         * modules/log2f-ieee-tests: New file.
22444         * tests/test-log2f-ieee.c: New file.
22445         * tests/test-log2-ieee.h: New file.
22447         New module 'log2f-ieee'.
22448         * modules/log2f-ieee: New file.
22450 2012-03-11  Bruno Haible  <bruno@clisp.org>
22452         Tests for module 'log2l'.
22453         * modules/log2l-tests: New file.
22454         * tests/test-log2l.c: New file.
22456         New module 'log2l'.
22457         * lib/math.in.h (log2l): New declaration.
22458         * lib/log2l.c: New file.
22459         * m4/log2l.m4: New file.
22460         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
22461         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
22462         REPLACE_LOG2L.
22463         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
22464         REPLACE_LOG2L.
22465         * modules/log2l: New file.
22466         * tests/test-math-c++.cc: Check the declaration of log2l.
22467         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
22468         and OSF/1 problems.
22470 2012-03-11  Bruno Haible  <bruno@clisp.org>
22472         Tests for module 'log2f'.
22473         * modules/log2f-tests: New file.
22474         * tests/test-log2f.c: New file.
22476         New module 'log2f'.
22477         * lib/math.in.h (log2f): New declaration.
22478         * lib/log2f.c: New file.
22479         * m4/log2f.m4: New file.
22480         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
22481         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
22482         REPLACE_LOG2F.
22483         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
22484         REPLACE_LOG2F.
22485         * modules/log2f: New file.
22486         * tests/test-math-c++.cc: Check the declaration of log2f.
22487         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
22488         and OSF/1 and Cygwin problems.
22490 2012-03-11  Bruno Haible  <bruno@clisp.org>
22492         Tests for module 'log2'.
22493         * modules/log2-tests: New file.
22494         * tests/test-log2.c: New file.
22495         * tests/test-log2.h: New file.
22497         New module 'log2'.
22498         * lib/math.in.h (log2): New declaration.
22499         * lib/log2.c: New file.
22500         * m4/log2.m4: New file.
22501         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
22502         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
22503         REPLACE_LOG2.
22504         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
22505         REPLACE_LOG2.
22506         * modules/log2: New file.
22507         * tests/test-math-c++.cc: Check the declaration of log2.
22508         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
22509         and OSF/1 and Cygwin problems.
22511 2012-03-11  Bruno Haible  <bruno@clisp.org>
22513         exp2* tests: More tests.
22514         * tests/test-exp2.h (test_function): Test all integral arguments that
22515         don't need to overflow or denormalized numbers.
22516         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
22517         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
22518         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
22520 2012-03-10  Bruno Haible  <bruno@clisp.org>
22522         log1pl-ieee: Work around test failure on AIX 7.1.
22523         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
22525         log1pl-ieee: Work around test failure on IRIX 6.5.
22526         * m4/log1pl-ieee.m4: New file.
22527         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
22528         test whether log1pl works with a minus zero argument. Replace it if
22529         not.
22530         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
22531         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
22532         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
22533         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
22534         (Depends-on): Update conditions.
22535         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
22536         m4/signbit.m4.
22537         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
22538         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
22540         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
22541         * m4/log1pf-ieee.m4: New file.
22542         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
22543         test whether log1pf works with a minus zero argument. Replace it if
22544         not.
22545         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
22546         m4/signbit.m4.
22547         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
22548         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
22550         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
22551         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
22552         (configure.ac): Require gl_FUNC_LOG1PF.
22554         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
22555         * m4/log1p-ieee.m4: New file.
22556         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
22557         whether log1p works with a minus zero argument. Replace it if not.
22558         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
22559         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
22560         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
22561         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
22562         (Depends-on): Update conditions.
22563         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
22564         m4/signbit.m4.
22565         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
22566         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
22568         Tests for module 'log1pl-ieee'.
22569         * modules/log1pl-ieee-tests: New file.
22570         * tests/test-log1pl-ieee.c: New file.
22572         New module 'log1pl-ieee'.
22573         * modules/log1pl-ieee: New file.
22575         Tests for module 'log1p-ieee'.
22576         * modules/log1p-ieee-tests: New file.
22577         * tests/test-log1p-ieee.c: New file.
22579         New module 'log1p-ieee'.
22580         * modules/log1p-ieee: New file.
22582         Tests for module 'log1pf-ieee'.
22583         * modules/log1pf-ieee-tests: New file.
22584         * tests/test-log1pf-ieee.c: New file.
22585         * tests/test-log1p-ieee.h: New file.
22587         New module 'log1pf-ieee'.
22588         * modules/log1pf-ieee: New file.
22590 2012-03-10  Bruno Haible  <bruno@clisp.org>
22592         Tests for module 'log1pl'.
22593         * modules/log1pl-tests: New file.
22594         * tests/test-log1pl.c: New file.
22596         New module 'log1pl'.
22597         * lib/math.in.h (log1pl): New declaration.
22598         * lib/log1pl.c: New file.
22599         * m4/log1pl.m4: New file.
22600         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
22601         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
22602         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
22603         * modules/log1pl: New file.
22604         * tests/test-math-c++.cc: Check the declaration of log1pl.
22605         * doc/posix-functions/log1pl.texi: Mention the new module.
22607 2012-03-10  Bruno Haible  <bruno@clisp.org>
22609         Tests for module 'log1pf'.
22610         * modules/log1pf-tests: New file.
22611         * tests/test-log1pf.c: New file.
22613         New module 'log1pf'.
22614         * lib/math.in.h (log1pf): New declaration.
22615         * lib/log1pf.c: New file.
22616         * m4/log1pf.m4: New file.
22617         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
22618         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
22619         REPLACE_LOG1PF.
22620         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
22621         REPLACE_LOG1PF.
22622         * modules/log1pf: New file.
22623         * tests/test-math-c++.cc: Check the declaration of log1pf.
22624         * doc/posix-functions/log1pf.texi: Mention the new module.
22626 2012-03-10  Bruno Haible  <bruno@clisp.org>
22628         log1p tests: More tests.
22629         * tests/test-log1p.h: New file.
22630         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
22631         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
22632         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
22633         (main): Invoke test_function.
22635         log1p: Provide replacement for Minix and MSVC.
22636         * lib/math.in.h (log1p): New declaration.
22637         * lib/log1p.c: New file.
22638         * m4/log1p.m4: New file.
22639         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
22640         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
22641         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
22642         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
22643         (Depends-on): Add math, isnand, log, round.
22644         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
22645         HAVE_LOG1P is 0.
22646         * tests/test-math-c++.cc: Check the declaration of log1p.
22647         * doc/posix-functions/log1p.texi: Mention the replacement.
22649 2012-03-10  Bruno Haible  <bruno@clisp.org>
22651         math tests: Small simplification.
22652         * tests/test-exp.h (test_function): Use the same err_bound for
22653         'double' on platforms with sizeof (long double) == sizeof (double)
22654         than on platforms with sizeof (long double) > sizeof (double).
22655         * tests/test-exp2.h (test_function): Likewise.
22656         * tests/test-expm1.h (test_function): Likewise.
22657         * tests/test-log.h (test_function): Likewise.
22659 2012-03-10  Bruno Haible  <bruno@clisp.org>
22661         Fix some comments.
22662         * lib/expl.c: Fix an ambiguous comment.
22663         * lib/expm1.c: Likewise.
22664         * lib/expm1l.c: Likewise.
22665         * lib/exp2.c: Likewise.
22666         * lib/exp2l.c: Likewise.
22668 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
22670         regex: allow inclusion of <regex.h> before <limits.h>
22671         Without this patch, portable programs had to include <limits.h> before
22672         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
22673         I ran into this problem with a test version of GNU grep on Solaris 8.
22674         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
22675         This is done conditionally so that this change can be merged
22676         back to glibc.
22677         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
22678         using the included regex.
22680         fts: depend on fdopendir
22681         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
22682         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
22683         problem was introduced when fdopendir was split out.
22685 2012-03-10  Bruno Haible  <bruno@clisp.org>
22687         Remove unused variables.
22688         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
22689         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
22691 2012-03-10  Bruno Haible  <bruno@clisp.org>
22693         isnanf-nolibm: Fix last commit.
22694         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
22696         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
22697         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
22699 2012-03-10  Bruno Haible  <bruno@clisp.org>
22701         logf-ieee: Work around test failure on NetBSD 5.1.
22702         * m4/logf-ieee.m4: New file.
22703         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
22704         whether logf works with a negative argument. Replace it if not.
22705         * lib/logf.c (logf): For negative arguments, return NaN.
22706         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
22707         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
22708         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
22710         logf-ieee: Work around test failure on Solaris 9.
22711         * modules/logf-ieee (Depends-on): Add log-ieee.
22712         (configure.ac): Require gl_FUNC_LOGF.
22714         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
22715         * m4/log-ieee.m4: New file.
22716         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
22717         log works with a negative argument. Replace it if not.
22718         * lib/log.c (log): For negative arguments, return NaN.
22719         * modules/log-ieee (Files): Add m4/log-ieee.m4.
22720         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
22721         * doc/posix-functions/log.texi: Mention the log-ieee module.
22723         Tests for module 'logl-ieee'.
22724         * modules/logl-ieee-tests: New file.
22725         * tests/test-logl-ieee.c: New file.
22727         New module 'logl-ieee'.
22728         * modules/logl-ieee: New file.
22730         Tests for module 'log-ieee'.
22731         * modules/log-ieee-tests: New file.
22732         * tests/test-log-ieee.c: New file.
22734         New module 'log-ieee'.
22735         * modules/log-ieee: New file.
22737         Tests for module 'logf-ieee'.
22738         * modules/logf-ieee-tests: New file.
22739         * tests/test-logf-ieee.c: New file.
22740         * tests/test-log-ieee.h: New file.
22742         New module 'logf-ieee'.
22743         * modules/logf-ieee: New file.
22745 2012-03-10  Bruno Haible  <bruno@clisp.org>
22747         log: Fix bug introduced on 2012-03-09.
22748         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
22750 2012-03-10  Pádraig Brady  <P@draigBrady.com>
22752         timer-time: link explicitly with pthreads on glibc
22753         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
22754         to support static linking, when newer glibc is
22755         detected, as that contains pthread emulation of
22756         POSIX timer functions where required.
22757         * modules/timer-time: Depend on threadlib to
22758         pull in the appropriate library to link.
22760 2012-03-10  Bruno Haible  <bruno@clisp.org>
22762         log* tests: More tests.
22763         * tests/test-log.h: New file.
22764         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
22765         (main): Invoke test_function.
22766         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
22767         (main): Invoke test_function.
22768         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
22769         (main): Invoke test_function.
22770         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
22771         tests/randomd.c.
22772         (Makefile.am): Add randomd.c to test_log_SOURCES.
22773         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
22774         tests/randomf.c.
22775         (Makefile.am): Add randomf.c to test_logf_SOURCES.
22776         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
22777         tests/randoml.c.
22778         (Depends-on): Add 'float'.
22779         (Makefile.am): Add randoml.c to test_logl_SOURCES.
22781 2012-03-09  Bruno Haible  <bruno@clisp.org>
22783         logl: Work around OSF/1 5.1 bug.
22784         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
22785         * lib/logl.c (logl): If logl exists, use it and provide just the
22786         workaround.
22787         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
22788         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
22789         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
22790         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
22791         * modules/logl (configure.ac): Consider REPLACE_LOGL.
22792         (Depends-on): Update conditions.
22793         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
22795 2012-03-09  Bruno Haible  <bruno@clisp.org>
22797         logf: Work around OSF/1 5.1 bug.
22798         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
22799         * lib/logf.c (logf): If logf exists, use it and provide just the
22800         workaround.
22801         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
22802         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
22803         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
22804         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
22805         * modules/logf (configure.ac): Consider REPLACE_LOGF.
22806         (Depends-on): Update conditions.
22807         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
22809 2012-03-09  Bruno Haible  <bruno@clisp.org>
22811         log: Work around OSF/1 5.1 bug.
22812         * lib/math.in.h (log): New declaration.
22813         * lib/log.c: New file.
22814         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
22815         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
22816         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
22817         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
22818         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
22819         * modules/log (Files): Add lib/log.c.
22820         (Depends-on): Add math.
22821         (configure.ac): If REPLACE_LOG is 1, compile an override.
22822         * tests/test-math-c++.cc: Check the declaration of log.
22823         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
22825 2012-03-09  Jim Meyering  <meyering@redhat.com>
22827         readtokens.c: adjust wording in a comment
22828         * lib/readtokens.c: Insert omitted "that" in a comment.
22830 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
22832         modechange: add notations +40, 00440, etc.
22833         * lib/modechange.c (mode_compile): Support new notations
22834         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
22836 2012-03-08  Bruno Haible  <bruno@clisp.org>
22838         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
22839         * m4/exp2l-ieee.m4: New file.
22840         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
22841         test whether exp2l works with a NaN argument and with a negative
22842         infinity argument. Replace it if not.
22843         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
22844         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
22845         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
22846         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
22847         (Depends-on): Update conditions.
22848         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
22849         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
22850         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
22852         Tests for module 'exp2l-ieee'.
22853         * modules/exp2l-ieee-tests: New file.
22854         * tests/test-exp2l-ieee.c: New file.
22856         New module 'exp2l-ieee'.
22857         * modules/exp2l-ieee: New file.
22859         Tests for module 'exp2-ieee'.
22860         * modules/exp2-ieee-tests: New file.
22861         * tests/test-exp2-ieee.c: New file.
22863         New module 'exp2-ieee'.
22864         * modules/exp2-ieee: New file.
22866         Tests for module 'exp2f-ieee'.
22867         * modules/exp2f-ieee-tests: New file.
22868         * tests/test-exp2f-ieee.c: New file.
22869         * tests/test-exp2-ieee.h: New file.
22871         New module 'exp2f-ieee'.
22872         * modules/exp2f-ieee: New file.
22874 2012-03-08  Bruno Haible  <bruno@clisp.org>
22876         Tests for module 'exp2l'.
22877         * modules/exp2l-tests: New file.
22878         * tests/test-exp2l.c: New file.
22880         New module 'exp2l'.
22881         * lib/math.in.h (exp2l): New declaration.
22882         * lib/exp2l.c: New file.
22883         * lib/expl-table.c: New file, extracted from lib/expl.c.
22884         * lib/expl.c (gl_expl_table): New declaration.
22885         (expl): Remove expl_table. Update reference.
22886         * m4/exp2l.m4: New file.
22887         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
22888         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
22889         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
22890         * modules/exp2l: New file.
22891         * modules/expl (Files): Add lib/expl-table.c.
22892         (configure.ac): Compile also expl-table.c.
22893         * tests/test-math-c++.cc: Check the declaration of exp2l.
22894         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
22895         problem.
22897 2012-03-08  Bruno Haible  <bruno@clisp.org>
22899         Tests for module 'exp2f'.
22900         * modules/exp2f-tests: New file.
22901         * tests/test-exp2f.c: New file.
22903         New module 'exp2f'.
22904         * lib/math.in.h (exp2f): New declaration.
22905         * lib/exp2f.c: New file.
22906         * m4/exp2f.m4: New file.
22907         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
22908         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
22909         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
22910         * modules/exp2f: New file.
22911         * tests/test-math-c++.cc: Check the declaration of exp2f.
22912         * doc/posix-functions/exp2f.texi: Mention the new module and the
22913         IRIX problem.
22915 2012-03-08  Bruno Haible  <bruno@clisp.org>
22917         Tests for module 'exp2'.
22918         * modules/exp2-tests: New file.
22919         * tests/test-exp2.c: New file.
22920         * tests/test-exp2.h: New file.
22922         New module 'exp2'.
22923         * lib/math.in.h (exp2): New declaration.
22924         * lib/exp2.c: New file.
22925         * m4/exp2.m4: New file.
22926         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
22927         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
22928         REPLACE_EXP2.
22929         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
22930         REPLACE_EXP2.
22931         * modules/exp2: New file.
22932         * tests/test-math-c++.cc: Check the declaration of exp2.
22933         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
22934         and OpenBSD problems.
22936 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
22938         savedir: fix comment typo
22939         * lib/savedir.c (savedirstream): Fix typo in comment.
22941 2012-03-08  Bruno Haible  <bruno@clisp.org>
22943         test-readtokens.c: use const; remove unwarranted cast
22944         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
22946 2012-03-08  Bruno Haible  <bruno@clisp.org>
22948         fmal: Avoid compilation error on AIX.
22949         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
22950         AIX 5.2..7.1.
22952 2012-03-08  Bruno Haible  <bruno@clisp.org>
22954         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
22955         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
22956         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
22957         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
22958         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
22959         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
22960         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
22962 2012-03-08  Bruno Haible  <bruno@clisp.org>
22964         remainderf: Override buggy system function on IRIX 6.5.
22965         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
22966         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
22967         when it exists.
22968         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
22970 2012-03-08  Jim Meyering  <meyering@redhat.com>
22972         test-readtokens.c: avoid const-related compilation warnings
22973         * tests/test-readtokens.c: Avoid const-related compilation warnings.
22975 2012-03-07  Jim Meyering  <meyering@redhat.com>
22976             Bruno Haible  <bruno@clisp.org>
22978         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
22979         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
22980         tests/randomd.c.
22981         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
22982         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
22983         tests/randoml.c.
22984         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
22986 2012-03-07  Bruno Haible  <bruno@clisp.org>
22988         expm1l: Avoid compilation error on AIX.
22989         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
22990         AIX 5.2..7.1.
22992 2012-03-07  Bruno Haible  <bruno@clisp.org>
22994         expm1l: Don't override undeclared system function on IRIX 6.5.
22995         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
22996         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
22997         it exists. Set HAVE_DECL_EXPM1L.
22998         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
22999         HAVE_EXPM1L.
23000         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
23001         HAVE_EXPM1L.
23002         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
23004 2012-03-07  Bruno Haible  <bruno@clisp.org>
23006         remainderl: Don't override undeclared system function on IRIX 6.5.
23007         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
23008         HAVE_REMAINDERL.
23009         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
23010         declared when it exists. Set HAVE_DECL_REMAINDERL.
23011         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
23012         not HAVE_REMAINDERL.
23013         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
23014         HAVE_REMAINDERL.
23015         * doc/posix-functions/remainderl.texi: Mention missing declaration
23016         problem.
23018 2012-03-07  Bruno Haible  <bruno@clisp.org>
23020         rintf: Don't override undeclared system function on IRIX 6.5.
23021         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
23022         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
23023         exists. Set HAVE_DECL_RINTF.
23024         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
23025         HAVE_RINTF.
23026         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
23027         HAVE_RINTF.
23028         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
23030 2012-03-07  Bruno Haible  <bruno@clisp.org>
23032         roundl: Avoid compilation error on AIX.
23033         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
23034         AIX 5.2..7.1.
23036 2012-03-07  Bruno Haible  <bruno@clisp.org>
23038         roundl: Don't override undeclared system function on IRIX 6.5.
23039         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
23040         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
23041         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
23042         * modules/roundl (configure.ac): For replacement code, test
23043         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
23044         (Depends-on): Update conditions.
23045         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
23047 2012-03-07  Bruno Haible  <bruno@clisp.org>
23049         roundf: Don't override undeclared system function on IRIX 6.5.
23050         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
23051         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
23052         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
23053         * modules/roundf (configure.ac): For replacement code, test
23054         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
23055         (Depends-on): Update conditions.
23056         * modules/roundf-ieee (Depends-on): Update conditions.
23057         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
23059 2012-03-07  Bruno Haible  <bruno@clisp.org>
23061         round: Don't override undeclared system function on IRIX 6.5.
23062         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
23063         argument.
23064         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
23065         also when it is not declared. Set HAVE_ROUND. For replacement code,
23066         test HAVE_ROUND, not HAVE_DECL_ROUND.
23067         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
23068         not HAVE_DECL_ROUND.
23069         (Depends-on): Update conditions.
23070         * modules/round-ieee (Depends-on): Update conditions.
23071         * doc/posix-functions/round.texi: Mention the IRIX problem.
23073 2012-03-07  Bruno Haible  <bruno@clisp.org>
23075         copysignf: Don't override undeclared system function on IRIX 6.5.
23076         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
23077         HAVE_COPYSIGNF.
23078         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
23079         declared when it exists. Set HAVE_DECL_COPYSIGNF.
23080         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
23081         not HAVE_COPYSIGNF.
23082         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
23083         HAVE_COPYSIGNF.
23084         * doc/posix-functions/copysignf.texi: Mention missing declaration
23085         problem.
23087 2012-03-07  Jim Meyering  <meyering@redhat.com>
23089         readtokens: add tests
23090         * modules/readtokens-tests: New file.
23091         * tests/test-readtokens.c: New file.
23093 2012-03-07  Jim Meyering  <meyering@redhat.com>
23095         quotearg: the module must now include quote.h
23096         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
23097         So must the module.
23098         * modules/quotearg (Files): Add quote.h.
23100 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
23102         readtokens: avoid core dumps with unusual calling patterns
23103         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
23104         * lib/readtokens.c: Include limits.h.
23105         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
23106         (readtoken): Don't cache the delimiters; the cache code was buggy
23107         if !delim && saved_delim, or if the new n_delim differs from the old.
23108         Also, it wasn't thread-safe.
23110 2012-03-07  Bruno Haible  <bruno@clisp.org>
23112         quote: Adhere to common module description layout.
23113         * modules/quote (Makefile.am): Add back empty section.
23115 2012-03-06  Akim Demaille  <demaille@gostai.com>
23117         quote: fuse into quotearg
23118         This patch is made for the benefit of Bison.
23119         quote does not leave the choice of the quoting style to the user.
23120         quoting_style provides poor customizability, yet quoting_options,
23121         which is very rich, is hidden inside quotearg.c.  So in order to
23122         allow quote customization, move its implementation to quotearg.c.
23123         * lib/quote.c: Remove.
23124         * modules/quote: Adjust.
23125         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
23126         warning: provide all the members of literal structs.
23127         (quote_quoting_options): New.
23128         (quote, quote_n): Import implementation from quote.c.
23129         * lib/quote.h: Import the comments from quote.c.
23130         (quote_quoting_options): New.
23132 2012-03-06  Bruno Haible  <bruno@clisp.org>
23134         Tests for module 'expm1l-ieee'.
23135         * modules/expm1l-ieee-tests: New file.
23136         * tests/test-expm1l-ieee.c: New file.
23138         New module 'expm1l-ieee'.
23139         * modules/expm1l-ieee: New file.
23141         Tests for module 'expm1f-ieee'.
23142         * modules/expm1f-ieee-tests: New file.
23143         * tests/test-expm1f-ieee.c: New file.
23145         New module 'expm1f-ieee'.
23146         * modules/expm1f-ieee: New file.
23148         Tests for module 'expm1-ieee'.
23149         * modules/expm1-ieee-tests: New file.
23150         * tests/test-expm1-ieee.c: New file.
23151         * tests/test-expm1-ieee.h: New file.
23153         New module 'expm1-ieee'.
23154         * modules/expm1-ieee: New file.
23155         * m4/expm1-ieee.m4: New file.
23156         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
23157         whether expm1 works with a minus zero argument. Replace it if not.
23158         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
23159         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
23160         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
23161         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
23162         (Depends-on): Update conditions.
23163         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
23164         AIX problem.
23166 2012-03-06  Bruno Haible  <bruno@clisp.org>
23168         Work around expm1f bug on IRIX 6.5.
23169         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
23170         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
23171         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
23172         not work.
23173         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
23174         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
23175         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
23176         (Depends-on): Update conditions.
23177         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
23179 2012-03-06  Bruno Haible  <bruno@clisp.org>
23181         Tests for module 'expm1l'.
23182         * modules/expm1l-tests: New file.
23183         * tests/test-expm1l.c: New file.
23185         New module 'expm1l'.
23186         * lib/math.in.h (expm1l): New declaration.
23187         * lib/expm1l.c: New file.
23188         * m4/expm1l.m4: New file.
23189         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
23190         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
23191         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
23192         * modules/expm1l: New file.
23193         * tests/test-math-c++.cc: Check the declaration of expm1l.
23194         * doc/posix-functions/expm1l.texi: Mention the new module.
23196 2012-03-06  Bruno Haible  <bruno@clisp.org>
23198         Tests for module 'expm1f'.
23199         * modules/expm1f-tests: New file.
23200         * tests/test-expm1f.c: New file.
23202         New module 'expm1f'.
23203         * lib/math.in.h (expm1f): New declaration.
23204         * lib/expm1f.c: New file.
23205         * m4/expm1f.m4: New file.
23206         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
23207         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
23208         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
23209         * modules/expm1f: New file.
23210         * tests/test-math-c++.cc: Check the declaration of expm1f.
23211         * doc/posix-functions/expm1f.texi: Mention the new module.
23213 2012-03-06  Bruno Haible  <bruno@clisp.org>
23215         Tests for module 'expm1'.
23216         * modules/expm1-tests: New file.
23217         * tests/test-expm1.c: New file.
23218         * tests/test-expm1.h: New file.
23220         New module 'expm1'.
23221         * lib/math.in.h (expm1): New declaration.
23222         * lib/expm1.c: New file.
23223         * m4/expm1.m4: New file.
23224         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
23225         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
23226         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
23227         * modules/expm1: New file.
23228         * tests/test-math-c++.cc: Check the declaration of expm1.
23229         * doc/posix-functions/expm1.texi: Mention the new module.
23231 2012-03-06  Bruno Haible  <bruno@clisp.org>
23233         math: Ensure declarations of math functions.
23234         * modules/acosf (Depends-on): Add 'extensions'.
23235         * modules/asinf (Depends-on): Likewise.
23236         * modules/atan2f (Depends-on): Likewise.
23237         * modules/atanf (Depends-on): Likewise.
23238         * modules/cbrt (Depends-on): Likewise.
23239         * modules/cbrtf (Depends-on): Likewise.
23240         * modules/cbrtl (Depends-on): Likewise.
23241         * modules/copysignf (Depends-on): Likewise.
23242         * modules/copysignl (Depends-on): Likewise.
23243         * modules/cosf (Depends-on): Likewise.
23244         * modules/coshf (Depends-on): Likewise.
23245         * modules/expf (Depends-on): Likewise.
23246         * modules/fabsf (Depends-on): Likewise.
23247         * modules/fabsl (Depends-on): Likewise.
23248         * modules/fmaf (Depends-on): Likewise.
23249         * modules/fmal (Depends-on): Likewise.
23250         * modules/fmodf (Depends-on): Likewise.
23251         * modules/fmodl (Depends-on): Likewise.
23252         * modules/frexpf (Depends-on): Likewise.
23253         * modules/frexpl (Depends-on): Likewise.
23254         * modules/hypot (Depends-on): Likewise.
23255         * modules/hypotf (Depends-on): Likewise.
23256         * modules/hypotl (Depends-on): Likewise.
23257         * modules/ldexpf (Depends-on): Likewise.
23258         * modules/ldexpl (Depends-on): Likewise.
23259         * modules/log10f (Depends-on): Likewise.
23260         * modules/log10l (Depends-on): Likewise.
23261         * modules/log1p (Depends-on): Likewise.
23262         * modules/logb (Depends-on): Likewise.
23263         * modules/logf (Depends-on): Likewise.
23264         * modules/modff (Depends-on): Likewise.
23265         * modules/modfl (Depends-on): Likewise.
23266         * modules/powf (Depends-on): Likewise.
23267         * modules/remainderf (Depends-on): Likewise.
23268         * modules/remainderl (Depends-on): Likewise.
23269         * modules/rintf (Depends-on): Likewise.
23270         * modules/rintl (Depends-on): Likewise.
23271         * modules/sinf (Depends-on): Likewise.
23272         * modules/sinhf (Depends-on): Likewise.
23273         * modules/sqrtf (Depends-on): Likewise.
23274         * modules/tanf (Depends-on): Likewise.
23275         * modules/tanhf (Depends-on): Likewise.
23276         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
23277         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
23278         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
23279         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
23280         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
23281         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
23282         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
23283         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
23284         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
23285         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
23286         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
23287         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
23288         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
23289         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
23290         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
23291         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
23292         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
23293         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
23294         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
23295         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
23296         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
23297         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
23298         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
23299         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
23300         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
23301         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
23302         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
23303         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
23304         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
23305         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
23306         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
23307         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
23308         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
23309         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
23310         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
23311         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
23312         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
23313         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
23314         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
23315         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
23316         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
23318 2012-03-06  Bruno Haible  <bruno@clisp.org>
23320         math: Update module names in warnings.
23321         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
23322         tanl): Use specific module name in warn-on-use warning.
23324 2012-03-06  Bruno Haible  <bruno@clisp.org>
23326         expl: Simplify computation.
23327         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
23329 2012-03-05  Bruno Haible  <bruno@clisp.org>
23331         exp* tests: More tests.
23332         * tests/test-exp.h: New file.
23333         * tests/test-exp.c: Include <float.h> and test-exp.h.
23334         (main): Invoke test_function.
23335         * tests/test-expf.c: Include <float.h> and test-exp.h.
23336         (main): Invoke test_function.
23337         * tests/test-expl.c: Include <float.h> and test-exp.h.
23338         (main): Invoke test_function.
23339         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
23340         (Makefile.am): Add randomd.c to test_exp_SOURCES.
23341         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
23342         (Makefile.am): Add randomf.c to test_expf_SOURCES.
23343         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
23344         (Depends-on): Add 'float'.
23345         (Makefile.am): Add randoml.c to test_expl_SOURCES.
23347         expl: Fix precision of computed result.
23348         * lib/expl.c: Completely rewritten.
23349         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
23350         (Maintainer): Add me.
23351         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
23353 2012-03-05  Bruno Haible  <bruno@clisp.org>
23355         cbrt* tests: More tests.
23356         * tests/test-cbrt.h: New file.
23357         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
23358         (main): Invoke test_function.
23359         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
23360         (main): Invoke test_function.
23361         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
23362         (main): Invoke test_function.
23363         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
23364         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
23365         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
23366         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
23367         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
23368         (Depends-on): Add 'float'.
23369         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
23371 2012-03-05  Bruno Haible  <bruno@clisp.org>
23373         hypot* tests: More tests.
23374         * tests/test-hypot.h: New file, partially extracted from
23375         tests/test-hypotl.c.
23376         * tests/test-hypot.c: Include test-hypot.h.
23377         (main): Invoke test_function.
23378         * tests/test-hypotf.c: Include test-hypot.h.
23379         (main): Invoke test_function.
23380         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
23381         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
23382         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
23383         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
23384         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
23385         tests/randomf.c.
23386         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
23387         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
23388         tests/randoml.c.
23389         (Depends-on): Add 'fpucw', 'float'.
23390         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
23392 2012-03-05  Bruno Haible  <bruno@clisp.org>
23394         fpucw: Doc about FreeBSD.
23395         * lib/fpucw.h: Mention FreeBSD in comments.
23397 2012-03-04  Bruno Haible  <bruno@clisp.org>
23399         sqrt* tests: More tests.
23400         * tests/test-sqrt.h: New file.
23401         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
23402         (main): Invoke test_function.
23403         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
23404         (main): Invoke test_function.
23405         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
23406         (main): Invoke test_function.
23407         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
23408         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
23409         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
23410         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
23411         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
23412         (Depends-on): Add 'float'.
23413         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
23415 2012-03-04  Bruno Haible  <bruno@clisp.org>
23417         remainder* tests: More tests.
23418         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
23419         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
23420         (main): Invoke test_function.
23421         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
23422         (main): Invoke test_function.
23423         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
23424         (main): Invoke test_function.
23425         * modules/remainder-tests (Files): Add tests/test-remainder.h,
23426         tests/randomd.c.
23427         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
23428         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
23429         tests/randomf.c.
23430         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
23431         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
23432         tests/randoml.c.
23433         (Depends-on): Add 'float'.
23434         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
23436 2012-03-04  Bruno Haible  <bruno@clisp.org>
23438         remainder, remainderf, remainderl: Fix computation for large quotients.
23439         * lib/remainder.c: Completely rewritten.
23440         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
23441         USE_FLOAT.
23442         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
23443         USE_LONG_DOUBLE.
23444         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
23445         isnand, isinf. Remove round, fma.
23446         * modules/remainderf (Files): Add lib/remainder.c.
23447         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
23448         Remove roundf, fmaf.
23449         * modules/remainderl (Files): Add lib/remainder.c.
23450         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
23451         isinf. Remove roundl, fmal.
23452         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
23453         REMAINDER_LIBM.
23454         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
23455         REMAINDERF_LIBM.
23456         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
23457         REMAINDERL_LIBM.
23459 2012-03-04  Bruno Haible  <bruno@clisp.org>
23461         fmod* tests: More tests.
23462         * tests/test-fmod.h (my_ldexp): New function.
23463         (test_function): Reduce amount of random numbers to test. Add tests
23464         of very large quotients x / y.
23465         * tests/test-fmod.c (MAX_EXP): New macro.
23466         * tests/test-fmodf.c (MAX_EXP): Likewise.
23467         * tests/test-fmodl.c (MAX_EXP): Likewise.
23469 2012-03-04  Bruno Haible  <bruno@clisp.org>
23471         fmod, fmodl: Fix computation for large quotients x / y.
23472         * lib/fmod.c: Completely rewritten.
23473         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
23474         USE_LONG_DOUBLE.
23475         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
23476         isnand. Remove fma.
23477         * modules/fmodl (Files): Add lib/fmod.c.
23478         (Depends-on): Add float, isfinite, signbit, fabsl,
23479         frexpl, ldexpl, isnanl. Remove fma.
23480         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
23481         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
23483 2012-03-03  Bruno Haible  <bruno@clisp.org>
23485         fmod* tests: More tests.
23486         * tests/test-fmod.h: New file.
23487         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
23488         (main): Invoke test_function.
23489         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
23490         (main): Invoke test_function.
23491         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
23492         (main): Invoke test_function.
23493         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
23494         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
23495         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
23496         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
23497         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
23498         (Depends-on): Add 'float'.
23499         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
23501 2012-03-03  Bruno Haible  <bruno@clisp.org>
23503         rint* tests: More tests.
23504         * tests/test-rint.h: New file, partially extracted from
23505         tests/test-rintl.c.
23506         * tests/test-rint.c: Include test-rint.h.
23507         (main): Invoke test_function.
23508         * tests/test-rintf.c: Include test-rint.h.
23509         (main): Invoke test_function.
23510         * tests/test-rintl.c: Include test-rint.h.
23511         (main): Invoke test_function.
23512         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
23513         (Makefile.am): Add randomd.c to test_rint_SOURCES.
23514         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
23515         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
23516         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
23517         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
23519 2012-03-03  Bruno Haible  <bruno@clisp.org>
23521         modf* tests: More tests.
23522         * tests/test-modf.h: New file.
23523         * tests/test-modf.c: Include <float.h> and test-modf.h.
23524         (main): Invoke test_function.
23525         * tests/test-modff.c: Include <float.h> and test-modf.h.
23526         (main): Invoke test_function.
23527         * tests/test-modfl.c: Include <float.h> and test-modf.h.
23528         (main): Invoke test_function.
23529         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
23530         (Makefile.am): Add randomd.c to test_modf_SOURCES.
23531         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
23532         (Makefile.am): Add randomf.c to test_modff_SOURCES.
23533         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
23534         (Depends-on): Add 'float'.
23535         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
23537 2012-03-03  Bruno Haible  <bruno@clisp.org>
23539         fabs* tests: More tests.
23540         * tests/test-fabs.h: New file, partially extracted from
23541         tests/test-fabsl.c.
23542         * tests/test-fabs.c (RANDOM): New macro.
23543         * tests/test-fabsf.c (RANDOM): New macro.
23544         * tests/test-fabsl.c (RANDOM): New macro.
23545         * modules/fabs-tests (Files): Add tests/randomd.c.
23546         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
23547         * modules/fabsf-tests (Files): Add tests/randomf.c.
23548         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
23549         * modules/fabsl-tests (Files): Add tests/randoml.c.
23550         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
23552 2012-03-03  Bruno Haible  <bruno@clisp.org>
23554         ldexp* tests: More tests.
23555         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
23556         * tests/test-ldexp.c (RANDOM): New macro.
23557         * tests/test-ldexpf.c (RANDOM): New macro.
23558         * tests/test-ldexpl.c (RANDOM): New macro.
23559         * modules/ldexp-tests (Files): Add tests/randomd.c.
23560         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
23561         * modules/ldexpf-tests (Files): Add tests/randomf.c.
23562         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
23563         * modules/ldexpl-tests (Files): Add tests/randoml.c.
23564         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
23566 2012-03-03  Bruno Haible  <bruno@clisp.org>
23568         frexp* tests: More tests.
23569         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
23570         * tests/test-frexp.c (RANDOM): New macro.
23571         * tests/test-frexpf.c (RANDOM): New macro.
23572         * tests/test-frexpl.c (RANDOM): New macro.
23573         * modules/frexp-tests (Files): Add tests/randomd.c.
23574         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
23575         * modules/frexpf-tests (Files): Add tests/randomf.c.
23576         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
23577         * modules/frexpl-tests (Files): Add tests/randoml.c.
23578         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
23580 2012-03-03  Bruno Haible  <bruno@clisp.org>
23582         Support for pseudo-random numbers in tests.
23583         * tests/randomf.c: New file.
23584         * tests/randomd.c: New file.
23585         * tests/randoml.c: New file.
23586         * tests/macros.h (randomf, randomd, randoml): New declarations.
23588 2012-03-03  Bruno Haible  <bruno@clisp.org>
23590         frexp* tests: Refactor.
23591         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
23592         * tests/test-frexp.c: Include and use it.
23593         * tests/test-frexpf.c: Likewise.
23594         * tests/test-frexpl.c: Likewise.
23595         * modules/frexp-tests (Files): Add tests/test-frexp.h.
23596         * modules/frexpf-tests (Files): Likewise.
23597         * modules/frexpl-tests (Files): Likewise.
23599 2012-03-02  Jim Meyering  <meyering@redhat.com>
23601         maint: don't specify XZ_OPT=-9ev in dist-related rule
23602         Using xz's -9 option is warranted only if you have a very large
23603         tarball (see xz's documentation for the sizes vs. presets), and
23604         requires 64MiB of memory at decompression time.
23605         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
23606         Automake's default of just "-e" is fine.  Override on a
23607         per-package basis by setting XZ_OPT e.g., in cfg.mk.
23609 2012-03-01  Eric Blake  <eblake@redhat.com>
23611         maint.mk: allow announcement for non-gnulib project
23612         * maint.mk (announcement): Skip gnulib version if not used.
23614 2012-03-01  Jim Meyering  <meyering@redhat.com>
23616         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
23617         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
23618         envvar settings cannot interfere.  Otherwise, setting envvars like
23619         prohibit=foo require=bar, etc. would cause spurious test failures.
23621 2012-03-01  Eric Blake  <eblake@redhat.com>
23623         maint.mk: add per-line exclusions to prohibitions
23624         * maint.mk (_sc_search_regexp): Add $exclude parameter.
23625         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
23626         (sc_const_long_option): Use it.
23628 2012-03-01  Bruno Haible  <bruno@clisp.org>
23630         Tests for module 'expl-ieee'.
23631         * modules/expl-ieee-tests: New file.
23632         * tests/test-expl-ieee.c: New file.
23634         New module 'expl-ieee'.
23635         * modules/expl-ieee: New file.
23637         Tests for module 'exp-ieee'.
23638         * modules/exp-ieee-tests: New file.
23639         * tests/test-exp-ieee.c: New file.
23641         New module 'exp-ieee'.
23642         * modules/exp-ieee: New file.
23644         Tests for module 'expf-ieee'.
23645         * modules/expf-ieee-tests: New file.
23646         * tests/test-expf-ieee.c: New file.
23647         * tests/test-exp-ieee.h: New file.
23649         New module 'expf-ieee'.
23650         * modules/expf-ieee: New file.
23652 2012-02-29  Bruno Haible  <bruno@clisp.org>
23654         cbrtl-ieee: Work around test failure on IRIX 6.5.
23655         * m4/cbrtl-ieee.m4: New file.
23656         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
23657         test whether cbrtl works with a minus zero argument. Replace it if not.
23658         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
23659         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
23660         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
23661         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
23662         (Depends-on): Update conditions.
23663         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
23664         m4/signbit.m4.
23665         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
23666         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
23667         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
23669         Tests for module 'cbrtl-ieee'.
23670         * modules/cbrtl-ieee-tests: New file.
23671         * tests/test-cbrtl-ieee.c: New file.
23673         New module 'cbrtl-ieee'.
23674         * modules/cbrtl-ieee: New file.
23676         Tests for module 'cbrt-ieee'.
23677         * modules/cbrt-ieee-tests: New file.
23678         * tests/test-cbrt-ieee.c: New file.
23680         New module 'cbrt-ieee'.
23681         * modules/cbrt-ieee: New file.
23683         Tests for module 'cbrtf-ieee'.
23684         * modules/cbrtf-ieee-tests: New file.
23685         * tests/test-cbrtf-ieee.c: New file.
23686         * tests/test-cbrt-ieee.h: New file.
23688         New module 'cbrtf-ieee'.
23689         * modules/cbrtf-ieee: New file.
23691 2012-02-29  Bruno Haible  <bruno@clisp.org>
23693         cbrtf: Work around bug in IRIX 6.5 system function.
23694         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
23695         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
23696         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
23697         work.
23698         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
23699         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
23700         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
23701         (Depends-on): Update conditions.
23702         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
23704 2012-02-29  Bruno Haible  <bruno@clisp.org>
23706         Tests for module 'cbrtl'.
23707         * modules/cbrtl-tests: New file.
23708         * tests/test-cbrtl.c: New file.
23710         New module 'cbrtl'.
23711         * lib/math.in.h (cbrtl): New declaration.
23712         * lib/cbrtl.c: New file.
23713         * m4/cbrtl.m4: New file.
23714         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
23715         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
23716         HAVE_DECL_CBRTL.
23717         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
23718         HAVE_DECL_CBRTL.
23719         * modules/cbrtl: New file.
23720         * tests/test-math-c++.cc: Check the declaration of cbrtl.
23721         * doc/posix-functions/cbrtl.texi: Mention the new module.
23723 2012-02-29  Bruno Haible  <bruno@clisp.org>
23725         Tests for module 'cbrtf'.
23726         * modules/cbrtf-tests: New file.
23727         * tests/test-cbrtf.c: New file.
23729         New module 'cbrtf'.
23730         * lib/math.in.h (cbrtf): New declaration.
23731         * lib/cbrtf.c: New file.
23732         * m4/cbrtf.m4: New file.
23733         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
23734         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
23735         HAVE_DECL_CBRTF.
23736         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
23737         HAVE_DECL_CBRTF.
23738         * modules/cbrtf: New file.
23739         * tests/test-math-c++.cc: Check the declaration of cbrtf.
23740         * doc/posix-functions/cbrtf.texi: Mention the new module.
23742 2012-02-29  Bruno Haible  <bruno@clisp.org>
23744         cbrt: Provide replacement on MSVC and Minix.
23745         * lib/math.in.h (cbrt): New declaration.
23746         * lib/cbrt.c: New file.
23747         * m4/cbrt.m4: New file.
23748         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
23749         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
23750         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
23751         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
23752         (Depends-on): Add dependencies.
23753         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
23754         * tests/test-math-c++.cc: Check the declaration of cbrt.
23755         * doc/posix-functions/cbrt.texi: Mention that the module provides a
23756         replacement.
23758 2012-02-29  Bruno Haible  <bruno@clisp.org>
23760         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
23761         * m4/hypotl-ieee.m4: New file.
23762         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
23763         test whether hypotl works with mixed NaN and Infinity arguments.
23764         Replace it if not.
23765         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
23766         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
23767         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
23768         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
23769         (Depends-on): Update conditions.
23770         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
23771         (Depends-on): Add hypot-ieee.
23772         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
23773         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
23775         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
23776         * m4/hypotf-ieee.m4: New file.
23777         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
23778         test whether hypotf works with mixed NaN and Infinity arguments.
23779         Replace it if not.
23780         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
23781         (Depends-on): Add hypot-ieee.
23782         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
23783         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
23785         hypot-ieee: Work around test failure on OSF/1 and native Windows.
23786         * lib/math.in.h (hypot): New declaration.
23787         * lib/hypot.c: New file.
23788         * m4/hypot-ieee.m4: New file.
23789         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
23790         whether hypot works with mixed NaN and Infinity arguments. Replace it
23791         if not.
23792         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
23793         REPLACE_HYPOT.
23794         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
23795         * modules/hypot (Files): Add lib/hypot.c.
23796         (Depends-on): Add dependencies.
23797         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
23798         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
23799         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
23800         * tests/test-math-c++.cc: Check the declaration of hypot.
23801         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
23803         Tests for module 'hypotl-ieee'.
23804         * modules/hypotl-ieee-tests: New file.
23805         * tests/test-hypotl-ieee.c: New file.
23807         New module 'hypotl-ieee'.
23808         * modules/hypotl-ieee: New file.
23810         Tests for module 'hypot-ieee'.
23811         * modules/hypot-ieee-tests: New file.
23812         * tests/test-hypot-ieee.c: New file.
23814         New module 'hypot-ieee'.
23815         * modules/hypot-ieee: New file.
23817         Tests for module 'hypotf-ieee'.
23818         * modules/hypotf-ieee-tests: New file.
23819         * tests/test-hypotf-ieee.c: New file.
23820         * tests/test-hypot-ieee.h: New file.
23822         New module 'hypotf-ieee'.
23823         * modules/hypotf-ieee: New file.
23825 2012-02-29  Bruno Haible  <bruno@clisp.org>
23827         Remove unused variables.
23828         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
23829         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
23830         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
23831         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
23833 2012-02-29  Eric Blake  <eblake@redhat.com>
23835         termios: fix pid_t always, not just for tcgetsid
23836         * doc/posix-headers/termios.texi (termios.h): Mention problem.
23837         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
23838         just when building tcgetsid.
23840 2012-02-29  Bruno Haible  <bruno@clisp.org>
23842         Tests for module 'hypotl'.
23843         * modules/hypotl-tests: New file.
23844         * tests/test-hypotl.c: New file.
23846         New module 'hypotl'.
23847         * lib/math.in.h (hypotl): New declaration.
23848         * lib/hypotl.c: New file.
23849         * m4/hypotl.m4: New file.
23850         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
23851         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
23852         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
23853         * modules/hypotl: New file.
23854         * tests/test-math-c++.cc: Check the hypotl declaration.
23855         * doc/posix-functions/hypotl.texi: Mention the new module.
23857 2012-02-29  Eric Blake  <eblake@redhat.com>
23859         tcgetsid: fix cygwin header bug
23860         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
23862         docs: update cygwin progress
23863         * doc/posix-functions/llround.texi (llround): Added in cygwin
23864         1.7.8.
23865         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
23866         * doc/glibc-functions/program_invocation_name.texi
23867         (program_invocation_name): Likewise.
23868         * doc/glibc-functions/program_invocation_short_name.texi
23869         (program_invocation_short_name): Likewise.
23870         * doc/glibc-functions/madvise.texi (madvise): Likewise.
23871         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
23872         Likewise.
23873         * doc/posix-functions/pthread_spin_destroy.texi
23874         (pthread_spin_destroy): Added in cygwin 1.7.10.
23875         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
23876         Likewise.
23877         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
23878         Likewise.
23879         * doc/posix-functions/pthread_spin_trylock.texi
23880         (pthread_spin_trylock): Likewise.
23881         * doc/posix-functions/pthread_spin_unlock.texi
23882         (pthread_spin_unlock): Likewise.
23883         * doc/posix-functions/pthread_setschedprio.texi
23884         (pthread_setschedprio): Likewise.
23885         * doc/posix-functions/pthread_attr_getstack.texi
23886         (pthread_attr_getstack): Likewise.
23887         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
23888         (pthread_attr_getstackaddr): Likewise.
23889         * doc/glibc-functions/pthread_getattr_np.texi
23890         (pthread_getattr_np): Likewise.
23891         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
23892         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
23893         * doc/posix-functions/clock_settime.texi (clock_settime):
23894         Likewise.
23895         * doc/posix-functions/pthread_attr_getguardsize.texi
23896         (pthread_attr_getguardsize): Likewise.
23897         * doc/posix-functions/pthread_attr_setguardsize.texi
23898         (pthread_attr_setguardsize): Likewise.
23899         * doc/posix-functions/pthread_attr_setstack.texi
23900         (pthread_attr_setstack): Likewise.
23901         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
23902         (pthread_attr_setstackaddr): Likewise.
23903         * doc/posix-functions/clock_getcpuclockid.texi
23904         (clock_getcpuclockid): Likewise.
23905         * doc/posix-functions/pthread_getcpuclockid.texi
23906         (pthread_getcpuclockid): Likewise.
23907         * doc/glibc-functions/error.texi (error): Likewise.
23908         * doc/glibc-functions/error_at_line.texi (error_at_line):
23909         Likewise.
23910         * doc/glibc-functions/error_message_count.texi
23911         (error_message_count): Likewise.
23912         * doc/glibc-functions/error_one_per_line.texi
23913         (error_one_per_line): Likewise.
23914         * doc/glibc-functions/error_print_progname.texi
23915         (error_print_progname): Likewise.
23916         * doc/posix-functions/pthread_condattr_getclock.texi
23917         (pthread_condattr_getclock): Likewise.
23918         * doc/posix-functions/pthread_condattr_setclock.texi
23919         (pthread_condattr_setclock): Likewise.
23920         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
23921         Likewise.
23922         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
23923         * doc/glibc-functions/getpt.texi (getpt): Likewise.
23924         * doc/glibc-functions/get_current_dir_name.texi
23925         (get_current_dir_name): Likewise.
23926         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
23927         Likewise.
23928         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
23929         wrong return type.
23930         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
23931         1.7.11.
23933 2012-02-29  Bruno Haible  <bruno@clisp.org>
23935         Tests for module 'hypotf'.
23936         * modules/hypotf-tests: New file.
23937         * tests/test-hypotf.c: New file.
23939         New module 'hypotf'.
23940         * lib/math.in.h (hypotf): New declaration.
23941         * lib/hypotf.c: New file.
23942         * m4/hypotf.m4: New file.
23943         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
23944         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
23945         REPLACE_HYPOTF.
23946         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
23947         REPLACE_HYPOTF.
23948         * modules/hypotf: New file.
23949         * tests/test-math-c++.cc: Check the hypotf declaration.
23950         * doc/posix-functions/hypotf.texi: Mention the new module.
23952         hypot: Prepare for hypotf module.
23953         * m4/hypot.m4: New file.
23954         * modules/hypot (Files): Add m4/hypot.m4.
23955         (configure.ac): Invoke gl_FUNC_HYPOT.
23957 2012-02-29  Bruno Haible  <bruno@clisp.org>
23959         hypot tests: More tests.
23960         * tests/test-hypot.c: Include <float.h>.
23961         (main): Add tests about overflow and underflow.
23963 2012-02-29  Bruno Haible  <bruno@clisp.org>
23965         math code: Add comments.
23966         * lib/acosl.c: Add comment about related glibc source files.
23967         * lib/asinl.c: Likewise.
23968         * lib/atanl.c: Likewise.
23969         * lib/expl.c: Likewise.
23970         * lib/logl.c: Likewise.
23971         * lib/sincosl.c: Likewise.
23972         * lib/sinl.c: Likewise.
23973         * lib/tanl.c: Likewise.
23974         * lib/trigl.c: Likewise.
23975         * lib/cosl.c: Likewise. Fix comments.
23977 2012-02-28  Bruno Haible  <bruno@clisp.org>
23979         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
23980         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
23981         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
23982         HUGE_VALL are defined.
23983         (numeric_equald): Renamed from numeric_equal.
23984         (numeric_equalf, numeric_equall): New functions.
23985         (main): Check also HUGE_VALF, HUGE_VALL.
23986         * modules/math-tests (Files): Add tests/macros.h.
23987         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
23988         HUGE_VALL.
23990 2012-02-28  Bruno Haible  <bruno@clisp.org>
23992         doc: Move ISO C11 feature notes into POSIX chapters.
23993         * doc/posix-functions/aligned_alloc.texi: Renamed from
23994         doc/glibc-functions/aligned_alloc.texi.
23995         * doc/posix-functions/quick_exit.texi: Renamed from
23996         doc/glibc-functions/quick_exit.texi.
23997         * doc/posix-headers/uchar.texi: Renamed from
23998         doc/glibc-headers/uchar.texi.
23999         * doc/posix-functions/c16rtomb.texi: Renamed from
24000         doc/glibc-functions/c16rtomb.texi.
24001         * doc/posix-functions/c32rtomb.texi: Renamed from
24002         doc/glibc-functions/c32rtomb.texi.
24003         * doc/posix-functions/mbrtoc16.texi: Renamed from
24004         doc/glibc-functions/mbrtoc16.texi.
24005         * doc/posix-functions/mbrtoc32.texi: Renamed from
24006         doc/glibc-functions/mbrtoc32.texi.
24007         * doc/gnulib.texi: Update.
24008         (Glibc uchar.h): Remove section.
24009         Suggested by Eric Blake.
24011 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
24013         stdnoreturn: port to MSVC better
24014         MSVC standard headers use __declspec(noreturn), so #define noreturn
24015         to empty on that platform.  Reported by Bruno Haible in
24016         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
24017         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
24018         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
24020 2012-02-28  Bruno Haible  <bruno@clisp.org>
24022         doc: Mention new glibc headers and functions.
24023         * doc/glibc-headers/uchar.texi: New file.
24024         * doc/glibc-functions/aligned_alloc.texi: New file.
24025         * doc/glibc-functions/c16rtomb.texi: New file.
24026         * doc/glibc-functions/c32rtomb.texi: New file.
24027         * doc/glibc-functions/clock_adjtime.texi: New file.
24028         * doc/glibc-functions/fanotify_init.texi: New file.
24029         * doc/glibc-functions/fanotify_mark.texi: New file.
24030         * doc/glibc-functions/inet6_opt_append.texi: New file.
24031         * doc/glibc-functions/inet6_opt_find.texi: New file.
24032         * doc/glibc-functions/inet6_opt_finish.texi: New file.
24033         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
24034         * doc/glibc-functions/inet6_opt_init.texi: New file.
24035         * doc/glibc-functions/inet6_opt_next.texi: New file.
24036         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
24037         * doc/glibc-functions/inet6_rth_add.texi: New file.
24038         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
24039         * doc/glibc-functions/inet6_rth_init.texi: New file.
24040         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
24041         * doc/glibc-functions/inet6_rth_segments.texi: New file.
24042         * doc/glibc-functions/inet6_rth_space.texi: New file.
24043         * doc/glibc-functions/login.texi: New file.
24044         * doc/glibc-functions/mbrtoc16.texi: New file.
24045         * doc/glibc-functions/mbrtoc32.texi: New file.
24046         * doc/glibc-functions/name_to_handle_at.texi: New file.
24047         * doc/glibc-functions/ntp_gettimex.texi: New file.
24048         * doc/glibc-functions/open_by_handle_at.texi: New file.
24049         * doc/glibc-functions/prlimit.texi: New file.
24050         * doc/glibc-functions/process_vm_readv.texi: New file.
24051         * doc/glibc-functions/process_vm_writev.texi: New file.
24052         * doc/glibc-functions/recvmmsg.texi: New file.
24053         * doc/glibc-functions/scandirat.texi: New file.
24054         * doc/glibc-functions/sendmmsg.texi: New file.
24055         * doc/glibc-functions/setns.texi: New file.
24056         * doc/glibc-functions/timespec_get.texi: New file.
24057         * doc/gnulib.texi: Include them.
24058         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
24059         sections.
24060         Reported by Eric Blake.
24062 2012-02-28  Bruno Haible  <bruno@clisp.org>
24064         Avoid compilation errors with MSVC option -fp:strict.
24065         * lib/floor.c: Use MSVC specific pragma fenv_access.
24066         * lib/ceil.c: Likewise.
24067         * lib/trunc.c: Likewise.
24068         * lib/round.c: Likewise.
24069         * lib/rint.c: Likewise.
24070         * lib/fma.c: Likewise.
24071         * lib/integer_length.c: Likewise.
24072         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
24073         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
24074         * tests/test-floor2.c: Likewise.
24075         * tests/test-floorf2.c: Likewise.
24076         * tests/test-ceil2.c: Likewise.
24077         * tests/test-ceilf2.c: Likewise.
24078         * tests/test-trunc2.c: Likewise.
24079         * tests/test-truncf2.c: Likewise.
24080         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
24082 2012-02-27  Bruno Haible  <bruno@clisp.org>
24084         Tests for module 'sqrtl-ieee'.
24085         * modules/sqrtl-ieee-tests: New file.
24086         * tests/test-sqrtl-ieee.c: New file.
24088         New module 'sqrtl-ieee'.
24089         * modules/sqrtl-ieee: New file.
24091         Tests for module 'sqrt-ieee'.
24092         * modules/sqrt-ieee-tests: New file.
24093         * tests/test-sqrt-ieee.c: New file.
24095         New module 'sqrt-ieee'.
24096         * modules/sqrt-ieee: New file.
24098         Tests for module 'sqrtf-ieee'.
24099         * modules/sqrtf-ieee-tests: New file.
24100         * tests/test-sqrtf-ieee.c: New file.
24101         * tests/test-sqrt-ieee.h: New file.
24103         New module 'sqrtf-ieee'.
24104         * modules/sqrtf-ieee: New file.
24106 2012-02-27  Bruno Haible  <bruno@clisp.org>
24108         remainderl-ieee: Work around test failure on OSF/1.
24109         * m4/remainderl-ieee.m4: New file.
24110         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
24111         present, test whether remainderl works with a zero second argument.
24112         Replace it if not.
24113         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
24114         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
24115         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
24116         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
24117         (Depends-on): Update conditions.
24118         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
24119         (Depends-on): Add remainder-ieee.
24120         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
24121         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
24122         module.
24124         remainderf-ieee: Work around test failure on OSF/1.
24125         * m4/remainderf-ieee.m4: New file.
24126         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
24127         present, test whether remainderf works with a zero second argument.
24128         Replace it if not.
24129         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
24130         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
24131         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
24132         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
24133         (Depends-on): Update conditions.
24134         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
24135         (Depends-on): Add remainder-ieee.
24136         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
24137         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
24138         module.
24140         remainder-ieee: Work around test failure on OSF/1.
24141         * m4/remainder-ieee.m4: New file.
24142         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
24143         present, test whether remainder works with a zero second argument.
24144         Replace it if not.
24145         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
24146         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
24147         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
24148         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
24149         (Depends-on): Update dependencies.
24150         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
24151         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
24152         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
24154         Tests for module 'remainderl-ieee'.
24155         * modules/remainderl-ieee-tests: New file.
24156         * tests/test-remainderl-ieee.c: New file.
24158         New module 'remainderl-ieee'.
24159         * modules/remainderl-ieee: New file.
24161         Tests for module 'remainder-ieee'.
24162         * modules/remainder-ieee-tests: New file.
24163         * tests/test-remainder-ieee.c: New file.
24165         New module 'remainder-ieee'.
24166         * modules/remainder-ieee: New file.
24168         Tests for module 'remainderf-ieee'.
24169         * modules/remainderf-ieee-tests: New file.
24170         * tests/test-remainderf-ieee.c: New file.
24171         * tests/test-remainder-ieee.h: New file.
24173         New module 'remainderf-ieee'.
24174         * modules/remainderf-ieee: New file.
24176 2012-02-27  Bruno Haible  <bruno@clisp.org>
24178         modff, modfl: Fix configure syntax error.
24179         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
24180         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
24182 2012-02-27  Bruno Haible  <bruno@clisp.org>
24184         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
24185         * m4/fmodl-ieee.m4: New file.
24186         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
24187         whether fmodl works with zero arguments. Replace it if not.
24188         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
24189         (Depends-on): Add fmod-ieee.
24190         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
24191         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
24193         fmodf-ieee: Work around test failure on OSF/1.
24194         * m4/fmodf-ieee.m4: New file.
24195         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
24196         whether fmodf works with zero arguments. Replace it if not.
24197         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
24198         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
24199         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
24200         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
24201         (Depends-on): Update dependencies.
24202         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
24203         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
24204         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
24206         fmodf-ieee: Work around test failure on MSVC 9.
24207         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
24208         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
24210         fmod-ieee: Work around test failures on OSF/1, mingw.
24211         * m4/fmod-ieee.m4: New file.
24212         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
24213         whether fmod works with zero arguments. Replace it if not.
24214         * lib/math.in.h (fmod): New declaration.
24215         * lib/fmod.c: New file.
24216         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
24217         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
24218         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
24219         * modules/fmod (Files): Add lib/fmod.c.
24220         (Depends-on): Add math, isinf, trunc, fma.
24221         (configure.ac): Arrange to compile lib/fmod.c if needed.
24222         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
24223         m4/signbit.m4.
24224         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
24225         * tests/test-math-c++.cc: Check the declaration of fmod.
24226         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
24228         fmodl-ieee: Fix test failures.
24229         * lib/fmodl.c (fmodl): Treat Inf specially.
24230         * modules/fmodl (Depends-on): Add isinf.
24232         Tests for module 'fmodl-ieee'.
24233         * modules/fmodl-ieee-tests: New file.
24234         * tests/test-fmodl-ieee.c: New file.
24236         New module 'fmodl-ieee'.
24237         * modules/fmodl-ieee: New file.
24239         Tests for module 'fmod-ieee'.
24240         * modules/fmod-ieee-tests: New file.
24241         * tests/test-fmod-ieee.c: New file.
24243         New module 'fmod-ieee'.
24244         * modules/fmod-ieee: New file.
24246         Tests for module 'fmodf-ieee'.
24247         * modules/fmodf-ieee-tests: New file.
24248         * tests/test-fmodf-ieee.c: New file.
24249         * tests/test-fmod-ieee.h: New file.
24251         New module 'fmodf-ieee'.
24252         * modules/fmodf-ieee: New file.
24254 2012-02-27  Bruno Haible  <bruno@clisp.org>
24256         Tests for module 'rintl-ieee'.
24257         * modules/rintl-ieee-tests: New file.
24258         * tests/test-rintl-ieee.c: New file.
24260         New module 'rintl-ieee'.
24261         * modules/rintl-ieee: New file.
24263         Tests for module 'rint-ieee'.
24264         * modules/rint-ieee-tests: New file.
24265         * tests/test-rint-ieee.c: New file.
24267         New module 'rint-ieee'.
24268         * modules/rint-ieee: New file.
24270         Tests for module 'rintf-ieee'.
24271         * modules/rintf-ieee-tests: New file.
24272         * tests/test-rintf-ieee.c: New file.
24273         * tests/test-rint-ieee.h: New file.
24275         New module 'rintf-ieee'.
24276         * modules/rintf-ieee: New file.
24278 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
24280         regex: re_search etc. should return -2 when memory exhausted
24281         This bug was uncovered when testing 'grep'.  Without the fix,
24282         re_search and friends return -1 when memory is exhausted, but -1
24283         means no match, and this causes grep to falsely report no-match
24284         instead of memory-exhaustion.  See
24285         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
24286         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
24287         trouble; this can occur if re_search_internal ran out of memory.
24289 2012-02-26  Bruno Haible  <bruno@clisp.org>
24291         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
24292         * m4/modfl-ieee.m4: New file.
24293         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
24294         whether modfl works with Inf. Replace it if not.
24295         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
24296         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
24297         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
24298         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
24299         (Depends-on): Update dependencies.
24300         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
24301         m4/signbit.m4.
24302         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
24303         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
24305         modfl-ieee: Fix dependencies.
24306         * modules/modfl-ieee (Depends-on): Add modf-ieee.
24308         modfl-ieee: Fix test failures.
24309         * lib/modfl.c (modfl): Treat NaN and Inf specially.
24310         * modules/modfl (Depends-on): Add isfinite, isinf.
24312         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
24313         * m4/modff-ieee.m4: New file.
24314         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
24315         whether modff works with NaN and Inf. Replace it if not.
24316         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
24317         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
24318         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
24319         * modules/modff (configure.ac): Consider REPLACE_MODFF.
24320         (Depends-on): Update dependencies.
24321         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
24322         m4/signbit.m4.
24323         (Depends-on): Add modf-ieee.
24324         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
24325         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
24327         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
24328         * m4/modf-ieee.m4: New file.
24329         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
24330         whether modf works with NaN and Inf. Replace it if not.
24331         * lib/math.in.h (modf): New declaration.
24332         * lib/modf.c: New file.
24333         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
24334         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
24335         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
24336         * modules/modf (Files): Add lib/modf.c.
24337         (Depends-on): Add math, isfinite, trunc, isinf.
24338         (configure.ac): Addrange to compile lib/modf.c if needed.
24339         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
24340         m4/signbit.m4.
24341         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
24342         * tests/test-math-c++.cc: Check the declaration of modf.
24343         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
24345         Tests for module 'modfl-ieee'.
24346         * modules/modfl-ieee-tests: New file.
24347         * tests/test-modfl-ieee.c: New file.
24349         New module 'modfl-ieee'.
24350         * modules/modfl-ieee: New file.
24352         Tests for module 'modf-ieee'.
24353         * modules/modf-ieee-tests: New file.
24354         * tests/test-modf-ieee.c: New file.
24356         New module 'modf-ieee'.
24357         * modules/modf-ieee: New file.
24359         Tests for module 'modff-ieee'.
24360         * modules/modff-ieee-tests: New file.
24361         * tests/test-modff-ieee.c: New file.
24362         * tests/test-modf-ieee.h: New file.
24364         New module 'modff-ieee'.
24365         * modules/modff-ieee: New file.
24367 2012-02-26  Bruno Haible  <bruno@clisp.org>
24369         Tests for module 'fabsl-ieee'.
24370         * modules/fabsl-ieee-tests: New file.
24371         * tests/test-fabsl-ieee.c: New file.
24373         New module 'fabsl-ieee'.
24374         * modules/fabsl-ieee: New file.
24376         Tests for module 'fabs-ieee'.
24377         * modules/fabs-ieee-tests: New file.
24378         * tests/test-fabs-ieee.c: New file.
24380         New module 'fabs-ieee'.
24381         * modules/fabs-ieee: New file.
24383         Tests for module 'fabsf-ieee'.
24384         * modules/fabsf-ieee-tests: New file.
24385         * tests/test-fabsf-ieee.c: New file.
24386         * tests/test-fabs-ieee.h: New file.
24388         New module 'fabsf-ieee'.
24389         * modules/fabsf-ieee: New file.
24391 2012-02-26  Bruno Haible  <bruno@clisp.org>
24393         Tests for module 'fmal-ieee'.
24394         * modules/fmal-ieee-tests: New file.
24395         * tests/test-fmal-ieee.c: New file.
24397         New module 'fmal-ieee'.
24398         * modules/fmal-ieee: New file.
24400         Tests for module 'fma-ieee'.
24401         * modules/fma-ieee-tests: New file.
24402         * tests/test-fma-ieee.c: New file.
24404         New module 'fma-ieee'.
24405         * modules/fma-ieee: New file.
24407         Tests for module 'fmaf-ieee'.
24408         * modules/fmaf-ieee-tests: New file.
24409         * tests/test-fmaf-ieee.c: New file.
24410         * tests/test-fma-ieee.h: New file.
24412         New module 'fmaf-ieee'.
24413         * modules/fmaf-ieee: New file.
24415 2012-02-26  Bruno Haible  <bruno@clisp.org>
24417         Tests for module 'ldexpl-ieee'.
24418         * modules/ldexpl-ieee-tests: New file.
24419         * tests/test-ldexpl-ieee.c: New file.
24421         New module 'ldexpl-ieee'.
24422         * modules/ldexpl-ieee: New file.
24424         Tests for module 'ldexp-ieee'.
24425         * modules/ldexp-ieee-tests: New file.
24426         * tests/test-ldexp-ieee.c: New file.
24428         New module 'ldexp-ieee'.
24429         * modules/ldexp-ieee: New file.
24431         Tests for module 'ldexpf-ieee'.
24432         * modules/ldexpf-ieee-tests: New file.
24433         * tests/test-ldexpf-ieee.c: New file.
24434         * tests/test-ldexp-ieee.h: New file.
24436         New module 'ldexpf-ieee'.
24437         * modules/ldexpf-ieee: New file.
24439 2012-02-26  Bruno Haible  <bruno@clisp.org>
24441         Refactor frexp*-ieee tests.
24442         * tests/test-frexp-ieee.h: New file.
24443         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
24444         (main): Just call test_function.
24445         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
24446         (main): Just call test_function.
24447         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
24448         (main): Just call test_function.
24449         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
24450         * modules/frexp-ieee-tests (Files): Likewise.
24451         * modules/frexpl-ieee-tests (Files): Likewise.
24453         Tests for module 'frexpl-ieee'.
24454         * modules/frexpl-ieee-tests: New file.
24455         * tests/test-frexpl-ieee.c: New file.
24457         New module 'frexpl-ieee'.
24458         * modules/frexpl-ieee: New file.
24460         Tests for module 'frexp-ieee'.
24461         * modules/frexp-ieee-tests: New file.
24462         * tests/test-frexp-ieee.c: New file.
24464         New module 'frexp-ieee'.
24465         * modules/frexp-ieee: New file.
24467         Tests for module 'frexpf-ieee'.
24468         * modules/frexpf-ieee-tests: New file.
24469         * tests/test-frexpf-ieee.c: New file.
24471         New module 'frexpf-ieee'.
24472         * modules/frexpf-ieee: New file.
24474 2012-02-26  Bruno Haible  <bruno@clisp.org>
24476         roundl-ieee tests: More tests.
24477         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
24478         (main): Add tests for [MX] shaded specification in POSIX.
24479         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24480         (Depends-on): Add isnanl-nolibm.
24482         round-ieee tests: More tests.
24483         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
24484         (main): Add tests for [MX] shaded specification in POSIX.
24485         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24486         (Depends-on): Add isnand-nolibm.
24488         roundf-ieee tests: More tests.
24489         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
24490         (main): Add tests for [MX] shaded specification in POSIX.
24491         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24492         (Depends-on): Add isnanf-nolibm.
24494         truncl-ieee tests: More tests.
24495         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
24496         (main): Add tests for [MX] shaded specification in POSIX.
24497         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24498         (Depends-on): Add isnanl-nolibm.
24500         trunc-ieee tests: More tests.
24501         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
24502         (main): Add tests for [MX] shaded specification in POSIX.
24503         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24504         (Depends-on): Add isnand-nolibm.
24506         truncf-ieee tests: More tests.
24507         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
24508         (main): Add tests for [MX] shaded specification in POSIX.
24509         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24510         (Depends-on): Add isnanf-nolibm.
24512         ceill-ieee tests: More tests.
24513         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
24514         (main): Add tests for [MX] shaded specification in POSIX.
24515         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24516         (Depends-on): Add isnanl-nolibm.
24518         ceil-ieee tests: More tests.
24519         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
24520         (main): Add tests for [MX] shaded specification in POSIX.
24521         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24522         (Depends-on): Add isnand-nolibm.
24524         ceilf-ieee tests: More tests.
24525         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
24526         (main): Add tests for [MX] shaded specification in POSIX.
24527         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24528         (Depends-on): Add isnanf-nolibm.
24530         floorl-ieee tests: More tests.
24531         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
24532         (main): Add tests for [MX] shaded specification in POSIX.
24533         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24534         (Depends-on): Add isnanl-nolibm.
24536         floor-ieee tests: More tests.
24537         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
24538         (main): Add tests for [MX] shaded specification in POSIX.
24539         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24540         (Depends-on): Add isnand-nolibm.
24542         floorf-ieee tests: More tests.
24543         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
24544         (main): Add tests for [MX] shaded specification in POSIX.
24545         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
24546         (Depends-on): Add isnanf-nolibm.
24548 2012-02-26  Bruno Haible  <bruno@clisp.org>
24550         fpieee: More comments.
24551         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
24553 2012-02-25  Bruno Haible  <bruno@clisp.org>
24555         Tests for module 'log10l'.
24556         * modules/log10l-tests: New file.
24557         * tests/test-log10l.c: New file.
24558         * tests/test-math-c++.cc: Check the declaration of log10l.
24560         New module 'log10l'.
24561         * lib/math.in.h (log10l): New declaration.
24562         * lib/log10l.c: New file.
24563         * m4/log10l.m4: New file.
24564         * modules/log10l: New file.
24565         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
24566         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
24567         HAVE_DECL_LOG10L.
24568         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
24569         HAVE_DECL_LOG10L.
24570         * doc/posix-functions/log10l.texi: Mention the new module.
24572 2012-02-25  Bruno Haible  <bruno@clisp.org>
24574         fmodl, remainder*: Avoid wrong results due to rounding errors.
24575         * lib/fmodl.c (fmodl): Correct the result if it is not within the
24576         expected bounds.
24577         * lib/remainderf.c (remainderf): Likewise.
24578         * lib/remainder.c (remainder): Likewise.
24579         * lib/remainderl.c (remainderl): Likewise.
24581 2012-02-25  Bruno Haible  <bruno@clisp.org>
24583         Tests for module 'remainderl'.
24584         * modules/remainderl-tests: New file.
24585         * tests/test-remainderl.c: New file.
24586         * tests/test-math-c++.cc: Check the declaration of remainderl.
24588         New module 'remainderl'.
24589         * lib/math.in.h (remainderl): New declaration.
24590         * lib/remainderl.c: New file.
24591         * m4/remainderl.m4: New file.
24592         * modules/remainderl: New file.
24593         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
24594         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
24595         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
24596         HAVE_REMAINDERL.
24597         * doc/posix-functions/remainderl.texi: Mention the new module.
24599 2012-02-25  Bruno Haible  <bruno@clisp.org>
24601         Tests for module 'remainderf'.
24602         * modules/remainderf-tests: New file.
24603         * tests/test-remainderf.c: New file.
24604         * tests/test-math-c++.cc: Check the declaration of remainderf.
24606         New module 'remainderf'.
24607         * lib/math.in.h (remainderf): New declaration.
24608         * lib/remainderf.c: New file.
24609         * m4/remainderf.m4: New file.
24610         * modules/remainderf: New file.
24611         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
24612         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
24613         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
24614         HAVE_REMAINDERF.
24615         * doc/posix-functions/remainderf.texi: Mention the new module.
24617 2012-02-25  Bruno Haible  <bruno@clisp.org>
24619         remainder: Support for MSVC.
24620         * lib/math.in.h (remainder): New declaration.
24621         * lib/remainder.c: New file.
24622         * m4/remainder.m4: New file.
24623         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
24624         (Depends-on): Add math, round, fma.
24625         (configure.ac): Use results of gl_FUNC_REMAINDER.
24626         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
24627         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
24628         HAVE_DECL_REMAINDER.
24629         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
24630         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
24631         * tests/test-math-c++.cc: Check the declaration of remainder.
24632         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
24633         problems are fixed.
24635 2012-02-25  Bruno Haible  <bruno@clisp.org>
24637         Tests for module 'fmodl'.
24638         * modules/fmodl-tests: New file.
24639         * tests/test-fmodl.c: New file.
24640         * tests/test-math-c++.cc: Check the declaration of fmodl.
24642         New module 'fmodl'.
24643         * lib/math.in.h (fmodl): New declaration.
24644         * lib/fmodl.c: New file.
24645         * m4/fmodl.m4: New file.
24646         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
24647         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
24648         REPLACE_FMODL.
24649         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
24650         REPLACE_FMODL.
24651         * modules/fmodl: New file.
24652         * doc/posix-functions/fmodl.texi: Mention the new module.
24654 2012-02-25  Bruno Haible  <bruno@clisp.org>
24656         Tests for module 'modfl'.
24657         * modules/modfl-tests: New file.
24658         * tests/test-modfl.c: New file.
24659         * tests/test-math-c++.cc: Check the declaration of modfl.
24661         New module 'modfl'.
24662         * lib/math.in.h (modfl): New declaration.
24663         * lib/modfl.c: New file.
24664         * m4/modfl.m4: New file.
24665         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
24666         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
24667         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
24668         * modules/modfl: New file.
24669         * doc/posix-functions/modfl.texi: Mention the new module.
24671 2012-02-25  Bruno Haible  <bruno@clisp.org>
24673         Tests for module 'fabsl'.
24674         * modules/fabsl-tests: New file.
24675         * tests/test-fabsl.c: New file.
24676         * tests/test-math-c++.cc: Check the declaration of fabsl.
24678         New module 'fabsl'.
24679         * lib/math.in.h (fabsl): New declaration.
24680         * lib/fabsl.c: New file.
24681         * m4/fabsl.m4: New file.
24682         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
24683         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
24684         REPLACE_FABSL.
24685         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
24686         REPLACE_FABSL.
24687         * modules/fabsl: New file.
24688         * doc/posix-functions/fabsl.texi: Mention the new module.
24690 2012-02-25  Bruno Haible  <bruno@clisp.org>
24692         fabs tests: More tests.
24693         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
24694         (zero): New variable.
24695         (main): Add tests for signed zero.
24696         * modules/fabs-tests (Files): Add tests/minus-zero.h.
24698         fabsf tests: More tests.
24699         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
24700         (zero): New variable.
24701         (main): Add tests for signed zero.
24702         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
24704 2012-02-24  Bruno Haible  <bruno@clisp.org>
24706         atanl: Provide function definition on MSVC.
24707         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
24708         function pointer.
24709         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
24711 2012-02-24  Bruno Haible  <bruno@clisp.org>
24713         acosl: Provide function definition on MSVC.
24714         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
24715         function pointer.
24716         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
24718 2012-02-24  Bruno Haible  <bruno@clisp.org>
24720         asinl: Provide function definition on MSVC.
24721         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
24722         function pointer.
24723         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
24725 2012-02-24  Bruno Haible  <bruno@clisp.org>
24727         tanl: Provide function definition on MSVC.
24728         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
24729         function pointer.
24730         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
24732 2012-02-24  Bruno Haible  <bruno@clisp.org>
24734         cosl: Provide function definition on MSVC.
24735         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
24736         function pointer.
24737         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
24739 2012-02-24  Bruno Haible  <bruno@clisp.org>
24741         sinl: Provide function definition on MSVC.
24742         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
24743         function pointer.
24744         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
24746 2012-02-24  Bruno Haible  <bruno@clisp.org>
24748         logl: Provide function definition on MSVC.
24749         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
24750         function pointer.
24751         * lib/math.in.h (logl): Undefine if it does not exist as a function.
24753 2012-02-24  Bruno Haible  <bruno@clisp.org>
24755         expl: Provide function definition on MSVC.
24756         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
24757         function pointer.
24758         * lib/math.in.h (expl): Undefine if it does not exist as a function.
24760 2012-02-24  Bruno Haible  <bruno@clisp.org>
24762         sqrtl: Provide function definition on MSVC.
24763         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
24764         a function pointer.
24765         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
24767 2012-02-24  Bruno Haible  <bruno@clisp.org>
24769         ceill: Provide function definition on MSVC.
24770         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
24771         used as a function pointer.
24772         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
24774 2012-02-24  Bruno Haible  <bruno@clisp.org>
24776         floorl: Provide function definition on MSVC.
24777         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
24778         used as a function pointer.
24779         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
24781 2012-02-24  Bruno Haible  <bruno@clisp.org>
24783         ceilf: Provide function definition on MSVC.
24784         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
24785         used as a function pointer.
24786         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
24788 2012-02-24  Bruno Haible  <bruno@clisp.org>
24790         floorf: Provide function definition on MSVC.
24791         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
24792         used as a function pointer.
24793         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
24795 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
24797         stdnoreturn: new module
24798         This implements a replacement for C11's <stdnoreturn.h>.
24799         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
24800         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
24801         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
24802         * tests/test-stdnoreturn.c: New files.
24804 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
24806         regex: fix false multibyte matches in some regular expressions
24807         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
24808         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
24809         * lib/regex_internal.c (re_string_skip_chars):
24810         Fix miscomputation of remain_len that may cause incomplete
24811         multi-byte character and false match.
24813 2012-02-24  Jim Meyering  <meyering@redhat.com>
24815         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
24816         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
24817         uses with "==" *before* the call, e.g., 0 == strcmp (...)
24818         Remove now-unnecessary str''cmp obfuscation.
24819         Suggested by Akim Demaille.
24821 2012-02-24  Bruno Haible  <bruno@clisp.org>
24823         streq: Rename macro.
24824         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
24825         * NEWS: Mention the change.
24826         * lib/mbrtowc.c (mbrtowc): Update.
24827         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
24828         * lib/wcwidth.c (wcwidth): Update.
24829         Suggested by Akim Demaille and Jim Meyering.
24831 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
24833         regex: fix typo in definition of MIN
24834         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
24835         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
24837 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
24838             Bruno Haible  <bruno@clisp.org>
24840         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
24841         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
24842         entries into a stack-allocated buffer directly.
24843         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
24845 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
24846             Bruno Haible  <bruno@clisp.org>
24848         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
24850          - There were several instances of this pattern:
24852              for (;;) {
24853                n = acl (f, GETACLCNT, 0, NULL);
24854                [ allocate an array A of size N ]
24855                if (acl (f, GETACL, n, a) == n)
24856                  break;
24857              }
24859            This loop might never terminate if some other process is constantly
24860            manipulating the file's ACL.  The loop should be rewritten to
24861            terminate.
24863          - The acl (... GETACLNT ...) call is merely an optimization; its value
24864            is merely a hint as to how big to make the array.  A better
24865            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
24866            and just guess a reasonably-big size, growing the size and trying
24867            again if it's not large enough.  This guarantees termination, and
24868            saves a system call.
24870         * lib/acl-internal.h: Include <limits.h>.
24871         (MIN, SIZE_MAX): New macros.
24872         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
24873         a stack-allocated buffer, and use malloc if it does not fit. Don't
24874         use GETACLCNT.
24875         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
24877 2012-02-19  Bruno Haible  <bruno@clisp.org>
24879         acl: Fix endless loop on Solaris with vxfs.
24880         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
24881         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
24882         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
24883         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
24884         * tests/test-sameacls.c (main)[Solaris]: Likewise.
24885         Reported by Bill Jones in
24886         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
24888 2012-02-19  Bruno Haible  <bruno@clisp.org>
24890         acl: Fix copy-acl test failure on Solaris 11.0.
24891         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
24892         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
24893         that this function returns 0 in some more cases.
24895 2012-02-19  Bruno Haible  <bruno@clisp.org>
24897         acl: Update doc references.
24898         * doc/acl-resources.txt: Update links to Solaris documentation.
24900 2012-02-19  Bruno Haible  <bruno@clisp.org>
24902         Fix test failure in many locales on Solaris 11.
24903         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
24904         'tr' arguments.
24905         * tests/test-pipe-filter-ii1.c (main): Likewise.
24906         * build-aux/bootstrap (check_versions): Run 'tr' command with range
24907         expressions in the C locale.
24908         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24909         * m4/host-os.m4 (gl_HOST_OS): Likewise.
24911 2012-02-19  Bruno Haible  <bruno@clisp.org>
24913         gnulib-tool: Improve usage message.
24914         * gnulib-tool (func_usage): Move doc of --help and --version to the
24915         section "Operation modes".
24917 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
24919         README-release: make it easier to execute commands
24920         * top/README-release: break commands out on to separate lines.
24922 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
24924         GNUmakefile: simplify detection of unconfigured trees
24925         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
24926         whether the tree make is being run from is already configured or
24927         not.  Related simplifications.
24929 2012-02-13  Simon Josefsson  <simon@josefsson.org>
24931         * gnulib-tool (func_usage): Document --help and --version.
24933 2012-02-11  Jim Meyering  <meyering@redhat.com>
24935         bootstrap: don't exit 0 upon gnulib-tool failure
24936         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
24937         its exit status, not 0.
24939 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
24941         README-release: various improvements
24942         * top/README-release: Give a command to push changes for the
24943         release.  Add "distcheck" to list of other pre-release checks.
24944         Fix instance of "make stable" which should be "make TYPE".
24946 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
24948         maint: replace FSF snail-mail addresses with URLs
24949         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
24950         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
24951         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
24952         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
24953         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
24954         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
24955         * lib/check-version.c, lib/check-version.h, lib/config.charset:
24956         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
24957         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
24958         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
24959         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
24960         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
24961         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
24962         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
24963         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
24964         * lib/glthread/thread.c, lib/glthread/thread.h:
24965         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
24966         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
24967         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
24968         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
24969         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
24970         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
24971         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
24972         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
24973         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
24974         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
24975         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
24976         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
24977         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
24978         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
24979         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
24980         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
24981         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
24982         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
24983         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
24984         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
24985         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
24986         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
24987         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
24988         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
24989         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
24990         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
24991         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
24992         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
24993         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
24994         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
24995         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
24996         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
24997         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
24998         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
24999         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
25000         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
25001         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
25002         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
25003         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
25004         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
25005         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
25006         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
25007         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
25008         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
25009         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
25010         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
25011         * tests/test-poll.c, tests/test-quotearg-simple.c:
25012         * tests/test-quotearg.c, tests/test-quotearg.h:
25013         * tests/test-round-ieee.c, tests/test-round1.c:
25014         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
25015         * tests/test-roundl-ieee.c, tests/test-roundl.c:
25016         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
25017         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
25018         * tests/test-strerror.c, tests/test-strerror_r.c:
25019         * tests/test-strsignal.c, tests/test-strverscmp.c:
25020         * tests/test-xmemdup0.c:
25021         Replace FSF snail mail addresses with URLs, as per GNU coding
25022         standards.  See glibc bug
25023         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
25025 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
25027         README-release: capitalize a word and split a line
25028         * top/README-release: Fix punctuation and spacing.
25030 2012-02-08  Akim Demaille  <demaille@gostai.com>
25032         fatal-signal: use C prototypes (with explicit void).
25033         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
25034         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
25036 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
25038         regex: spelling fix
25039         * lib/regexec.c: spelling fix
25041         regex: rely on stdint.h for SIZE_MAX
25042         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
25044 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
25046         regex: merge glibc changes
25048         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
25049         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
25050         (init_word_char): Work even if bitset words are not exactly 32 or
25051         64 bits wide.  Don't assume there are no padding bits.
25052         * lib/regex.c [_LIBC]: Do not include <config.h>.
25053         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
25054         and -Wtype-limits.
25055         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
25056         needless disagreement with glibc.  All uses changed.  Define it to
25057         1 only if _GNU_SOURCE, to match glibc.
25058         (_REG_RM_NAME): Remove; no longer needed, since the names in
25059         question are now all protected by __USE_GNU.
25060         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
25061         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
25062         * lib/regex_internal.h (MIN): New macro.
25064         2012-01-03 Ulrich Drepper <drepper@gmail.com>
25065         * lib/regcomp.c (init_word_char): Optimize regex a bit.
25067         2011-12-30 Jakub Jelinek <jakub@redhat.com>
25068         * lib/regex_internal.c (re_string_fetch_byte_case):
25069         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
25070         is miscompiled, and it turns out it is because of an incorrect
25071         attribute on re_string_fetch_byte_case.  Unlike
25072         re_string_peek_byte_case, this one is really not pure, it modifies
25073         memory (increments pstr->cur_idx), and with the pure attribute GCC
25074         assumed it doesn't and it cached the presumed value of
25075         regexp->cur_idx in a variable across the
25076          for (;; ++i)
25077            {
25078              if (i >= BRACKET_NAME_BUF_SIZE)
25079                return REG_EBRACK;
25080              if (token->type == OP_OPEN_CHAR_CLASS)
25081                ch = re_string_fetch_byte_case (regexp);
25082              else
25083                ch = re_string_fetch_byte (regexp);
25084              if (re_string_eoi(regexp))
25085                return REG_EBRACK;
25086              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
25087                break;
25088              elem->opr.name[i] = ch;
25089            }
25091         2011-11-29 Andreas Schwab <schwab@redhat.com>
25092         * lib/regcomp.c (build_equiv_class):
25093         Fix access after end of search string in regex matcher.
25095         2011-11-12 Ulrich Drepper <drepper@redhat.com>
25096         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
25098         2011-10-12 Ulrich Drepper <drepper@redhat.com>
25099         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
25101         2011-10-11 Ulrich Drepper <drepper@redhat.com>
25102         * lib/regcomp.c (parse_branch, parse_sub_exp):
25103         More regex memory leak fixes and tests.
25104         (parse_sub_exp, parse_bracket_exp):
25105         Fix memory leak for some invalid regular expressions.
25107         2011-05-28 Ulrich Drepper <drepper@gmail.com>
25108         * lib/regex_internal.c, lib/regexec.c:
25109         Fix unnecessary overallocation due to incomplete character.  When
25110         incomplete characters are found at the end of a string the code
25111         ran amok and allocated lots of memory.  Stricter limits are now in
25112         place.
25114         2011-05-20 Reuben Thomas <rrt@sc3d.org>
25115         * lib/regex.h: Update documentation.
25117         2011-05-16 Aharon Robbins <arnold@skeeve.com>
25118         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
25120         2010-05-05 Andreas Schwab <schwab@redhat.com>
25121         * lib/regexec.c (find_collation_sequence_value):
25122         Fix lookup of collation sequence value during regexp matching.
25124         2010-01-22 Ulrich Drepper <drepper@redhat.com>
25125         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
25127         2008-01-16 Ulrich Drepper <drepper@redhat.com>
25128         * lib/regex.h: Cleanup namespace.
25130         2007-11-26 Ulrich Drepper <drepper@redhat.com>
25131         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
25133         2007-08-26 Ulrich Drepper <drepper@redhat.com>
25134         * lib/regex_internal.h: Prevent some declarations and definitions
25135         to be seen when used in tests.
25137         2005-05-06 Ulrich Drepper <drepper@redhat.com>
25138         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
25139         __libc_lock_* macros if not _LIBC.
25140         (struct re_dfa_t): Add lock.
25142 2012-02-07  Eric Blake  <eblake@redhat.com>
25144         maint.mk: also prohibit lower-case @var@
25145         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
25146         lower case, like @top_srcdir@.
25148 2012-02-04  Eric Blake  <eblake@redhat.com>
25150         canonicalize: avoid uninitialized memory use
25151         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
25152         random '/' left in dest.
25153         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
25155 2012-02-04  Bruno Haible  <bruno@clisp.org>
25157         isatty: Fix test failure of ptsname_r on native Windows.
25158         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
25159         and don't set errno.
25160         (isatty): Test first whether fd is valid. Set errno when returning 0.
25162 2012-02-04  Bruno Haible  <bruno@clisp.org>
25164         spawn-pipe tests: Fix a NULL program name in a diagnostic.
25165         * tests/test-spawn-pipe-main.c: Include progname.h.
25166         (main): Invoke set_program_name.
25167         * modules/spawn-pipe-tests (Depends-on): Add progname.
25169         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
25170         * tests/test-nonblocking-socket-main.c: Include progname.h.
25171         (main): Invoke set_program_name.
25172         * modules/nonblocking-socket-tests (Depends-on): Add progname.
25174         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
25175         * tests/test-nonblocking-pipe-main.c: Include progname.h.
25176         (main): Invoke set_program_name.
25177         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
25179 2012-02-04  Eric Blake  <eblake@redhat.com>
25181         canonicalize-lgpl: fix // handling
25182         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
25184         canonicalize: fix // handling
25185         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
25186         /// to //, since only // is special.
25188 2012-02-04  Bruno Haible  <bruno@clisp.org>
25190         ioctl: Fix test failure on native Windows.
25191         * lib/ioctl.c: Include msvc-nothrow.h.
25192         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
25194 2012-02-04  Bruno Haible  <bruno@clisp.org>
25196         fsync: Avoid test failure on native Windows.
25197         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
25198         read-only.
25200 2012-02-04  Bruno Haible  <bruno@clisp.org>
25202         sys_select: Avoid syntax error on OpenBSD 5.0.
25203         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
25204         currently being included, just include the system's <sys/select.h>.
25206 2012-02-04  Bruno Haible  <bruno@clisp.org>
25208         sys_select: Avoid syntax error on OpenBSD 5.0.
25209         * lib/sys_select.in.h: Include <signal.h> only after the include_next
25210         <sys/select.h>, not before.
25211         Reported by Jiri B <jirib@devio.us>.
25213 2012-02-04  Bruno Haible  <bruno@clisp.org>
25215         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
25216         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
25217         global variables.
25218         * tests/test-get-rusage-data.c (main): Likewise.
25219         Reported by Jim Meyering.
25221 2012-02-04  Bruno Haible  <bruno@clisp.org>
25223         stdioext: Fix last commit.
25224         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
25226 2012-02-03  Bruno Haible  <bruno@clisp.org>
25228         stdioext: Add tentative support for Plan9.
25229         * lib/stdio-impl.h: Include <errno.h>.
25230         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
25231         * lib/freadable.c (freadable): Likewise.
25232         * lib/fwritable.c (fwritable): Likewise.
25233         * lib/fbufmode.c (fbufmode): Likewise.
25234         * lib/freading.c (freading): Likewise.
25235         * lib/fwriting.c (fwriting): Likewise.
25236         * lib/freadptr.c (freadptr): Likewise.
25237         * lib/freadseek.c (freadptrinc): Likewise.
25238         * lib/freadahead.c (freadahead): Likewise.
25239         * lib/fpurge.c (fpurge): Likewise.
25240         * lib/fseeko.c (rpl_fseeko): Likewise.
25241         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
25242         Reported by Jens Staal <staal1978@gmail.com>.
25244 2012-02-02  Jim Meyering  <meyering@redhat.com>
25246         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
25247         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
25248         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
25249         not even to try to add the attribute.  Instead, add a pragma to suppress
25250         the suggestion/warning.
25252 2012-01-31  Karl Berry  <karl@gnu.org>
25254         setstate doc: typo.
25255         * doc/posix-functions/setstate.texi (setstate): { not (.
25257 2012-01-31  Bruno Haible  <bruno@clisp.org>
25259         popen: Make more robust on Windows.
25260         * lib/popen.c: On native Windows, use the _popen based code even if
25261         HAVE_POPEN is set.
25262         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
25263         environment variable on native Windows.
25265 2012-01-30  Bruno Haible  <bruno@clisp.org>
25267         pclose: Fix typo.
25268         * lib/stdio.in.h (pclose): Fix typo in warning message.
25270 2012-01-30  Bruno Haible  <bruno@clisp.org>
25272         doc about getlogin_r, setstate.
25273         * doc/posix-functions/getlogin_r.texi: List the incompatible
25274         declaration problem under "not fixed by gnulib".
25275         * doc/posix-functions/setstate.texi: Mention incompatible declaration
25276         problem on Solaris 11 and other platforms.
25278 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
25279             Bruno Haible  <bruno@clisp.org>
25281         poll tests: Make test more robust.
25282         * tests/test-poll.c: Include macros.h.
25283         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
25284         return value of various I/O operations.
25285         * modules/poll-tests (Files): Add tests/macros.h.
25287 2012-01-30  Bruno Haible  <bruno@clisp.org>
25289         sys_stat: Fix support for mingw64 and MSVC.
25290         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
25291         header files already do it.
25292         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
25293         stat itself.
25294         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
25296 2012-01-30  Bruno Haible  <bruno@clisp.org>
25298         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
25299         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
25300         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
25302 2012-01-29  Bruno Haible  <bruno@clisp.org>
25304         quotearg: Fix test failure on MacOS X 10.5.
25305         * tests/test-quotearg-simple.c: Include localcharset.h.
25306         (main): If the locale encoding is not ASCII, bypass the tests of
25307         locale_quoting_style and clocale_quoting_style.
25308         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
25310 2012-01-29  Jim Meyering  <meyering@redhat.com>
25312         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
25313         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
25314         detect uses of canonicalize_file_name.
25316 2012-01-28  Bruno Haible  <bruno@clisp.org>
25318         test-framework-sh: Fix test failure with AIX 7.1 diff.
25319         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
25320         in column 1, like 'diff -c' does.
25321         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
25322         whether 'diff -u' is used. Instead, test whether the output contains
25323         some '@' character.
25325 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
25327         strtoimax: eliminate need for stdint.h, inttypes.h checks
25328         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
25329         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
25330         the prerequisites for a recently-introduced strtoimax test.
25331         I guess this might cause strtoimax to be replaced when not
25332         strictly necessary on older hosts, but this shouldn't introduce
25333         any bugs and it should make Emacs 'configure' faster on typical
25334         modern hosts.  Problem discovered when importing the latest gnulib
25335         to an Emacs test version.
25336         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
25338 2012-01-28  Bruno Haible  <bruno@clisp.org>
25340         sys_time: Override 'struct timeval' on some native Windows platforms.
25341         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
25342         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
25343         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
25344         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
25345         needs to be overridden.
25346         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
25347         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
25348         * tests/test-sys_select.c: Check that the tv_sec member has the same
25349         size as a 'time_t'.
25350         * tests/test-sys_time.c: Likewise.
25351         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
25352         is set, set also REPLACE_GETTIMEOFDAY.
25353         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
25354         convert the resulting 'struct timeval' before returning.
25355         * lib/select.c: Include <sys/time.h>.
25356         (select, timeval): Undefine at the right place.
25357         * modules/select (Depends-on): Add sys_time.
25358         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
25359         some Windows platforms.
25360         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
25362 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
25364         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
25365         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
25366         an integer.
25367         * lib/fcntl.c (dupfd): Likewise.
25368         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
25370 2012-01-28  Bruno Haible  <bruno@clisp.org>
25372         fcntl: Avoid compilation error on native Windows.
25373         * modules/fcntl (Depends-on): Add 'close'.
25375 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
25377         select, poll, isatty: Avoid warnings on x86_64 mingw64.
25378         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
25379         pointer to an integer.
25380         * lib/poll.c (IsConsoleHandle): Likewise.
25381         * lib/isatty.c (IsConsoleHandle): Likewise.
25383 2012-01-28  Jim Meyering  <meyering@redhat.com>
25385         doc: clarify README-release
25386         * top/README-release: Clarify: you should make a point to have
25387         the latest stable versions of build tools in your PATH, and the
25388         reference to buildreq is solely for its list of tool names, not
25389         for its minimal-functional version numbers.
25390         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
25392         maint.mk: use more readable (yet functionally equivalent) quoting
25393         It is common to quote a single quote in a single quoted string like
25394         this:  '...'\''...'.  Unless you know the idiom, that looks like
25395         gibberish, so prefer to double-quote the string when possible.
25396         Then you can use a more readable, lone single quote: "...'..."
25397         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
25398         "don't" is more readable than the equivalent 'don'\''t'.
25399         (sc_cast_of_x_alloc_return_value): Likewise.
25400         (sc_cast_of_alloca_return_value): Likewise.
25401         (sc_makefile_path_separator_check): Similar: use ":" in '...',
25402         rather than '\'':'\''.
25404 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
25406         stdalign: relax _Alignof and tighten _Alignas test
25407         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
25408         as it was too strict: alignof must divide offsetof, but it need
25409         not equal offsetof.  Inspired by Joseph S. Myers's comment
25410         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
25411         Conversely, tighten the _Alignas test a bit, as the resulting
25412         alignment must be exactly 8.
25414 2012-01-27  Bruno Haible  <bruno@clisp.org>
25416         stdalign: Document the last change.
25417         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
25419 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
25421         stdalign: check that alignof and offsetof are consistent
25422         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
25423         Problem reported for gnulib by Richard W.M. Jones in
25424         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
25426 2012-01-27  Jim Meyering  <meyering@redhat.com>
25428         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
25429         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
25430         convert a sequence with gaps to the minimal containing range.
25431         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
25432         * tests/test-update-copyright.sh: Test for this.
25433         The FSF confirmed it is ok to do this, assuming there is at
25434         least one significant change per year in the affected range:
25435         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
25437 2012-01-26  Bruno Haible  <bruno@clisp.org>
25439         pipe2: refine doc about thread-safety
25440         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
25441         multithread-safety problem.
25442         * doc/glibc-functions/accept4.texi: Likewise.
25444 2012-01-26  Bruno Haible  <bruno@clisp.org>
25446         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
25447         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
25448         In the test program, include <fcntl.h>, for O_RDONLY.
25450 2012-01-26  Eric Blake  <eblake@redhat.com>
25452         pipe2: document lack of thread-safety in replacement
25453         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
25454         issue in replacement.
25455         * doc/glibc-functions/accept4.texi (accept4): Likewise.
25456         Based on a report by Eric Wong.
25458 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
25459             Bruno Haible  <bruno@clisp.org>
25461         malloca: Avoid warnings on x86_64 mingw64.
25462         * lib/malloca.c: Include <stdint.h>.
25463         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
25464         * modules/malloca (Depends-on): Add stdint.
25465         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
25467 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
25469         obstack: remove __STDC__ conditionals
25470         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
25471         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
25472         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
25473         m4/include_next.m4 as the only gnulib-maintained places that still
25474         refer to __STDC__.
25476 2012-01-24  Bruno Haible  <bruno@clisp.org>
25478         havelib: Modern quoting.
25479         * build-aux/config.rpath: Quote 'like this', not `like this', as per
25480         the recent change to the GNU coding standards.
25482 2012-01-24  Bruno Haible  <bruno@clisp.org>
25484         stdint: Improve support for Android.
25485         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
25486         Reported by Simon Josefsson <simon@josefsson.org>.
25488 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25490         doc: omit trailing empty lines from INSTALL etc.
25491         * doc/Makefile (INSTALL): Omit trailing empty lines.
25492         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
25493         omit trailing empty lines.  This simplifies the build procedure.
25495 2012-01-23  Jim Meyering  <meyering@redhat.com>
25497         tests: avoid spurious warnings about gl_sockets_startup
25498         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
25499         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
25500         reporting a "statement with no effect".
25501         * tests/test-accept.c (main): Mark as "(void)".
25502         * tests/test-accept4.c (main): Likewise.
25503         * tests/test-bind.c (main): Likewise.
25504         * tests/test-connect.c (main): Likewise.
25505         * tests/test-getpeername.c (main): Likewise.
25506         * tests/test-getsockname.c (main): Likewise.
25507         * tests/test-getsockopt.c (main): Likewise.
25508         * tests/test-listen.c (main): Likewise.
25509         * tests/test-recv.c (main): Likewise.
25510         * tests/test-recvfrom.c (main): Likewise.
25511         * tests/test-send.c (main): Likewise.
25512         * tests/test-sendto.c (main): Likewise.
25513         * tests/test-setsockopt.c (main): Likewise.
25514         * tests/test-shutdown.c (main): Likewise.
25516 2012-01-21  Bruno Haible  <bruno@clisp.org>
25518         locale-fr.m4: Fix for Android.
25519         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
25520         failure of the test program on Bionic libc.
25522 2012-01-21  Jim Meyering  <meyering@redhat.com>
25524         bootstrap: fail when bootstrap_post_import_hook fails
25525         Otherwise, it's far too easy to miss diagnostics emitted
25526         between gnulib-tool's output and that of running configure.
25527         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
25529 2012-01-17  Jim Meyering  <meyering@redhat.com>
25531         maint: enable sc_trailing_blank
25532         * build-aux/pmccabe.css: Remove trailing blanks.
25533         * doc/acl-cygwin.txt: Likewise.
25534         * doc/gnu-oids.texi: Likewise
25535         * cfg.mk: Enable sc_trailing_blank.
25536         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
25538 2012-01-17  Jim Meyering  <meyering@redhat.com>
25540         maint: enable sc_prohibit_openat_without_use
25541         * cfg.mk: Enable sc_prohibit_openat_without_use.
25542         Exempt lib/selinux-at.c.
25544 2012-01-17  Jim Meyering  <meyering@redhat.com>
25546         maint: enable sc_prohibit_cloexec_without_use
25547         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
25548         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
25550 2012-01-17  Jim Meyering  <meyering@redhat.com>
25552         maint: enable sc_prohibit_intprops_without_use
25553         * cfg.mk: Enable sc_prohibit_intprops_without_use
25554         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
25556 2012-01-17  Jim Meyering  <meyering@redhat.com>
25558         maint: enable sc_prohibit_hash_pjw_without_use
25559         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
25560         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
25561         to match any use of \<hash_pjw\>, i.e., not necessarily with a
25562         following " (".
25564 2012-01-17  Jim Meyering  <meyering@redhat.com>
25566         maint: enable double-word-prohibiting rule
25567         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
25568         Exempt three files.
25570 2012-01-17  Jim Meyering  <meyering@redhat.com>
25572         maint: remove empty lines at EOF, but excluding modules/*
25573         Apply syntax rules at home as well as abroad.  Most changes
25574         were induced by running this:
25575           make srcdir=. _build-aux=build-aux -f top/maint.mk \
25576             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
25577             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
25578         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
25579         Exempt modules/* and two binary files.
25580         Also exempt doc/INSTALL*, per request from Bruno Haible.
25581         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
25582         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
25583         * doc/Copyright/request-assign.future: Likewise.
25584         * doc/Copyright/request-disclaim.changes: Likewise.
25585         * doc/INSTALL: Likewise.
25586         * doc/INSTALL.ISO: Likewise.
25587         * doc/INSTALL.UTF-8: Likewise.
25588         * doc/acl-cygwin.txt: Likewise.
25589         * doc/acl-resources.txt: Likewise.
25590         * doc/fdl-1.2.texi: Likewise.
25591         * doc/fdl-1.3.texi: Likewise.
25592         * doc/fdl.texi: Likewise.
25593         * lib/argp-pin.c: Likewise.
25594         * lib/round.c: Likewise.
25595         * lib/unicase/u16-totitle.c: Likewise.
25596         * lib/unictype/block_test.c: Likewise.
25597         * lib/uninorm/canonical-decomposition.c: Likewise.
25598         * m4/README: Likewise.
25599         * m4/relocatable-lib.m4: Likewise.
25600         * tests/test-isnand-nolibm.c: Likewise.
25601         * tests/test-isnand.c: Likewise.
25602         * tests/uninorm/NormalizationTest.txt: Likewise.
25604 2012-01-17  Jim Meyering  <meyering@redhat.com>
25606         maint: add framework to run syntax-check rules against gnulib sources
25607         * cfg.mk: New file, to disable all currently-failing tests.
25608         We'll enable them one by one, as they are made to pass.
25609         * Makefile (sc_maint): New rule.
25611 2012-01-21  Bruno Haible  <bruno@clisp.org>
25613         stdint: Add support for Android.
25614         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
25615         include the system's <stdint.h>.
25616         Reported by Simon Josefsson <simon@josefsson.org>.
25618 2012-01-19  Jim Meyering  <meyering@redhat.com>
25620         bootstrap: add bootstrap_post_import_hook
25621         Bison does still need something like the gnulib_mk_hook whose
25622         invocation I had to remove along with slurp in commit 767ccd40.
25623         Technically, we could get along without it, but doing so would
25624         have required living with a warning and a mandatory post-bootstrap
25625         automake rerun.
25626         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
25627         (bootstrap_post_import_hook): New function.
25628         Invoke it after gnulib-tool --import and before autoreconf.
25630 2012-01-18  Jim Meyering  <meyering@redhat.com>
25632         gitlog-to-changelog: don't use "no_"-prefixed variable name
25633         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
25634         to enable both --cluster and --no-cluster.  Change variable name,
25635         s/\$no_cluster/$cluster/, and reverse usage to match.
25637         gitlog-to-changelog: use "||", not "or" in expressions
25638         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
25639         expressions.
25641 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
25643         gitlog-to-changelog: new option --no-cluster
25644         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
25645         clustering of adjacent commit messages.
25647 2012-01-17  Jim Meyering  <meyering@redhat.com>
25649         maint: spell file systems with two words, not one
25650         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
25651         two words, not one.
25653 2012-01-16  Jim Meyering  <meyering@redhat.com>
25655         bootstrap: add a FIXME comment to ensure we eventually remove the hack
25656         * build-aux/bootstrap (gnulib_tool_options): Add comment.
25658 2012-01-16  Eric Blake  <eblake@redhat.com>
25660         bootstrap: cater to autoconf 2.59
25661         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
25662         is not available.
25664         bootstrap: properly check for libtool
25665         * build-aux/bootstrap (libtoolize): Also run libtool when older
25666         usage is detected.
25668 2012-01-15  Bruno Haible  <bruno@clisp.org>
25670         Improve support for MSVC 9.
25671         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
25672         clashes on MSVC.
25673         * lib/fcntl.in.h: Likewise.
25674         * lib/stdlib.in.h: Likewise.
25675         * lib/sys_stat.in.h: Likewise.
25677 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
25679         gnupload: we hold the master copy of this script now
25680         For motivation and more information, see:
25681         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
25682         * build-aux/gnupload: Make it clear in the heading comments that the
25683         master copy of this file is maintained by gnulib.  Since we are at
25684         it, bump its copyright year and ...
25685         ($scriptversion): ... the date in its version.
25686         ($usage): Patches and bug reports should be sent to the gnulib list,
25687         not the automake one.
25688         * config/srclist.txt: Don't try to sync 'gnupload' from automake
25689         anymore.
25691 2012-01-15  Bruno Haible  <bruno@clisp.org>
25693         Fix module 'random'.
25694         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
25695         initstate, setstate are declared.
25697 2012-01-14  Bruno Haible  <bruno@clisp.org>
25699         Tests for module 'random'.
25700         * modules/random-tests: New file.
25701         * tests/test-random.c: New file, based on tests/test-random_r.c.
25703         New module 'random'.
25704         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
25705         declarations.
25706         * lib/random.c: New file, based on glibc/stdlib/random.c.
25707         * m4/random.m4: New file.
25708         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
25709         HAVE_RANDOM.
25710         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
25711         * modules/random: New file.
25712         * config/srclist.txt: Add an entry for random.c.
25713         * doc/posix-functions/random.texi: Mention the 'random' module.
25714         * doc/posix-functions/initstate.texi: Likewise.
25715         * doc/posix-functions/setstate.texi: Likewise.
25716         * doc/posix-functions/srandom.texi: Likewise.
25718 2012-01-12  Bruno Haible  <bruno@clisp.org>
25720         random_r: Use common idioms.
25721         * lib/random_r.c: Include <stdlib.h> first.
25723         random_r: Override incompatible API on AIX, OSF/1.
25724         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
25725         Override the system function if REPLACE_RANDOM_R is 1.
25726         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
25727         and OSF/1, set REPLACE_RANDOM_R.
25728         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
25729         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
25730         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
25731         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
25732         * doc/glibc-functions/random_r.texi: Likewise.
25733         * doc/glibc-functions/setstate_r.texi: Likewise.
25735         random_r: Support for MSVC 9.
25736         * lib/random_r.c: Include stdint.h, not inttypes.h.
25738 2012-01-12  Eric Blake  <eblake@redhat.com>
25740         inet_ntop: guard extra work by IF_LINT
25741         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
25742         better code generation when not checking for warnings.
25743         Suggested by Paul Eggert and Jim Meyering.
25745         strptime: fix regression on mingw
25746         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
25747         Fix regression.  Reported by Bruno Haible.
25749 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
25750             Bruno Haible  <bruno@clisp.org>
25752         copy-file: add error-code-returning variant.
25753         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
25754         (qcopy_file_preserving): New declaration.
25755         * lib/copy-file.c (qcopy_file_preserving): Renamed from
25756         copy_file_preserving. Change return type to 'int'. Don't emit an error
25757         message here.
25758         (copy_file_preserving): New function.
25759         * tests/test-copy-file.c: Include <stdlib.h>.
25760         (main): Test qcopy_file_preserving if the environment variable
25761         NO_STDERR_OUTPUT is set.
25762         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
25763         with NO_STDERR_OUTPUT
25764         * tests/test-copy-file-2.sh: Likewise.
25766 2012-01-10  Bruno Haible  <bruno@clisp.org>
25768         copy-file: Use 'quote' module consistently.
25769         * lib/copy-file.c (copy_file_preserving): Use quote().
25771         copy-file: Refactor.
25772         * lib/copy-file.c: Include quote.h.
25773         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
25774         message here.
25775         * modules/copy-file (Depends-on): Add quote.
25777         acl: Export qcopy_acl.
25778         * lib/acl.h (qcopy_acl): New declaration.
25779         * lib/copy-acl.c (qcopy_acl): Make non-static.
25781         acl: Rename a local variable.
25782         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
25784         acl: Align return values of copy_acl and qcopy_acl.
25785         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
25786         maybe < -1.
25788 2012-01-11  Eric Blake  <eblake@redhat.com>
25790         strptime: silence gcc warnings
25791         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
25792         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
25793         Reported by Daniel P. Berrange.
25795         inet_ntop: silence gcc warning
25796         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
25797         Reported by Daniel P. Berrange.
25799 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
25801         getloadavg test: skip the test on GNU/Linux without /proc mounted
25802         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
25803         file.  When /proc is not mounted, it always fails with ENOENT.
25804         * tests/test-getloadavg.c (main): Treat ENOENT return code from
25805         getloadavg(3) the same way as ENOSYS and ENOTSUP.
25807 2012-01-10  Bruno Haible  <bruno@clisp.org>
25809         regex: Avoid link error on MSVC 9.
25810         * modules/regex (Depends-on): Add wctype.
25812 2012-01-10  Bruno Haible  <bruno@clisp.org>
25814         doc: Mention --with-tests option.
25815         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
25816         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
25817         --with-tests.
25818         Reported by Reuben Thomas.
25820 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
25822         users.txt: order package names lexicographically.
25823         * users.txt: Order package names lexicographically.
25825 2012-01-10  Jim Meyering  <meyering@redhat.com>
25827         maint.mk: fix description in comment
25828         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
25830         ignore-value: remove deprecated ignore_ptr function
25831         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
25832         * NEWS: Note this.
25834 2012-01-09  Jim Meyering  <meyering@redhat.com>
25836         test-init.sh: avoid a subshell
25837         * tests/test-init.sh: Remove protective subshell.
25838         Suggested by Bernhard Voelker.  While a subshell is normally
25839         required to protect against older shells (Solaris, FreeBSD) that
25840         warn about a missing program before performing redirection, the
25841         shell-selection tests performed by init.sh probably exclude any
25842         offending shell.
25844 2012-01-08  Bruno Haible  <bruno@clisp.org>
25846         setlocale tests: Avoid test failure on Solaris 11.0.
25847         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
25848         variable.
25850 2012-01-08  Bruno Haible  <bruno@clisp.org>
25852         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
25853         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
25854         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
25855         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
25856         macro.
25857         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
25858         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
25859         * lib/spawn_faction_addopen.c: Add workaround implementation if
25860         HAVE_WORKING_POSIX_SPAWN.
25861         * modules/spawn (Makefile): Substitute
25862         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
25863         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
25864         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
25865         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
25866         (Depends-on): Update conditions.
25867         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
25868         the Solaris 11 bug.
25870 2012-01-08  Bruno Haible  <bruno@clisp.org>
25872         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
25873         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
25874         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
25875         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
25876         macro.
25877         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
25878         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
25879         * lib/spawn_faction_adddup2.c: Add workaround implementation if
25880         HAVE_WORKING_POSIX_SPAWN.
25881         * modules/spawn (Makefile): Substitute
25882         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
25883         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
25884         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
25885         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
25886         (Depends-on): Update conditions.
25887         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
25888         the Solaris 11 bug.
25890 2012-01-08  Bruno Haible  <bruno@clisp.org>
25892         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
25893         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
25894         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
25895         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
25896         HAVE_WORKING_POSIX_SPAWN.
25897         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
25898         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
25899         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
25900         * lib/spawn_faction_addclose.c: Add workaround implementation if
25901         HAVE_WORKING_POSIX_SPAWN.
25902         * modules/spawn (Makefile): Substitute
25903         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
25904         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
25905         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
25906         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
25907         (Depends-on): Update conditions.
25908         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
25909         the Solaris 11 bug.
25911 2012-01-08  Bruno Haible  <bruno@clisp.org>
25913         doc: Update for Solaris 11.0.
25914         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
25915         * m4/printf.m4: Update comments.
25917 2012-01-08  Bruno Haible  <bruno@clisp.org>
25919         mktime: Avoid compilation error on Solaris 11.
25920         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
25922 2012-01-08  Bruno Haible  <bruno@clisp.org>
25924         doc: Small fix.
25925         * doc/posix-headers/nl_types.texi: Correct platforms list.
25927 2012-01-08  Simon Josefsson  <simon@josefsson.org>
25929         Add lgpl-3.0 module.
25930         * MODULES.html.sh (Support for building documentation): Add
25931         lgpl-3.0.
25932         * modules/lgpl-3.0: New file.
25934 2012-01-08  Jim Meyering  <meyering@redhat.com>
25936         select.c: indent with spaces, not TABs
25937         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
25939 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
25941         quotearg: do not use grave accent for left quote
25942         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
25943         locale_quoting_style.
25944         (quotearg_buffer_restyled): Fix example.
25945         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
25947 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
25949         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
25950         Most programs do not have translation catalogs for English and much
25951         less separate catalogs for British and American English.  Drop the
25952         suggestion to translators about these two, and provide it
25953         automatically for Unicode locales.  Like most programs, even those
25954         using American English, we use single quotation marks.  This conflicts
25955         with the American typographic convention, but works better when you
25956         cite the entire error message within double quotes.  It also tries not
25957         to clash with established practice and with what non-gnulib programs
25958         will usually do.
25959         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
25960         using an UTF-8 or GB-18030 locale.  The list of other locales with
25961         quotes was provided by Bruno Haible.
25962         (quotearg_buffer_restyled): Adjust instructions to translators.
25963         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
25964         text, since this would be wrong when using Unicode.
25965         * modules/quotearg: Depend on c-strcaseeq.
25967 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
25969         quotearg: fix Wikipedia link
25970         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
25972 2012-01-07  Simon Josefsson  <simon@josefsson.org>
25974         Fix for mingw with MSVC9.
25975         * m4/ld-version-script.m4: Check that compiler rejects version
25976         scripts with syntax errors.  Reported by Bruno Haible
25977         <bruno@clisp.org>.
25979 2012-01-06  Bruno Haible  <bruno@clisp.org>
25981         Talk about "native Windows API", not "Woe32".
25982         * lib/accept4.c: Update comments to mention native Windows.
25983         * lib/execute.c: Likewise.
25984         * lib/fatal-signal.c: Likewise.
25985         * lib/localcharset.c: Likewise.
25986         * lib/nanosleep.c: Likewise.
25987         * lib/nl_langinfo.c: Likewise.
25988         * lib/pclose.c: Likewise.
25989         * lib/pipe-filter-gi.c: Likewise.
25990         * lib/pipe-filter-ii.c: Likewise.
25991         * lib/pipe.c: Likewise.
25992         * lib/pipe2.c: Likewise.
25993         * lib/popen.c: Likewise.
25994         * lib/progreloc.c: Likewise.
25995         * lib/relocatable.c: Likewise.
25996         * lib/sigaction.c: Likewise.
25997         * lib/sigprocmask.c: Likewise.
25998         * lib/spawn-pipe.h: Likewise.
25999         * lib/spawn-pipe.c: Likewise.
26000         * lib/spawni.c: Likewise.
26001         * lib/stat-time.h: Likewise.
26002         * lib/w32spawn.h: Likewise.
26003         * tests/test-isatty.c: Likewise.
26004         * lib/config.charset: More comments.
26005         * doc/gnulib-intro.texi: Mention native Windows.
26006         * doc/posix-functions/_Exit_C99.texi: Likewise.
26007         * doc/posix-headers/fcntl.texi: Likewise.
26009 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
26011         argp: Avoid crash if translator uses % characters in a translation.
26012         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
26013         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
26015 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
26017         doc: C11 and C++11 are now official
26018         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
26019         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
26020         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
26021         * modules/stdalign:
26022         Replace references to draft C1X to C11, and to draft C++0X to C++11.
26024 2012-01-06  Bruno Haible  <bruno@clisp.org>
26026         uc-is-grapheme-break tests: Tweak.
26027         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
26028         message.
26030 2012-01-06  Bruno Haible  <bruno@clisp.org>
26032         test-init.sh: correct the test for diff -u
26033         * tests/test-init.sh: Also redirect stdout to /dev/null.
26035 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
26037         Use ', not `, for quoting output.
26038         * build-aux/announce-gen (usage, sizes, print_news_deltas)
26039         (print_changelog_deltas, get_tool_versions, main program):
26040         * build-aux/git-version-gen:
26041         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
26042         * build-aux/move-if-change (help):
26043         * build-aux/useless-if-before-free (usage, main program):
26044         * check-module (parse_module_file, usage)
26045         (find_included_lib_files, check_module):
26046         * lib/argmatch.c (main) [TEST]:
26047         * lib/argp-help.c (_help):
26048         * lib/getopt1.c (main) [TEST]:
26049         * lib/git-merge-changelog.c (usage):
26050         * lib/xstrtol-error.c (xstrtol_error):
26051         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
26052         * m4/argz.m4 (gl_FUNC_ARGZ):
26053         * m4/bison.m4 (gl_BISON):
26054         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
26055         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
26056         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
26057         * m4/fpending.m4 (gl_PREREQ_FPENDING):
26058         * m4/gc-random.m4 (gl_GC_RANDOM):
26059         * m4/intl.m4 (gt_CHECK_DECL):
26060         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
26061         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
26062         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
26063         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
26064         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
26065         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
26066         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
26067         * tests/test-dirname.c (main):
26068         * tests/test-getpass.c (main):
26069         * tests/test-iconvme.c (main):
26070         * tests/test-parse-datetime.c (LOG):
26071         * tests/test-xstrtoimax.sh:
26072         * tests/test-xstrtol.sh:
26073         * tests/test-xstrtoll.sh:
26074         * tests/test-xstrtoumax.sh:
26075         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
26076         * top/GNUmakefile (abort-due-to-no-makefile):
26077         Quote 'like this', not `like this', as per the recent change to
26078         the GNU coding standards.
26080 2012-01-05  Bruno Haible  <bruno@clisp.org>
26082         strtoimax: Don't force a replacement on systems where intmax_t is int.
26083         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
26084         'intmax_t' is not larger than 'int'.
26085         Reported by Pádraig Brady <P@draigBrady.com>.
26087 2012-01-05  Bruno Haible  <bruno@clisp.org>
26089         doc: Mention NetBSD bugs.
26090         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
26091         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
26093 2012-01-05  Bruno Haible  <bruno@clisp.org>
26095         strtoumax tests: Enhance tests.
26096         * tests/test-strtoumax.c (main): Add tests for large values.
26098 2012-01-05  Bruno Haible  <bruno@clisp.org>
26100         strtoimax: Work around AIX 5.1 bug.
26101         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
26102         definition.
26103         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
26104         Set HAVE_STRTOIMAX.
26105         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
26106         REPLACE_STRTOIMAX.
26107         * modules/inttypes-incomplete (Makefile.am): Substitute
26108         REPLACE_STRTOIMAX.
26109         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
26110         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
26111         (Depends-on): Update conditions.
26112         * tests/test-strtoimax.c (main): Add tests for large values.
26113         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
26115 2012-01-05  Bruno Haible  <bruno@clisp.org>
26117         inttypes: Modernize.
26118         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
26119         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
26120         (Makefile.am): Update inttypes.h rule.
26122 2012-01-05  Jim Meyering  <meyering@redhat.com>
26124         init.sh: don't waste a subshell just to redirect stderr
26125         * tests/init.sh: In testing for diff -u and diff -c, use a
26126         stderr-redirecting exec inside `...` rather than a subshell.
26128         test-init.sh: avoid failure on HP-UX 11.00
26129         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
26130         resolves to diff -c or cmp.  Reported by Bruno Haible.
26132 2012-01-05  Bruno Haible  <bruno@clisp.org>
26134         Tests for module 'strtoull'.
26135         * modules/strtoull-tests: New file.
26136         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
26138 2012-01-05  Bruno Haible  <bruno@clisp.org>
26140         Tests for module 'strtoll'.
26141         * modules/strtoll-tests: New file.
26142         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
26144 2012-01-05  Bruno Haible  <bruno@clisp.org>
26146         Tests for module 'strtoul'.
26147         * modules/strtoul-tests: New file.
26148         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
26150 2012-01-05  Bruno Haible  <bruno@clisp.org>
26152         Tests for module 'strtol'.
26153         * modules/strtol-tests: New file.
26154         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
26156 2012-01-04  Jim Meyering  <meyering@redhat.com>
26158         test-init.sh: accommodate Solaris 5.10's different diff -u output
26159         * tests/test-init.sh: Also exempt @@ lines from the comparison
26160         of diff output, since Solaris 5.10 and GNU diff formats differ.
26161         Reported by Stefano Lattarini.
26163 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
26165         test-posixtm: don't assume signed integer wraparound
26166         * tests/test-posixtm.c (main): Don't assume wraparound semantics
26167         after signed integer overflow.  Inspired by (though it may not
26168         fix) Bruno Haible's bug report in
26169         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
26171         Spell out "Windows 9x" and "Windows XP".
26172         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
26173         "Windows 9x" and "WinXP" with "Windows XP".
26175 2012-01-04  Jim Meyering  <meyering@redhat.com>
26177         test-vc-list-files-cvs.sh: remove obsolete comment
26178         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
26179         double exit.  Now that's all encapsulated via skip_ and Exit.
26181 2012-01-04  Bruno Haible  <bruno@clisp.org>
26183         Talk about "native Windows API", not "Win32".
26184         * lib/classpath.c: Update comments to mention native Windows.
26185         * lib/csharpexec.c: Likewise.
26186         * lib/dup2.c: Likewise.
26187         * lib/error.c: Likewise.
26188         * lib/fcntl.c: Likewise.
26189         * lib/filename.h: Likewise.
26190         * lib/findprog.c: Likewise.
26191         * lib/get-rusage-as.c: Likewise.
26192         * lib/get-rusage-data.c: Likewise.
26193         * lib/getpagesize.c: Likewise.
26194         * lib/javaexec.c: Likewise.
26195         * lib/msvc-inval.c: Likewise.
26196         * lib/msvc-nothrow.c: Likewise.
26197         * lib/nanosleep.c: Likewise.
26198         * lib/nonblocking.c: Likewise.
26199         * lib/printf-parse.c: Likewise.
26200         * lib/setlocale.c: Likewise.
26201         * lib/sigaction.c: Likewise.
26202         * lib/strerror_r.c: Likewise.
26203         * lib/tmpdir.c: Likewise.
26204         * lib/vasnprintf.c: Likewise.
26205         * lib/w32spawn.h: Likewise.
26206         * lib/waitpid.c: Likewise.
26207         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
26208         * m4/locale-ar.m4: Likewise.
26209         * m4/locale-fr.m4: Likewise.
26210         * m4/locale-ja.m4: Likewise.
26211         * m4/locale-tr.m4: Likewise.
26212         * m4/locale-zh.m4: Likewise.
26213         * m4/printf.m4: Likewise.
26214         * tests/test-cloexec.c: Likewise.
26215         * tests/test-copy-acl.sh: Likewise.
26216         * tests/test-copy-file.sh: Likewise.
26217         * tests/test-file-has-acl.sh: Likewise.
26218         * tests/test-set-mode-acl.sh: Likewise.
26219         * tests/test-dup-safer.c: Likewise.
26220         * tests/test-dup2.c: Likewise.
26221         * tests/test-dup3.c: Likewise.
26222         * tests/test-fcntl.c: Likewise.
26223         * tests/test-nonblocking-pipe.h: Likewise.
26224         * tests/test-nonblocking-socket.h: Likewise.
26225         * tests/test-pipe.c: Likewise.
26226         * tests/test-pipe2.c: Likewise.
26227         * tests/test-spawn-pipe-child.c: Likewise.
26228         * doc/acl-resources.txt: Likewise.
26229         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
26230         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
26231         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
26232         * lib/localcharset.c: Update comments to mention native Windows.
26233         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
26234         * lib/localename.c: Likewise.
26235         * lib/progreloc.c: Likewise.
26236         * lib/relocatable.c: Likewise.
26237         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
26238         (windows_compute_revents): Renamed from win32_compute_revents.
26239         (windows_compute_revents_socket): Renamed from
26240         win32_compute_revents_socket.
26241         * lib/select.c: Update comments to mention native Windows.
26242         (windows_poll_handle): Renamed from win32_poll_handle.
26243         * m4/threadlib.m4: Update comments to mention native Windows.
26244         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
26245         --enable-threads=windows instead of --enable-threads=win32. Set
26246         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
26247         * lib/glthread/lock.h: Update comments to mention native Windows.
26248         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
26249         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
26250         USE_WIN32_THREADS.
26251         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
26252         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
26253         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
26254         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
26255         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
26256         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
26257         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
26258         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
26259         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
26260         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
26261         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
26262         * tests/test-tls.c: Likewise.
26263         Rationale:
26264         Microsoft renamed the "Win32 API" to "Windows API", as it is available
26265         on both 32-bit and 64-bit Windows systems.
26266         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
26267         line of distinction is between "native Windows" on one side and Unix/
26268         POSIX systems on the other side. More details in
26269         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
26270         Suggested by Paul Eggert.
26272 2012-01-03  Bruno Haible  <bruno@clisp.org>
26274         isatty: Support for MSVC 9.
26275         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
26276         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
26277         (_isatty_nothrow): New function.
26278         (isatty): Use it instead of _isatty.
26279         (IsConsoleHandle): Add comment, from Paolo Bonzini.
26280         * lib/poll.c (IsConsoleHandle): Likewise.
26281         * lib/select.c (IsConsoleHandle): Likewise.
26282         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
26283         (gl_PREREQ_ISATTY): New macro.
26284         * modules/isatty (Depends-on): Add msvc-inval.
26285         (configure.ac): Invoke gl_PREREQ_ISATTY.
26287 2012-01-03  Jim Meyering  <meyering@redhat.com>
26289         maint.mk: remove temporary transition aid from over 1.5 years ago
26290         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
26291         purpose was to aid in the transition (avoiding silent malfunction)
26292         from that old name to the new _sc_search_regexp.  This shim was
26293         added by commit 219c504b.
26295         init.sh: do not try to accommodate compare arguments starting with "-"
26296         * tests/init.sh (compare_dev_null_): Do not try to accommodate
26297         compare arguments that start with "-".  Besides, we do not worry
26298         about this when invoking diff or cmp; why start now with sed?
26299         Using "--" to separate options from argument would trigger sed
26300         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
26301         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
26303 2012-01-02  Bruno Haible  <bruno@clisp.org>
26305         Enhance tests for module 'isatty'.
26306         * modules/isatty-tests (Depends-on): Add pipe-posix.
26307         * tests/test-isatty.c: Include <fcntl.h>.
26308         (DEV_NULL): New macro.
26309         (main): Test the resut of isatty() also on regular files, pipes, and
26310         /dev/null.
26312         New module 'isatty'.
26313         * lib/unistd.in.h (isatty): New declaration.
26314         * lib/isatty.c: New file, based on an idea of
26315         Bastien Roucariès <roucaries.bastien@gmail.com>.
26316         * m4/isatty.m4: New file.
26317         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
26318         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
26319         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
26320         REPLACE_ISATTY.
26321         * modules/isatty: New file.
26322         * doc/posix-functions/isatty.texi: Mention the new module.
26323         Suggested by Paolo Bonzini.
26325 2012-01-02  Bruno Haible  <bruno@clisp.org>
26327         canonicalize: Tweak 2011-12-29 commit.
26328         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
26329         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
26331 2012-01-02  Jim Meyering  <meyering@redhat.com>
26333         gitlog-to-changelog: describe input syntax in --help output
26334         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
26336         gitlog-to-changelog: fix typo in --help: show backslash before email @
26337         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
26338         in sources, but not in actual output.
26340 2011-12-30  Jim Meyering  <meyering@redhat.com>
26342         gitlog-to-changelog: don't malfunction when name contains %-directive
26343         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
26344         in a name string cause trouble.  E.g., with a user name of "%s",
26345         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
26347 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
26349         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
26350         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
26351         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
26352         the "  (tiny change)" notation that is appended to the standard
26353         ChangeLog "date  name  email" header line.
26355 2012-01-01  Jim Meyering  <meyering@redhat.com>
26357         test-framework-sh: init.sh: fix "make dist" failure
26358         When using gnulib-tool's --with-tests option and any module that
26359         depends on test-framework-sh, "make dist" would fail due to the
26360         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
26361         in the gltests directory, and not in the gllib/ directory.
26362         One way to work around that is to move the EXTRA_DIST += init.sh
26363         from the primary module to the -tests one:
26364         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
26365         * modules/test-framework-sh (Makefile.am): ...not here.
26366         Reported by Tom G. Christensen in
26367         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
26369         version-etc: update copyright year reported by --version
26370         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
26372 2011-12-31  Pádraig Brady  <P@draigBrady.com>
26374         canonicalize: only stat() if required
26375         * lib/canonicalize.c (canonicalize_filename_mode):
26376         Avoid calling l?stat() when both CAN_MISSING,
26377         and CAN_NOLINKS are set, as we neither need
26378         to resolve symlinks or test component existence.
26380 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
26382         doc: cover st_ino issues once; add OpenVMS etc.
26383         * doc/posix-functions/stat.texi (stat):
26384         * doc/posix-functions/lstat.texi (lstat):
26385         * doc/posix-functions/fstatat.texi (fstatat):
26386         * doc/posix-functions/fstat.texi (fstat):
26387         Move general 'struct stat' stuff to sys_stat.texi,
26388         leaving behind a pointer.
26389         * doc/posix-headers/sys_stat.texi (sys/stat.h):
26390         Merge duplicate info about 'struct stat' problems into here.
26391         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
26392         and suggest partial workarounds.
26394         same-inode: port to OpenVMS
26395         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
26396         three st_ino values.
26398 2011-12-30  Pádraig Brady  <P@draigBrady.com>
26400         canonicalize: fix references to stat() and lstat()
26401         * lib/canonicalize.c (canonicalize_filename_mode):
26402         Ensure references always resolve to a replacement
26403         function if required (even via a macro).
26405 2011-12-30  Jim Meyering  <meyering@redhat.com>
26407         gitlog-to-changelog: remove a little duplication
26408         * build-aux/gitlog-to-changelog (main): Grep @lines once,
26409         rather than twice.
26411 2011-12-29  Pádraig Brady  <P@draigBrady.com>
26413         canonicalize: add support for not resolving symlinks
26414         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
26415         indicate we don't want to follow symlinks.  Also
26416         provide CAN_MODE_MASK to aid setting these existing
26417         mutually exclusive values.
26418         * lib/canonicalize.c (canonicalize_filename_mode):
26419         Extract the flags from can_mode parameter, which
26420         are currently just used to select between stat()
26421         and lstat().  Also ensure that mutually exclusive
26422         values are flagged immediately as invalid.
26423         * tests/test-canonicalize.c: Verify symlinks are
26424         not followed, and that invalid flag combinations
26425         are diagnosed.
26427 2011-12-25  Jim Meyering  <meyering@redhat.com>
26429         gitlog-to-changelog: do not clump multi-paragraph entries
26430         Identical header lines (date,name,email+coauthors) are suppressed,
26431         thus putting all entries with those same characteristics under
26432         a single header.  However, when a log entry consists of two or
26433         more paragraphs, it may not be clear where it starts and ends.
26434         This change makes it so that such an entry is always separated
26435         from others by a header line, even when that header would
26436         otherwise be suppressed.
26437         * build-aux/gitlog-to-changelog: Implement the above.
26438         Inspired by a related request from Stefano Lattarini in
26439         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
26441 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
26443         announce-gen: fix `cmd' typo in diagnostic
26444         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
26445         diagnostic: a missing '$' meant that the command was not output.
26447 2011-12-23  Jim Meyering  <meyering@redhat.com>
26449         test-framework-sh: distribute init.sh
26450         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
26451         Otherwise, "make -C gnulib-tests check" (at least in grep) would
26452         fail due to the lack of init.sh.
26454         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
26455         * modules/atexit-tests: Rather than listing tests/init.sh,
26456         now that there's a module for it, simply depend on that new module.
26457         * modules/closein-tests: Likewise.
26458         * modules/exclude-tests: Likewise.
26459         * modules/getcwd-tests: Likewise.
26460         * modules/perror-tests: Likewise.
26461         * modules/pread-tests: Likewise.
26462         * modules/pwrite-tests: Likewise.
26463         * modules/vc-list-files-tests: Likewise.
26464         * modules/verify-tests: Likewise.
26465         * modules/xalloc-die-tests: Likewise.
26466         * modules/xstrtoimax-tests: Likewise.
26467         * modules/xstrtol-tests: Likewise.
26468         * modules/xstrtoll-tests: Likewise.
26469         * modules/xstrtoumax-tests: Likewise.
26470         * modules/yesno-tests: Likewise.
26472 2011-12-22  Jim Meyering  <meyering@redhat.com>
26474         test-framework-sh: add minimal tests of init.sh's compare function
26475         * modules/test-framework-sh-tests: New file.
26476         * tests/test-init.sh: New file.
26478         test-framework-sh: new module
26479         * modules/test-framework-sh: New file.
26480         * MODULES.html.sh (Support for maintaining and releasing projects):
26481         List it.
26483         init.sh: do not emit simulated diff output to stderr
26484         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
26486 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
26488         .gitignore: ignore gnulib.dvi and regex.info
26489         * doc/.gitignore:add gnulib.dvi and regex.info
26491 2011-12-22  Jim Meyering  <meyering@redhat.com>
26493         init.sh: correct previous change
26494         * tests/init.sh (compare): My previous change was wrong.
26495         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
26497         init.sh: avoid unwarranted test failure when using "set -e"
26498         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
26499         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
26500         a use like "compare exp out" would get evoke an unconditional failure.
26502 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
26504         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
26505         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
26506         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
26507         autoreconf that did not.
26508         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
26509         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
26511 2011-12-17  Jim Meyering  <meyering@redhat.com>
26513         bootstrap: remove some now-unneeded code
26514         This script arose back when gnulib-tool was young.
26515         Since then, it has seen improvements that render much of this
26516         script unnecessary.  In particular, it can now make symlinks
26517         to the files it uses.  Also, I no longer see as much value in
26518         marking files as read-only via comments.
26519         If you relied on the symlink-creation feature of the preceding
26520         version of this script, you can get most of that functionality
26521         by adding the --symlink option to the definition of
26522         gnulib_tool_option_extras in your bootstrap.conf file.
26523         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
26524         Run autopoint and libtoolize *before* gnulib-tool.
26525         After it, run an abbreviated autoreconf, rather than a loop around
26526         all tools.
26527         (slirp, bt_mark_as_generated): Remove functions.
26529 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26531         ftoastr: fix typo
26532         * lib/ftoastr.h: Fix misspelling in comment.
26534 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
26536         * top/README-release: fix punctuation.
26538 2011-12-17  Jim Meyering  <meyering@redhat.com>
26540         bootstrap: correct the recent buildreq change
26541         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
26542         had no effect.
26543         * build-aux/bootstrap (buildreq): Bracket each search term with
26544         "*...*", so that the shell "case" statement works as intended.
26545         Add comments.
26547 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
26549         build: let bootstrap resort to wget when downloading .po files
26550         * build-aux/bootstrap (download_po_files): Fallback to wget when
26551         downloading the .po files via rsync fails.  This is necessary to
26552         bootstrap from behind a strict firewall.
26554 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
26556         stdint: don't assume C++11 when compiling with g++
26557         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
26558         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
26559         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
26560         work also in C++ before C++11, as that improperly inhibits
26561         generating a substitute stdint.h for that case.
26563 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
26565         alloca: protect comment from gnulib-tool
26566         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
26567         that gnulib-tool doesn't think it's a license, and munge it to
26568         say "GCC version 3".
26570 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
26572         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
26573         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
26574         $(abs_top_builddir) instead of $(top_builddir).
26576 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
26578         strftime-tests: also test nanoseconds
26579         * tests/test-strftime.c (T): Add a test of %N.
26581 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
26583         inttypes, stdint: add C++11 support
26584         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
26585         when including inttypes.h and stdint.h.  Support this change to
26586         the standard.
26587         * doc/posix-headers/inttypes.texi (inttypes.h):
26588         * doc/posix-headers/stdint.texi (stdint.h): Document this.
26589         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
26590         Define if not defined already, for the benefit of pre-C++11 hosts.
26591         Define the standard format macros (e.g., PRId8) always.
26592         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
26593         Likewise, if __cpluspus.  Define the standard constant and limit
26594         macros (e.g., INT8_C, INT8_MAX) always.
26595         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
26596         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
26597         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
26598         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
26599         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
26600         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
26601         Likewise.
26603 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
26605         nonblocking tests: Fix test failure on Linux/PPC.
26606         Suggested by Prerna Saxena in
26607         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
26608         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
26609         Set to 1100000.
26611 2011-12-12  Jim Meyering  <meyering@redhat.com>
26613         argmatch: don't hard-code `' when listing valid option arguments
26614         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
26615         use the quote function to add quotes.  Use fputs rather than
26616         fprintf for the format string with no format directive.
26618 2011-12-07  Eric Blake  <eblake@redhat.com>
26620         bootstrap: detect tools required by gnulib-tool
26621         * build-aux/bootstrap (buildreq): Provide minimum implicit
26622         dependencies.
26623         * DEPENDENCIES: Mention patch as a prereq.
26625 2011-12-04  Bruno Haible  <bruno@clisp.org>
26627         sethostname: Port to Windows platforms.
26628         * lib/sethostname.c: Provide an alternate implementation for Windows
26629         platforms.
26630         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
26631         (main): Skip the test if sethostname() fails with EPERM. On Windows
26632         platforms, don't check the result of gethostname().
26634 2011-12-04  Bruno Haible  <bruno@clisp.org>
26635             Jim Meyering  <meyering@redhat.com>
26637         tests: Avoid spurious error message on platforms without mktemp program.
26638         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
26640 2011-12-04  Bruno Haible  <bruno@clisp.org>
26642         sethostname: Fix documentation.
26643         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
26644         "not fixed" section.
26646 2011-12-03  Bruno Haible  <bruno@clisp.org>
26648         gnulib-tool: Verify that the License field is present and non-empty.
26649         * gnulib-tool (func_get_license_raw): New function, extracted from
26650         func_get_license.
26651         (func_get_license): Use it. Warn if the module is not a test module and
26652         has no license.
26653         Suggested by Jim Meyering.
26655 2011-12-03  Bruno Haible  <bruno@clisp.org>
26657         sethostname tests: Fix link error on mingw.
26658         * tests/test-sethostname1.c: New file, extracted from
26659         tests/test-sethostname.c.
26660         * tests/test-sethostname2.c: New file, extracted from
26661         tests/test-sethostname.c.
26662         * tests/test-sethostname.c: Remove file.
26663         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
26664         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
26665         (Depends-on): Add gethostname.
26666         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
26667         Link the latter with $(GETHOSTNAME_LIB).
26669         sethostname tests: Fix compilation error on mingw.
26670         * tests/test-sethostname.c: Don't include <sys/types.h>.
26671         (geteuid): Use a dummy value without uid_t.
26672         * modules/sethostname-tests (Depends-on): Remove sys_types.
26674         sethostname tests: Avoid a gcc warning.
26675         * tests/test-sethostname.c (main): Remove an unused variable.
26677         Tweak last commit.
26678         * modules/sethostname-tests (Files): Sort by decreasing importance.
26679         (configure.ac): Check for geteuid.
26680         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
26681         the test when there's nothing to test. Drop an unnecessary cast.
26682         Improve an error message. Verify that the final sethostname() call
26683         succeeds.
26685 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
26687         Add a test suite for the sethostname module.
26688         * modules/sethostname-tests: New file.  A test program
26689         for the sethostname module.
26690         * tests/test-sethostname.c: Likewise.
26692 2011-12-03  Bruno Haible  <bruno@clisp.org>
26694         Tweak last commit.
26695         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
26696         Fix preprocessor directives indentation. Fix typos.
26697         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
26698         * modules/unistd (Makefile): Likewise.
26700 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
26702         Integrate the sethostname module into unistd.
26703         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
26704         into the unistd.h header.
26705         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
26706         preprocessor directives.
26707         * modules/unistd: Setup the Makefile substitutions of the
26708         SETHOSTNAME preprocessor directives.
26710 2011-12-03  Bruno Haible  <bruno@clisp.org>
26712         Tweak last commit.
26713         * lib/sethostname.c: Don't include <string.h>.
26714         (sethostname): No need to copy the argument string to the stack. Don't
26715         call clearerr. Preserve errno when fprintf failed.
26716         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
26717         Don't invoke AC_REPLACE_FUNCS.
26718         * modules/sethostname (Link): Remove empty section.
26719         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
26720         failure problem.
26722 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
26724         New module 'sethostname'.
26725         * lib/sethostname.c (sethostname): New file.  Provide sethostname
26726         for systems that lack it.
26727         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
26728         sethostname declaration and function.
26729         * modules/sethostname: New file.  Define the sethostname module.
26731 2011-12-03  Bruno Haible  <bruno@clisp.org>
26733         Tweak last commit.
26734         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
26736 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
26738         Split the HOST_NAME_MAX detection into a separate m4 macro.
26739         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
26740         macro so it can be used by the pending sethostname module.
26742 2011-12-03  Bruno Haible  <bruno@clisp.org>
26744         Fix module descriptions syntax.
26745         * modules/argv-iter (License): Fix syntax.
26746         * modules/di-set (License): Likewise.
26747         * modules/ino-map (License): Likewise.
26748         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
26750 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
26752         stdalign: port to Clang 3.0
26753         Problem reported by Simon Josefsson in
26754         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
26755         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
26756         which has <stdalign.h> but which does not define alignof.
26757         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
26759 2011-12-01  Eric Blake  <eblake@redhat.com>
26761         mktempd: silence dd usage
26762         * build-aux/mktempd (rand_bytes): Silence dd.
26764 2011-11-30  Simon Josefsson  <simon@josefsson.org>
26766         manywarnings: Don't mention gcc version in docstring.
26767         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
26768         Jim Meyering <meyering@redhat.com>.
26770 2011-11-30  Jim Meyering  <meyering@redhat.com>
26772         hash: mark a few floating point constants with "f" suffix
26773         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
26774         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
26775         floating point constants with "f", since they're destined to be
26776         saved/used as "float"s.
26778 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
26780         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
26781         * tests/test-float.c (test_long_double): Correct and re-enable the
26782         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
26784 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
26786         Avoid subtracting two pointers that don't point into the same block.
26787         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
26788         only pointers into the same memory block are subtracted. We cannot
26789         assume that sizeof (ptrdiff_t) == sizeof (void *).
26791 2011-11-29  Eric Blake  <eblake@redhat.com>
26793         maint.mk: add syntax check for use of compare from init.sh
26794         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
26795         moved here from coreutils.
26797         manywarnings: drop -Wunsuffixed-float-constants
26798         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
26799         '1.0D', which is the only way to silence this warning for 'double'.
26801 2011-11-29  Jim Meyering  <meyering@redhat.com>
26803         hash: mark compute_bucket_size with the pure attribute
26804         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
26806         quotearg, propername: correct pragma guard expression
26807         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
26808         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
26810 2011-11-28  Jim Meyering  <meyering@redhat.com>
26812         propername: do not mark proper_name with the const attribute
26813         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
26814         since it examines data pointed to by its parameter.
26815         * lib/propername.c (proper_name): Instead, add a pragma to suppress
26816         the suggestion from -Wsuggest-attribute=const.
26818         propername: mark one more function as const
26819         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
26821 2011-11-27  Jim Meyering  <meyering@redhat.com>
26823         mark functions with const and pure attributes
26825         Mark functions per suggestions from gcc-4.6 when using these options:
26826         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
26827         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
26828         Follow these guidelines: when possible, apply the attribute to
26829         an extern declaration, not to its definition.  Apply it to the
26830         definition only when the definition is static.
26831         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
26832         * lib/argv-iter.h (argv_iter_n_args): Likewise.
26833         * lib/base64.h (isbase64): Likewise.
26834         * lib/basename-lgpl.c (last_component, base_len): Likewise.
26835         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
26836         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
26837         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
26838         (c_tolower, c_toupper): Likewise.
26839         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
26840         * lib/chdir-long.c (find_non_slash): Likewise.
26841         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
26842         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
26843         * lib/file-type.h (file_type): Likewise.
26844         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
26845         * lib/filevercmp.c (verrevcmp): Likewise.
26846         * lib/freadahead.h (freadahead): Likewise.
26847         * lib/fts.c (fts_maxarglen): Likewise.
26848         * lib/hash-pjw.h (hash_pjw): Likewise.
26849         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
26850         * lib/hash.c (is_prime, next_prime): Likewise.
26851         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
26852         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
26853         (hash_table_ok, hash_get_first, hash_string): Likewise.
26854         (compute_bucket_size): Likewise.
26855         * lib/i-ring.h (i_ring_empty): Likewise.
26856         * lib/isnan.c (isnanl): Likewise.
26857         * lib/math.h (isnanl, rpl_isnanl): Likewise.
26858         * lib/memcasecmp.h (memcasecmp): Likewise.
26859         * lib/memchr2.h (memchr2): Likewise.
26860         * lib/memcmp2.h (memcmp2): Likewise.
26861         * lib/parse-datetime.y (lookup_zone): Likewise.
26862         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
26863         [!WINDOWS_SOCKETS]: Likewise.
26864         * lib/strnlen1.h (strnlen1): Likewise.
26865         * lib/uniwidth.in.h (uc_width): Likewise.
26866         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
26867         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
26868         (quoting_options_from_style): Add a comment.
26869         * lib/propername.h (proper_name): Add a comment.
26871 2011-11-27  Bruno Haible  <bruno@clisp.org>
26873         Remove unused macros from !_LIBC code in glibc-borrowed files.
26874         * lib/fnmatch.c (STRCOLL): Remove macro.
26875         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
26876         * lib/glob.c (__stat, __readdir64): Remove macros.
26877         * lib/tempname.c (__open64, __xstat64): Remove macros.
26878         Suggested by Paul Eggert.
26880 2011-11-27  Bruno Haible  <bruno@clisp.org>
26882         getcwd: Fix link error on MSVC 9.
26883         * modules/getcwd (Depends-on): Add readdir, rewinddir.
26885 2011-11-27  Bruno Haible  <bruno@clisp.org>
26887         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
26888         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
26889         HAVE_OPENDIR is 0.
26890         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
26891         HAVE_CLOSEDIR is 0.
26892         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
26893         is 0.
26894         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
26896 2011-11-27  Bruno Haible  <bruno@clisp.org>
26898         getcwd: Fix bug from 2011-08-17.
26899         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
26900         platforms that need it.
26901         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
26902         code of 4 to be a failure, not a success. This ensures that
26903         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
26905 2011-11-27  Bruno Haible  <bruno@clisp.org>
26907         binary-io tests: Avoid test failure on mingw when libtool is used.
26908         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
26909         Don't verify the size of t-bin-out1.tmp here.
26910         * tests/test-binary-io.sh: Verify it here.
26911         Reported by Simon Josefsson.
26913 2011-11-26  Bruno Haible  <bruno@clisp.org>
26915         Fix conflict between two instantiations of module 'unistd'.
26916         * gnulib-tool (func_emit_autoconf_snippet): Substitute
26917         ${include_guard_prefix} also in the autoconf snippet.
26918         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
26919         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
26920         GNULIB_UNISTD_H_GETOPT.
26921         * modules/getopt-posix (configure.ac): Set the
26922         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
26923         * modules/getopt-gnu (configure.ac): Likewise.
26924         * modules/unistd (Makefile.am): Change the substitution value of
26925         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
26926         Reported by Simon Josefsson.
26928 2011-11-25  Bruno Haible  <bruno@clisp.org>
26930         pagealign_alloc: Doc and comments.
26931         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
26932         module.
26933         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
26935 2011-11-25  Jim Meyering  <meyering@redhat.com>
26937         test-update-copyright.sh: avoid false-positive failure
26938         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
26939         around false positive failure on Cygwin/Windows.  The latter was
26940         matching erroneously-created files with names like
26941         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
26943 2011-11-25  Simon Josefsson  <simon@josefsson.org>
26945         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
26946         * m4/valgrind-tests.m4: Check that the parameters that will be
26947         used works, not just a subset of them.  Reported by Bruno Haible
26948         <bruno@clisp.org>.
26950 2011-11-24  Jim Meyering  <meyering@redhat.com>
26952         test-stdalign.c: comment out long double tests
26953         * tests/test-stdalign.c: Don't try to reduce alignment of long double
26954         variables.  That provokes errors like this from gcc-4.7.0 20111124:
26955         error: '_Alignas' specifiers cannot reduce alignment of \
26956         'static_longdouble_alignas'.
26958 2011-11-22  Jim Meyering  <meyering@redhat.com>
26960         init.sh: make "compare /dev/null FILE" output more readable
26961         * tests/init.sh (compare_): Document the preferred order of arguments.
26962         (emit_diff_u_header_): New function.
26963         (compare_dev_null_): Emit a simulated diff, rather than just the
26964         contents of the unexpected file.  Suggestion from Bruno Haible.
26966 2011-11-21  Jim Meyering  <meyering@redhat.com>
26967             Eric Blake  <eblake@redhat.com>
26969         init.sh: work around OSF/1 5.1's mishandling of /dev/null
26970         * tests/init.sh: Make our compare function slightly more portable.
26971         Reported by Bruno Haible in
26972         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
26974 2011-11-21  Simon Josefsson  <simon@josefsson.org>
26976         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
26977         before using it, in code that ends up in config.h.
26979 2011-11-20  Bruno Haible  <bruno@clisp.org>
26981         getcwd: Work around getcwd bug on AIX 5..7.
26982         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
26983         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
26984         Use a different value for gl_cv_func_getcwd_path_max. Move the
26985         definition of HAVE_PARTLY_WORKING_GETCWD from here...
26986         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
26987         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
26988         Define HAVE_MINIMALLY_WORKING_GETCWD.
26989         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
26990         where it is not even minimally working, that is, on AIX.
26991         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
26992         m4/getcwd-path-max.m4.
26993         (main): Update exit code computation.
26994         * doc/posix-functions/getcwd.texi: Mention list of platforms where
26995         getcwd does not handle long file names.
26997 2011-11-20  Bruno Haible  <bruno@clisp.org>
26999         getcwd: Fix bug from 2009-09-10.
27000         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
27001         like "no".
27003 2011-11-20  Simon Josefsson  <simon@josefsson.org>
27005         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
27007 2011-11-20  Bruno Haible  <bruno@clisp.org>
27009         fma tests: Avoid shadowing local variables.
27010         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
27011         expected.
27013 2011-11-20  Bruno Haible  <bruno@clisp.org>
27015         copysignf tests: Fix.
27016         * tests/test-copysignf.c: Fix signature check.
27018 2011-11-20  Bruno Haible  <bruno@clisp.org>
27020         fma: Remove unused code.
27021         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
27022         unused macros.
27024 2011-11-20  Bruno Haible  <bruno@clisp.org>
27026         sethostname: Fix doc about AIX.
27027         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
27028         sethostname; it has it.
27030         sethostname: Mention more portability problems.
27031         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
27032         problem.
27033         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
27035 2011-11-19  Bruno Haible  <bruno@clisp.org>
27037         Depend on module fcntl-h when AT_FDCWD is used.
27038         * modules/utimens (Depends-on): Add fcntl-h.
27039         * modules/areadlinkat (Depends-on): Likewise.
27040         * modules/areadlinkat-with-size (Depends-on): Likewise.
27041         * modules/faccessat (Depends-on): Likewise.
27042         * modules/fchmodat (Depends-on): Likewise.
27043         * modules/fchownat (Depends-on): Likewise.
27044         * modules/getcwd (Depends-on): Likewise.
27045         * modules/mkdirat (Depends-on): Likewise.
27046         * modules/mkfifoat (Depends-on): Likewise.
27047         * modules/readlinkat (Depends-on): Likewise.
27048         * modules/symlinkat (Depends-on): Likewise.
27049         * modules/dup2-tests (Depends-on): Likewise.
27050         * modules/fdutimensat-tests (Depends-on): Likewise.
27051         * modules/futimens-tests (Depends-on): Likewise.
27053 2011-11-19  Bruno Haible  <bruno@clisp.org>
27055         euidaccess: Update a comment.
27056         * lib/euidaccess.c: Update comment about platforms with faccessat.
27058 2011-11-19  Bruno Haible  <bruno@clisp.org>
27060         openat: Fix file list.
27061         * modules/openat (Files): Remove lib/at-func.c.
27063 2011-11-19  Bruno Haible  <bruno@clisp.org>
27065         fstatat: Simplify.
27066         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
27067         gnulib should define rpl_fstatat, there is a
27068         "#define fstatat rpl_fstatat" in <sys/stat.h>.
27070 2011-11-19  Bruno Haible  <bruno@clisp.org>
27072         Ensure 'inline' can be used in tests/test-utimens-common.h.
27073         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
27074         * modules/futimens-tests (configure.ac): Likewise.
27075         * modules/utimens-tests (configure.ac): Likewise.
27076         * modules/utimensat-tests (configure.ac): Likewise.
27078 2011-11-19  Simon Josefsson  <simon@josefsson.org>
27080         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
27081         not hash_insert0.
27082         (hash_insert_if_absent): Doc fix.
27084 2011-11-19  Simon Josefsson  <simon@josefsson.org>
27086         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
27088 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
27090         test-getcwd: disambiguate exit status
27091         * tests/test-getcwd.c (test_long_name): Return 0..7.
27092         (main): Exit with an unambiguous exit status.  The old
27093         code yielded a mysterious mixture of two failure codes.
27095         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
27096         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
27097         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
27098         rpl_fstatat or fstatat.  This should fix the other problem
27099         reported by Kai Habel in
27100         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
27101         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
27102         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
27103         and I reproduced it on a Solaris 8 host we still have in production.
27105 2011-11-18  Jim Meyering  <meyering@redhat.com>
27107         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
27108         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
27109         Add a sentence to the comment.
27110         (hash_insert0): New function that simply calls hash_insert_if_absent.
27111         * lib/hash.h (hash_insert_if_absent): Declare it.
27112         (hash_insert0): Add deprecation attribute.
27113         (_GL_ATTRIBUTE_DEPRECATED): Define.
27114         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
27115         not hash_insert0.
27116         * NEWS: Mention it, even though it's not really an incompatible change.
27118 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
27120         openat: avoid compilation failure due to lack of <errno.h> inclusion
27121         * lib/openat.c: Include <errno.h>.
27123 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
27125         * modules/getcwd (Depends-on): Add fdopendir.
27126         This fixes one of the two problems reported by Kai Habel in
27127         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
27129         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
27130         stdalign problem reported by Ian Beckwith in
27131         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
27132         * modules/crypto/gc-arcfour (Depends-on):
27133         Depend conditionally on crypto/arcfour.
27134         * modules/crypto/gc-arctwo (Depends-on):
27135         Depend conditionally on crypto/arctwo.
27136         * modules/crypto/gc-des (Depends-on):
27137         Depend conditionally on crypto/des.
27138         * modules/crypto/gc-hmac-md5 (Depends-on):
27139         Depend conditionally on crypto/hmac-md5.
27140         * modules/crypto/gc-hmac-sha1 (Depends-on):
27141         Depend conditionally on crypto/hmac-sha1.
27142         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
27143         * modules/crypto/gc-md4 (Depends-on):
27144         Depend conditionally on crypto/md4.
27145         * modules/crypto/gc-md5 (Depends-on):
27146         Depend conditionally on crypto/md5.
27147         * modules/crypto/gc-rijndael (Depends-on):
27148         Depend conditionally on crypto/rijndael.
27149         * modules/crypto/gc-sha1 (Depends-on):
27150         Depend conditionally on crypto/sha1.
27151         * modules/crypto/gc-arcfour:
27152         * modules/crypto/gc-arctwo:
27153         * modules/crypto/gc-des:
27154         * modules/crypto/gc-hmac-md5:
27155         * modules/crypto/gc-hmac-sha1:
27156         * modules/crypto/gc-md2:
27157         * modules/crypto/gc-md4:
27158         * modules/crypto/gc-md5:
27159         * modules/crypto/gc-rijndael:
27160         * modules/crypto/gc-sha1:
27161         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
27162         now that the conditional dependencies do the work for us.
27164 2011-11-17  Jim Meyering  <meyering@redhat.com>
27166         tests: factor st_ctime-comparison out of two headers
27167         * tests/test-utimens-common.h (ctime_compare): Define.
27168         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
27169         * tests/test-lutimens.h (test_lutimens): Likewise.
27170         * tests/test-utimens.h (test_utimens): Likewise.
27172         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
27173         Invoke the test program via an init.sh-using wrapper.
27174         * tests/test-getcwd.sh: New file.
27175         * modules/getcwd-tests (Files): Add it.
27176         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
27178 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
27180         gitlog-to-changelog: support multi-author commits.
27181         The FSF cares about keeping track of all authors of patches to its
27182         projects, but Git doesn't provide obvious support for multi-author
27183         changesets. Consensus seems to be forming around the use of extra
27184         Signed-off-by inspired lines in the log message formatted as
27185         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
27186         multi-author commits between version control systems.
27187         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
27188         log message and output in standard ChangeLog multi-author format.
27189         Reported by Peter Rosin <peda@lysator.liu.se>
27191 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
27192             Bruno Haible  <bruno@clisp.org>
27194         Fix some modules' file list.
27195         * modules/fstatat (Files): Add m4/lstat.m4.
27196         * modules/openat (Files): Likewise.
27197         * modules/unlinkat (Files): Likewise.
27199 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
27201         maint.mk: fix tight-scope.mk generation in VPATH builds.
27202         * top/maint.mk (tight-scope.mk): Make sure to prefix file
27203         reference with $(srcdir) so that the file is found correctly even
27204         when running `make syntax-check' in a VPATH build.
27206 2011-11-13  Bruno Haible  <bruno@clisp.org>
27207             Jim Meyering  <meyering@redhat.com>
27209         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
27210         * tests/init.sh (compare): Remove "No differences encountered" or
27211         synonymous output from the 'diff' program.
27213 2011-11-13  Bruno Haible  <bruno@clisp.org>
27215         Makefile: Tweak indentation.
27216         * Makefile: Use tab as first character in every line that contains rule
27217         commands.
27219 2011-11-13  Bruno Haible  <bruno@clisp.org>
27221         Syntax check for copyright statements.
27222         * check-copyright: New file.
27223         * Makefile (sc_check_copyright): New rule.
27225 2011-11-13  Simon Josefsson  <simon@josefsson.org>
27227         * build-aux/git-version-gen: Add --prefix to configure the tag
27228         match string.
27230 2011-11-13  Simon Josefsson  <simon@josefsson.org>
27232         * build-aux/git-version-gen: Add --help and --version.
27234 2011-11-12  Jim Meyering  <meyering@redhat.com>
27236         revamp the other test-exclude?.sh scripts to use init.sh, too
27237         * tests/test-exclude1.sh: Use init.sh.
27238         * tests/test-exclude2.sh: Likewise.
27239         * tests/test-exclude3.sh: Likewise.
27240         * tests/test-exclude4.sh: Likewise.
27241         * tests/test-exclude5.sh: Likewise.
27242         * tests/test-exclude6.sh: Likewise.
27243         * tests/test-exclude7.sh: Likewise.
27244         * tests/test-exclude8.sh: Likewise.
27245         * modules/exclude-tests (Files): List init.sh.
27247         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
27248         These shell scripts ignored failure of the binary test-exclude,
27249         so making the latter return 77 didn't cause them to be skipped.
27250         * tests/test-exclude5.sh: Exit with test-exclude's error status
27251         when that program fails.  Revamp to use init.sh.
27252         * tests/test-exclude2.sh: Likewise.
27254         test-exclude: fix a typo
27255         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
27257 2011-11-11  Bruno Haible  <bruno@clisp.org>
27259         obstack: Fix compilation error on MSVC 9.
27260         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
27262 2011-11-11  Jim Meyering  <meyering@redhat.com>
27264         test-exclude: skip tests rather than failing on deficient systems
27265         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
27266         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
27267         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
27268         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
27270 2011-11-10  Bruno Haible  <bruno@clisp.org>
27272         ptsname_r test: Avoid gcc warning on glibc systems.
27273         * tests/test-ptsname_r.c (null_ptr): New function.
27274         (test_errors): Use it.
27276 2011-11-10  Bruno Haible  <bruno@clisp.org>
27278         ptsname_r: Avoid compilation error on OSF/1 5.1.
27279         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
27280         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
27281         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
27282         function is not declared or incompatibly declared.
27283         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
27284         * modules/ptsname_r (Depends-on, configure.ac): Update.
27285         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
27287 2011-11-10  Bruno Haible  <bruno@clisp.org>
27289         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
27290         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
27291         When cross-compiling, guess yes on all platforms except AIX.
27292         Reported by Ludovic Courtès <ludo@gnu.org>.
27294 2011-11-09  Bruno Haible  <bruno@clisp.org>
27296         ptsname_r tests: Fix bugs.
27297         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
27298         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
27300 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
27302         fstatat: work with cross-compilation
27303         Problem reported by Ludovic Courtès in
27304         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
27305         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
27306         "cross-compiling" and assume the bug is present.  Replace
27307         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
27308         an inverted sense, to be more conservative about our assumptions.
27309         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
27311 2011-11-09  Bruno Haible  <bruno@clisp.org>
27313         Improve MODULES.html output.
27314         * modules/mkfifoat (Description): Use the word "function".
27315         * modules/readlinkat (Description): Likewise.
27316         * modules/symlinkat (Description): Likewise.
27318 2011-11-09  Eric Blake  <eblake@redhat.com>
27320         ptsname_r-tests: new test module
27321         * modules/ptsname_r-tests: New module.
27322         * tests/test-ptsname_r.c: New file.
27324         ptsname_r: new module
27325         * modules/ptsname_r: New module.
27326         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
27327         * lib/ptsname.c (__ptsname_r): Split...
27328         * lib/ptsname_r.c: ...into new file.
27329         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
27330         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
27331         * modules/stdlib (Makefile.am): Substitute witnesses.
27332         * lib/stdlib.in.h (ptsname_r): Declare it.
27333         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
27334         * MODULES.html.sh (Misc): Likewise.
27335         * modules/ptsname (Depends-on): Alter dependency.
27336         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
27338 2011-11-09  Jim Meyering  <meyering@redhat.com>
27340         announce-gen: be more concise when there's only one URL+tarball
27341         * build-aux/announce-gen (get_tool_versions): When you distribute
27342         only one type of tarball, combine the first two "Here are..."
27343         sections and make the key-checking grammar independent of
27344         how many tarballs there are.
27346 2011-11-09  Eric Blake  <eblake@redhat.com>
27348         openpty: provide a stub on mingw
27349         * lib/pty.in.h (includes): Provide forward declarations.
27350         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
27352         raise: fix mingw handling of SIGPIPE
27353         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
27355 2011-11-08  Bruno Haible  <bruno@clisp.org>
27357         More conditional dependencies.
27358         * modules/faccessat (Depends-on): Add conditions.
27359         * modules/fchmodat (Depends-on): Likewise.
27360         * modules/fchownat (Depends-on): Likewise.
27361         * modules/fstatat (Depends-on): Likewise.
27362         * modules/mkfifoat (Depends-on): Likewise.
27363         * modules/readlinkat (Depends-on): Likewise.
27364         * modules/symlinkat (Depends-on): Likewise.
27365         * modules/unlinkat (Depends-on): Likewise.
27366         * modules/utimensat (Depends-on): Likewise.
27367         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
27368         * modules/linkat (Depends-on): Refine the conditions.
27369         * modules/renameat (Depends-on): Likewise.
27371 2011-11-08  Bruno Haible  <bruno@clisp.org>
27373         faccessat: Move AC_LIBOBJ invocation to module description.
27374         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
27375         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
27376         invocation from here...
27377         * modules/faccessat (configure.ac): ... to here. Invoke
27378         gl_PREREQ_FACCESSAT.
27380 2011-11-08  Bruno Haible  <bruno@clisp.org>
27382         faccessat: Simplify autoconf macro.
27383         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
27384         gl_FUNC_EUIDACCESS.
27386 2011-11-08  Bruno Haible  <bruno@clisp.org>
27388         renameat: Fix dependencies.
27389         * modules/renameat (Depends-on): Add stdbool.
27391 2011-11-08  Bruno Haible  <bruno@clisp.org>
27393         mkfifoat: Fix module description.
27394         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
27395         not gl_UNISTD_MODULE_INDICATOR.
27397 2011-11-08  Bruno Haible  <bruno@clisp.org>
27399         fstatat: Remove unused dependency.
27400         * modules/fstatat (Depends-on): Remove fstat.
27402 2011-11-08  Simon Josefsson  <simon@josefsson.org>
27404         GNUmakefile: behave when Makefile is missing.
27405         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
27407 2011-11-08  Bruno Haible  <bruno@clisp.org>
27409         openat: Conditionalize dependencies.
27410         * lib/openat.c: Reduce the scope of some #includes.
27411         * modules/openat (Depends-on): Add conditions.
27413 2011-11-07  Jim Meyering  <meyering@redhat.com>
27415         maint.mk: extract GPG key ID without using a temporary file
27416         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
27417         without using a temporary file.  Based on a suggestion from Werner Koch
27418         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
27420 2011-11-07  Eric Blake  <eblake@redhat.com>
27422         grantpt: fix typo
27423         * lib/stdlib.in.h (grantpt): Check correct function.
27425         maint.mk: silence new syntax check
27426         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
27428 2011-11-06  Bruno Haible  <bruno@clisp.org>
27430         Doc about floating-point and math API.
27431         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
27432         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
27434 2011-11-06  Bruno Haible  <bruno@clisp.org>
27436         stdalign tests: Skip the test when compiled by Sun C.
27437         * tests/test-stdalign.c (main): Skip the test on Sun C.
27439 2011-11-06  Bruno Haible  <bruno@clisp.org>
27441         ansi-c++-opt: Complete the 2011-06-05 change.
27442         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
27443         does not support namespaces, set the variable to "no", not to ":".
27445 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
27447         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
27449 2011-11-06  Bruno Haible  <bruno@clisp.org>
27451         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
27452         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
27453         (minus_zerol) [HP-UX]: New macro.
27454         (unary_minus) [HP-UX]: New function.
27455         (copysignl) [HP-UX]: Use unary_minus function.
27457 2011-11-06  Bruno Haible  <bruno@clisp.org>
27459         ldexp, ldexpf, ldexpl: Enhance tests.
27460         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
27461         and tests/test-ldexpl.c.
27462         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
27463         LDEXP, MIN_EXP, MAX_EXP): New macros.
27464         Include test-ldexp.h.
27465         (main): Just call test_function.
27466         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
27467         infinity.h, nan.h.
27468         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
27469         MAX_EXP): New macros.
27470         Include test-ldexp.h.
27471         (x, y): Remove variables.
27472         (main): Just call test_function.
27473         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
27474         infinity.h, nan.h.
27475         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
27476         MAX_EXP): New macros.
27477         Include test-ldexp.h.
27478         (x, y): Remove variables.
27479         (main): Just call test_function.
27480         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
27481         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
27482         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
27483         (Depends-on): Add isnand-nolibm, signbit, float.
27484         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
27485         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
27486         (Depends-on): Add isnanf-nolibm, signbit, float.
27488 2011-11-06  Bruno Haible  <bruno@clisp.org>
27490         math tests: Cosmetics.
27491         * tests/test-math-c++.cc: Reorder declarations.
27493 2011-11-05  Bruno Haible  <bruno@clisp.org>
27495         fma*: Simplify test.
27496         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
27497         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
27499         Tests for module 'fmal'.
27500         * modules/fmal-tests: New file.
27501         * tests/test-fmal1.c: New file.
27502         * tests/test-fmal2.c: New file.
27504         New module 'fmal'.
27505         * lib/math.in.h (fmal): New declaration.
27506         * lib/fmal.c: New file.
27507         * m4/fmal.m4: New file.
27508         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
27509         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
27510         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
27511         REPLACE_FMAL.
27512         * modules/fmal: New file.
27513         * doc/posix-functions/fmal.texi: Mention the new module and the various
27514         bugs.
27516         Tests for module 'fmaf'.
27517         * modules/fmaf-tests: New file.
27518         * tests/test-fmaf1.c: New file.
27519         * tests/test-fmaf2.c: New file.
27521         New module 'fmaf'.
27522         * lib/math.in.h (fmaf): New declaration.
27523         * lib/fmaf.c: New file.
27524         * m4/fmaf.m4: New file.
27525         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
27526         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
27527         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
27528         REPLACE_FMAF.
27529         * modules/fmaf: New file.
27530         * doc/posix-functions/fmaf.texi: Mention the new module and the various
27531         bugs.
27533         Tests for module 'fma'.
27534         * modules/fma-tests: New file.
27535         * tests/test-fma1.c: New file.
27536         * tests/test-fma1.h: New file.
27537         * tests/test-fma2.c: New file.
27538         * tests/test-fma2.h: New file.
27540         New module 'fma'.
27541         * lib/math.in.h (fma): New declaration.
27542         * lib/fma.c: New file.
27543         * m4/fma.m4: New file.
27544         * m4/fegetround.m4: New file.
27545         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
27546         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
27547         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
27548         REPLACE_FMA.
27549         * modules/fma: New file.
27550         * doc/posix-functions/fma.texi: Mention the new module and the various
27551         bugs.
27553         Extend gl_MATHFUNC.
27554         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
27555         Support 'void' as argument type.
27556         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
27558 2011-11-05  Jim Meyering  <meyering@redhat.com>
27560         maint.mk: also prohibit inclusion of dirent.h without use
27561         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
27563 2011-11-05  Bruno Haible  <bruno@clisp.org>
27565         ldexpl tests: Avoid test failure on MSVC 9.
27566         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
27567         value. Needed in order to enforce the conversion from a value greater
27568         than LDBL_MAX to Infinity.
27570 2011-11-05  Bruno Haible  <bruno@clisp.org>
27572         New modules 'at-internal', 'openat-h', split off from module 'openat'.
27573         * modules/at-internal: New file, extracted from modules/openat.
27574         * modules/openat-h: New file.
27575         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
27576         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
27577         * modules/openat (Description): Add reference to POSIX function.
27578         (Files): Remove lib/openat.h, lib/openat-proc.c.
27579         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
27580         intprops, unistd.
27581         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
27582         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
27583         gl_FCNTL_MODULE_INDICATOR.
27584         (Include): Remove unistd.h, openat.h.
27585         * modules/areadlinkat (Files): Add lib/at-func.c.
27586         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
27587         openat-die, openat-h, save-cwd.
27588         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
27589         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
27590         openat-die, openat-h, save-cwd, unistd.
27591         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
27592         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
27593         openat-h, save-cwd. Remove fcntl-h, openat.
27594         * modules/fchmodat (Files): Remove lib/openat.h.
27595         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
27596         openat, stdbool, unistd.
27597         * modules/fchownat (Files): Remove lib/openat.h.
27598         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
27599         openat, stdbool, sys_stat.
27600         * modules/fdopendir (Files): Remove lib/openat-priv.h,
27601         lib/openat-proc.c.
27602         (Depends-on): Add at-internal.
27603         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
27604         * modules/fstatat (Files): Remove lib/openat.h.
27605         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
27606         stdbool, unistd.
27607         * modules/fts (Depends-on): Add openat-h.
27608         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
27609         openat.
27610         * modules/mkdirat (Files): Remove lib/openat.h.
27611         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
27612         openat, stdbool, sys_stat.
27613         * modules/mkfifoat (Files): Add lib/at-func.c.
27614         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
27615         openat-h, save-cwd. Remove fcntl-h, openat.
27616         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
27617         * modules/readlinkat (Files): Add lib/at-func.c.
27618         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
27619         openat-h, save-cwd. Remove fcntl-h, openat.
27620         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
27621         openat.
27622         * modules/selinux-at (Files): Add lib/at-func.c.
27623         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
27624         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
27625         * modules/symlinkat (Files): Add lib/at-func.c.
27626         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
27627         openat-h, save-cwd. Remove fcntl-h, openat.
27628         * modules/unlinkat (Files): Remove lib/openat.h.
27629         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
27630         stdbool.
27631         * modules/utimensat (Files): Add lib/at-func.c.
27632         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
27633         openat-die, openat-h, save-cwd.
27634         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
27635         * modules/fdutimensat-tests (Depends-on): Add openat.
27636         * modules/fstatat-tests (Depends-on): Add openat-h.
27637         * modules/readlinkat-tests (Depends-on): Add openat.
27638         * modules/symlinkat-tests (Depends-on): Add openat.
27640 2011-11-05  Bruno Haible  <bruno@clisp.org>
27642         openat: Include <stdbool.h>.
27643         * lib/openat.c: Include <stdbool.h>.
27645 2011-11-04  Bruno Haible  <bruno@clisp.org>
27647         fchownat, renameat, unlinkat: Fix dependencies.
27648         * modules/fchownat (Depends-on): Add fstatat.
27649         * modules/renameat (Depends-on): Likewise.
27650         * modules/unlinkat (Depends-on): Likewise.
27652 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
27654         openat: remove direct dependency on dirent
27655         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
27656         and hasn't been needed ever since fdopendir was split into its own
27657         module on 2009-08-31.
27658         * modules/openat (Depends-on): Remove dirent.
27660 2011-11-04  Bruno Haible  <bruno@clisp.org>
27662         renameat: Optimize code size.
27663         * modules/renameat (configure.ac): Don't compile at-func2.c if
27664         REPLACE_RENAMEAT is 1.
27666 2011-11-04  Bruno Haible  <bruno@clisp.org>
27668         openat tests: Fix file list.
27669         * modules/openat-tests (Files): Add tests/test-open.h.
27671 2011-11-04  Bruno Haible  <bruno@clisp.org>
27673         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
27674         * modules/fchmodat (Depends-on): Add openat-die.
27675         * modules/fchownat (Depends-on): Likewise.
27676         * modules/linkat (Depends-on): Likewise.
27677         * modules/renameat (Depends-on): Likewise.
27678         * modules/openat (Depends-on): Add dirent.
27680 2011-11-04  Jim Meyering  <meyering@redhat.com>
27682         at-func*.c: fix comments
27683         * lib/at-func2.c: Correct/improve first-line comment.
27684         * lib/at-func.c: Correct grammar in first-line comment.
27686 2011-11-04  Bruno Haible  <bruno@clisp.org>
27688         New module 'mkdirat', split off from module 'openat'.
27689         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
27690         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
27691         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
27692         * modules/mkdirat: New file, extracted from modules/openat.
27693         * modules/openat (Files): Remove lib/mkdirat.c.
27694         (Depends-on): Remove mkdir.
27695         (configure.ac): Remove AC_LIBOBJ of mkdirat.
27696         (Include): Remove <sys/stat.h>.
27697         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
27698         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
27699         tests/test-mkdir.h.
27700         (Depends-on): Remove ignore-value.
27701         (Makefile.am): Remove rules for test-mkdirat.
27702         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
27703         of module 'openat'.
27704         * NEWS: Mention the change.
27706 2011-11-04  Bruno Haible  <bruno@clisp.org>
27708         closedir: Avoid warning on mingw.
27709         * lib/closedir.c: Include <unistd.h>.
27711 2011-11-04  Bruno Haible  <bruno@clisp.org>
27713         New module 'fstatat', split off from module 'openat'.
27714         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
27715         defined.
27716         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
27717         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
27718         gl_FUNC_FSTATAT.
27719         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
27720         * modules/fstatat: New file, extracted from modules/openat.
27721         * modules/openat (Files): Remove lib/fstatat.c.
27722         (Depends-on): Remove lstat.
27723         (configure.ac): Remove AC_LIBOBJ of fstatat.
27724         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
27725         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
27726         tests/test-lstat.h, tests/test-stat.h.
27727         (Depends-on): Remove getcwd-lgpl.
27728         (Makefile.am): Remove rules for test-fstatat.
27729         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
27730         of module 'openat'.
27731         * NEWS: Mention the change.
27732         * modules/getcwd (Depends-on): Add fstatat.
27733         * modules/linkat (Depends-on): Likewise.
27734         * modules/mkfifoat-tests (Depends-on): Likewise.
27735         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
27737 2011-11-03  Bruno Haible  <bruno@clisp.org>
27739         New module 'unlinkat', split off from module 'openat'.
27740         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
27741         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
27742         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
27743         * modules/unlinkat: New file, extracted from modules/openat. Correct
27744         the dependency conditions.
27745         * modules/openat (Files): Remove lib/unlinkat.c.
27746         (Depends-on): Remove rmdir, unlink.
27747         (configure.ac): Remove AC_LIBOBJ of unlinkat.
27748         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
27749         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
27750         tests/test-rmdir.h, tests/test-unlink.h.
27751         (Depends-on): Remove unlinkdir.
27752         (Makefile.am): Remove rules for test-unlinkat.
27753         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
27754         of module 'openat'.
27755         * NEWS: Mention the change.
27756         * modules/linkat-tests (Depends-on): Add unlinkat.
27757         * modules/mkfifoat-tests (Depends-on): Likewise.
27758         * modules/readlinkat-tests (Depends-on): Likewise.
27760 2011-11-02  Bruno Haible  <bruno@clisp.org>
27762         New module 'fchmodat', split off from module 'openat'.
27763         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
27764         defined.
27765         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
27766         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
27767         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
27768         * modules/fchmodat: New file, extracted from modules/openat.
27769         * modules/openat (Files): Remove lib/fchmodat.c.
27770         (configure.ac): Remove AC_LIBOBJ of fchmodat.
27771         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
27772         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
27773         (Makefile.am): Remove rules for test-fchmodat.
27774         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
27775         of module 'openat'.
27776         * NEWS: Mention the change.
27778 2011-11-02  Jim Meyering  <meyering@redhat.com>
27780         putenv: indent #definition of "environ" to placate cppi
27781         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
27783         gitlog-to-changelog: provide a ChangeLog-repair mechanism
27784         Git logs are often treated as immutable, because editing them
27785         changes the SHA1 checksums of all descendants.  Thus, errors in
27786         git logs tend to stay there forever.  However, when we generate
27787         a ChangeLog file -- typically for distribution -- from that git log,
27788         we can actually make corrections in the generated file.  The key
27789         lies in recording in machine-readable/applicable form the desired
27790         corrections.  See --help for description and an example.
27791         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
27792         (usage): Describe it; alphabetize option descriptions.
27793         (main): Honor the new option, carefully.
27795 2011-11-01  Jim Meyering  <meyering@redhat.com>
27797         gitlog-to-changelog: avoid an infloop
27798         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
27799         that ends up being empty.
27801 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
27803         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
27804         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
27805         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
27806         contains (possibly-quoted) backslashes.  This should avoid
27807         all-too-common shell bugs if COMPLICATED contains backslashes in
27808         the "wrong" places.  Reported by David Evans in
27809         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
27810         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
27811         because we want ASCII ranges.  Is there some reason we don't use
27812         the C locale everywhere in this script?
27813         (func_module, top level): Avoid unwanted pathname expansion when
27814         $repo_url_prefix or $repo_url_suffix_repl contain shell
27815         metacharacters like '?' and '*'.
27817 2011-11-01  Bruno Haible  <bruno@clisp.org>
27819         fchownat: Improve description.
27820         * modules/fchownat (Description): Add link to function.
27822 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
27824         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
27825         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
27826         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
27827         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
27829 2011-11-01  Bruno Haible  <bruno@clisp.org>
27831         alignof: Avoid collision with stdalign module.
27832         * lib/alignof.h (alignof): Remove macro.
27833         * NEWS: Mention the change.
27834         Reported by Paul Eggert.
27836 2011-11-01  Bruno Haible  <bruno@clisp.org>
27838         New module 'fchownat', split off from module 'openat'.
27839         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
27840         defined.
27841         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
27842         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
27843         invoke gl_FUNC_FCHOWNAT.
27844         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
27845         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
27846         * modules/fchownat: New file, extracted from modules/openat.
27847         * modules/openat (Files): Remove lib/fchownat.c.
27848         (Depends-on): Remove lchown.
27849         (configure.ac): Remove AC_LIBOBJ of fchownat.
27850         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
27851         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
27852         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
27853         (Depends-on): Remove mgetgroups, usleep, stat-time.
27854         (configure.ac): Remove test for getegid.
27855         (Makefile.am): Remove rules for test-fchownat.
27856         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
27857         of module 'openat'.
27858         * NEWS: Mention the change.
27860 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
27862         stdalign: port better to MSVC and to Sun C 5.11
27863         This fixes some of the problems reported by Bruno Haible in
27864         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
27865         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
27866         shortcomings of MSVC and of Sun C 5.11.
27867         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
27868         around __declspec arg.
27869         * modules/stdalign-tests (Files): Add tests/macros.h.
27870         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
27871         Include macros.h, for ASSERT.
27872         (DECLARE_ALIGNED): Remove.
27873         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
27874         to catch bug), and to 1 if not (simplifies the rest of the code).
27875         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
27876         (CHECK_AUTO): Remove.
27877         (CHECK_ALIGNED): Check only the alignment of the static vars,
27878         since auto var alignment isn't supported by Sun C 5.11.
27879         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
27880         ASSERT failures are easier to diagnose.
27882 2011-10-31  Bruno Haible  <bruno@clisp.org>
27884         doc about some IRIX 5.3 problems.
27885         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
27886         on IRIX 5.3.
27887         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
27888         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
27889         5.3.
27890         * doc/posix-functions/grantpt.texi: Likewise.
27891         * doc/posix-functions/unlockpt.texi: Likewise.
27892         * doc/posix-functions/lgamma.texi: Likewise.
27893         * doc/posix-functions/nextafter.texi: Likewise.
27894         * doc/posix-functions/remainder.texi: Likewise.
27895         * doc/posix-functions/select.texi: Mention misplaced declaration on
27896         IRIX 5.3.
27897         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27899 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
27901         gitlog-to-changelog: fix git-log invocation.
27902         git-log mishandles date strings before 1970-01-01 UTC, and there is
27903         no use to specify --since=1970-01-01 by default anyway.
27904         * build-aux/gitlog-to-changelog: By default, when no --since option
27905         was given, do not specify explicit --since option to git-log.
27907 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
27909         gitlog-to-changelog: new option --append-dot.
27910         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
27911         first non-blank line of each commit message terminated with a dot.
27913 2011-10-30  Bruno Haible  <bruno@clisp.org>
27915         ffsl, ffsll: Avoid compilation error due to 'restrict'.
27916         * lib/ffsl.h: Include <config.h>.
27917         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
27919 2011-10-30  Jim Meyering  <meyering@redhat.com>
27921         GNUmakefile: reenable "make syntax-check" for most projects
27922         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
27923         build-aux variable", "syntax-check" would do nothing but succeed with
27924         the "No version control files detected..." diagnostic (unless you
27925         happened to override _build-aux via cfg.mk).
27926         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
27927         to precede inclusion of maint.mk.  Otherwise, these variables would
27928         be used undefined in any project that does not override the default.
27930 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
27932         gitlog-to-changelog: treat a message with only blank lines as empty.
27933         * build-aux/gitlog-to-changelog: Move the code that removes leading and
27934         trailing blank lines before the code that issues a warning about an
27935         empty commit message.
27937 2011-10-30  Jim Meyering  <meyering@redhat.com>
27939         test-parse-datetime.c: avoid new DST-related false positive test failure
27940         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
27941         based on the time/date we'll convert, not the current time.
27942         Otherwise, the moment we cross a DST boundary like today's in
27943         Europe, (CEST to CET), that offset ends up being one hour off.
27945 2011-10-27  Bruno Haible  <bruno@clisp.org>
27947         fstat: Tweak documentation.
27948         * modules/fstat (Description): More precise description.
27950 2011-10-27  Bruno Haible  <bruno@clisp.org>
27952         Update documentation regarding 'largefile' module.
27953         * doc/posix-functions/fstat.texi: Tweak wording.
27954         * doc/posix-functions/opendir.texi: Mention that the module fixes the
27955         problems with huge directories and/or small ino_t types.
27956         * doc/posix-functions/readdir.texi: Likewise.
27957         * doc/posix-functions/rewinddir.texi: Likewise.
27959 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
27961         maint.mk: don't maintain a second build-aux variable.
27962         * maint.mk (build_aux): Removed.  The maintainer-makefile module
27963         depends on GNUmakefile, which already maintains a cfg.mk
27964         overridable $(_build-aux) for projects with a non-standard
27965         build-aux directory location, although without the $(srcdir)
27966         prefix.  Use that variable consistently instead of introducing a
27967         second one.  Adjust all call sites.
27969 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
27971         Add stdalign module and use it in other modules.
27972         This is based on a previous proposal by Bruno Haible
27973         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
27975         stdalign: new module
27976         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
27977         * modules/stdalign: New files.
27978         * MODULES.html.sh (c1x_core_properties): Add stdalign.
27979         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
27981         stdalign-tests: new module
27982         * modules/stdalign-tests, tests/test-stdalign.c: New files.
27984         argp: use stdalign
27985         * lib/argp-parse.c: Include <stdalign.h>.
27986         (alignof): Remove.
27987         * modules/argp (Depends-on): Add stdalign.
27989         crypto libraries: use stdalign
27990         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
27991         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
27992         Do not include <stdlib.h> twice, in md4.c.
27993         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
27994         because we are accessing a pointer's bit-pattern, not a size.
27995         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
27996         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
27997         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
27998         * modules/crypto/sha512: Likewise.
28000         sys_socket: use stdalign, not alignof
28001         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
28002         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
28004 2011-10-27  Bruno Haible  <bruno@clisp.org>
28006         raise test: Avoid a test failure on Linux/MIPS.
28007         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
28008         because 99 is a valid signal on Linux/MIPS.
28010 2011-10-27  Bruno Haible  <bruno@clisp.org>
28012         nonblocking tests: Fix test failure on Linux/MIPS.
28013         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
28014         Set to 270000.
28016 2011-10-27  Bruno Haible  <bruno@clisp.org>
28018         utimensat: Work around problem on Linux/hppa.
28019         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
28020         values.
28021         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
28023 2011-10-25  Jim Meyering  <meyering@redhat.com>
28025         maint.mk: fix a bug in sc_prohibit_stddef_without_use
28026         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
28027         after symbols like NULL, size_t, etc.
28028         Reported by Alfred M. Szmidt.
28030         maint.mk: exempt ENODATA from a syntax-check rule
28031         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
28032         from the sc_prohibit_always-defined_macros syntax-check rule.
28033         Add a comment.  See this for more details:
28034         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
28036 2011-10-23  Jim Meyering  <meyering@redhat.com>
28038         fts: close parent dir FD before returning from post-traversal fts_read
28039         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
28040         unlink A, even though an FD open on A remained.  This is suboptimal
28041         (holding a file descriptor open longer than needed), but otherwise not
28042         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
28043         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
28044         that represents a real problem: it causes the removal of A to fail
28045         with e.g., "rm: cannot remove `A': Device or resource busy"
28047         fts visits each directory twice and keeps a cache (fts_fd_ring) of
28048         directory file descriptors.  After completing the final, FTS_DP,
28049         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
28050         cache, but then proceeded to add a new FD to it via the subsequent
28051         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
28052         final file descriptor would be closed only via fts_close's call to
28053         fd_ring_clear.  Now, it is usually closed earlier, via the final
28054         FTS_DP-returning fts_read call.
28055         * lib/fts.c (restore_initial_cwd): New function, converted from
28056         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
28057         Update callers.
28058         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
28059         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
28061 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
28062             Bruno Haible  <bruno@clisp.org>
28063             Jim Meyering  <jim@meyering.net>
28065         readme-release: improve safety of release prep instructions.
28066         * README-release: Don't git pull all branches when only master
28067         is needed for the release process.
28068         Run make maintainer-clean before changing trees and merging.
28069         Don't try to run ./configure right after git pull in case files
28070         that influence the bootstrap process have changed, move the
28071         ./configure step to after running ./bootstrap.
28072         Don't bootstrap "one last time"... it's the first time!
28074 2011-10-22  Bruno Haible  <bruno@clisp.org>
28076         errno, strerror-override: Support for MSVC 10.
28077         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
28078         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
28079         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
28080         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
28081         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
28082         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
28083         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
28084         Assign values compatible with MSVC 10.
28085         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
28086         New macros.
28087         (GNULIB_defined_EWINSOCK): New macro.
28088         * lib/strerror-override.c (strerror_override): Update accordingly.
28089         * lib/strerror-override.h: Likewise.
28090         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
28091         longer equal to the corresponding errno value.
28092         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
28094 2011-10-22  Bruno Haible  <bruno@clisp.org>
28096         perror: Recognize when test program crashes.
28097         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
28098         strerror, set gl_cv_func_perror_works to no.
28099         Reported by Daniel Richard G. <skunk@iskunk.org>.
28101         perror: Fix indentation.
28102         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
28104 2011-10-22  Bruno Haible  <bruno@clisp.org>
28106         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
28107         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
28108         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
28109         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
28110         functions, not as a macro.
28111         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
28112         macros.
28113         (isfinite, isinf, isnan, signbit): Check overloaded functions and
28114         absence of macro.
28115         Suggested by Eric Blake.
28116         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
28118 2011-10-21  Bruno Haible  <bruno@clisp.org>
28120         relocatable-prog-wrapper: Don't leave object files behind.
28121         * build-aux/install-reloc: Re-synchronize list of .o files to be
28122         removed with list of compilation units.
28124 2011-10-20  Bruno Haible  <bruno@clisp.org>
28126         openpty, posix_openpt: Remove code duplication.
28127         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
28128         * lib/openpty.c: Include <stdlib.h>.
28129         (openpty): Use posix_openpt on all platforms except IRIX.
28130         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
28132 2011-10-20  Bruno Haible  <bruno@clisp.org>
28134         unlockpt: Detect invalid argument.
28135         * lib/unlockpt.c: Include <fcntl.h>.
28136         (unlockpt): Check whether fd is valid, using fcntl().
28137         * modules/unlockpt (Depends-on): Add fcntl-h.
28139 2011-10-20  Bruno Haible  <bruno@clisp.org>
28141         openpty: Avoid compilation error on AIX 6.1.
28142         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
28144 2011-10-20  Bruno Haible  <bruno@clisp.org>
28146         posix_openpt: Support for OpenBSD.
28147         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
28148         (posix_openpt) [OpenBSD]: New code.
28149         * lib/grantpt.c: Include <fcntl.h>.
28150         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
28151         * modules/grantpt (Depends-on): Add fcntl-h.
28153 2011-10-20  Bruno Haible  <bruno@clisp.org>
28155         posix_openpt test: Coding style.
28156         * tests/test-posix_openpt.c: Use GNU coding style.
28158 2011-10-20  Bruno Haible  <bruno@clisp.org>
28160         grantpt: Support --avoid=pt_chown.
28161         * modules/grantpt (Files): Add lib/pty-private.h.
28163 2011-10-20  Bruno Haible  <bruno@clisp.org>
28165         posix_openpt: Fix autoconf macro.
28166         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
28167         unneeded check for _getpty.
28169 2011-10-20  Bruno Haible  <bruno@clisp.org>
28171         openpty: Update comments.
28172         * lib/openpty.c: Add comments about Minix.
28174 2011-10-19  Eric Blake  <eblake@redhat.com>
28176         openpty: relax license
28177         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
28179         pt_chown: use configmake to simplify build
28180         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
28182         ptsname and others: relax license
28183         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
28184         * modules/unlockpt (License): Likewise.
28185         * modules/pt_chown (License): Likewise.
28186         * modules/ptsname (License): Likewise.
28187         * modules/ttyname_r (License): Likewise.
28189 2011-10-19  Jim Meyering  <meyering@redhat.com>
28191         posix_openpt: remove spurious #endif
28192         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
28194 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
28196         maint.mk: Respect $(build_aux) in web-manual rule.
28197         * top/maint.mk (web-manual): Find gen-announce script in user's
28198         $(build_aux) directory instead of hard-coding 'build-aux'.
28200 2011-10-19  Bruno Haible  <bruno@clisp.org>
28202         posix_openpt: Fix compilation error.
28203         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
28204         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
28205         Mention the openpty module as an alternative.
28207 2011-10-19  Bruno Haible  <bruno@clisp.org>
28209         Support for old NeXTstep 3.3 frexp().
28210         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
28211         execution time of the test to 5 seconds.
28212         Reported by Daniel Richard G. <skunk@iskunk.org>.
28214 2011-10-19  Bruno Haible  <bruno@clisp.org>
28216         Support for old NeXTstep 3.3 sed.
28217         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
28218         part, use /.../, not \|...|. Escape periods in the header file name.
28219         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
28220         Reported by Daniel Richard G. <skunk@iskunk.org>.
28222 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
28224         Support for old NeXTstep 3.3 gcc.
28225         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
28226         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
28227         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
28228         * lib/spawn.in.h (_Restrict_arr_): Likewise.
28229         * lib/regex.h (_Restrict_arr_): Likewise.
28230         * lib/regex_internal.h (re_token_t): Likewise.
28231         * lib/regexec.c (check_node_accept_bytes): Likewise.
28232         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
28234 2011-10-18  Eric Blake  <eblake@redhat.com>
28236         posix_openpt: new module
28237         * modules/posix_openpt: New module.
28238         * m4/posix_openpt.m4: New file.
28239         * lib/posix_openpt.c: Likewise.
28240         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
28241         (gl_STDLIB_H_DEFAULTS): Set defaults.
28242         * modules/stdlib (Makefile.am): Substitute macros.
28243         * lib/stdlib.in.h (posix_openpt): Declare.
28244         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
28245         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
28246         * modules/posix_openpt-tests: New test module.
28247         * tests/test-posix_openpt.c: New test.
28249 2011-10-15  Bruno Haible  <bruno@clisp.org>
28251         xstrtoll: Fix compilation failure.
28252         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
28253         from lib/strtol.c.
28254         * doc/posix-headers/limits.texi: Mention missing numerical limits on
28255         some platforms.
28256         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28258 2011-10-15  Bruno Haible  <bruno@clisp.org>
28260         vasnprintf: Optimize bit search operation.
28261         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
28262         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
28263         gl_DOUBLE_EXPONENT_LOCATION.
28264         * modules/vasnprintf (Files): Add m4/exponentd.m4.
28265         * modules/unistdio/u8-vasnprintf (Files): Likewise.
28266         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
28267         * modules/unistdio/u16-vasnprintf (Files): Likewise.
28268         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
28269         * modules/unistdio/u32-vasnprintf (Files): Likewise.
28270         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
28271         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
28272         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
28274 2011-10-15  Bruno Haible  <bruno@clisp.org>
28276         vasnprintf: Fix comments.
28277         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
28279 2011-10-14  Bruno Haible  <bruno@clisp.org>
28281         Tests for module 'integer_length_ll'.
28282         * modules/integer_length_ll-tests: New file.
28283         * tests/test-integer_length_ll.c: New file.
28285         New module 'integer_length_ll'.
28286         * lib/integer_length_ll.c: New file.
28287         * modules/integer_length_ll: New file.
28289 2011-10-14  Bruno Haible  <bruno@clisp.org>
28291         Tests for module 'integer_length_l'.
28292         * modules/integer_length_l-tests: New file.
28293         * tests/test-integer_length_l.c: New file.
28295         New module 'integer_length_l'.
28296         * lib/integer_length_l.c: New file.
28297         * modules/integer_length_l: New file.
28299 2011-10-14  Bruno Haible  <bruno@clisp.org>
28301         Tests for module 'integer_length'.
28302         * modules/integer_length-tests: New file.
28303         * tests/test-integer_length.c: New file.
28305         New module 'integer_length'.
28306         * lib/integer_length.h: New file.
28307         * lib/integer_length.c: New file.
28308         * modules/integer_length: New file.
28310 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
28312         popen: Fix dependency conditions.
28313         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
28315 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
28317         perror: Fix autoconf test.
28318         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
28319         <stdlib.h> and <string.h>.
28321 2011-10-14  Bruno Haible  <bruno@clisp.org>
28323         ffsl: Optimize on 64-bit platforms.
28324         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
28325         unrolling.
28327 2011-10-13  Bruno Haible  <bruno@clisp.org>
28329         ffsl: Optimize on 32-bit platforms.
28330         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
28331         use ffs() without a loop.
28333         ffsl, ffsll: Optimize for GCC.
28334         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
28335         * lib/ffsl.c (GCC_BUILTIN): New macro.
28336         * lib/ffsll.c (GCC_BUILTIN): Likewise.
28338 2011-10-13  Bruno Haible  <bruno@clisp.org>
28340         ffs, bcopy, memset: Support symbol renaming via config.h.
28341         * lib/ffs.c: Include <config.h>.
28342         * lib/bcopy.c: Likewise.
28343         * lib/memset.c: Likewise.
28345 2011-10-10  Bruno Haible  <bruno@clisp.org>
28347         atanl: Simplify for platforms where 'long double' == 'double'.
28348         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
28349         alternative implementation.
28350         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28351         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28352         * modules/atanl (Depends-on): Add atan. Update conditions.
28354 2011-10-10  Bruno Haible  <bruno@clisp.org>
28356         acosl: Simplify for platforms where 'long double' == 'double'.
28357         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
28358         alternative implementation.
28359         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28360         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28361         * modules/acosl (Depends-on): Add acos. Update conditions.
28363 2011-10-10  Bruno Haible  <bruno@clisp.org>
28365         asinl: Simplify for platforms where 'long double' == 'double'.
28366         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
28367         alternative implementation.
28368         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28369         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28370         * modules/asinl (Depends-on): Add asin. Update conditions.
28372 2011-10-10  Bruno Haible  <bruno@clisp.org>
28374         tanl: Simplify for platforms where 'long double' == 'double'.
28375         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
28376         implementation.
28377         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28378         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28379         * modules/tanl (Depends-on): Add tan. Update conditions.
28380         (configure.ac): Don't compile trigl.c if
28381         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28383 2011-10-10  Bruno Haible  <bruno@clisp.org>
28385         cosl: Simplify for platforms where 'long double' == 'double'.
28386         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
28387         implementation.
28388         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28389         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28390         * modules/cosl (Depends-on): Add cos. Update conditions.
28391         (configure.ac): Don't compile sincosl.c and trigl.c if
28392         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28394 2011-10-10  Bruno Haible  <bruno@clisp.org>
28396         sinl: Simplify for platforms where 'long double' == 'double'.
28397         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
28398         implementation.
28399         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28400         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28401         * modules/sinl (Depends-on): Add sin. Update conditions.
28402         (configure.ac): Don't compile sincosl.c and trigl.c if
28403         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28405 2011-10-10  Bruno Haible  <bruno@clisp.org>
28407         logl: Simplify for platforms where 'long double' == 'double'.
28408         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
28409         implementation.
28410         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28411         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28412         * modules/logl (Depends-on): Add log. Update conditions.
28414 2011-10-10  Bruno Haible  <bruno@clisp.org>
28416         expl: Simplify for platforms where 'long double' == 'double'.
28417         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
28418         implementation.
28419         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28420         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28421         * modules/expl (Depends-on): Add exp. Update conditions.
28423 2011-10-10  Bruno Haible  <bruno@clisp.org>
28425         sqrtl: Simplify for platforms where 'long double' == 'double'.
28426         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
28427         alternative implementation.
28428         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28429         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28430         * modules/sqrtl (Depends-on): Update conditions.
28432 2011-10-10  Bruno Haible  <bruno@clisp.org>
28434         ldexpl: Simplify for platforms where 'long double' == 'double'.
28435         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
28436         alternative implementation.
28437         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28438         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28439         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
28441 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
28443         ffsll: set correct witness
28444         * modules/ffsll (configure.ac): Fix typo.
28446 2011-10-10  Bruno Haible  <bruno@clisp.org>
28448         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
28449         * lib/printf-frexpl.c: Include <config.h>.
28450         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
28451         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
28452         second time.
28453         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
28454         gl_LONG_DOUBLE_VS_DOUBLE.
28455         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
28456         conditions.
28458 2011-10-10  Bruno Haible  <bruno@clisp.org>
28460         frexpl: Simplify for platforms where 'long double' == 'double'.
28461         * lib/frexpl.c: Include <config.h>.
28462         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
28463         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
28464         time.
28465         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28466         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28467         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
28468         * modules/frexpl (Depends-on): Add frexp. Update conditions.
28469         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
28470         conditions.
28472 2011-10-10  Jim Meyering  <meyering@redhat.com>
28474         test-renameat: don't leave behind a temporary file
28475         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
28476           ERROR: files left in build directory after distclean:
28477           ./gltests/test-renameat.too
28478           make[1]: *** [distcleancheck] Error 1
28479         Reported by Tom G. Christensen.
28481 2011-10-09  Bruno Haible  <bruno@clisp.org>
28483         rint: Determine RINT_LIBM correctly on AIX 7.
28484         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
28485         directly, not only through a function pointer. Also accept an optional
28486         4th argument with extra code.
28487         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
28488         rintf() call by gcc when optimizing.
28490         mathfunc.m4: Refactor.
28491         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
28492         m4 variable.
28494 2011-10-09  Bruno Haible  <bruno@clisp.org>
28496         rintl: Simplify for platforms where 'long double' == 'double'.
28497         * lib/rintl.c: Include <config.h>.
28498         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
28499         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
28500         time.
28501         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28502         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28503         * modules/rintl (Depends-on): Add rint. Update conditions.
28505 2011-10-09  Bruno Haible  <bruno@clisp.org>
28507         roundl: Simplify for platforms where 'long double' == 'double'.
28508         * lib/roundl.c: Include <config.h>.
28509         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
28510         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
28511         time.
28512         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28513         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28514         * modules/roundl (Depends-on): Add round. Update conditions.
28516 2011-10-09  Bruno Haible  <bruno@clisp.org>
28518         truncl: Simplify for platforms where 'long double' == 'double'.
28519         * lib/truncl.c: Include <config.h>.
28520         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
28521         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
28522         time.
28523         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28524         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28525         * modules/truncl (Depends-on): Add trunc. Update conditions.
28527 2011-10-09  Bruno Haible  <bruno@clisp.org>
28529         ceill: Simplify for platforms where 'long double' == 'double'.
28530         * lib/ceill.c: Include <config.h>.
28531         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
28532         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
28533         time.
28534         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28535         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28536         * modules/ceill (Depends-on): Add ceil. Update conditions.
28538 2011-10-09  Bruno Haible  <bruno@clisp.org>
28540         floorl: Simplify for platforms where 'long double' == 'double'.
28541         * lib/floorl.c: Include <config.h>.
28542         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
28543         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
28544         time.
28545         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28546         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28547         * modules/floorl (Depends-on): Add floor. Update conditions.
28549 2011-10-09  Bruno Haible  <bruno@clisp.org>
28551         rint: Fix ordering constraints.
28552         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
28553         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
28554         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
28556 2011-10-09  Bruno Haible  <bruno@clisp.org>
28558         copysignl: Simplify for platforms where 'long double' == 'double'.
28559         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
28560         alternative.
28561         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28562         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
28563         * modules/copysignl (Depends-on): Add copysign. Update conditions.
28565 2011-10-09  Bruno Haible  <bruno@clisp.org>
28567         Tests for module 'rintl'.
28568         * modules/rintl-tests: New file.
28569         * tests/test-rintl.c: New file.
28571         New module 'rintl'.
28572         * lib/math.in.h (rintl): New declaration.
28573         * lib/rintl.c: New file.
28574         * m4/rintl.m4: New file.
28575         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
28576         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
28577         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
28578         * modules/rintl: New file.
28579         * tests/test-math-c++.cc: Check the declaration of rintl.
28580         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
28581         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
28582         * doc/posix-functions/rintl.texi: Mention the new module.
28584 2011-10-09  Bruno Haible  <bruno@clisp.org>
28586         Tests for module 'rintf'.
28587         * modules/rintf-tests: New file.
28588         * tests/test-rintf.c: New file.
28590         New module 'rintf'.
28591         * lib/math.in.h (rintf): New declaration.
28592         * lib/rintf.c: New file.
28593         * m4/rintf.m4: New file.
28594         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
28595         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
28596         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
28597         * modules/rintf: New file.
28598         * tests/test-math-c++.cc: Check the declaration of rintf.
28599         * doc/posix-functions/rintf.texi: Mention the new module.
28601 2011-10-09  Bruno Haible  <bruno@clisp.org>
28603         rint: Support for MSVC.
28604         * lib/math.in.h (rint): New declaration.
28605         * lib/rint.c: New file.
28606         * m4/rint.m4: New file.
28607         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
28608         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
28609         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
28610         * modules/rint (Description): Fix.
28611         (Files): Add lib/rint.c, m4/rint.m4.
28612         (Depends-on): Add math.
28613         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
28614         gl_MATH_MODULE_INDICATOR.
28615         * tests/test-math-c++.cc: Check the declaration of rint.
28616         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
28617         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
28618         * doc/posix-functions/rint.texi: Mention the replacement provided by
28619         the module.
28621         rint tests: More tests.
28622         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
28623         minus-zero.h, infinity.h, nan.h.
28624         (main): Skip the test if the current rounding mode is not standard. Add
28625         tests for negative numbers, minus zero, infinity, NaN.
28626         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
28627         tests/nan.h.
28628         (Depends-on): Add isnand-nolibm.
28630 2011-10-09  Bruno Haible  <bruno@clisp.org>
28632         Tests for module 'copysignl'.
28633         * modules/copysignl-tests: New file.
28634         * tests/test-copysignl.c: New file.
28636         New module 'copysignl'.
28637         * lib/math.in.h (copysignl): New declaration.
28638         * lib/copysignl.c: New file.
28639         * m4/copysignl.m4: New file.
28640         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
28641         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
28642         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
28643         HAVE_COPYSIGNL.
28644         * modules/copysignl: New file.
28645         * tests/test-math-c++.cc: Check the declaration of copysignl.
28646         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
28647         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
28648         * doc/posix-functions/copysignl.texi: Mention the new module.
28650 2011-10-09  Bruno Haible  <bruno@clisp.org>
28652         Tests for module 'copysignf'.
28653         * modules/copysignf-tests: New file.
28654         * tests/test-copysignf.c: New file.
28656         New module 'copysignf'.
28657         * lib/math.in.h (copysignf): New declaration.
28658         * lib/copysignf.c: New file.
28659         * m4/copysignf.m4: New file.
28660         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
28661         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
28662         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
28663         HAVE_COPYSIGNF.
28664         * modules/copysignf: New file.
28665         * tests/test-math-c++.cc: Check the declaration of copysignf.
28666         * doc/posix-functions/copysignf.texi: Mention the new module.
28668 2011-10-09  Bruno Haible  <bruno@clisp.org>
28670         Ensure that HAVE_* variables are set to 1 before they are set to 0.
28671         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
28672         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
28673         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
28674         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
28675         gl_SIGNAL_H_DEFAULTS.
28677 2011-10-09  Bruno Haible  <bruno@clisp.org>
28679         poll: Make macro safer.
28680         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
28681         ac_cv_header_poll_h is not set.
28683 2011-10-09  Bruno Haible  <bruno@clisp.org>
28685         copysign: Provide replacement.
28686         * lib/math.in.h (copysign): New declaration.
28687         * lib/copysign.c: New file.
28688         * m4/copysign.m4: New file.
28689         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
28690         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
28691         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
28692         HAVE_COPYSIGN.
28693         * modules/copysign (Description): Clarify.
28694         (Files): Add lib/copysign.c, m4/copysign.m4.
28695         (Depends-on): Add math, signbit.
28696         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
28697         gl_MATH_MODULE_INDICATOR.
28698         * tests/test-math-c++.cc: Check the declaration of copysign.
28699         * doc/posix-functions/copysign.texi: Mention the effects of the module
28700         on Minix and MSVC.
28702 2011-10-09  Bruno Haible  <bruno@clisp.org>
28704         isinf: Ensure macro on AIX 5.1.
28705         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
28706         macro.
28707         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
28709 2011-10-09  Bruno Haible  <bruno@clisp.org>
28711         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
28712         * modules/snprintf-posix-tests (configure.ac): Require
28713         gl_LONG_DOUBLE_VS_DOUBLE.
28714         * modules/sprintf-posix-tests (configure.ac): Likewise.
28715         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
28716         * modules/vasprintf-posix-tests (configure.ac): Likewise.
28717         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
28718         * modules/vsprintf-posix-tests (configure.ac): Likewise.
28719         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
28720         tests on platforms where 'long double' is the same as 'double'.
28721         * tests/test-sprintf-posix.h (test_function): Likewise.
28722         * tests/test-vasnprintf-posix.c (test_function): Likewise.
28723         * tests/test-vasprintf-posix.c (test_function): Likewise.
28725         *printf: Fix for platforms where 'long double' == 'double'.
28726         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
28727         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
28728         * modules/dprintf-posix (Files): Add m4/math_h.m4.
28729         * modules/fprintf-posix (Files): Likewise.
28730         * modules/obstack-printf-posix (Files): Likewise.
28731         * modules/snprintf-posix (Files): Likewise.
28732         * modules/sprintf-posix (Files): Likewise.
28733         * modules/vasnprintf (Files): Likewise.
28734         * modules/vasnprintf-posix (Files): Likewise.
28735         * modules/vasprintf-posix (Files): Likewise.
28736         * modules/vdprintf-posix (Files): Likewise.
28737         * modules/vfprintf-posix (Files): Likewise.
28738         * modules/vsnprintf-posix (Files): Likewise.
28739         * modules/vsprintf-posix (Files): Likewise.
28740         * modules/unistdio/u8-vasnprintf (Files): Likewise.
28741         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
28742         * modules/unistdio/u16-vasnprintf (Files): Likewise.
28743         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
28744         * modules/unistdio/u32-vasnprintf (Files): Likewise.
28745         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
28746         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
28748         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
28749         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
28750         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
28751         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
28752         'long double'.
28753         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
28755         isinf: Fix for platforms where 'long double' == 'double'.
28756         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
28757         Don't blindly assume 80-bit 'long double'.
28759         isfinite: Fix for platforms where 'long double' == 'double'.
28760         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
28761         Don't blindly assume 80-bit 'long double'.
28763         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
28764         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
28765         * modules/isfinite-tests (configure.ac): Require
28766         gl_LONG_DOUBLE_VS_DOUBLE.
28767         * modules/isinf-tests (configure.ac): Likewise.
28768         * modules/isnan-tests (configure.ac): Likewise.
28769         * modules/isnanl-tests (configure.ac): Likewise.
28770         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
28771         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
28772         tests on platforms where 'long double' is the same as 'double'.
28773         * tests/test-isinf.c (test_isinfl): Likewise.
28774         * tests/test-isnan.c (test_long_double): Likewise.
28775         * tests/test-isnanl.h (main): Likewise.
28777 2011-10-08  Bruno Haible  <bruno@clisp.org>
28779         Tests for module 'tanhf'.
28780         * modules/tanhf-tests: New file.
28781         * tests/test-tanhf.c: New file.
28783         New module 'tanhf'.
28784         * lib/math.in.h (tanhf): New declaration.
28785         * lib/tanhf.c: New file.
28786         * m4/tanhf.m4: New file.
28787         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
28788         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
28789         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
28790         * modules/tanhf: New file.
28791         * tests/test-math-c++.cc: Check the declaration of tanhf.
28792         * doc/posix-functions/tanhf.texi: Mention the new module.
28794         tanh: Use a .m4 file.
28795         * m4/tanh.m4: New file.
28796         * modules/tanh (Files): Add it.
28797         (configure.ac): Just invoke gl_FUNC_TANH.
28799 2011-10-08  Bruno Haible  <bruno@clisp.org>
28801         Tests for module 'coshf'.
28802         * modules/coshf-tests: New file.
28803         * tests/test-coshf.c: New file.
28805         New module 'coshf'.
28806         * lib/math.in.h (coshf): New declaration.
28807         * lib/coshf.c: New file.
28808         * m4/coshf.m4: New file.
28809         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
28810         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
28811         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
28812         * modules/coshf: New file.
28813         * tests/test-math-c++.cc: Check the declaration of coshf.
28814         * doc/posix-functions/coshf.texi: Mention the new module.
28816         cosh: Use a .m4 file.
28817         * m4/cosh.m4: New file.
28818         * modules/cosh (Files): Add it.
28819         (configure.ac): Just invoke gl_FUNC_COSH.
28821 2011-10-08  Bruno Haible  <bruno@clisp.org>
28823         Tests for module 'sinhf'.
28824         * modules/sinhf-tests: New file.
28825         * tests/test-sinhf.c: New file.
28827         New module 'sinhf'.
28828         * lib/math.in.h (sinhf): New declaration.
28829         * lib/sinhf.c: New file.
28830         * m4/sinhf.m4: New file.
28831         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
28832         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
28833         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
28834         * modules/sinhf: New file.
28835         * tests/test-math-c++.cc: Check the declaration of sinhf.
28836         * doc/posix-functions/sinhf.texi: Mention the new module.
28838         sinh: Use a .m4 file.
28839         * m4/sinh.m4: New file.
28840         * modules/sinh (Files): Add it.
28841         (configure.ac): Just invoke gl_FUNC_SINH.
28843 2011-10-08  Bruno Haible  <bruno@clisp.org>
28845         Tests for module 'atan2f'.
28846         * modules/atan2f-tests: New file.
28847         * tests/test-atan2f.c: New file.
28849         New module 'atan2f'.
28850         * lib/math.in.h (atan2f): New declaration.
28851         * lib/atan2f.c: New file.
28852         * m4/atan2f.m4: New file.
28853         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
28854         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
28855         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
28856         * modules/atan2f: New file.
28857         * tests/test-math-c++.cc: Check the declaration of atan2f.
28858         * doc/posix-functions/atan2f.texi: Mention the new module.
28860         atan2: Use a .m4 file.
28861         * m4/atan2.m4: New file.
28862         * modules/atan2 (Files): Add it.
28863         (configure.ac): Just invoke gl_FUNC_ATAN2.
28865 2011-10-08  Bruno Haible  <bruno@clisp.org>
28867         Tests for module 'atanf'.
28868         * modules/atanf-tests: New file.
28869         * tests/test-atanf.c: New file.
28871         New module 'atanf'.
28872         * lib/math.in.h (atanf): New declaration.
28873         * lib/atanf.c: New file.
28874         * m4/atanf.m4: New file.
28875         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
28876         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
28877         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
28878         * modules/atanf: New file.
28879         * tests/test-math-c++.cc: Check the declaration of atanf.
28880         * doc/posix-functions/atanf.texi: Mention the new module.
28882         atan: Use a .m4 file.
28883         * m4/atan.m4: New file.
28884         * modules/atan (Files): Add it.
28885         (configure.ac): Just invoke gl_FUNC_ATAN.
28887 2011-10-08  Bruno Haible  <bruno@clisp.org>
28889         Tests for module 'acosf'.
28890         * modules/acosf-tests: New file.
28891         * tests/test-acosf.c: New file.
28893         New module 'acosf'.
28894         * lib/math.in.h (acosf): New declaration.
28895         * lib/acosf.c: New file.
28896         * m4/acosf.m4: New file.
28897         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
28898         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
28899         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
28900         * modules/acosf: New file.
28901         * tests/test-math-c++.cc: Check the declaration of acosf.
28902         * doc/posix-functions/acosf.texi: Mention the new module.
28904         acos: Use a .m4 file.
28905         * m4/acos.m4: New file.
28906         * modules/acos (Files): Add it.
28907         (configure.ac): Just invoke gl_FUNC_ACOS.
28909 2011-10-08  Bruno Haible  <bruno@clisp.org>
28911         Tests for module 'asinf'.
28912         * modules/asinf-tests: New file.
28913         * tests/test-asinf.c: New file.
28915         New module 'asinf'.
28916         * lib/math.in.h (asinf): New declaration.
28917         * lib/asinf.c: New file.
28918         * m4/asinf.m4: New file.
28919         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
28920         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
28921         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
28922         * modules/asinf: New file.
28923         * tests/test-math-c++.cc: Check the declaration of asinf.
28924         * doc/posix-functions/asinf.texi: Mention the new module.
28926         asin: Use a .m4 file.
28927         * m4/asin.m4: New file.
28928         * modules/asin (Files): Add it.
28929         (configure.ac): Just invoke gl_FUNC_ASIN.
28931 2011-10-08  Bruno Haible  <bruno@clisp.org>
28933         Tests for module 'tanf'.
28934         * modules/tanf-tests: New file.
28935         * tests/test-tanf.c: New file.
28937         New module 'tanf'.
28938         * lib/math.in.h (tanf): New declaration.
28939         * lib/tanf.c: New file.
28940         * m4/tanf.m4: New file.
28941         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
28942         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
28943         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
28944         * modules/tanf: New file.
28945         * tests/test-math-c++.cc: Check the declaration of tanf.
28946         * doc/posix-functions/tanf.texi: Mention the new module.
28948         tan: Use a .m4 file.
28949         * m4/tan.m4: New file.
28950         * modules/tan (Files): Add it.
28951         (configure.ac): Just invoke gl_FUNC_TAN.
28953 2011-10-08  Bruno Haible  <bruno@clisp.org>
28955         Tests for module 'cosf'.
28956         * modules/cosf-tests: New file.
28957         * tests/test-cosf.c: New file.
28959         New module 'cosf'.
28960         * lib/math.in.h (cosf): New declaration.
28961         * lib/cosf.c: New file.
28962         * m4/cosf.m4: New file.
28963         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
28964         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
28965         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
28966         * modules/cosf: New file.
28967         * tests/test-math-c++.cc: Check the declaration of cosf.
28968         * doc/posix-functions/cosf.texi: Mention the new module.
28970         cos: Use a .m4 file.
28971         * m4/cos.m4: New file.
28972         * modules/cos (Files): Add it.
28973         (configure.ac): Just invoke gl_FUNC_COS.
28975 2011-10-08  Bruno Haible  <bruno@clisp.org>
28977         Tests for module 'sinf'.
28978         * modules/sinf-tests: New file.
28979         * tests/test-sinf.c: New file.
28981         New module 'sinf'.
28982         * lib/math.in.h (sinf): New declaration.
28983         * lib/sinf.c: New file.
28984         * m4/sinf.m4: New file.
28985         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
28986         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
28987         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
28988         * modules/sinf: New file.
28989         * tests/test-math-c++.cc: Check the declaration of sinf.
28990         * doc/posix-functions/sinf.texi: Mention the new module.
28992         sin: Use a .m4 file.
28993         * m4/sin.m4: New file.
28994         * modules/sin (Files): Add it.
28995         (configure.ac): Just invoke gl_FUNC_SIN.
28997 2011-10-08  Bruno Haible  <bruno@clisp.org>
28999         Tests for module 'powf'.
29000         * modules/powf-tests: New file.
29001         * tests/test-powf.c: New file.
29003         New module 'powf'.
29004         * lib/math.in.h (powf): New declaration.
29005         * lib/powf.c: New file.
29006         * m4/powf.m4: New file.
29007         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
29008         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
29009         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
29010         * modules/powf: New file.
29011         * tests/test-math-c++.cc: Check the declaration of powf.
29012         * doc/posix-functions/powf.texi: Mention the new module.
29014         pow: Use a .m4 file.
29015         * m4/pow.m4: New file.
29016         * modules/pow (Files): Add it.
29017         (configure.ac): Just invoke gl_FUNC_POW.
29019 2011-10-08  Bruno Haible  <bruno@clisp.org>
29021         Tests for module 'log10f'.
29022         * modules/log10f-tests: New file.
29023         * tests/test-log10f.c: New file.
29025         New module 'log10f'.
29026         * lib/math.in.h (log10f): New declaration.
29027         * lib/log10f.c: New file.
29028         * m4/log10f.m4: New file.
29029         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
29030         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
29031         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
29032         * modules/log10f: New file.
29033         * tests/test-math-c++.cc: Check the declaration of log10f.
29034         * doc/posix-functions/log10f.texi: Mention the new module.
29036         log10: Use a .m4 file.
29037         * m4/log10.m4: New file.
29038         * modules/log10 (Files): Add it.
29039         (configure.ac): Just invoke gl_FUNC_LOG10.
29041 2011-10-08  Bruno Haible  <bruno@clisp.org>
29043         Tests for module 'logf'.
29044         * modules/logf-tests: New file.
29045         * tests/test-logf.c: New file.
29047         New module 'logf'.
29048         * lib/math.in.h (logf): New declaration.
29049         * lib/logf.c: New file.
29050         * m4/logf.m4: New file.
29051         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
29052         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
29053         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
29054         * modules/logf: New file.
29055         * tests/test-math-c++.cc: Check the declaration of logf.
29056         * doc/posix-functions/logf.texi: Mention the new module.
29058         log: Use a .m4 file.
29059         * m4/log.m4: New file.
29060         * modules/log (Files): Add it.
29061         (configure.ac): Just invoke gl_FUNC_LOG.
29063 2011-10-08  Bruno Haible  <bruno@clisp.org>
29065         Tests for module 'expf'.
29066         * modules/expf-tests: New file.
29067         * tests/test-expf.c: New file.
29069         New module 'expf'.
29070         * lib/math.in.h (expf): New declaration.
29071         * lib/expf.c: New file.
29072         * m4/expf.m4: New file.
29073         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
29074         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
29075         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
29076         * modules/expf: New file.
29077         * tests/test-math-c++.cc: Check the declaration of expf.
29078         * doc/posix-functions/expf.texi: Mention the new module.
29080         exp: Use a .m4 file.
29081         * m4/exp.m4: New file.
29082         * modules/exp (Files): Add it.
29083         (configure.ac): Just invoke gl_FUNC_EXP.
29085 2011-10-08  Bruno Haible  <bruno@clisp.org>
29087         Tests for module 'sqrtf'.
29088         * modules/sqrtf-tests: New file.
29089         * tests/test-sqrtf.c: New file.
29091         New module 'sqrtf'.
29092         * lib/math.in.h (sqrtf): New declaration.
29093         * lib/sqrtf.c: New file.
29094         * m4/sqrtf.m4: New file.
29095         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
29096         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
29097         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
29098         * modules/sqrtf: New file.
29099         * tests/test-math-c++.cc: Check the declaration of sqrtf.
29100         * doc/posix-functions/sqrtf.texi: Mention the new module.
29102 2011-10-08  Bruno Haible  <bruno@clisp.org>
29104         Tests: Avoid link failures w.r.t. libintl.
29105         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
29106         $(LIBINTL).
29107         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
29108         $(LIBINTL).
29109         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
29110         against $(LIBINTL).
29111         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
29112         $(LIBINTL).
29113         * modules/openat-tests (Makefile.am): Link test-fchmodat against
29114         $(LIBINTL).
29115         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
29117 2011-10-08  Bruno Haible  <bruno@clisp.org>
29119         pow tests: Defeat compiler optimizations.
29120         * tests/test-pow.c (main): Assign arguments to x and y before use.
29122 2011-10-08  Bruno Haible  <bruno@clisp.org>
29124         gnulib-tool: Improve last commit.
29125         * gnulib-tool (func_modules_transitive_closure): Simplify code.
29126         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
29127         ignore dependencies that are not among the modules list.
29129 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
29131         gnulib-tool: don't follow dependencies to avoided modules
29132         This fixes a bug that is related to the previous one.
29133         * gnulib-tool (func_modules_transitive_closure)
29134         (func_emit_autoconf_snippets):
29135         Check whether a dependency is acceptable before using it.
29136         (--extract-dependencies): Report an error if --avoid is also used,
29137         since this combination of options is not yet supported.
29139         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
29140         Problem reported by Peter Dyballa in
29141         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
29142         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
29143         when echoing "$condition".
29145 2011-10-07  Bruno Haible  <bruno@clisp.org>
29147         Fix documentation about math functions on MacOS X.
29148         * doc/posix-functions/exp2.texi: Don't say the function is missing on
29149         MacOS X 10.5.
29150         * doc/posix-functions/fdim.texi: Likewise.
29151         * doc/posix-functions/feclearexcept.texi: Likewise.
29152         * doc/posix-functions/fegetenv.texi: Likewise.
29153         * doc/posix-functions/fegetround.texi: Likewise.
29154         * doc/posix-functions/feholdexcept.texi: Likewise.
29155         * doc/posix-functions/feraiseexcept.texi: Likewise.
29156         * doc/posix-functions/fesetenv.texi: Likewise.
29157         * doc/posix-functions/fesetround.texi: Likewise.
29158         * doc/posix-functions/fetestexcept.texi: Likewise.
29159         * doc/posix-functions/feupdateenv.texi: Likewise.
29160         * doc/posix-functions/fmax.texi: Likewise.
29161         * doc/posix-functions/fmin.texi: Likewise.
29162         * doc/posix-functions/log2.texi: Likewise.
29163         * doc/posix-functions/modff.texi: Likewise.
29164         * doc/posix-functions/nan.texi: Likewise.
29165         * doc/posix-functions/nanf.texi: Likewise.
29166         * doc/posix-functions/nextafterf.texi: Likewise.
29167         * doc/posix-functions/remquo.texi: Likewise.
29169 2011-10-07  Bruno Haible  <bruno@clisp.org>
29171         modff: Drop assumption about library that defines modff.
29172         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
29173         AC_CHECK_FUNCS.
29174         * modules/modff (Files): Add m4/mathfunc.m4.
29176 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
29178         raise tests: Avoid a GCC warning.
29179         * tests/test-raise.c (handler): Use _Noreturn.
29181 2011-10-07  Bruno Haible  <bruno@clisp.org>
29183         Tests for module 'ldexpf'.
29184         * modules/ldexpf-tests: New file.
29185         * tests/test-ldexpf.c: New file.
29187         New module 'ldexpf'.
29188         * lib/math.in.h (ldexpf): New declaration.
29189         * lib/ldexpf.c: New file.
29190         * m4/ldexpf.m4: New file.
29191         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
29192         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
29193         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
29194         * modules/ldexpf: New file.
29195         * tests/test-math-c++.cc: Check the declaration of ldexpf.
29196         * doc/posix-functions/ldexpf.texi: Mention the new module.
29198 2011-10-06  Bruno Haible  <bruno@clisp.org>
29200         frexpf: Work around problems on IRIX and mingw.
29201         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
29202         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
29203         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
29204         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
29205         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
29206         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
29207         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
29209 2011-10-06  Bruno Haible  <bruno@clisp.org>
29211         fabsf: Drop assumption about library that defines fabsf.
29212         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
29213         AC_CHECK_FUNCS.
29214         * modules/fabsf (Files): Add m4/mathfunc.m4.
29216 2011-10-06  Bruno Haible  <bruno@clisp.org>
29218         frexpf: Drop assumption about library that defines frexpf.
29219         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
29220         'int *', 'float *', 'long double *', 'float', 'long double'.
29221         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
29222         AC_CHECK_FUNCS.
29223         * modules/frexpf (Files): Add m4/mathfunc.m4.
29225         Tests for module 'frexpf'.
29226         * modules/frexpf-tests: New file.
29227         * tests/test-frexpf.c: New file.
29229         New module 'frexpf'.
29230         * lib/math.in.h (frexpf): New declaration.
29231         * lib/frexpf.c: New file.
29232         * m4/frexpf.m4: New file.
29233         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
29234         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
29235         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
29236         * modules/frexpf: New file.
29237         * tests/test-math-c++.cc: Check the declaration of frexpf.
29238         * doc/posix-functions/frexpf.texi: Mention the new module.
29240 2011-10-06  Bruno Haible  <bruno@clisp.org>
29242         math: Sort function declarations of math.in.h.
29243         * lib/math.in.h (frexp, logb): Move declarations.
29245 2011-10-05  Bruno Haible  <bruno@clisp.org>
29247         Tests for module 'modff'.
29248         * modules/modff-tests: New file.
29249         * tests/test-modff.c: New file.
29251         New module 'modff'.
29252         * lib/math.in.h (modff): New declaration.
29253         * lib/modff.c: New file.
29254         * m4/modff.m4: New file.
29255         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
29256         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
29257         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
29258         * modules/modff: New file.
29259         * tests/test-math-c++.cc: Check the declaration of modff.
29260         * doc/posix-functions/modff.texi: Mention the new module.
29262         modf tests: Make test sharper.
29263         * tests/test-modf.c (main): Strengthen upper bound.
29265         modf: Use a .m4 file.
29266         * m4/modf.m4: New file.
29267         * modules/modf (Files): Add it.
29268         (configure.ac): Just invoke gl_FUNC_MODF.
29270 2011-10-05  Bruno Haible  <bruno@clisp.org>
29272         Tests for module 'fmodf'.
29273         * modules/fmodf-tests: New file.
29274         * tests/test-fmodf.c: New file.
29276         New module 'fmodf'.
29277         * lib/math.in.h (fmodf): New declaration.
29278         * lib/fmodf.c: New file.
29279         * m4/fmodf.m4: New file.
29280         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
29281         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
29282         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
29283         * modules/fmodf: New file.
29284         * tests/test-math-c++.cc: Check the declaration of fmodf.
29285         * doc/posix-functions/fmodf.texi: Mention the new module.
29287         fmod: Use a .m4 file.
29288         * m4/fmod.m4: New file.
29289         * modules/fmod (Files): Add it.
29290         (configure.ac): Just invoke gl_FUNC_FMOD.
29292 2011-10-05  Bruno Haible  <bruno@clisp.org>
29294         Tests for module 'fabsf'.
29295         * modules/fabsf-tests: New file.
29296         * tests/test-fabsf.c: New file.
29298         New module 'fabsf'.
29299         * lib/math.in.h (fabsf): New declaration.
29300         * lib/fabsf.c: New file.
29301         * m4/fabsf.m4: New file.
29302         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
29303         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
29304         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
29305         * modules/fabsf: New file.
29306         * tests/test-math-c++.cc: Check the declaration of fabsf.
29307         * doc/posix-functions/fabsf.texi: Mention the new module.
29309         fabs: Use a .m4 file.
29310         * m4/fabs.m4: New file.
29311         * modules/fabs (Files): Add it.
29312         (configure.ac): Just invoke gl_FUNC_FABS.
29314 2011-10-05  Jim Meyering  <meyering@redhat.com>
29316         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
29317         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
29318         ls -lL regression introduced in coreutils-8.12, it does so at the
29319         cost of an additional stat call in the common case.  Besides, now
29320         that the kernel change that prompted commit 95f7c57f has been reverted
29321         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
29322         we have no use for commit 95f7c57f, "file-has-acl: use
29323         acl_extended_file_nofollow if available".
29325 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
29327         file-has-acl: revert unintended change in behavior of ls -L
29328         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
29329         derived from...
29330         (file_has_acl): ...code here.  Call it.
29331         This problem was introduced with 2011-07-22 commit 95f7c57f,
29332         "file-has-acl: use acl_extended_file_nofollow if available".
29333         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
29335 2011-10-03  Bruno Haible  <bruno@clisp.org>
29337         poll: Avoid link errors on MSVC.
29338         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
29339         * modules/poll (Depends-on): Add sockets.
29340         (Link): New section.
29341         * NEWS: Mention the change.
29342         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
29343         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
29344         $(LIB_POLL) instead of $(LIBSOCKET).
29346 2011-10-03  Bruno Haible  <bruno@clisp.org>
29348         sys_select tests: Fix link error on MSVC 9.
29349         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
29350         with $(LIB_SELECT) instead of $(LIBSOCKET).
29352 2011-10-03  Bruno Haible  <bruno@clisp.org>
29354         sys_select: Fix compilation error on mingw.
29355         * lib/sys_select.in.h: On native Windows, include <io.h>.
29357 2011-10-03  Bruno Haible  <bruno@clisp.org>
29359         wmemset: Support for MSVC.
29360         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
29361         whether wmemset() exists.
29363 2011-10-03  Bruno Haible  <bruno@clisp.org>
29365         wmemmove: Support for MSVC.
29366         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
29367         whether wmemmove() exists.
29369 2011-10-03  Bruno Haible  <bruno@clisp.org>
29371         wmemcpy: Support for MSVC.
29372         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
29373         whether wmemcpy() exists.
29375 2011-10-03  Bruno Haible  <bruno@clisp.org>
29377         wmemcmp: Support for MSVC.
29378         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
29379         whether wmemcmp() exists.
29381 2011-10-03  Bruno Haible  <bruno@clisp.org>
29383         wmemchr: Support for MSVC.
29384         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
29385         whether wmemchr() exists.
29387 2011-10-03  Bruno Haible  <bruno@clisp.org>
29389         glthread/*, strsignal: Support for MSVC.
29390         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
29391         including <winsock.h> on MSVC 9.
29392         * lib/glthread/lock.h: Likewise.
29393         * lib/glthread/thread.h: Likewise.
29394         * lib/glthread/tls.h: Likewise.
29395         * lib/glthread/yield.h: Likewise.
29396         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
29397         if HAVE_UNISTD_H is false.
29398         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
29400 2011-10-03  Bruno Haible  <bruno@clisp.org>
29402         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
29403         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
29404         Set to 100000.
29406 2011-10-03  Bruno Haible  <bruno@clisp.org>
29408         acl: Fix specification.
29409         * lib/file-has-acl.c (file_has_acl): Fix specification.
29411 2011-10-03  Bruno Haible  <bruno@clisp.org>
29413         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
29414         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
29415         (compute_curr_prefix, shared_library_fullname,
29416         find_shared_library_fullname, get_shared_library_fullname, relocate):
29417         Use it together with PIC && INSTALLDIR.
29418         Reported by <jojelino@gmail.com>
29419         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
29421 2011-10-01  Jim Meyering  <meyering@redhat.com>
29423         maint.mk: adjust a release-related rule not to require use of gzip
29424         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
29425         Instead, check each file in $(DIST_ARCHIVES).  This is better for
29426         projects that build only .tar.xz files.  Also fix an erroneous test.
29428         test-linkat: don't leave behind a temporary file
29429         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
29430         Otherwise, coreutils' "make distcheck" would fail with this:
29431           Only in /c/cu/tests/torture/coreutils/test/\
29432             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
29433           make[2]: *** [my-distcheck] Error 1
29435         float, math: add omitted file
29436         * lib/itold.c: Add file, required for yesterday's float change.
29438 2011-10-01  Bruno Haible  <bruno@clisp.org>
29440         isinf: Fix for OpenBSD/x86.
29441         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
29442         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
29443         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
29445 2011-10-01  Bruno Haible  <bruno@clisp.org>
29447         isfinite: Fix syntax error in configure test.
29448         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
29450         isfinite: Fix typo.
29451         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
29452         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
29454 2011-10-01  Bruno Haible  <bruno@clisp.org>
29456         nonblocking tests: Fix test failure on Linux/IA-64.
29457         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
29458         Set to 270000.
29460 2011-10-01  Bruno Haible  <bruno@clisp.org>
29462         mkfifoat tests: Fix a test failure on mingw.
29463         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
29464         with error ENOSYS.
29466 2011-09-30  Bruno Haible  <bruno@clisp.org>
29468         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
29469         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
29470         'long double'. Set REPLACE_ITOLD.
29471         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
29472         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
29473         * lib/itold.c: New file.
29474         * modules/float (Files): Add lib/itold.c.
29475         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
29476         (Makefile.am): Substitute REPLACE_ITOLD.
29477         * modules/math (Depends-on): Add float.
29478         (Makefile.am): Substitute REPLACE_ITOLD.
29479         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
29480         * doc/posix-headers/math.texi: Likewise.
29481         * doc/posix-functions/logl.texi: Likewise.
29483 2011-09-30  Bruno Haible  <bruno@clisp.org>
29485         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
29486         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
29487         Set to 140000.
29489 2011-09-30  Bruno Haible  <bruno@clisp.org>
29491         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
29492         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
29493         invocation, say "right after AC_PROG_CC_STDC", not "right after
29494         AC_PROG_CC".
29495         Reported by Gary V. Vaughan <gary@gnu.org>.
29497 2011-09-30  Bruno Haible  <bruno@clisp.org>
29499         Centralize C99 requirement.
29500         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
29501         * modules/stdarg (configure.ac-early): Invoke it instead of
29502         AC_PROG_CC_STDC.
29503         Reported by Gary V. Vaughan and Paul Eggert.
29505 2011-09-29  Bruno Haible  <bruno@clisp.org>
29507         float: Fix LDBL_MAX value on Linux/PowerPC.
29508         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
29509         on Linux/PowerPC.
29510         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
29511         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
29512         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
29513         platform.
29514         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
29516 2011-09-29  Bruno Haible  <bruno@clisp.org>
29518         doc: Improve doc about gl_EARLY.
29519         * doc/gnulib-tool.texi (Initial import): Mention where to place an
29520         AC_PROG_CC_STDC invocation.
29521         Reported by Gary V. Vaughan <gary@gnu.org>.
29523 2011-09-28  Bruno Haible  <bruno@clisp.org>
29525         fgetc, fputc, fread, fwrite tests: Fix link error.
29526         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
29527         on non-MSVC platforms.
29528         * tests/test-fputc.c (main): Likewise.
29529         * tests/test-fread.c (main): Likewise.
29530         * tests/test-fwrite.c (main): Likewise.
29531         Reported by Jim Meyering.
29533 2011-09-27  Bruno Haible  <bruno@clisp.org>
29535         fputc, fwrite tests: Avoid test failure on MSVC.
29536         * tests/test-fgetc.c: Include msvc-inval.h.
29537         (main): Invoke gl_msvc_inval_ensure_handler.
29538         * tests/test-fputc.c: Include msvc-inval.h.
29539         (main): Invoke gl_msvc_inval_ensure_handler.
29540         * tests/test-fread.c: Include msvc-inval.h.
29541         (main): Invoke gl_msvc_inval_ensure_handler.
29542         * tests/test-fwrite.c: Include msvc-inval.h.
29543         (main): Invoke gl_msvc_inval_ensure_handler.
29544         * modules/fgetc-tests (Depends-on): Add msvc-inval.
29545         * modules/fputc-tests (Depends-on): Likewise.
29546         * modules/fread-tests (Depends-on): Likewise.
29547         * modules/fwrite-tests (Depends-on): Likewise.
29549 2011-09-27  Bruno Haible  <bruno@clisp.org>
29551         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
29552         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
29553         (raise): Remove older, duplicated declaration.
29554         (_gl_raise_SIGPIPE): New declaration.
29555         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
29556         (rpl_raise): Remove function.
29557         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
29558         a gnulib-defined SIGPIPE here.
29559         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
29560         'sigprocmask' has detected missing signal-blocking and the module
29561         'sigpipe' is enabled.
29562         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
29564 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
29566         base64-tests: avoid memory leak
29567         * tests/test-base64.c (main): Plug memory leak.
29569         base32: new module
29570         * modules/base32: New module.
29571         * lib/base32.c: New file.
29572         * lib/base32.h: Likewise.
29573         * m4/base32.m4: Likewise.
29574         * modules/base32-tests: New test.
29575         * tests/test-base32.c: Likewise.
29576         * MODULES.html.sh (Misc): Mention it.
29578 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
29580         gnulib: use more-standard license notice wording
29581         * gnulib-tool (func_emit_copyright_notice): When emitting a
29582         license notice into a file, use the standard wording as suggested
29583         by the current information for GNU maintainers, except say "file"
29584         rather than "program".  The new wording gives a license version
29585         number, which addresses an issue raised by Glenn Morris in
29586         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
29587         * m4/onceonly.m4: Use that same wording here, too.
29589         dup2: minor simplification
29590         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
29591         as lib/dup2.c no longer uses 'inline'.
29593 2011-09-25  Bruno Haible  <bruno@clisp.org>
29595         strings: Fix compilation error on MSVC.
29596         * lib/strings.in.h: Include <stddef.h> for size_t.
29598 2011-09-25  Bruno Haible  <bruno@clisp.org>
29600         fflush et al.: Document limitation on MSVC.
29601         * doc/posix-functions/fflush.texi: Document possible crash in handling
29602         mode other than DEFAULT_HANDLING.
29603         * doc/posix-functions/fgetc.texi: Likewise.
29604         * doc/posix-functions/fputc.texi: Likewise.
29605         * doc/posix-functions/fread.texi: Likewise.
29606         * doc/posix-functions/fwrite.texi: Likewise.
29608 2011-09-25  Bruno Haible  <bruno@clisp.org>
29610         msvc-inval: Allow three invalid parameter handling modes.
29611         * lib/msvc-inval.h: Don't include <stdlib.h> here.
29612         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
29613         macros.
29614         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
29615         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
29616         SANE_LIBRARY_HANDLING as a no-op.
29617         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
29618         <stdlib.h>.
29619         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
29621 2011-09-25  Bruno Haible  <bruno@clisp.org>
29623         msvc-inval: Make handler multithread-safe.
29624         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
29625         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
29626         declarations.
29627         (gl_msvc_inval_current): New declaration.
29628         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
29629         Operate on the structure returned by gl_msvc_inval_current().
29630         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
29631         Remove varaiables.
29632         (tls_index, tls_initialized): New variables.
29633         (not_per_thread): New variable.
29634         (gl_msvc_inval_current): New function.
29635         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
29636         returned by gl_msvc_inval_current().
29638 2011-09-25  Bruno Haible  <bruno@clisp.org>
29640         msvc-inval: Install handler globally.
29641         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
29642         !_MSC_VER.
29643         (gl_msvc_invalid_parameter_handler): Remove declaration.
29644         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
29645         declarations.
29646         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
29647         Install the handler globally, don't uninstall it.
29648         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
29649         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
29650         currently valid, call RaiseException instead.
29651         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
29652         for !_MSC_VER.
29654 2011-09-25  Bruno Haible  <bruno@clisp.org>
29656         strerror_r-posix: Fix for MSVC 9.
29657         * lib/strerror_r.c (local_snprintf): New function.
29658         (snprintf): Define to local_snprintf, not to _snprintf.
29660 2011-09-25  Bruno Haible  <bruno@clisp.org>
29662         ftruncate: Support for MSVC 9.
29663         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
29664         (chsize_nothrow): New function.
29665         (chsize): Redefine as a macro.
29666         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
29667         * modules/ftruncate (Depends-on): Add msvc-inval.
29669 2011-09-25  Bruno Haible  <bruno@clisp.org>
29671         New module 'fstat'.
29672         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
29673         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
29674         * lib/fchdir.c (rpl_fstat): Remove function.
29675         * m4/fstat.m4: New file.
29676         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
29677         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
29678         declared.
29679         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
29680         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
29681         * modules/fstat: New file.
29682         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
29683         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
29684         is set.
29685         * doc/posix-functions/fstat.texi: Mention the new module and the
29686         problem on MSVC.
29687         * NEWS: Mention the change.
29688         * modules/acl (Depends-on): Add fstat.
29689         * modules/chdir-safer (Depends-on): Likewise.
29690         * modules/chown (Depends-on): Likewise.
29691         * modules/copy-file (Depends-on): Likewise.
29692         * modules/fchdir (Depends-on): Likewise.
29693         * modules/fdopendir (Depends-on): Likewise.
29694         * modules/fopen (Depends-on): Likewise.
29695         * modules/fts (Depends-on): Likewise.
29696         * modules/getcwd (Depends-on): Likewise.
29697         * modules/isapipe (Depends-on): Likewise.
29698         * modules/linkat (Depends-on): Likewise.
29699         * modules/lseek (Depends-on): Likewise.
29700         * modules/mkdir-p (Depends-on): Likewise.
29701         * modules/open (Depends-on): Likewise.
29702         * modules/openat (Depends-on): Likewise.
29703         * modules/read-file (Depends-on): Likewise.
29704         * modules/renameat (Depends-on): Likewise.
29705         * modules/utimens (Depends-on): Likewise.
29707 2011-09-25  Bruno Haible  <bruno@clisp.org>
29709         linkat: Fix compilation on MSVC 9.
29710         * lib/linkat.c: Don't include <stdint.h>.
29712 2011-09-25  Bruno Haible  <bruno@clisp.org>
29714         fclose: Support for MSVC 9.
29715         * lib/fclose.c: Include msvc-inval.h.
29716         (fclose_nothrow): New function.
29717         (rpl_fclose): Use it.
29718         * modules/fclose (Depends-on): Add msvc-inval.
29719         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
29721 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
29723         dup2: minor simplifications
29724         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
29725         that it's a performance win.
29726         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
29727         ! defined __CYGWIN__)" to "ifdef F_GETFL".
29729 2011-09-24  Jim Meyering  <meyering@redhat.com>
29731         test-futimens: avoid a warning from gcc -Wshadow
29732         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
29733         to avoid a shadowing warning.
29735 2011-09-24  Bruno Haible  <bruno@clisp.org>
29737         fdopen: Support for MSVC 9.
29738         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
29739         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
29740         * lib/fdopen.c: Include msvc-inval.h.
29741         (fdopen_nothrow): New function.
29742         (rpl_fdopen): Use it.
29743         * modules/fdopen (Depends-on): Add msvc-inval.
29744         * modules/fclose-tests (Depends-on): Add fdopen.
29745         * modules/fflush-tests (Depends-on): Likewise.
29746         * modules/fgetc-tests (Depends-on): Likewise.
29747         * modules/fputc-tests (Depends-on): Likewise.
29748         * modules/fread-tests (Depends-on): Likewise.
29749         * modules/freopen-tests (Depends-on): Likewise.
29750         * modules/fseeko-tests (Depends-on): Likewise.
29751         * modules/ftello-tests (Depends-on): Likewise.
29752         * modules/fwrite-tests  (Depends-on): Likewise.
29753         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
29755 2011-09-24  Bruno Haible  <bruno@clisp.org>
29757         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
29758         * modules/fgetc-tests (Depends-on): Add unistd.
29759         * modules/fputc-tests (Depends-on): Likewise.
29760         * modules/fread-tests (Depends-on): Likewise.
29761         * modules/fwrite-tests (Depends-on): Likewise.
29763 2011-09-24  Bruno Haible  <bruno@clisp.org>
29765         dup: Simplify autoconf test.
29766         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
29767         on gl_MSVC_INVAL's result.
29769 2011-09-24  Bruno Haible  <bruno@clisp.org>
29771         Tests for function fwrite().
29772         * modules/fwrite-tests: New file.
29773         * tests/test-fwrite.c: New file.
29774         * modules/stdio-tests (Depends-on): Add fwrite-tests.
29776         Tests for function fread().
29777         * modules/fread-tests: New file.
29778         * tests/test-fread.c: New file.
29779         * modules/stdio-tests (Depends-on): Add fread-tests.
29781         Activate fputc tests.
29782         * modules/stdio-tests (Depends-on): Add fputc-tests.
29784         Enhance fgetc, fputc tests.
29785         * tests/test-fgetc.c (main): Also test the stream's error indicator.
29786         * tests/test-fputc.c (main): Likewise.
29788 2011-09-24  Bruno Haible  <bruno@clisp.org>
29790         write: Support for MSVC 9.
29791         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
29792         is not 1.
29793         * lib/write.c (write_nothrow): New function.
29794         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
29795         not 1. Use write_nothrow.
29796         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
29797         invalid parameter handler.
29798         (gl_PREREQ_WRITE): New macro.
29799         * modules/write (Depends-on): Add msvc-inval.
29800         (configure.ac): Invoke gl_PREREQ_WRITE.
29801         * doc/posix-functions/write.texi: Mention the problem on MSVC.
29803 2011-09-24  Bruno Haible  <bruno@clisp.org>
29805         read: Fix last commit.
29806         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
29808 2011-09-24  Bruno Haible  <bruno@clisp.org>
29810         dup2: Fix last commit.
29811         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
29812         (rpl_dup2): Disable fcntl workaround on native Windows.
29814         sigprocmask: Make code safer.
29815         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
29816         section that changes macro definitions for this compilation unit.
29818 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
29820         dup2: clarify by coalescing Windows-specific material
29821         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
29822         "msvc-nothrow.h"' to the Windows-specific section, so that the
29823         Emacs source need not contain these include files.
29824         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
29825         Windows-specific fixes into this function rather than just the
29826         nothrow fix, as this shortens and clarifies the code.  Always
29827         define as a function, as that's a bit cleaner than having it be
29828         sometimes a function and sometimes a macro.
29829         (rpl_dup2): Move the Windows-specific stuff out of here and into
29830         ms_windows_dup2.  Don't protect the Haiku-related fix with
29831         "#if !defined __linux__", as the same code also works around
29832         a Linux kernel bug, and it doesn't add any system calls on any
29833         platform.  Add comment about FreeBSD 6.1.
29835         sigprocmask: move #include directive
29836         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
29837         Windows-specific section, so that the Emacs source need not
29838         contain msvc-inval.h.
29840 2011-09-23  Bruno Haible  <bruno@clisp.org>
29842         read: Support for MSVC 9.
29843         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
29844         is not 1.
29845         * lib/read.c (read_nothrow): New function.
29846         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
29847         read_nothrow.
29848         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
29849         invalid parameter handler.
29850         (gl_PREREQ_READ): New macro.
29851         * modules/read (Depends-on): Add msvc-inval.
29852         (configure.ac): Invoke gl_PREREQ_READ.
29853         * doc/posix-functions/read.texi: Mention the problem on MSVC.
29855 2011-09-23  Bruno Haible  <bruno@clisp.org>
29857         close: Support for MSVC 9.
29858         * lib/close.c: Include <errno.h>, msvc-inval.h.
29859         (close_nothrow): New function.
29860         (rpl_close): Use it.
29861         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
29862         invalid parameter handler.
29863         * modules/close (Depends-on): Add msvc-inval.
29864         * modules/dup2-tests (Depends-on): Add close.
29865         * modules/dup3-tests (Depends-on): Likewise.
29866         * modules/fcntl-tests (Depends-on): Likewise.
29867         * modules/spawn-pipe-tests (Depends-on): Likewise.
29868         * modules/unistd-safer-tests (Depends-on): Likewise.
29869         * doc/posix-functions/close.texi: Mention the problem on MSVC.
29871 2011-09-23  Bruno Haible  <bruno@clisp.org>
29873         New module 'dup'.
29874         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
29875         Allow replacement.
29876         * lib/dup.c: New file.
29877         * lib/fchdir.c (rpl_dup): Remove function.
29878         * m4/dup.m4: New file.
29879         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
29880         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
29881         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
29882         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
29883         * modules/dup: New file.
29884         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
29885         'dup' module is in use.
29886         * modules/fdopendir (Depends-on): Add dup.
29887         * modules/fdutimensat-tests (Depends-on): Likewise.
29888         * modules/fts (Depends-on): Likewise.
29889         * modules/futimens-tests (Depends-on): Likewise.
29890         * modules/posix_spawnp-tests (Depends-on): Likewise.
29891         * modules/unistd-safer-tests (Depends-on): Likewise.
29892         * modules/utimens-tests (Depends-on): Likewise.
29893         * doc/posix-functions/dup.texi: Mention the new module and the problem
29894         on MSVC.
29896 2011-09-23  Bruno Haible  <bruno@clisp.org>
29898         getdtablesize: Support for MSVC 9.
29899         * lib/getdtablesize.c: Include msvc-inval.h.
29900         (_setmaxstdio_nothrow): New function.
29901         (_setmaxstdio): Redefine it.
29902         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
29903         * modules/getdtablesize (Depends-on): Add msvc-inval.
29904         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
29906 2011-09-23  Bruno Haible  <bruno@clisp.org>
29908         signal-h: Rename from signal.
29909         * modules/signal-h: Renamed from modules/signal.
29910         * modules/pthread_sigmask (Depends-on): Update.
29911         * modules/raise (Depends-on): Likewise.
29912         * modules/sigaction (Depends-on): Likewise.
29913         * modules/sigpipe (Depends-on): Likewise.
29914         * modules/sigprocmask (Depends-on): Likewise.
29915         * modules/sys_select (Depends-on): Likewise.
29916         * modules/signal-h-tests: Renamed from modules/signal-tests.
29917         (Files, Depends-on, Makefile.am): Update.
29918         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
29919         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
29920         (Files, Makefile.am): Update.
29921         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
29922         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
29923         * modules/signal: New placeholder file.
29924         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
29925         * doc/posix-headers/signal.texi: Update.
29926         * NEWS: Mention the change.
29928 2011-09-23  Bruno Haible  <bruno@clisp.org>
29930         sigprocmask: Avoid crashes through signal() on MSVC 9.
29931         * lib/sigprocmask.c: Include msvc-inval.h.
29932         (signal_nothrow): New function.
29933         (signal): Redefine it.
29934         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
29935         * modules/sigprocmask (Depends-on): Add msvc-inval.
29936         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
29938 2011-09-23  Bruno Haible  <bruno@clisp.org>
29940         Tests for module 'raise'.
29941         * modules/raise-tests: New file.
29942         * tests/test-raise.c: New file.
29944         raise: Support for MSVC.
29945         * lib/signal.in.h (raise): New declaration.
29946         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
29947         for native Windows platforms.
29948         * m4/raise.m4: New file.
29949         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
29950         HAVE_RAISE, REPLACE_RAISE.
29951         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
29952         REPLACE_RAISE.
29953         * modules/raise (Status, Notice): Remove fields.
29954         (Files): Add m4/raise.m4.
29955         (Depends-on): Add signal, msvc-inval.
29956         (configure.ac): Use the common idioms.
29957         (Maintainer): Add me.
29958         * tests/test-signal-c++.cc: Check the signature of raise.
29959         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
29961 2011-09-23  Bruno Haible  <bruno@clisp.org>
29963         pipe2: Fix compilation on pre-C99 compilers.
29964         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
29966 2011-09-23  Bruno Haible  <bruno@clisp.org>
29968         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
29969         * lib/msvc-nothrow.h: New file.
29970         * lib/msvc-nothrow.c: New file.
29971         * m4/msvc-nothrow.m4: New file.
29972         * modules/msvc-nothrow: New file.
29973         * lib/dup2.c: Include msvc-nothrow.h.
29974         (rpl_dup2): No need to protect _get_osfhandle call here.
29975         * lib/accept4.c: Include msvc-nothrow.h.
29976         * lib/error.c: Likewise.
29977         * lib/fcntl.c: Likewise.
29978         * lib/lseek.c: Likewise.
29979         * lib/nonblocking.c: Likewise.
29980         * lib/poll.c: Likewise.
29981         * lib/read.c: Likewise.
29982         * lib/select.c: Likewise.
29983         * lib/sockets.h: Likewise.
29984         * lib/sockets.c: Likewise.
29985         * lib/stdio-read.c: Likewise.
29986         * lib/stdio-write.c: Likewise.
29987         * lib/write.c: Likewise.
29988         * lib/w32sock.h: Likewise.
29989         * lib/w32spawn.h: Likewise.
29990         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
29991         * lib/fsync.c: Likewise.
29992         * lib/isapipe.c: Likewise.
29993         * modules/dup2 (Depends-on): Add msvc-nothrow.
29994         * modules/accept4 (Depends-on): Likewise.
29995         * modules/error (Depends-on): Likewise.
29996         * modules/fcntl (Depends-on): Likewise.
29997         * modules/lseek (Depends-on): Likewise.
29998         * modules/nonblocking (Depends-on): Likewise.
29999         * modules/poll (Depends-on): Likewise.
30000         * modules/read (Depends-on): Likewise.
30001         * modules/select (Depends-on): Likewise.
30002         * modules/sockets (Depends-on): Likewise.
30003         * modules/sigpipe (Depends-on): Likewise.
30004         * modules/write (Depends-on): Likewise.
30005         * modules/accept (Depends-on): Likewise.
30006         * modules/bind (Depends-on): Likewise.
30007         * modules/connect (Depends-on): Likewise.
30008         * modules/gethostname (Depends-on): Likewise.
30009         * modules/getpeername (Depends-on): Likewise.
30010         * modules/getsockname (Depends-on): Likewise.
30011         * modules/getsockopt (Depends-on): Likewise.
30012         * modules/ioctl (Depends-on): Likewise.
30013         * modules/listen (Depends-on): Likewise.
30014         * modules/recv (Depends-on): Likewise.
30015         * modules/recvfrom (Depends-on): Likewise.
30016         * modules/send (Depends-on): Likewise.
30017         * modules/sendto (Depends-on): Likewise.
30018         * modules/setsockopt (Depends-on): Likewise.
30019         * modules/shutdown (Depends-on): Likewise.
30020         * modules/socket (Depends-on): Likewise.
30021         * modules/execute (Depends-on): Likewise.
30022         * modules/spawn-pipe (Depends-on): Likewise.
30023         * modules/flock (Depends-on): Likewise.
30024         * modules/fsync (Depends-on): Likewise.
30025         * modules/isapipe (Depends-on): Likewise.
30026         * tests/test-cloexec.c: Include msvc-nothrow.h.
30027         * tests/test-dup-safer.c: Likewise.
30028         * tests/test-dup2.c: Likewise.
30029         * tests/test-dup3.c: Likewise.
30030         * tests/test-fcntl.c: Likewise.
30031         * tests/test-pipe.c: Likewise.
30032         * tests/test-pipe2.c: Likewise.
30033         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
30034         * modules/unistd-safer-tests (Depends-on): Likewise.
30035         * modules/dup2-tests (Depends-on): Likewise.
30036         * modules/dup3-tests (Depends-on): Likewise.
30037         * modules/fcntl-tests (Depends-on): Likewise.
30038         * modules/pipe-posix-tests (Depends-on): Likewise.
30039         * modules/pipe2-tests (Depends-on): Likewise.
30041 2011-09-23  Bruno Haible  <bruno@clisp.org>
30043         dup2: Make code more maintainable.
30044         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
30045         (rpl_dup2): Use it.
30046         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
30047         * modules/dup2 (configure.ac): Invoke it.
30048         Reported by Paul Eggert.
30050 2011-09-23  Bruno Haible  <bruno@clisp.org>
30052         msvc-inval: Fix compilation error.
30053         * lib/msvc-inval.h: Include <excpt.h>.
30055 2011-09-23  Bruno Haible  <bruno@clisp.org>
30057         mkdir: Tweak for MSVC 9.
30058         * lib/sys_stat.in.h: Update comments.
30059         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
30061         Tests for module 'chdir'.
30062         * modules/chdir-tests: New file.
30063         * tests/test-chdir.c: New file.
30065         New module 'chdir'.
30066         * modules/chdir: New file.
30067         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
30068         (chdir): New declaration.
30069         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
30070         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
30071         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
30072         * tests/test-unistd-c++.cc: Check signature of chdir.
30073         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
30074         * modules/chdir-long (Depends-on): Add chdir.
30075         * modules/fchdir (Depends-on): Likewise.
30076         * modules/rename (Depends-on): Likewise.
30077         * modules/savewd (Depends-on): Likewise.
30079         rmdir: Support for mingw, MSVC 9.
30080         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
30081         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
30083         getcwd: Tweak for MSVC 9.
30084         * lib/unistd.in.h: Update comments.
30085         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
30087 2011-09-22  Bruno Haible  <bruno@clisp.org>
30089         strerror_r-posix: Avoid a link error on MSVC.
30090         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
30091         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
30093 2011-09-22  Bruno Haible  <bruno@clisp.org>
30095         select: Avoid link errors on MSVC.
30096         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
30097         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
30098         * modules/pselect (Link): Likewise.
30099         * NEWS: Mention the change.
30100         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
30101         test-select-stdin against $(LIB_SELECT).
30102         * modules/pselect-tests (Makefile.am): Link test-pselect against
30103         $(LIB_SELECT).
30105 2011-09-22  Bruno Haible  <bruno@clisp.org>
30107         select: Avoid compilation error on MSVC.
30108         * lib/select.c: Don't include <stdbool.h>.
30110 2011-09-21  Bruno Haible  <bruno@clisp.org>
30112         Consolidate all uses of PATH_MAX in *.m4 files.
30113         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
30114         macros.
30115         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
30116         and gl_PATHMAX_SNIPPET.
30117         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
30118         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
30119         * modules/chdir-long (Files): Add m4/pathmax.m4.
30120         * modules/getcwd (Files): Likewise.
30122 2011-09-21  Bruno Haible  <bruno@clisp.org>
30124         ftruncate: Un-deprecate, concentrate on Win32 support.
30125         * modules/ftruncate (Status, Notice): Remove sections.
30126         (Depends-on): Add largefile.
30127         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
30128         non-mingw platforms.
30129         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
30130         include <io.h>.
30131         * modules/perror-tests (Depends-on): Add ftruncate.
30132         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
30133         'ftruncate' module.
30135 2011-09-21  Bruno Haible  <bruno@clisp.org>
30137         Add dependencies to new dirent related modules.
30138         * modules/opendir (Depends-on): Add closedir.
30139         * modules/getcwd (Depends-on): Add opendir, closedir.
30140         * modules/dirent-safer-tests (Depends-on): Likewise.
30141         * modules/fdopendir-tests (Depends-on): Likewise.
30142         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
30143         * modules/renameat-tests (Depends-on): Likewise.
30145 2011-09-21  Bruno Haible  <bruno@clisp.org>
30147         opendir: Avoid compilation error on mingw.
30148         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
30149         * modules/opendir (Depends-on): Add unistd.
30151 2011-09-21  Bruno Haible  <bruno@clisp.org>
30153         ftruncate tests: Avoid a test failure on mingw.
30154         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
30156 2011-09-21  Bruno Haible  <bruno@clisp.org>
30158         select tests: Avoid test failures on OSF/1 5.1 and mingw.
30159         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
30160         native Windows.
30162 2011-09-21  Bruno Haible  <bruno@clisp.org>
30164         New module 'fdopen'.
30165         * lib/stdio.in.h (fdopen): New declaration.
30166         * lib/fdopen.c: New file.
30167         * m4/fdopen.m4: New file.
30168         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
30169         REPLACE_FDOPEN.
30170         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
30171         REPLACE_FDOPEN.
30172         * modules/fdopen: New file.
30173         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
30174         * tests/test-stdio-c++.cc: Check signature of fdopen.
30175         * doc/posix-functions/fdopen.texi: Mention the new module.
30177 2011-09-21  Bruno Haible  <bruno@clisp.org>
30179         unlockpt tests: Avoid test failure on NetBSD 5.1.
30180         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
30181         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
30183 2011-09-21  Bruno Haible  <bruno@clisp.org>
30185         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
30186         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
30187         * tests/test-getlogin_r.c (main): Likewise.
30189 2011-09-20  Bruno Haible  <bruno@clisp.org>
30191         time tests: Don't require pid_t.
30192         * doc/posix-headers/time.texi: Revert last change.
30193         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
30194         * tests/test-time.c: Comment out the check for pid_t.
30196 2011-09-20  Bruno Haible  <bruno@clisp.org>
30198         fsync tests: Avoid a test failure on mingw.
30199         * tests/test-fsync.c (main): Allow a failure with EIO.
30201 2011-09-20  Bruno Haible  <bruno@clisp.org>
30203         euidaccess: Update comments.
30204         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
30206 2011-09-20  Bruno Haible  <bruno@clisp.org>
30208         Ensure EBADF returns for socket functions on mingw.
30209         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
30210         descriptor is invalid.
30211         * lib/bind.c (rpl_bind): Likewise.
30212         * lib/connect.c (rpl_connect): Likewise.
30213         * lib/getpeername.c (rpl_getpeername): Likewise.
30214         * lib/getsockname.c (rpl_getsockname): Likewise.
30215         * lib/getsockopt.c (rpl_getsockopt): Likewise.
30216         * lib/listen.c (rpl_listen): Likewise.
30217         * lib/recv.c (rpl_recv): Likewise.
30218         * lib/recvfrom.c (rpl_recvfrom): Likewise.
30219         * lib/send.c (rpl_send): Likewise.
30220         * lib/sendto.c (rpl_sendto): Likewise.
30221         * lib/setsockopt.c (rpl_setsockopt): Likewise.
30222         * lib/shutdown.c (rpl_shutdown): Likewise.
30224 2011-09-20  Bruno Haible  <bruno@clisp.org>
30226         select tests: EBADF tests.
30227         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
30228         test_bad_fd): New functions.
30229         (test_function): Invoke also test_bad_fd.
30231 2011-09-20  Bruno Haible  <bruno@clisp.org>
30233         Tests for module 'posix_spawn_file_actions_addopen.
30234         * modules/posix_spawn_file_actions_addopen-tests: New file.
30235         * tests/test-posix_spawn_file_actions_addopen.c: New file.
30237         Tests for module 'posix_spawn_file_actions_adddup2'.
30238         * modules/posix_spawn_file_actions_adddup2-tests: New file.
30239         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
30241         Tests for module 'posix_spawn_file_actions_addclose'.
30242         * modules/posix_spawn_file_actions_addclose-tests: New file.
30243         * tests/test-posix_spawn_file_actions_addclose.c: New file.
30245 2011-09-20  Bruno Haible  <bruno@clisp.org>
30247         Tests for module 'unlockpt'.
30248         * modules/unlockpt-tests: New file.
30249         * tests/test-unlockpt.c: New file.
30250         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
30252         Tests for module 'grantpt'.
30253         * modules/grantpt-tests: New file.
30254         * tests/test-grantpt.c: New file.
30255         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
30257 2011-09-20  Bruno Haible  <bruno@clisp.org>
30259         freopen tests: EBADF tests.
30260         * tests/test-freopen.c: Include errno.h, unistd.h.
30261         (main): Add tests for EBADF, commented out for the moment.
30263         fclose tests: EBADF tests.
30264         * tests/test-fclose.c (main): Add tests for EBADF.
30266         fflush tests: EBADF tests.
30267         * tests/test-fflush.c: Include errno.h, macros.h.
30268         (main): Add tests for EBADF.
30270         ftello tests: EBADF tests.
30271         * tests/test-ftello4.sh: New file.
30272         * tests/test-ftello4.c: New file.
30273         * modules/ftello-tests (Files): Add them.
30274         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
30276         fseeko tests: EBADF tests.
30277         * tests/test-fseeko4.sh: New file.
30278         * tests/test-fseeko4.c: New file.
30279         * modules/fseeko-tests (Files): Add them.
30280         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
30282         Tests for function fputc().
30283         * modules/fputc-tests: New file.
30284         * tests/test-fputc.c: New file.
30285         * modules/stdio-tests (Depends-on): Add fputc-tests.
30287         Tests for function fgetc().
30288         * modules/fgetc-tests: New file.
30289         * tests/test-fgetc.c: New file.
30290         * modules/stdio-tests (Depends-on): Add fgetc-tests.
30292         Tests for function fdopen().
30293         * modules/fdopen-tests: New file.
30294         * tests/test-fdopen.c: New file.
30295         * modules/stdio-tests (Depends-on): Add fdopen-tests.
30297         Tests for module 'vdprintf'.
30298         * modules/vdprintf-tests: New file.
30299         * tests/test-vdprintf.c: New file.
30301         Tests for module 'dprintf'.
30302         * modules/dprintf-tests: New file.
30303         * tests/test-dprintf.c: New file.
30305 2011-09-20  Bruno Haible  <bruno@clisp.org>
30307         Tests for module 'ioctl'.
30308         * modules/ioctl-tests: New file.
30309         * tests/test-ioctl.c: New file.
30311 2011-09-20  Bruno Haible  <bruno@clisp.org>
30313         fcntl tests: EBADF tests.
30314         * tests/test-fcntl.c (main): Add more tests for EBADF.
30316 2011-09-20  Bruno Haible  <bruno@clisp.org>
30318         utimensat tests: EBADF tests.
30319         * tests/test-utimensat.c (main): Add tests for EBADF.
30321         renameat tests: EBADF tests.
30322         * tests/test-renameat.c (main): Add tests for EBADF.
30324         mkfifoat tests: EBADF tests.
30325         * tests/test-mkfifoat.c (main): Add tests for EBADF.
30327         readlinkat tests: EBADF tests.
30328         * tests/test-readlinkat.c (main): Add tests for EBADF.
30330         symlinkat tests: EBADF tests.
30331         * tests/test-symlinkat.c (main): Add tests for EBADF.
30333         linkat tests: EBADF tests.
30334         * tests/test-linkat.c (main): Add tests for EBADF.
30336         Tests for module 'faccessat'.
30337         * modules/faccessat-tests: New file.
30338         * tests/test-faccessat.c: New file.
30340         fdopendir tests: EBADF tests.
30341         * tests/test-fdopendir.c (main): Add more tests for EBADF.
30343         openat tests: EBADF tests.
30344         * tests/test-fchownat.c (main): Add tests for EBADF.
30345         * tests/test-fstatat.c (main): Likewise.
30346         * tests/test-mkdirat.c (main): Likewise.
30347         * tests/test-openat.c (main): Likewise.
30348         * tests/test-unlinkat.c (main): Likewise.
30349         * tests/test-fchmodat.c: New file.
30350         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
30351         (Makefile.am): Also run 'test-fchmodat'.
30353 2011-09-20  Bruno Haible  <bruno@clisp.org>
30355         utimens, futimens, fdutimensat tests: EBADF tests.
30356         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
30358         Tests for function fstat().
30359         * modules/fstat-tests: New file.
30360         * tests/test-fstat.c: New file.
30361         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
30363 2011-09-20  Bruno Haible  <bruno@clisp.org>
30365         test-ttyname_r tests: EBADF tests.
30366         * tests/test-ttyname_r.c (main): Add tests for EBADF.
30368         Tests for module 'isatty'.
30369         * modules/isatty-tests: New file.
30370         * tests/test-isatty.c: New file.
30372         Tests for module 'write'.
30373         * modules/write-tests: New file.
30374         * tests/test-write.c: New file.
30376         Tests for module 'read'.
30377         * modules/read-tests: New file.
30378         * tests/test-read.c: New file.
30380         pwrite tests: EBADF tests.
30381         * tests/test-pwrite.c (main): Add tests for EBADF.
30383         pread tests: EBADF tests.
30384         * tests/test-pread.c (main): Add tests for EBADF.
30386         lseek tests: EBADF tests.
30387         * tests/test-lseek.c (main): Add more tests for EBADF.
30389         Tests for module 'ftruncate'.
30390         * modules/ftruncate-tests: New file.
30391         * tests/test-ftruncate.sh: New file.
30392         * tests/test-ftruncate.c: New file.
30394         fsync tests: EBADF tests.
30395         * tests/test-fsync.c (main): Add more tests for EBADF.
30397         fdatasync tests: EBADF tests.
30398         * tests/test-fdatasync.c (main): Add more tests for EBADF.
30400         Tests for module 'fchown'.
30401         * modules/fchown-tests: New file.
30402         * tests/test-fchown.c: New file.
30404         Tests for module 'fchmod'.
30405         * modules/fchmod-tests: New file.
30406         * tests/test-fchmod.c: New file.
30408         fchdir tests: EBADF tests.
30409         * tests/test-fchdir.c (main): Add more tests for EBADF.
30411         dup2 tests: EBADF tests.
30412         * tests/test-dup2.c (main): Add more tests for EBADF.
30414         Tests for module 'dup'.
30415         * modules/dup-tests: New file.
30416         * tests/test-dup.c: New file.
30418         Tests for module 'close'.
30419         * modules/close-tests: New file.
30420         * tests/test-close.c: New file.
30422 2011-09-20  Bruno Haible  <bruno@clisp.org>
30424         Tests for module 'shutdown'.
30425         * modules/shutdown-tests: New file.
30426         * tests/test-shutdown.c: New file.
30428         Tests for module 'setsockopt'.
30429         * modules/setsockopt-tests: New file.
30430         * tests/test-setsockopt.c: New file.
30432         Tests for module 'sendto'.
30433         * modules/sendto-tests: New file.
30434         * tests/test-sendto.c: New file.
30436         Tests for module 'send'.
30437         * modules/send-tests: New file.
30438         * tests/test-send.c: New file.
30440         Tests for module 'recvfrom'.
30441         * modules/recvfrom-tests: New file.
30442         * tests/test-recvfrom.c: New file.
30444         Tests for module 'recv'.
30445         * modules/recv-tests: New file.
30446         * tests/test-recv.c: New file.
30448         Tests for module 'listen'.
30449         * modules/listen-tests: New file.
30450         * tests/test-listen.c: New file.
30452         Tests for module 'getsockopt'.
30453         * modules/getsockopt-tests: New file.
30454         * tests/test-getsockopt.c: New file.
30456         Tests for module 'getsockname'.
30457         * modules/getsockname-tests: New file.
30458         * tests/test-getsockname.c: New file.
30460         Tests for module 'getpeername'.
30461         * modules/getpeername-tests: New file.
30462         * tests/test-getpeername.c: New file.
30464         Tests for module 'connect'.
30465         * modules/connect-tests: New file.
30466         * tests/test-connect.c: New file.
30468         Tests for module 'bind'.
30469         * modules/bind-tests: New file.
30470         * tests/test-bind.c: New file.
30472         accept4 tests: Fix for native Windows.
30473         * tests/test-accept4.c: Include sockets.h.
30474         (main): Invoke gl_sockets_startup.
30475         * modules/accept4-tests (Depends-on): Add sockets.
30477         accept tests: Fix for native Windows.
30478         * tests/test-accept.c: Include sockets.h.
30479         (main): Invoke gl_sockets_startup.
30480         * modules/accept-tests (Depends-on): Add sockets.
30482 2011-09-19  Bruno Haible  <bruno@clisp.org>
30484         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
30485         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
30486         do...while(0).
30487         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
30488         Suggested by Paul Eggert.
30490 2011-09-19  Bruno Haible  <bruno@clisp.org>
30492         sched: Ensure pid_t is defined.
30493         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
30494         not define pid_t.
30495         * lib/sched.in.h: Include <sys/types.h>.
30496         * doc/posix-headers/sched.texi: Mention the pid_t problem.
30497         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30499 2011-09-19  Bruno Haible  <bruno@clisp.org>
30501         msvc-inval: Ensure the entire expansion is a single statement.
30502         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
30503         of braces.
30505 2011-09-19  Jim Meyering  <meyering@redhat.com>
30507         tests: use printf, not echo in init.sh's warn_ function
30508         * tests/init.sh (warn_): Use printf, not echo.  The latter would
30509         misbehave when given strings containing a backslash or starting
30510         with e.g., -n.  James Youngman suggested setting IFS.
30512 2011-09-19  Eric Blake  <eblake@redhat.com>
30514         futimens: enhance test
30515         * tests/test-futimens.h (test_futimens): Also check for EBADF on
30516         closed non-negative fd.
30518         date: accept 'hence' as opposite of 'ago'
30519         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
30520         * tests/test-parse-datetime.c (main): Enhance test.
30521         Suggested by Jesse Wilson.
30523 2011-09-19  Jim Meyering  <meyering@redhat.com>
30525         getcwd: don't fail in a deep directory on a system without openat
30526         Before this change, getcwd would fail when called from a directory
30527         of depth PATH_MAX / 3 or greater.  That was due to the fact that
30528         the non-openat implementation used "..", "../..", "../../..", etc.
30529         to access ancestor directories.  With too many, that string would
30530         be longer than PATH_MAX.
30531         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
30532         using gnulib's openat replacement.
30533         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
30534         we're using the replacement function.
30536 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
30538         maint.mk: avoid warnings from perl about missing files
30539         * top/maint.mk (def_sym_regex): Ignore files listed in
30540         $(gl_other_headers_) that do not exist, say because a project
30541         does not use a corresponding module.
30543 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
30545         stat: use pathmax.h only if needed
30546         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
30547         This is better for Emacs, which does not have a mingw port and
30548         therefore can avoid the pathmax module.
30550         utimens: remove dependency on dup2
30551         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
30552         to work around the Linux kernel bug.
30553         * modules/utimens (Depends-on): Remove dup2.
30555 2011-09-18  Bruno Haible  <bruno@clisp.org>
30557         inet_ntop, inet_pton: Look for it also in libresolv.
30558         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
30559         libnsl, search for it in libresolv.
30560         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
30561         Needed on Solaris 7.
30563 2011-09-18  Bruno Haible  <bruno@clisp.org>
30565         accept, accept4 tests: Avoid link error on Solaris.
30566         * modules/accept-tests (Makefile.am): Link test-accept against
30567         $(LIBSOCKET).
30568         * modules/accept4-tests (Makefile.am): Link test-accept4 against
30569         $(LIBSOCKET).
30571         accept4: Avoid link error on Solaris.
30572         * modules/accept4 (Link): New section.
30574         socket functions: Avoid link errors on Solaris.
30575         * modules/accept (Depends-on): Add socketlib.
30576         (Link): New section.
30577         * modules/bind (Depends-on): Add socketlib.
30578         (Link): New section.
30579         * modules/connect (Depends-on): Add socketlib.
30580         (Link): New section.
30581         * modules/getpeername (Depends-on): Add socketlib.
30582         (Link): New section.
30583         * modules/getsockname (Depends-on): Add socketlib.
30584         (Link): New section.
30585         * modules/getsockopt (Depends-on): Add socketlib.
30586         (Link): New section.
30587         * modules/listen (Depends-on): Add socketlib.
30588         (Link): New section.
30589         * modules/recv (Depends-on): Add socketlib.
30590         (Link): New section.
30591         * modules/recvfrom (Depends-on): Add socketlib.
30592         (Link): New section.
30593         * modules/send (Depends-on): Add socketlib.
30594         (Link): New section.
30595         * modules/sendto (Depends-on): Add socketlib.
30596         (Link): New section.
30597         * modules/setsockopt (Depends-on): Add socketlib.
30598         (Link): New section.
30599         * modules/shutdown (Depends-on): Add socketlib.
30600         (Link): New section.
30601         * modules/socket (Depends-on): Add socketlib.
30602         (Link): New section.
30604 2011-09-18  Bruno Haible  <bruno@clisp.org>
30606         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
30607         * tests/test-ptsname.c (main): Terminate the test if it takes longer
30608         than 5 seconds.
30609         * modules/ptsname-tests (configure.ac): Test for alarm.
30611 2011-09-18  Bruno Haible  <bruno@clisp.org>
30613         posix_spawn_file_actions_add*: Fix module dependencies.
30614         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
30615         posix_spawn_file_actions_init.
30616         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
30617         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
30619 2011-09-18  Bruno Haible  <bruno@clisp.org>
30621         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
30622         * tests/test-rename.h (test_rename): Allow error code EEXIST.
30623         * tests/test-renameat.c (main): Likewise.
30625 2011-09-18  Bruno Haible  <bruno@clisp.org>
30627         Tests for module 'accept4'.
30628         * modules/accept4-tests: New file.
30629         * tests/test-accept4.c: New file.
30631 2011-09-18  Bruno Haible  <bruno@clisp.org>
30633         Tests for module 'accept'.
30634         * modules/accept-tests: New file.
30635         * tests/test-accept.c: New file.
30637 2011-09-18  Bruno Haible  <bruno@clisp.org>
30639         dup2: Support for MSVC.
30640         * lib/dup2.c: Include msvc-inval.h.
30641         (rpl_dup2): Handle invalid parameter notifications during dup2 and
30642         _get_osfhandle calls.
30643         * modules/dup2 (Depends-on): Add msvc-inval.
30644         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
30646         New module 'msvc-inval'.
30647         * lib/msvc-inval.h: New file.
30648         * lib/msvc-inval.c: New file.
30649         * m4/msvc-inval.m4: New file.
30650         * modules/msvc-inval: New file.
30652 2011-09-17  Bruno Haible  <bruno@clisp.org>
30654         Tests for module 'pclose'.
30655         * modules/pclose-tests: New file.
30657         New module 'pclose'.
30658         * lib/stdio.in.h (pclose): New declaration.
30659         * lib/pclose.c: New file.
30660         * m4/pclose.m4: New file.
30661         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
30662         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
30663         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
30664         * modules/pclose: New file.
30665         * modules/popen-tests (Depends-on): Add pclose.
30666         * modules/popen-safer-tests (Depends-on): Likewise.
30667         * doc/posix-functions/pclose.texi: Mention the new module.
30669 2011-09-17  Bruno Haible  <bruno@clisp.org>
30671         popen: Support for MSVC.
30672         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
30673         * lib/popen.c (popen): Provide alternate definition for native Windows.
30674         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
30675         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
30676         * modules/popen (Depends-on, configure.ac): Update condition.
30677         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
30678         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
30679         fixed.
30681 2011-09-17  Bruno Haible  <bruno@clisp.org>
30683         isnanl, isnand, isnanf: Work around MSVC bug.
30684         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
30686 2011-09-17  Bruno Haible  <bruno@clisp.org>
30688         sys_socket tests: Fix recent mistake.
30689         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
30691 2011-09-17  Bruno Haible  <bruno@clisp.org>
30693         putenv: Support for MSVC.
30694         * modules/putenv (Depends-on): Add environ.
30695         * lib/putenv.c (environ): Disable declaration.
30696         * lib/unistd.in.h: Update comment.
30698 2011-09-17  Bruno Haible  <bruno@clisp.org>
30700         math: Avoid macro redefinition warnings on MSVC.
30701         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
30702         Undefine before redefining.
30704 2011-09-17  Bruno Haible  <bruno@clisp.org>
30706         doc: Mention functions which are declared as macros.
30707         * doc/posix-functions/*[fl].texi: Mention that some functions are
30708         defined as macros with arguments only.
30710 2011-09-17  Bruno Haible  <bruno@clisp.org>
30712         Add dependencies to new dirent related modules.
30713         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
30714         * modules/fts (Depends-on): Likewise.
30715         * modules/glob (Depends-on): Likewise.
30716         * modules/savedir (Depends-on): Likewise.
30717         * modules/scandir (Depends-on): Likewise.
30718         * modules/dirent-safer (Depends-on): Add opendir, closedir.
30719         * modules/fdopendir (Depends-on): Add opendir.
30721 2011-09-17  Bruno Haible  <bruno@clisp.org>
30723         inet_pton: Support for MSVC on Windows Vista or newer.
30724         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
30725         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
30726         HAVE_DECL_INET_PTON is defined.
30727         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
30728         On platforms with <winsock2.h>, test whether inet_pton is declared in
30729         <ws2tcpip.h>. If so, arrange to replace it.
30730         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
30731         REPLACE_INET_PTON.
30732         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
30733         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
30734         (Depends-on, configure.ac): Update condition.
30735         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
30737 2011-09-17  Bruno Haible  <bruno@clisp.org>
30739         inet_ntop: Support for MSVC on Windows Vista or newer.
30740         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
30741         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
30742         HAVE_DECL_INET_NTOP is defined.
30743         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
30744         On platforms with <winsock2.h>, test whether inet_ntop is declared in
30745         <ws2tcpip.h>. If so, arrange to replace it.
30746         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
30747         REPLACE_INET_NTOP.
30748         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
30749         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
30750         (Depends-on, configure.ac): Update condition.
30751         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
30753 2011-09-16  Eric Blake  <eblake@redhat.com>
30755         test-fsync: yet another enhancement
30756         * tests/test-fsync.c (main): Also test behavior on read-only text
30757         file.
30759 2011-09-16  Bruno Haible  <bruno@clisp.org>
30761         Enhance fsync, fdatasync tests.
30762         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
30763         * tests/test-fdatasync.c (main): Likewise.
30765 2011-09-16  Bruno Haible  <bruno@clisp.org>
30767         Support for MSVC compiler: Ensure mode_t gets defined.
30768         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
30769         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
30770         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
30771         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
30772         * tests/test-fcntl-h.c: Check that mode_t is defined.
30773         * tests/test-sys_stat.c: Likewise.
30774         * tests/test-sys_types.c: Likewise.
30775         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
30776         * doc/posix-headers/sys_stat.texi: Likewise.
30777         * doc/posix-headers/sys_types.texi: Likewise.
30779 2011-09-16  Bruno Haible  <bruno@clisp.org>
30781         sys_stat: Support for MSVC.
30782         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
30783         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
30784         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
30785         MSVC.
30787 2011-09-16  Bruno Haible  <bruno@clisp.org>
30789         Support for MSVC compiler: Ensure off_t gets defined.
30790         * lib/unistd.in.h: Include <sys/types.h>.
30791         * tests/test-fcntl-h.c: Check that off_t is defined.
30792         * tests/test-sys_stat.c: Likewise.
30793         * tests/test-sys_types.c: Likewise.
30795 2011-09-16  Eric Blake  <eblake@redhat.com>
30797         fdatasync: port to Solaris
30798         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
30799         * modules/fdatasync (Link): Document it.
30800         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
30802         fdatasync: port to MacOS X 10.7
30803         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
30804         declared.
30805         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
30806         * modules/unistd (Makefile.am): Substitute it.
30807         * lib/unistd.in.h (fdatasync): Declare on MacOS.
30808         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
30810         fdatasync: minor improvements
30811         * modules/fdatasync (Depends-on): Add condition for fsync.
30812         * lib/fdatasync.c (fdatasync): Add comment.
30813         * tests/test-unistd-c++.cc: Test fdatasync.
30815         unistd: update refs to newer POSIX
30816         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
30817         Suggested by Bruno Haible.
30819         fdatasync: new module
30820         * modules/fsync (Description): Document difference to fdatasync.
30821         * modules/fdatasync: New module.
30822         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
30823         * lib/fdatasync.c (fdatasync): Likewise.
30824         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
30825         defaults.
30826         * modules/unistd (Makefile.am): Set witnesses.
30827         * lib/unistd.in.h (fdatasync): Declare.
30828         * MODULES.html.sh: Document it.
30829         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
30830         * modules/fdatasync-tests: New test.
30831         * tests/test-fdatasync.c: Likewise.
30833 2011-09-16  Eric Blake  <eblake@redhat.com>
30835         test-fsync: enhance tests
30836         * modules/fsync-tests (Depends-on): Add errno, for mingw.
30837         * tests/test-fsync.c (main): Enhance test.
30839 2011-09-15  Bruno Haible  <bruno@clisp.org>
30841         Support for MSVC compiler: Ensure ssize_t gets defined.
30842         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
30843         * doc/posix-headers/stdio.texi: Likewise.
30844         * modules/stdio (Depends-on): Add ssize_t.
30845         * modules/sys_socket (Depends-on): Likewise.
30846         * modules/sys_types (Depends-on): Likewise.
30847         * modules/sys_uio (Depends-on): Likewise.
30848         * modules/unistd (Depends-on): Likewise.
30849         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
30850         * tests/test-sys_types.c: Check that ssize_t is defined.
30852 2011-09-14  Bruno Haible  <bruno@clisp.org>
30854         Avoid using #, the m4 comment starter character, near brackets.
30855         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
30856         delimiter character in sed expressions.
30857         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
30858         Suggested by Eric Blake.
30860         Properly quote AC_CHECK_DECLS' 4th argument.
30861         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
30862         argument.
30863         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
30864         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
30865         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
30866         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
30867         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30868         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
30869         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
30870         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
30871         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
30872         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
30873         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
30874         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
30875         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30876         * m4/isinf.m4 (gl_ISINF): Likewise.
30877         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
30878         * m4/readutmp.m4 (gl_READUTMP): Likewise.
30879         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30880         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
30881         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
30882         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
30883         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
30884         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
30885         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
30886         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
30887         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30888         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30889         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
30890         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
30891         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30892         Reported by Eric Blake.
30894         Properly quote AC_CHECK_DECL's 4th argument.
30895         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
30896         argument.
30897         * m4/argp.m4 (gl_ARGP): Likewise.
30898         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
30899         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
30900         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
30901         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
30902         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
30903         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
30904         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
30905         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
30906         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30907         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
30908         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
30909         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
30910         Reported by Eric Blake.
30912 2011-09-14  Eric Blake  <eblake@redhat.com>
30914         opendir: avoid compile warning
30915         * lib/opendir.c (includes): Always include errno.h.
30916         Reported by Tatsuro MATSUOKA.
30918 2011-09-14  Jim Meyering  <meyering@redhat.com>
30920         maint.mk: sc_tight_scope: propagate failure from sub-make
30921         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
30922         Reported by Martin von Gagern.
30924 2011-09-13  Bruno Haible  <bruno@clisp.org>
30926         tempname: Support for MSVC.
30927         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
30928         MSVC.
30929         * modules/tempname (Depends-on): Add fcntl-h.
30931 2011-09-13  Bruno Haible  <bruno@clisp.org>
30933         sys_time: Support for MSVC.
30934         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
30935         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
30936         include <winsock2.h>.
30937         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
30938         function declarations that collide with POSIX.
30939         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
30940         (Makefile.am): Substitute HAVE_WINSOCK2_H.
30942 2011-09-13  Bruno Haible  <bruno@clisp.org>
30944         stat: Support for MSVC.
30945         * lib/stat.c: Include pathmax.h.
30946         * modules/stat (Depends-on): Add pathmax.
30948         pathmax: Support for native Windows.
30949         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
30951 2011-09-12  Bruno Haible  <bruno@clisp.org>
30953         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
30954         * lib/dirent.in.h (struct dirent): New type.
30955         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
30956         DT_WHT): New macros.
30957         (DIR): New type.
30958         (opendir, closedir): Declare only if the module 'opendir' is enabled.
30959         (readdir, rewinddir): New declarations.
30960         * lib/dirent-private.h: New file.
30961         * lib/opendir.c: New file.
30962         * lib/readdir.c: New file.
30963         * lib/rewinddir.c: New file.
30964         * lib/closedir.c: New file.
30965         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
30966         * m4/opendir.m4: New file.
30967         * m4/readdir.m4: New file.
30968         * m4/rewinddir.m4: New file.
30969         * m4/closedir.m4: New file.
30970         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
30971         REPLACE_CLOSEDIR here.
30972         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
30973         readdir, rewinddir are declared.
30974         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
30975         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
30976         HAVE_REWINDDIR, HAVE_CLOSEDIR.
30977         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
30978         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
30979         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
30980         * modules/opendir: New file.
30981         * modules/readdir: New file.
30982         * modules/rewinddir: New file.
30983         * modules/closedir: New file.
30984         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
30985         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
30986         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
30987         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
30988         * NEWS: Mention the 'fchdir' change.
30990 2011-09-11  Bruno Haible  <bruno@clisp.org>
30992         asm-underscore.m4: Support for MSVC.
30993         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
30994         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
30996 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
30998         Doc about crypt functions.
30999         * doc/posix-functions/crypt.texi: Expand range of glibc versions
31000         needing for _GNU_SOURCE to get crypt.
31001         * doc/posix-functions/encrypt.texi: Likewise.
31002         * doc/posix-functions/setkey.texi: Likewise.
31004 2011-09-11  Bruno Haible  <bruno@clisp.org>
31006         doc: Update regarding MSVC 9.
31007         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
31008         tested".
31009         * doc/posix-functions/*.texi: Update with info about MSVC 9.
31010         * doc/posix-headers/*.texi: Likewise.
31011         * doc/pastposix-functions/*.texi: Likewise.
31012         * doc/glibc-functions/*.texi: Likewise.
31013         * doc/glibc-headers/*.texi: Likewise.
31015 2011-09-11  Bruno Haible  <bruno@clisp.org>
31017         unistd et al.: Don't assume <unistd.h> exists.
31018         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
31019         does not exist.
31020         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
31021         exist. But include <stdlib.h>.
31022         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
31023         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
31024         symlink() does not exist.
31025         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
31026         include <io.h> instead.
31027         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
31028         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
31029         include <direct.h> instead.
31030         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
31031         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
31032         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
31033         <io.h> instead.
31034         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
31035         correctly if the system does not have hard links.
31036         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
31037         <direct.h> instead.
31038         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
31039         it when looking for function declarations.
31040         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
31041         <direct.h> and <io.h> instead.
31042         * doc/posix-headers/unistd.texi: More details about MSVC problem.
31044 2011-09-11  Bruno Haible  <bruno@clisp.org>
31046         strcase: Support for MSVC.
31047         * modules/strcase (Status, Notice): Remove obsoletion mark.
31048         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
31049         * doc/posix-functions/strncasecmp.texi: Likewise.
31051         strings: Don't assume <strings.h> exists.
31052         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
31053         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
31054         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
31055         * doc/posix-headers/strings.texi: Mention the MSVC problem.
31057 2011-09-11  Bruno Haible  <bruno@clisp.org>
31059         dirent: Don't assume <dirent.h> exists.
31060         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
31061         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
31062         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
31063         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
31065 2011-09-11  Bruno Haible  <bruno@clisp.org>
31067         Fix wint_t on MSVC.
31068         * lib/wchar.in.h (wint_t): On MSVC, override it.
31069         * lib/wctype.in.h (wint_t): Likewise.
31070         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
31071         MSVC.
31072         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
31073         * doc/posix-headers/wctype.texi: Likewise.
31075 2011-09-11  Bruno Haible  <bruno@clisp.org>
31077         sys_types: Fix typo.
31078         * lib/sys_types.in.h: Fix typo in comment.
31079         Reported by Paul Eggert.
31081         Support for MSVC compiler: Ensure size_t gets defined.
31082         * modules/strings (Depends-on): Add 'sys_types'.
31083         * modules/sys_uio (Depends-on): Likewise.
31084         * lib/sys_uio.in.h: Update comment.
31086         C++ tests for module 'sys_types'.
31087         * modules/sys_types-c++-tests: New file.
31088         * tests/test-sys_types-c++.cc: New file.
31090         Tests for module 'sys_types'.
31091         * modules/sys_types-tests: New file.
31092         * tests/test-sys_types.c: New file.
31094         New module 'sys_types'.
31095         * lib/sys_types.in.h: New file.
31096         * m4/sys_types_h.m4: New file.
31097         * modules/sys_types: New file.
31098         * doc/posix-headers/sys_types.texi: Mention the new module and the
31099         size_t problem on MSVC 9.
31101 2011-09-11  Bruno Haible  <bruno@clisp.org>
31103         Support for MSVC compiler: Avoid division by a literal 0.
31104         * lib/math.in.h (NAN): Define through a function call also on MSVC.
31105         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
31106         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
31107         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
31108         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
31109         * tests/infinity.h: New file.
31110         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
31111         on MSVC.
31112         * tests/test-ceilf1.c: Include infinity.h.
31113         (main): Use Infinityf.
31114         * tests/test-ceil1.c: Include infinity.h.
31115         (main): Use Infinityd.
31116         * tests/test-ceill.c: Include infinity.h.
31117         (main): Use Infinityl.
31118         * tests/test-dprintf-posix.c: Include infinity.h.
31119         (test_function): Use Infinityd.
31120         * tests/test-floorf1.c: Include infinity.h.
31121         (main): Use Infinityf.
31122         * tests/test-floor1.c: Include infinity.h.
31123         (main): Use Infinityd.
31124         * tests/test-floorl.c: Include infinity.h.
31125         (main): Use Infinityl.
31126         * tests/test-fprintf-posix.c: Include infinity.h.
31127         (test_function): Use Infinityd.
31128         * tests/test-frexp.c: Include infinity.h.
31129         (main): Use Infinityd.
31130         * tests/test-frexpl.c: Include infinity.h.
31131         (main): Use Infinityl.
31132         * tests/test-isfinite.c: Include infinity.h.
31133         (test_isfinitef): Use Infinityf.
31134         (test_isfinited): Use Infinityd.
31135         (test_isfinitel): Use Infinityl.
31136         * tests/test-isinf.c: Include infinity.h.
31137         (test_isinff): Use Infinityf.
31138         (test_isinfd): Use Infinityd.
31139         (test_isinfl): Use Infinityl.
31140         * tests/test-isnan.c: Include infinity.h.
31141         (test_float): Use Infinityf.
31142         (test_double): Use Infinityd.
31143         (test_long_double): Use Infinityl.
31144         * tests/test-isnanf.h: Include infinity.h.
31145         (main): Use Infinityf.
31146         * tests/test-isnand.h: Include infinity.h.
31147         (main): Use Infinityd.
31148         * tests/test-isnanl.h: Include infinity.h.
31149         (main): Use Infinityl.
31150         * tests/test-ldexpl.c: Include infinity.h.
31151         (main): Use Infinityl.
31152         * tests/test-printf-posix.h: Include infinity.h.
31153         (test_function): Use Infinityd.
31154         * tests/test-roundf1.c: Include infinity.h.
31155         (main): Use Infinityf.
31156         * tests/test-round1.c: Include infinity.h.
31157         (main): Use Infinityd.
31158         * tests/test-roundl.c: Include infinity.h.
31159         (main): Use Infinityl.
31160         * tests/test-signbit.c: Include infinity.h.
31161         (test_signbitf): Use Infinityf.
31162         (test_signbitd): Use Infinityd.
31163         (test_signbitl): Use Infinityl.
31164         * tests/test-snprintf-posix.h: Include infinity.h.
31165         (test_function): Use Infinityd, Infinityl.
31166         * tests/test-sprintf-posix.h: Include infinity.h.
31167         (test_function): Use Infinityd, Infinityl.
31168         * tests/test-truncf1.c: Include infinity.h.
31169         (main): Use Infinityf.
31170         * tests/test-trunc1.c: Include infinity.h.
31171         (main): Use Infinityd.
31172         * tests/test-truncl.c: Include infinity.h.
31173         (main): Use Infinityl.
31174         * tests/test-vasnprintf-posix.c: Include infinity.h.
31175         (test_function): Use Infinityd, Infinityl.
31176         * tests/test-vasprintf-posix.c: Include infinity.h.
31177         (test_function): Use Infinityd, Infinityl.
31178         * modules/ceilf-tests (Files): Add tests/infinity.h.
31179         * modules/ceil-tests (Files): Likewise.
31180         * modules/ceill-tests (Files): Likewise.
31181         * modules/dprintf-posix-tests (Files): Likewise.
31182         * modules/floorf-tests (Files): Likewise.
31183         * modules/floor-tests (Files): Likewise.
31184         * modules/floorl-tests (Files): Likewise.
31185         * modules/fprintf-posix-tests (Files): Likewise.
31186         * modules/frexp-tests (Files): Likewise.
31187         * modules/frexp-nolibm-tests (Files): Likewise.
31188         * modules/frexpl-tests (Files): Likewise.
31189         * modules/frexpl-nolibm-tests (Files): Likewise.
31190         * modules/isfinite-tests (Files): Likewise.
31191         * modules/isinf-tests (Files): Likewise.
31192         * modules/isnan-tests (Files): Likewise.
31193         * modules/isnanf-tests (Files): Likewise.
31194         * modules/isnanf-nolibm-tests (Files): Likewise.
31195         * modules/isnand-tests (Files): Likewise.
31196         * modules/isnand-nolibm-tests (Files): Likewise.
31197         * modules/isnanl-tests (Files): Likewise.
31198         * modules/isnanl-nolibm-tests (Files): Likewise.
31199         * modules/ldexpl-tests (Files): Likewise.
31200         * modules/printf-posix-tests (Files): Likewise.
31201         * modules/roundf-tests (Files): Likewise.
31202         * modules/round-tests (Files): Likewise.
31203         * modules/roundl-tests (Files): Likewise.
31204         * modules/signbit-tests (Files): Likewise.
31205         * modules/snprintf-posix-tests (Files): Likewise.
31206         * modules/sprintf-posix-tests (Files): Likewise.
31207         * modules/truncf-tests (Files): Likewise.
31208         * modules/trunc-tests (Files): Likewise.
31209         * modules/truncl-tests (Files): Likewise.
31210         * modules/vasnprintf-posix-tests (Files): Likewise.
31211         * modules/vasprintf-posix-tests (Files): Likewise.
31212         * modules/vdprintf-posix-tests (Files): Likewise.
31213         * modules/vfprintf-posix-tests (Files): Likewise.
31214         * modules/vprintf-posix-tests (Files): Likewise.
31215         * modules/vsnprintf-posix-tests (Files): Likewise.
31216         * modules/vsprintf-posix-tests (Files): Likewise.
31217         * modules/xprintf-posix-tests (Files): Likewise.
31219 2011-09-11  Bruno Haible  <bruno@clisp.org>
31221         Ensure pid_t gets defined.
31222         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
31223         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
31224         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
31225         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
31226         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
31227         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
31228         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
31229         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
31230         * tests/test-fcntl-h.c: Check that pid_t is defined.
31231         * tests/test-sched.c: Likewise.
31232         * tests/test-termios.c: Likewise.
31233         * tests/test-time.c: Likewise.
31234         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
31235         * doc/posix-headers/signal.texi: Likewise.
31236         * doc/posix-headers/sys_types.texi: Likewise.
31237         * doc/posix-headers/time.texi: Likewise.
31239 2011-09-11  Bruno Haible  <bruno@clisp.org>
31241         acl: Fix compilation on Solaris 10 (older version).
31242         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
31243         of ACE_EVERYONE.
31244         * lib/set-mode-acl.c (qset_acl): Likewise.
31245         Reported by Christian Jullien <eligis@orange.fr>.
31247 2011-09-10  Bruno Haible  <bruno@clisp.org>
31249         iconv, unsetenv: Add support for MSVC compiler.
31250         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
31251         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
31253 2011-09-10  Bruno Haible  <bruno@clisp.org>
31255         *printf: Add support for MSVC compiler.
31256         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
31257         handles the exception caused by the %n directive. When cross-compiling,
31258         guess no on native Windows.
31259         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
31260         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
31261         emulate it through vsnprintf.
31262         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
31263         * doc/posix-functions/dprintf.texi: Update documentation regarding
31264         MSVC 9.
31265         * doc/posix-functions/fprintf.texi: Likewise.
31266         * doc/posix-functions/printf.texi: Likewise.
31267         * doc/posix-functions/snprintf.texi: Likewise.
31268         * doc/posix-functions/sprintf.texi: Likewise.
31269         * doc/posix-functions/swprintf.texi: Likewise.
31270         * doc/posix-functions/vdprintf.texi: Likewise.
31271         * doc/posix-functions/vfprintf.texi: Likewise.
31272         * doc/posix-functions/vprintf.texi: Likewise.
31273         * doc/posix-functions/vsnprintf.texi: Likewise.
31274         * doc/posix-functions/vsprintf.texi: Likewise.
31275         * doc/glibc-functions/asprintf.texi: Likewise.
31276         * doc/glibc-functions/obstack_printf.texi: Likewise.
31277         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
31278         * doc/glibc-functions/vasprintf.texi: Likewise.
31280 2011-09-10  Bruno Haible  <bruno@clisp.org>
31282         nocrash: Add support for native Windows.
31283         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
31285 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
31286             Bruno Haible  <bruno@clisp.org>
31288         absolute-header, include-next: Add support for MSVC compiler.
31289         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
31290         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
31291         directory separator in #line directives.
31292         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
31293         recognize also backslash as directory separator in #line directives.
31295 2011-09-08  Jim Meyering  <meyering@redhat.com>
31297         maint.mk: mark the post-release commit log with "maint: " prefix
31298         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
31299         one-line commit-log summary.
31301 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
31302             Bruno Haible  <bruno@clisp.org>
31304         Doc about crypt functions.
31305         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
31306         systems.
31307         * doc/posix-functions/encrypt.texi: Likewise.
31308         * doc/posix-functions/setkey.texi: Likewise.
31310 2011-09-08  Simon Josefsson  <simon@josefsson.org>
31312         * lib/gc.h: Fix copyright header.
31314 2011-09-07  Bruno Haible  <bruno@clisp.org>
31316         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
31317         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
31318         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
31320 2011-09-07  Bruno Haible  <bruno@clisp.org>
31322         openat: Work around compilation error with OSF/1 5.1 DTK cc.
31323         * lib/fopen.c: Use different syntax for include of <stdio.h>.
31324         * lib/freopen.c: Likewise.
31325         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
31326         * lib/lstat.c: Likewise.
31327         * lib/stat.c: Likewise.
31328         * lib/open.c: Use different syntax for include of <fcntl.h>.
31329         * lib/openat.c: Include fcntl.h again, explicitly.
31331 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
31333         parse-datetime: document the newly accepted format
31334         * doc/parse-datetime.texi (Combined date and time of day items):
31335         New section.
31337 2011-09-06  Bruno Haible  <bruno@clisp.org>
31339         acl: Fix a test failure on newer Solaris 10 with ZFS.
31340         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
31341         ENOSYS as no ACL.
31342         Reported by Jim Meyering.
31344 2011-09-06  Bruno Haible  <bruno@clisp.org>
31346         acl: Update for AIX >= 5.3 with NFS.
31347         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
31348         ENOSYS as no ACL.
31350         acl: Fix a test failure on AIX >= 5.3 with NFS.
31351         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
31352         as no ACL.
31354 2011-09-06  Bruno Haible  <bruno@clisp.org>
31356         acl: Fix a test failure on IRIX 6.5 with NFS.
31357         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
31358         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
31359         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
31360         * lib/copy-acl.c (qcopy_acl): Likewise.
31362 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
31364         openat: port to AIX 7.1 with large files
31365         AIX 7.1 does a "#define openat open64at" if large files are in use,
31366         so we can't simply #undef openat.  Use the orig_openat trick (similar
31367         to orig_open in lib/open.c) to work around the problem.  Problem
31368         reported by Kevin Brott for GNU tar, in the thread containing
31369         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
31370         * lib/openat.c (__need_system_fcntl_h): Define first.
31371         Include <fcntl.h> and <sys/types.h> before undefining.
31372         (orig_openat) [HAVE_OPENAT]: New inline function.
31373         (openat) [HAVE_OPENAT]: Do not undef.
31374         (rpl_openat): Use orig_openat, not openat.
31376 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
31377             Bruno Haible  <bruno@clisp.org>
31379         acl: Avoid errors on NonStop Kernel.
31380         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
31381         ENOTSUP errors.
31383 2011-09-05  Bruno Haible  <bruno@clisp.org>
31385         acl: Clean up Solaris code.
31386         * lib/acl-internal.h: Remove no-op #if.
31387         * lib/file-has-acl.c: Likewise.
31388         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
31389         * lib/copy-acl.c (qcopy_acl): Likewise.
31391 2011-09-05  Bruno Haible  <bruno@clisp.org>
31393         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
31394         binaries built on the original Solaris 10.
31395         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
31396         trivial.
31398 2011-09-05  Bruno Haible  <bruno@clisp.org>
31400         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
31401         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
31402         10.
31403         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
31404         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
31405         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
31406         instead of acl_get, facl_get, acl_set, facl_set.
31408 2011-09-05  Bruno Haible  <bruno@clisp.org>
31410         copy-file: Try unit tests on more file systems.
31411         * tests/test-copy-file-1.sh: New file.
31412         * tests/test-copy-file-2.sh: New file.
31413         * modules/copy-file-tests (Files): Add them.
31414         (Makefile.am): Add them to TESTS.
31416         acl: Try unit tests on more file systems.
31417         * tests/test-file-has-acl-1.sh: New file.
31418         * tests/test-file-has-acl-2.sh: New file.
31419         * tests/test-set-mode-acl-1.sh: New file.
31420         * tests/test-set-mode-acl-2.sh: New file.
31421         * tests/test-copy-acl-1.sh: New file.
31422         * tests/test-copy-acl-2.sh: New file.
31423         * modules/acl-tests (Files): Add them.
31424         (Makefile.am): Add them to TESTS.
31426 2011-09-04  Bruno Haible  <bruno@clisp.org>
31428         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
31429         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
31430         10.
31431         (OLD_ALLOW, OLD_DENY): New macros.
31432         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
31433         ACE_ACCESS_ALLOWED_ACE_TYPE.
31434         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
31435         ACE_ACCESS_DENIED_ACE_TYPE.
31436         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
31437         (NEW_ACE_EXECUTE): Fix value.
31438         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
31439         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
31440         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
31441         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
31442         NEW_ACE_SYNCHRONIZE): New macros.
31443         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
31444         instead of acl_fromtext, acl_set, facl_set.
31445         Fixes a coreutils/tests/cp/perm failure.
31447 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
31449         openat: test for fstatat (..., 0) bug
31450         Further testing with tar suggests that fstatat (..., 0)
31451         does not work in general, on AIX 7.1; see
31452         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
31453         So, give up entirely on AIX 7.1's fstatat, and fall back on our
31454         replacement fstatat (which is what older AIX releases were using
31455         anyway).
31456         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
31457         use is now changed to orig_fstatat.  This was probably the right
31458         thing to do anyway.
31459         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
31460         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
31461         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
31462         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
31463         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
31464         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
31465         if the bug is found.
31467         openat: test for fstatat (AT_FDCWD, ..., 0) bug
31468         This tests for another fstatat bug on AIX 7.1:
31469         fstatat (AT_FDCWD, ..., 0) does not work.  See
31470         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
31471         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
31472         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
31473         (rpl_fstatat): Adjust so that it works around either (or both)
31474         bugs if present.
31475         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
31477 2011-09-03  Karl Berry  <karl@gnu.org>
31479         * doc/regex.texi (Character Class Operators): Avoid literal ":"
31480         in index entries.
31482 2011-09-02  Bruno Haible  <bruno@clisp.org>
31484         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
31485         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
31486         values of AR, ARFLAGS, RANLIB.
31487         Reported by John W. Eaton <jwe@gnu.org> for Octave.
31489 2011-09-02  Bruno Haible  <bruno@clisp.org>
31491         Find 'ar' program that fits with --host argument.
31492         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
31494 2011-09-02  Bruno Haible  <bruno@clisp.org>
31496         tests: init.sh: Support any non-GNU diff.
31497         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
31498         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
31499         Solaris 8.
31501 2011-09-02  Bruno Haible  <bruno@clisp.org>
31503         tests: init.sh: work also with any non-GNU diff that supports -u
31504         * tests/init.sh: Relax check for diff -u support.
31505         Rather than checking for GNU diff via --version, simply check
31506         for support for -u itself.  Useful at least on OpenBSD 4.9,
31507         AIX 7.1, IRIX 6.5, and Solaris 10.
31509 2011-09-01  Bruno Haible  <bruno@clisp.org>
31511         strtoimax, strtoumax: Document problem on HP-UX 11.
31512         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
31513         * doc/posix-functions/strtoumax.texi: Likewise.
31515 2011-09-01  Bruno Haible  <bruno@clisp.org>
31517         strtoumax: Avoid link error on OSF/1 with DTK cc.
31518         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
31519         defined as a function.
31520         * modules/strtoumax (Depends-on, configure.ac): Test only whether
31521         strtoumax is defined, not whether it is declared.
31523 2011-09-01  Bruno Haible  <bruno@clisp.org>
31525         strtoimax: Avoid link error on OSF/1 with DTK cc.
31526         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
31527         defined as a function.
31528         * modules/strtoimax (Depends-on, configure.ac): Test only whether
31529         strtoimax is defined, not whether it is declared.
31531 2011-09-01  Bruno Haible  <bruno@clisp.org>
31533         imaxdiv: Avoid link error on OSF/1 with DTK cc.
31534         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
31535         as a function.
31536         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
31537         whether it is declared.
31539 2011-09-01  Bruno Haible  <bruno@clisp.org>
31541         imaxabs: Avoid link error on OSF/1 with DTK cc.
31542         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
31543         as a function.
31544         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
31545         whether it is declared.
31547 2011-09-01  Bruno Haible  <bruno@clisp.org>
31549         Tests for module 'strtoumax'.
31550         * modules/strtoumax-tests: New file.
31551         * tests/test-strtoumax.c: New file.
31553         Tests for module 'strtoimax'.
31554         * modules/strtoimax-tests: New file.
31555         * tests/test-strtoimax.c: New file.
31557         Tests for module 'imaxdiv'.
31558         * modules/imaxdiv-tests: New file.
31559         * tests/test-imaxdiv.c: New file.
31561         Tests for module 'imaxabs'.
31562         * modules/imaxabs-tests: New file.
31563         * tests/test-imaxabs.c: New file.
31565 2011-09-01  Bruno Haible  <bruno@clisp.org>
31567         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
31568         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
31569         pthread_create.
31571 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31573         openat: work around AIX 7.1 fstatat issue
31574         This should fix the problem that was not properly fixed
31575         in the previous change, dated 2011-08-30.
31576         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
31577         __need_system_stat_h defined.
31578         (orig_fstatat) [HAVE_FSTATAT]: New function.
31579         (rpl_fstatat): Go back to the old way of doing things,
31580         except call orig_fstatat instead of fstatat.
31581         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
31582         Remove unnecessary check whether fstatat fills in st_size etc.
31584 2011-09-01  Bruno Haible  <bruno@clisp.org>
31586         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
31587         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
31588         just include the system's header.
31590 2011-08-31  Jim Meyering  <meyering@redhat.com>
31592         tests: avoid spurious assertion failure in test-float.c on ppc64
31593         * tests/test-float.c (test_long_double): Comment out an assertion,
31594         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
31595         with gcc-4.4.4.
31597         maint: indent with spaces, not TABs
31598         I need to get in the habit of running gnulib's "make check".
31599         Both of these would have been caught.
31600         * m4/largefile.m4: Indent with spaces, not TABs.
31601         * lib/parse-datetime.y (iso_8601_time): Likewise.
31602         Spotted by Pádraig Brady.
31604         test-parse-datetime.c: accommodate a relatively strict gcc warning
31605         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
31606         to avoid a warning from gcc's -Werror=missing-declarations.
31607         Insert a few spaces-before-funcall-parenthesis.
31609 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
31611         parse-datetime: accept ISO 8601 date and time rep with "T" separator
31612         The parser now accepts ISO 8601 date-time strings with "T" as the
31613         separator.  It has long parsed dates like "2004-02-29 16:21:42"
31614         with a space between the date and time strings.  Now it also parses
31615         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
31616         variants like "2004-02-29T16:21:42.333-07:00"
31617         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
31618         of day representation using the 'T' separator character.
31619         * doc/parse-datetime.texi (General date syntax): replace use of
31620         deprecated --iso-8601 option with --rfc-3339 in example of date
31621         command output formats that can be parsed.
31622         * tests/test-parse-datetime.c (tm_diff): New function, taken from
31623         lib/parse-datetime.y.
31624         (gmt_offset): New function.
31625         (main): Add additional test cases to validate ISO8601 extended
31626         date and time of day parsing.
31628 2011-08-31  Bruno Haible  <bruno@clisp.org>
31630         freopen: Documentation.
31631         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
31632         name.
31633         Reported by Claudio Bley <claudio.bley@gmail.com>.
31635 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
31637         freopen: Don't crash if the filename argument is NULL.
31638         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
31639         NULL.
31641 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
31643         openat: work around AIX 7.1 fstatat bug
31644         Problem reported by Kevin Brott for GNU tar, in the thread containing
31645         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
31646         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
31647         FSTATAT_ST_SIZE_ETC_BROKEN.
31648         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
31649         rpl_fstatat.
31650         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
31651         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
31652         AC_CHECK_FUNCS_ONCE for fstatat.
31653         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
31654         fchmodat, mkdirat, openat and unlinkat.
31656 2011-08-30  Bruno Haible  <bruno@clisp.org>
31658         Avoid endless recursions if config.h includes some header files.
31659         * lib/fopen.c (__need_FILE): Define already before including config.h.
31660         * lib/freopen.c (__need_FILE): Likewise.
31661         * lib/open.c (__need_system_fcntl_h): Likewise.
31662         * lib/stat.c (__need_system_sys_stat_h): Likewise.
31663         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
31664         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
31666 2011-08-25  Karl Berry  <karl@gnu.org>
31668         * config/srclist.txt (ylwrap): new try.
31669         * build-aux/ylwrap: new file.
31671 2011-08-23  Bruno Haible  <bruno@clisp.org>
31673         tmpdir: Use a good default directory on native Windows.
31674         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
31675         (P_tmpdir): Default to _P_tmpdir on native Windows.
31676         (path_search): On native Windows, try the value returned by GetTempPath
31677         before trying P_tmpdir.
31678         * modules/tmpdir (Depends-on): Add pathmax.
31679         Suggested by John Darrington <john@darrington.wattle.id.au>.
31681 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
31683         doc: fix typo in README-release
31684         * top/README-release: Capitalize first word of a sentence.
31686 2011-08-19  Jim Meyering  <meyering@redhat.com>
31688         fts: do not exhaust memory when processing million-entry directories
31689         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
31690         directory would require about 256*N bytes of memory.  Thus, it was
31691         easy to construct a directory too large to be processed by any of
31692         those tools.  With this change, fts' maximum memory utilization is
31693         now limited to around 30MB.
31694         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
31695         (fts_read): When we've processed the final entry (i.e., when
31696         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
31697         using the parent entry to read any remaining entries.  Dispatch
31698         depending on what fts_build returns:
31699         - NULL+stop, aka failure: stop
31700         - NULL otherwise: move up in the dir hierarchy
31701         - non-NULL: handle this new entry
31702         (fts_build): Declare and use new local, continue_readdir.
31703         Prepare to be called from fts_read, when the entries
31704         from a partially-read directory have just been exhausted.
31705         In that case, we'll skip the opendir and instead use the parent's
31706         fts_dirp and derive dir_fd from that.
31707         Finally, in the readdir loop, if we read max_entries entries,
31708         exit the loop ensuring *not* to call closedir.  This is required
31709         so that fts_dirp can be reused on a subsequent call.
31710         Prompted by Ben England's report of memory exhaustion in find
31711         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
31713         maint: fts: move decl of `dp' down into while loop; split a long line
31714         * lib/fts.c (fts_build): No semantic change.
31716         fts: add/use new struct member, fts_dirp
31717         We are about to use this to manage any directory with
31718         too many entries to read all of them into memory at once.
31719         To do that, we'll need to save the DIR* pointer in each
31720         affected FTSENT struct.
31721         * lib/fts_.h: Include <dirent.h>.
31722         (struct FTSENT) [fts_dirp]: New member.
31723         * lib/fts.c (closedir_and_clear): Define.
31724         Use it in place of closedir so that we are sure to
31725         clear the new fts_dirp member when done with it.
31726         (fts_alloc): Initialize the new member.
31727         (fts_lfree): Free, if needed.
31729         maint: fts: give __opendir2 a new parameter and rename
31730         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
31731         than surreptitiously using sole caller's "dir_fd".
31732         (fts_opendir): Rename from __opendir2.
31734         maint: fts.c: remove __opendir2's now-unused parameter, oflag
31735         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
31737         maint: fts.c: correct off-by-one indentation
31738         * lib/fts.c (fts_build): Correct indentation, change style
31739         of a couple of block comments, and bracing style.
31741         maint: fts.c: move __opendir2 #define "up" out of function body
31742         * lib/fts.c (__opendir2): Move "up".  No semantic change.
31744         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
31745         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
31746         out for a long time and besides was useful only on BSD systems.
31748 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
31750         regex: port to Stratus OpenVOS
31751         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
31752         define to empty, rather than attempting nonportable optimizations.
31753         Problem reported by Paul Green in:
31754         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
31755         and fix suggested by Eric Blake in:
31756         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
31758 2011-08-17  Eric Blake  <eblake@redhat.com>
31760         getcwd: fix test failures on mingw
31761         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
31762         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
31763         test if long directory cannot be created, and allow mingw errno.
31765         getcwd-lgpl: fix m4 to match relaxed test for BSD
31766         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
31767         (gl_FUNC_GETCWD_SIGNATURE): New macro.
31768         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
31769         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
31770         signature problem.
31772         getcwd: fix compilation on mingw64
31773         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
31774         getcwd.
31775         Reported by Marc-André Lureau.
31777         pipe2: silence compiler warning
31778         * lib/pipe2.c (pipe2): Hide label if it is not used.
31780 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
31782         relocatable-prog: fix link error
31783         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
31784         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
31785         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
31786         into modules/relocatable-lib without noticing that
31787         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
31788         also needs to build relocatable.c.
31790 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
31792         getaddrinfo: fix sh typo in gai_strerrorA decl checking
31793         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
31794         shell code: it contained a 'break' that was not in a loop.
31795         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
31796         via a shell-language loop; this may have been true in old Autoconf
31797         versions, but it's not true in Autoconf 2.68.  I found this bug
31798         when testing coreutils git on Solaris 8, whose shell complains
31799         about the syntax error.
31801 2011-08-12  Simon Josefsson  <simon@josefsson.org>
31803         * lib/base64.c: Fix comment to reference RFC 4648.
31804         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
31805         <gvtulder@gmail.com>.
31807 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
31809         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
31811         po/Makefile.in.in: fix make -q problem
31812         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
31813         rule, since there's no file named 'check-macro-version' and its
31814         use as a file breaks make -q.
31815         (all): Don't depend on check-macro-version.
31816         (CHECK_MACRO_VERSION): New macro.
31817         (stamp-po): Use it.
31819         configmake: fix make -q problem
31820         * modules/configmake (configmake.h): Update configmake.h's time stamp
31821         even if the file does not change.  Otherwise, 'make -q' fails.
31822         Problem reported by Simon Josefsson in
31823         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
31825 2011-08-11  Jim Meyering  <meyering@redhat.com>
31827         git-version-gen: correct the advice in a comment
31828         * build-aux/git-version-gen: Correct comment.
31829         Don't recommend to list .tarball-version in .gitignore.
31831 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31833         base64: fix off-by-one buffer size bug
31834         Problem and (trivial) fix reported by Gijs van Tulder in
31835         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
31836         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
31837         * tests/test-base64.c (main): Catch the bug.
31839 2011-08-10  Eric Blake  <eblake@redhat.com>
31841         closein: correct comments
31842         * lib/closein.c (close_stdin): Improve comments.
31844 2011-08-09  Bruno Haible  <bruno@clisp.org>
31846         More tests for 'fseeko'.
31847         * tests/test-fseeko3.c: New file, from Eric Blake.
31848         * tests/test-fseeko3.sh: New file.
31849         * modules/fseeko-tests (Files): Add them.
31850         (TESTS): Add test-fseeko3.sh.
31851         (check_PROGRAMS): Add test-fseeko3.
31853 2011-08-09  Eric Blake  <eblake@redhat.com>
31855         fseeko: remove unneeded hack
31856         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
31858         fseeko: fix bug on glibc
31859         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
31860         Reported by John W. Eaton.
31862 2011-08-08  Bruno Haible  <bruno@clisp.org>
31864         unictype/base: Fix interoperability with preinstalled libunistring.
31865         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
31866         Reported by Simon Josefsson.
31868 2011-08-08  Bruno Haible  <bruno@clisp.org>
31870         iswblank: Detect declaration correctly.
31871         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
31872         AC_CHECK_DECLS invocation.
31874 2011-08-08  Bruno Haible  <bruno@clisp.org>
31876         tcgetsid: Detect declaration correctly.
31877         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
31878         AC_CHECK_DECLS invocation.
31879         Reported by Simon Josefsson.
31881 2011-08-08  Eric Blake  <eblake@redhat.com>
31883         largefile: fix typo that regressed large file support
31884         * modules/largefile (configure.ac-early): Fix section name.
31886 2011-08-06  Karl Berry  <karl@gnu.org>
31888         * MODULES.html.sh (func_all_files): _Noreturn is no longer
31889         a separate module.
31891 2011-08-05  Simon Josefsson  <simon@josefsson.org>
31893         openat: Fix warnings and commens when building unlinkat.c on Hurd.
31894         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
31895         get prototype for free.
31897 2011-08-04  Bruno Haible  <bruno@clisp.org>
31899         Tests for module 'pathmax'.
31900         * modules/pathmax-tests: New file.
31901         * tests/test-pathmax.c: New file.
31903         canonicalize-lgpl: Support larger filenames on the Hurd.
31904         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
31905         Reported by Paul Eggert.
31907         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
31908         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
31909         * lib/chdir-long.h: Include pathmax.h.
31910         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
31911         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
31912         (PATH_MAX): Remove code that is done by pathmax.h.
31913         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
31914         * lib/tmpfile.c: Add a comment.
31915         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
31916         * modules/chdir-long (Depends-on): Add pathmax.
31917         * modules/getcwd (Depends-on): Add pathmax.
31918         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
31919         is not defined.
31920         * doc/posix-headers/limits.texi: Mention the pathmax module.
31921         * NEWS: Mention the change.
31923 2011-08-02  Bruno Haible  <bruno@clisp.org>
31925         pthread_sigmask: Actually use results of gl_THREADLIB.
31926         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
31927         gl_THREADLIB, not gl_[]THREADLIB.
31928         Reported by Eric Blake.
31930 2011-08-02  Jim Meyering  <meyering@redhat.com>
31932         maint.mk: relax the default _gl_TS_function_match regexp
31933         * top/maint.mk (_gl_TS_function_match): Don't require at least one
31934         space between function name and "(" in an "extern" declaration.
31935         That would fail to match a decl with no space there: extern void foo();
31937 2011-07-31  Iain Nicol  <iain@thenicols.net>
31939         git-version-gen: document that EXTRA_DIST must include .version
31940         * build-aux/git-version-gen: In the how-to-use comment, document
31941         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
31942         will fail when run from an unpacked distribution tarball.
31944 2011-08-01  Bruno Haible  <bruno@clisp.org>
31946         wctype-h: Fix last change.
31947         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
31948         REPLACE_TOWLOWER to 0.
31949         Reported by Sam Steingold <sds@gnu.org>.
31951 2011-07-31  Bruno Haible  <bruno@clisp.org>
31953         frexpl: Update autoconf test.
31954         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
31955         according to changes of 2011-06-20.
31957 2011-07-31  Bruno Haible  <bruno@clisp.org>
31959         sys_utsname: Add support for Minix.
31960         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
31961         <sys/utsname.h>.
31962         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31963         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
31965 2011-07-31  Bruno Haible  <bruno@clisp.org>
31967         strings: Add support for Minix.
31968         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
31969         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
31970         * doc/posix-headers/strings.texi: Document the Minix problem.
31972 2011-07-31  Bruno Haible  <bruno@clisp.org>
31974         wctype-h: Add support for Minix.
31975         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
31976         REPLACE_TOWLOWER.
31977         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
31978         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
31979         REPLACE_ISWCNTRL.
31981 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
31983         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
31984         This is a performance improvement for 64-bit hosts: it causes the
31985         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
31987 2011-07-31  Bruno Haible  <bruno@clisp.org>
31989         stdioext: Add support for Minix.
31990         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
31991         * lib/fpurge.c (fpurge): Likewise.
31992         * lib/freadahead.c (freadahead): Likewise.
31993         * lib/freadable.c (freadable): Likewise.
31994         * lib/freading.c (freading): Likewise.
31995         * lib/freadptr.c (freadptr): Likewise.
31996         * lib/freadseek.c (freadptrinc): Likewise.
31997         * lib/fseeko.c (rpl_fseeko): Likewise.
31998         * lib/fseterr.c (fseterr): Likewise.
31999         * lib/fwritable.c (fwritable): Likewise.
32000         * lib/fwriting.c (fwriting): Likewise.
32001         * lib/fflush.c (clear_ungetc_buffer): Update comment.
32002         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
32004 2011-07-31  Bruno Haible  <bruno@clisp.org>
32006         errno: Port to Minix.
32007         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
32008         ECONNABORTED are defined.
32009         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
32010         GNULIB_defined_ECONNABORTED): New macros.
32011         * lib/strerror-override.h (strerror_override): Test also
32012         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
32013         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
32014         ECONNABORTED.
32015         * doc/posix-headers/errno.texi: Mention the Minix problem.
32017 2011-07-31  Bruno Haible  <bruno@clisp.org>
32019         Work around declaration collisions on Minix.
32020         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
32021         defined, set REPLACE_MBSINIT.
32022         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
32023         defined, set REPLACE_MBRTOWC.
32024         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
32025         set REPLACE_MBRLEN.
32026         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
32027         defined, set REPLACE_MBSRTOWCS.
32028         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
32029         defined, set REPLACE_WCRTOMB.
32030         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
32031         defined, set REPLACE_WCSRTOMBS.
32033 2011-07-31  Bruno Haible  <bruno@clisp.org>
32035         Add support for Minix with ACK compiler.
32036         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
32037         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
32038         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
32040 2011-07-31  Bruno Haible  <bruno@clisp.org>
32042         Documentation about Minix.
32043         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
32044         * doc/glibc-headers/*.texi: Likewise.
32045         * doc/posix-functions/*.texi: Likewise.
32046         * doc/glibc-functions/*.texi: Likewise.
32048 2011-07-31  Bruno Haible  <bruno@clisp.org>
32050         snippet/warn-on-use: Fix indentation.
32051         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
32053 2011-07-25  Jim Meyering  <meyering@redhat.com>
32055         tests: test-update-copyright.sh: remove unnecessary "rm" commands
32056         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
32057         commands.
32059 2011-07-27  Jim Meyering  <meyering@redhat.com>
32061         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
32062         * top/maint.mk (gl_extract_significant_defines_): Now that
32063         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
32064         gnulib/lib/signal.in.h, and now that we recommend to
32065         define-if-undefined those two symbols in application code,
32066         we must filter them out of the "significant" list.
32067         This avoids a "make syntax-check" failure in coreutils.
32069 2011-07-26  Eric Blake  <eblake@redhat.com>
32071         warnings: add comments about previous patch
32072         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
32073         * m4/include_next.m4: Likewise.
32074         * m4/warn-on-use.m4: Likewise.
32075         * m4/warnings.m4: Likewise, and simplify use.
32076         Suggested by Stefano Lattarini.
32078         include-next, warnings: support older autoconf
32079         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
32080         AS_VAR_PUSHDEF in a way that works with older autoconf.
32081         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
32082         Reported by Daniel P. Berrange.
32084 2011-07-25  Bruno Haible  <bruno@clisp.org>
32086         fseek, ftell: Fix doc.
32087         * doc/posix-functions/fseek.texi: Reword statement about
32088         AC_SYS_LARGEFILE.
32089         * doc/posix-functions/ftell.texi: Likewise.
32091 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
32092             Bruno Haible  <bruno@clisp.org>
32094         Add dependencies to the 'largefile' module.
32095         * modules/fopen (Depends-on): Add 'largefile'.
32096         * modules/freopen (Depends-on): Likewise.
32097         * modules/fseeko (Depends-on): Likewise.
32098         * modules/ftello (Depends-on): Likewise.
32099         * modules/glob (Depends-on): Likewise.
32100         * modules/lseek (Depends-on): Likewise.
32101         * modules/lstat (Depends-on): Likewise.
32102         * modules/mkostemp (Depends-on): Likewise.
32103         * modules/mkostemps (Depends-on): Likewise.
32104         * modules/mkstemp (Depends-on): Likewise.
32105         * modules/mkstemps (Depends-on): Likewise.
32106         * modules/open (Depends-on): Likewise.
32107         * modules/openat (Depends-on): Likewise.
32108         * modules/pread (Depends-on): Likewise.
32109         * modules/pwrite (Depends-on): Likewise.
32110         * modules/scandir (Depends-on): Likewise.
32111         * modules/stat (Depends-on): Likewise.
32112         * modules/tmpfile (Depends-on): Likewise.
32113         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
32114         since the containing module now depends on the largefile module.
32115         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
32116         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
32117         off_t is fixed by gnulib.
32118         * doc/posix-functions/freopen.texi: Likewise.
32119         * doc/posix-functions/fseeko.texi: Likewise.
32120         * doc/posix-functions/fstatat.texi: Likewise.
32121         * doc/posix-functions/ftello.texi: Likewise.
32122         * doc/posix-functions/glob.texi: Likewise.
32123         * doc/posix-functions/lseek.texi: Likewise.
32124         * doc/posix-functions/lstat.texi: Likewise.
32125         * doc/posix-functions/mkstemp.texi: Likewise.
32126         * doc/posix-functions/open.texi: Likewise.
32127         * doc/posix-functions/openat.texi: Likewise.
32128         * doc/posix-functions/pread.texi: Likewise.
32129         * doc/posix-functions/pwrite.texi: Likewise.
32130         * doc/posix-functions/scandir.texi: Likewise.
32131         * doc/posix-functions/stat.texi: Likewise.
32132         * doc/posix-functions/tmpfile.texi: Likewise.
32133         * doc/glibc-functions/mkostemp.texi: Likewise.
32134         * doc/glibc-functions/mkostemps.texi: Likewise.
32135         * doc/glibc-functions/mkstemps.texi: Likewise.
32137 2011-07-25  Bruno Haible  <bruno@clisp.org>
32139         fcntl: Move AC_LIBOBJ invocation to module description.
32140         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
32141         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
32143         fcntl: Remove call-in from fchdir.m4.
32144         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
32145         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
32147         dup3: Remove potential call-in from fchdir.m4.
32148         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
32149         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
32151         dup2: Move AC_LIBOBJ invocation to module description.
32152         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
32153         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
32154         Don't invoke AC_LIBOBJ.
32155         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
32157         dup2: Remove call-in from fchdir.m4.
32158         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
32159         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
32161         fclose: Move AC_LIBOBJ invocation to module description.
32162         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
32163         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
32164         to 1.
32165         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
32167         fclose: Remove call-in from close.m4.
32168         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
32169         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
32171         close: Move AC_LIBOBJ invocation to module description.
32172         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
32173         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
32174         1.
32175         * modules/close (configure.ac): Invoke AC_LIBOBJ.
32177         close: Remove call-in from fchdir.m4.
32178         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
32179         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
32181         open: Move AC_LIBOBJ invocation to module description.
32182         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
32183         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
32184         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
32186         open: Remove call-in from fchdir.m4.
32187         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
32188         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
32190         fchdir: Start to remove gl_REPLACE_* idiom.
32191         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
32192         (gl_FUNC_FCHDIR): Invoke it.
32194 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
32196         * lib/ftell.c (ftell): Comment out cast.
32198         close: use gl_REPLACE_FCLOSE only if defined
32199         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
32200         is defined.  The close module doesn't depend on the fclose module
32201         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
32202         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
32203         I reproduced the problem with "./gnulib-tool --test close sys_socket".
32205 2011-07-24  Jim Meyering  <meyering@redhat.com>
32207         test-select.h: avoid warning when using gcc's -Wmissing-declarations
32208         * tests/test-select.h (test_function): Declare as "static".
32210 2011-07-24  Bruno Haible  <bruno@clisp.org>
32212         doc: Mention the effects of AC_SYS_LARGEFILE.
32213         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
32214         on this function.
32215         * doc/posix-functions/aio_error.texi: Likewise.
32216         * doc/posix-functions/aio_fsync.texi: Likewise.
32217         * doc/posix-functions/aio_read.texi: Likewise.
32218         * doc/posix-functions/aio_return.texi: Likewise.
32219         * doc/posix-functions/aio_suspend.texi: Likewise.
32220         * doc/posix-functions/aio_write.texi: Likewise.
32221         * doc/posix-functions/fgetpos.texi: Likewise.
32222         * doc/posix-functions/fopen.texi: Likewise.
32223         * doc/posix-functions/freopen.texi: Likewise.
32224         * doc/posix-functions/fsetpos.texi: Likewise.
32225         * doc/posix-functions/fstatvfs.texi: Likewise.
32226         * doc/posix-functions/ftruncate.texi: Likewise.
32227         * doc/posix-functions/ftw.texi: Likewise.
32228         * doc/posix-functions/getrlimit.texi: Likewise.
32229         * doc/posix-functions/glob.texi: Likewise.
32230         * doc/posix-functions/lio_listio.texi: Likewise.
32231         * doc/posix-functions/lockf.texi: Likewise.
32232         * doc/posix-functions/mkstemp.texi: Likewise.
32233         * doc/posix-functions/mmap.texi: Likewise.
32234         * doc/posix-functions/nftw.texi: Likewise.
32235         * doc/posix-functions/openat.texi: Likewise.
32236         * doc/posix-functions/opendir.texi: Likewise.
32237         * doc/posix-functions/posix_fadvise.texi: Likewise.
32238         * doc/posix-functions/posix_fallocate.texi: Likewise.
32239         * doc/posix-functions/pread.texi: Likewise.
32240         * doc/posix-functions/pwrite.texi: Likewise.
32241         * doc/posix-functions/readdir.texi: Likewise.
32242         * doc/posix-functions/readdir_r.texi: Likewise.
32243         * doc/posix-functions/rewinddir.texi: Likewise.
32244         * doc/posix-functions/scandir.texi: Likewise.
32245         * doc/posix-functions/seekdir.texi: Likewise.
32246         * doc/posix-functions/setrlimit.texi: Likewise.
32247         * doc/posix-functions/statvfs.texi: Likewise.
32248         * doc/posix-functions/telldir.texi: Likewise.
32249         * doc/posix-functions/tmpfile.texi: Likewise.
32250         * doc/posix-functions/truncate.texi: Likewise.
32251         * doc/glibc-functions/fallocate.texi: Likewise.
32252         * doc/glibc-functions/fstatfs.texi: Likewise.
32253         * doc/glibc-functions/fts_children.texi: Likewise.
32254         * doc/glibc-functions/fts_read.texi: Likewise.
32255         * doc/glibc-functions/getdirentries.texi: Likewise.
32256         * doc/glibc-functions/mkostemp.texi: Likewise.
32257         * doc/glibc-functions/mkostemps.texi: Likewise.
32258         * doc/glibc-functions/mkstemps.texi: Likewise.
32259         * doc/glibc-functions/preadv.texi: Likewise.
32260         * doc/glibc-functions/pwritev.texi: Likewise.
32261         * doc/glibc-functions/sendfile.texi: Likewise.
32262         * doc/glibc-functions/statfs.texi: Likewise.
32264 2011-07-24  Bruno Haible  <bruno@clisp.org>
32266         doc: Fix typo.
32267         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
32269 2011-07-24  Bruno Haible  <bruno@clisp.org>
32271         doc: Mention fsusage.
32272         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
32274 2011-07-24  Bruno Haible  <bruno@clisp.org>
32276         doc: Mention new glibc headers and functions.
32277         * doc/glibc-headers/gshadow.texi: New file.
32278         * doc/glibc-functions/endsgent.texi: New file.
32279         * doc/glibc-functions/fgetsgent.texi: New file.
32280         * doc/glibc-functions/fgetsgent_r.texi: New file.
32281         * doc/glibc-functions/getsgent.texi: New file.
32282         * doc/glibc-functions/getsgent_r.texi: New file.
32283         * doc/glibc-functions/getsgnam.texi: New file.
32284         * doc/glibc-functions/getsgnam_r.texi: New file.
32285         * doc/glibc-functions/putsgent.texi: New file.
32286         * doc/glibc-functions/setsgent.texi: New file.
32287         * doc/glibc-functions/sgetsgent.texi: New file.
32288         * doc/glibc-functions/sgetsgent_r.texi: New file.
32289         * doc/glibc-functions/malloc_info.texi: New file.
32290         * doc/glibc-functions/preadv.texi: New file.
32291         * doc/glibc-functions/pwritev.texi: New file.
32292         * doc/glibc-functions/register_printf_modifier.texi: New file.
32293         * doc/glibc-functions/register_printf_specifier.texi: New file.
32294         * doc/glibc-functions/register_printf_type.texi: New file.
32295         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
32296         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
32297         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
32298         * doc/glibc-functions/pthread_getname_np.texi: New file.
32299         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
32300         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
32301         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
32302         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
32303         * doc/glibc-functions/pthread_setname_np.texi: New file.
32304         * doc/glibc-functions/pthread_sigqueue.texi: New file.
32305         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
32306         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
32307         * doc/glibc-functions/qsort_r.texi: New file.
32308         * doc/glibc-functions/quick_exit.texi: New file.
32309         * doc/glibc-functions/syncfs.texi: New file.
32310         * doc/gnulib.texi: Include them.
32311         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
32312         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
32313         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
32314         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
32315         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
32316         * doc/glibc-functions/execvpe.texi: Likewise.
32318 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
32320         ftell: don't include <unistd.h>
32321         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
32322         guaranteed to define off_t, and the ftell module depends on the
32323         stdio module.
32325         ftell: do not assume wraparound signed arithmetic
32326         * lib/ftell.c: Include <limits.h>.
32327         (ftell): Don't assume wraparound signed arithmetic.
32329 2011-07-24  Bruno Haible  <bruno@clisp.org>
32331         close: No longer depend on module 'fclose'.
32332         * modules/close (Depends-on): Remove fclose.
32333         * NEWS: Mention the change.
32334         Suggested by Sam Steingold <sds@gnu.org>.
32336 2011-07-24  Bruno Haible  <bruno@clisp.org>
32338         fsusage: Enable large volume support on AIX >= 5.2.
32339         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
32340         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
32341         instead of STAT_STATVFS.
32342         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
32344         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
32345         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
32346         f_blocks field only on MacOS X.
32348         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
32349         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
32350         * modules/fsusage (Depends-on): Add largefile.
32352 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
32354         * README: Modernize discussion of signed integers.
32355         Assuming overflow wraparound is no longer safe.
32356         Mention ones' complement and signed magnitude.
32358 2011-07-22  Bruno Haible  <bruno@clisp.org>
32360         select tests, pselect tests: Refactor.
32361         * tests/test-select.h: New file, extracted from tests/test-select.c.
32362         (select_fn): New type.
32363         (test, do_select, do_select_nowait, do_select_wait, test_tty,
32364         test_connect_first, test_accept_first, test_pair, test_socket_pair,
32365         test_pipe): Add my_select argument.
32366         (test_function): Renamed from main. Add my_select argument.
32367         * tests/test-select.c: Move most code to tests/test-select.h. Include
32368         test-select.h.
32369         * modules/select-tests (Files): Add tests/test-select.h.
32370         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
32371         (my_select, main): New functions.
32372         * modules/pselect-tests (Files): Add tests/test-select.h,
32373         tests/macros.h, tests/signature.h.
32374         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
32375         (configure.ac): Check for <sys/wait.h>.
32377 2011-07-22  Bruno Haible  <bruno@clisp.org>
32379         sys_select tests: Check the signature of FD_*.
32380         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
32381         signature tests from here...
32382         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
32383         here.
32384         * modules/sys_select-tests (Files): Add tests/signature.h.
32386 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
32388         largefile: new module, replacing large-inode
32389         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
32390         * MODULES.html.sh: Add largefile, remove large-inode.
32391         * modules/largefile, m4/largefile.m4: New files.
32392         * modules/large-inode, m4/large-inode.m4: Remove.
32394         fsusage: port to MacOS X 10.7 with 4 TiB file systems
32395         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
32396         implementations that use only 32 bits to count blocks.
32397         On typical hosts with 1024-byte blocks, this fails with file
32398         systems as small as 4 TiB.  Problem reported by Herb Wartens
32399         <http://debbugs.gnu.org/9140> and this should also fix a similar
32400         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
32402         large-inode: New module
32403         * MODULES.html.sh: Add it.
32404         * modules/large-inode, m4/large-inode.m4: New files.
32406         extensions: Enable extensions on MacOS X 10.5 and later.
32407         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
32409 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
32411         file-has-acl: use acl_extended_file_nofollow if available
32412         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
32413         (acl_extended_file): New macro.
32414         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
32415         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
32417 2011-07-21  Bruno Haible  <bruno@clisp.org>
32419         Declare system functions in a way that works with C++.
32420         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
32421         declare fdopendir as extern "C".
32422         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
32423         declare frexpl as extern "C".
32424         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
32425         declare gai_strerror as extern "C".
32426         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
32427         programs, declare gai_strerror as extern "C".
32428         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
32429         declare getlogin_r as extern "C".
32430         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
32431         as extern "C".
32432         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
32433         declare ldexpl as extern "C".
32434         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
32435         as extern "C".
32436         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
32437         program, declare getmntinfo as extern "C".
32438         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
32439         stpncpy as extern "C".
32440         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
32441         program, declare __xpg_strerror_r as extern "C".
32442         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
32443         strndup as extern "C".
32444         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
32445         declare memset and bzero as extern "C".
32446         Reported by Sam Steingold <sds@gnu.org>.
32448 2011-07-12  Jim Meyering  <meyering@redhat.com>
32450         maint.mk: prohibit inclusion of "verify.h" without use
32451         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
32453 2011-07-19  Pádraig Brady  <P@draigBrady.com>
32455         timer-time: A new module to check for timer_settime()
32456         * m4/timer_time.m4: Check for the posix function.
32457         * modules/timer-time: Add the new module.
32458         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
32459         Mention it.
32461 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
32462             Bruno Haible  <bruno@clisp.org>
32464         pthread_sigmask: assume POSIX threads if --avoid=threadlib
32465         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
32466         not defined, assume POSIX threads and look for pthread_sigmask in
32467         $LIBS, without changing $CPPFLAGS.
32469 2011-07-19  Bruno Haible  <bruno@clisp.org>
32471         strstr: Update cross-compilation guess.
32472         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
32473         CPUs, guess no, in view of glibc
32474         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
32475         Suggested by Eric Blake. Reported by Reuben Thomas.
32477 2011-07-19  Pádraig Brady  <P@draigBrady.com>
32479         getopt-gnu: suppress core dumps from detection code
32480         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
32481         to suppress core dumps that may well occur on glibc systems.
32482         * modules/getopt-gnu: Depend on nocrash.
32484 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
32486         pthread_sigmask: ensure usleep is declared
32487         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
32488         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
32490 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
32492         doc: Document NonStop portability issues.
32493         * doc/posix-functions/sigaction.texi (sigaction):
32494         * doc/posix-headers/signal.texi (signal.h):
32495         Document NonStop.  See Joachim Schmitz in
32496         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
32498 2011-07-15  Bruno Haible  <bruno@clisp.org>
32500         ffsl, ffsll: Avoid unportable behaviour.
32501         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
32503 2011-07-15  Bruno Haible  <bruno@clisp.org>
32505         ffs: More tests.
32506         * tests/test-ffs.c (NBITS): New macro.
32507         (main): Add more tests.
32508         * tests/test-ffsl.c (NBITS): New macro.
32509         (main): Add more tests.
32510         * tests/test-ffsll.c (NBITS): New macro.
32511         (main): Add more tests.
32513 2011-07-15  Eric Blake  <eblake@redhat.com>
32515         ffsl, ffsll: new modules
32516         * modules/ffsl: New file.
32517         * modules/ffsll: Likewise.
32518         * m4/ffsl.m4: Likewise.
32519         * m4/ffsll.m4: Likewise.
32520         * lib/ffsl.c: Likewise.
32521         * lib/ffsl.h: Likewise.
32522         * lib/ffsll.c: Likewise.
32523         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
32524         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
32525         * modules/string (Makefile.am): Substitute witnesses.
32526         * lib/strings.in.h (ffsl, ffsll): Declare.
32527         * modules/ffsl-tests: New test file.
32528         * modules/ffsll-tests: Likewise.
32529         * tests/test-ffsl.c: Likewise.
32530         * tests/test-ffsll.c: Likewise.
32531         * MODULES.html.sh (Integer arithmetic functions): Mention it.
32532         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
32533         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
32535         ffs: fix m4 prerequisite
32536         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
32538         ffs: avoid undefined behavior
32539         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
32540         * tests/test-ffs.c (naive, main): Avoid signed shifts.
32541         Reported by Bruno Haible.
32543 2011-07-12  Bruno Haible  <bruno@clisp.org>
32545         pthread_sigmask: Rely on module 'threadlib'.
32546         * modules/pthread_sigmask (Depends-on): Add threadlib.
32547         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
32548         is defined.
32550 2011-07-12  Bruno Haible  <bruno@clisp.org>
32552         regex: Depend on module 'strcase'.
32553         * modules/regex (Depends-on): Add strcase, for strcasecmp().
32555 2011-07-12  Jim Meyering  <meyering@redhat.com>
32557         warn-on-use: fix typo in file name
32558         * modules/snippet/warn-on-use (Files): Correct file name:
32559         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
32561 2011-07-12  Bruno Haible  <bruno@clisp.org>
32563         strings: Document module.
32564         * doc/posix-headers/strings.texi: Mention module 'strings'.
32566 2011-07-12  Bruno Haible  <bruno@clisp.org>
32568         Rename module '_Noreturn' to 'snippet/_Noreturn'.
32569         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
32570         (Files, Makefile.am): Update.
32571         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
32572         * modules/stdlib (Depends-on): Update.
32574 2011-07-12  Bruno Haible  <bruno@clisp.org>
32576         * NEWS: Mention the changes.
32578         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
32579         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
32580         (Files, Makefile.am): Update.
32581         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
32582         * modules/arpa_inet (Depends-on): Update.
32583         * modules/ctype (Depends-on): Update.
32584         * modules/dirent (Depends-on): Update.
32585         * modules/fcntl-h (Depends-on): Update.
32586         * modules/glob (Depends-on): Update.
32587         * modules/iconv-h (Depends-on): Update.
32588         * modules/inttypes-incomplete (Depends-on): Update.
32589         * modules/langinfo (Depends-on): Update.
32590         * modules/locale (Depends-on): Update.
32591         * modules/math (Depends-on): Update.
32592         * modules/netdb (Depends-on): Update.
32593         * modules/poll-h (Depends-on): Update.
32594         * modules/pty (Depends-on): Update.
32595         * modules/search (Depends-on): Update.
32596         * modules/signal (Depends-on): Update.
32597         * modules/spawn (Depends-on): Update.
32598         * modules/stdio (Depends-on): Update.
32599         * modules/stdlib (Depends-on): Update.
32600         * modules/string (Depends-on): Update.
32601         * modules/strings (Depends-on): Update.
32602         * modules/sys_file (Depends-on): Update.
32603         * modules/sys_ioctl (Depends-on): Update.
32604         * modules/sys_select (Depends-on): Update.
32605         * modules/sys_socket (Depends-on): Update.
32606         * modules/sys_stat (Depends-on): Update.
32607         * modules/sys_time (Depends-on): Update.
32608         * modules/sys_times (Depends-on): Update.
32609         * modules/sys_utsname (Depends-on): Update.
32610         * modules/sys_wait (Depends-on): Update.
32611         * modules/termios (Depends-on): Update.
32612         * modules/time (Depends-on): Update.
32613         * modules/unistd (Depends-on): Update.
32614         * modules/wchar (Depends-on): Update.
32615         * modules/wctype-h (Depends-on): Update.
32616         * MODULES.html.sh (Support for building libraries and executables):
32617         Update.
32619         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
32620         * modules/snippet/unused-parameter: Renamed from
32621         modules/unused-parameter.
32622         (Files, Makefile.am): Update.
32623         * build-aux/snippet/unused-parameter.h: Renamed from
32624         build-aux/unused-parameter.h.
32625         * modules/selinux-h (Depends-on): Update.
32626         * modules/unistr/base (Depends-on): Update.
32627         * MODULES.html.sh (Core language properties): Update.
32629         Rename module 'link-warning' to 'snippet/link-warning'.
32630         * modules/snippet/link-warning: Renamed from modules/link-warning.
32631         (Files, Makefile.am): Update.
32632         * build-aux/snippet/link-warning.h: Renamed from
32633         build-aux/link-warning.h.
32634         * MODULES.html.sh (Support for building libraries and executables):
32635         Update.
32637         Rename module 'c++defs' to 'snippet/c++defs'.
32638         * modules/snippet/c++defs: Renamed from modules/c++defs.
32639         (Files, Makefile.am): Update.
32640         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
32641         * modules/arpa_inet (Depends-on): Update.
32642         * modules/ctype (Depends-on): Update.
32643         * modules/dirent (Depends-on): Update.
32644         * modules/fcntl-h (Depends-on): Update.
32645         * modules/glob (Depends-on): Update.
32646         * modules/iconv-h (Depends-on): Update.
32647         * modules/langinfo (Depends-on): Update.
32648         * modules/locale (Depends-on): Update.
32649         * modules/math (Depends-on): Update.
32650         * modules/netdb (Depends-on): Update.
32651         * modules/poll-h (Depends-on): Update.
32652         * modules/pty (Depends-on): Update.
32653         * modules/search (Depends-on): Update.
32654         * modules/signal (Depends-on): Update.
32655         * modules/spawn (Depends-on): Update.
32656         * modules/stdio (Depends-on): Update.
32657         * modules/stdlib (Depends-on): Update.
32658         * modules/string (Depends-on): Update.
32659         * modules/strings (Depends-on): Update.
32660         * modules/sys_ioctl (Depends-on): Update.
32661         * modules/sys_select (Depends-on): Update.
32662         * modules/sys_socket (Depends-on): Update.
32663         * modules/sys_stat (Depends-on): Update.
32664         * modules/sys_time (Depends-on): Update.
32665         * modules/sys_wait (Depends-on): Update.
32666         * modules/termios (Depends-on): Update.
32667         * modules/time (Depends-on): Update.
32668         * modules/unistd (Depends-on): Update.
32669         * modules/wchar (Depends-on): Update.
32670         * modules/wctype-h (Depends-on): Update.
32672         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
32673         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
32674         (Files, Makefile.am): Update.
32675         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
32676         * modules/argv-iter (Depends-on): Update.
32677         * modules/arpa_inet (Depends-on): Update.
32678         * modules/dirent (Depends-on): Update.
32679         * modules/fcntl-h (Depends-on): Update.
32680         * modules/fnmatch (Depends-on): Update.
32681         * modules/getopt-posix (Depends-on): Update.
32682         * modules/glob (Depends-on): Update.
32683         * modules/iconv-h (Depends-on): Update.
32684         * modules/inttypes-incomplete (Depends-on): Update.
32685         * modules/locale (Depends-on): Update.
32686         * modules/math (Depends-on): Update.
32687         * modules/netdb (Depends-on): Update.
32688         * modules/search (Depends-on): Update.
32689         * modules/signal (Depends-on): Update.
32690         * modules/spawn (Depends-on): Update.
32691         * modules/stdio (Depends-on): Update.
32692         * modules/stdlib (Depends-on): Update.
32693         * modules/string (Depends-on): Update.
32694         * modules/strings (Depends-on): Update.
32695         * modules/sys_socket (Depends-on): Update.
32696         * modules/sys_stat (Depends-on): Update.
32697         * modules/sys_time (Depends-on): Update.
32698         * modules/sys_times (Depends-on): Update.
32699         * modules/sys_utsname (Depends-on): Update.
32700         * modules/time (Depends-on): Update.
32701         * modules/unistd (Depends-on): Update.
32702         * modules/wchar (Depends-on): Update.
32703         * MODULES.html.sh (Support for building libraries and executables):
32704         Update.
32706 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
32708         Improvements on _Noreturn and related modules.
32710         modules/_Exit-tests: test _Noreturn too
32711         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
32712         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
32713         (main): Use them.
32715         stdnoreturn, stdnoreturn-tests: remove modules
32716         They're not needed here and a bit premature for use elsewhere.  See
32717         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
32718         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
32719         * tests/test-stdnoreturn.c: Remove files.
32720         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
32721         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
32722         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
32723         and using noreturn.
32724         * modules/openat, modules/sigpipe-die, modules/xalloc:
32725         * modules/xmemdup0, modules/xstrtol:
32726         Remove dependency on stdnoreturn.
32728         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
32729         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
32730         Reparenthesize to avoid GCC warning.
32731         Support Microsoft's syntax.
32732         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
32734         _Noreturn-tests: remove module
32735         * modules/_Noreturn-tests: Remove.
32736         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
32737         * tests/test-_Noreturn.c: Remove.
32738         * tests/test-stdnoreturn.c: Merge from the old
32739         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
32741 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
32743         _Noreturn, stdnoreturn, and related modules.
32745         * top/maint.mk: Adjust to new noreturn support.
32746         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
32747         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
32749         xalloc: use stdnoreturn.h
32750         * lib/xalloc.h: Include <stdnoreturn.h>.
32751         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
32752         * modules/xalloc (Depends-on): Add stdnoreturn.
32754         xstrtol: use stdnoreturn.h
32755         * lib/xstrtol.h: Include <stdnoreturn.h>.
32756         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
32757         * modules/xstrtol (Depends-on): Add stdnoreturn.
32759         xmemdup0: use stdnoreturn.h
32760         * lib/xmemdup0.h: Include <stdnoreturn.h>.
32761         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
32762         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
32764         sigpipe-die: use stdnoreturn.h
32765         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
32766         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
32767         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
32769         openat: use stdnoreturn.h
32770         * lib/openat.h: Include <stdnoreturn.h>.
32771         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
32772         * modules/openat (Depends-on): Add stdnoreturn.
32774         * lib/openat-die.c (openat_save_fail): Modernize comment.
32776         * lib/xalloc-die.c (xalloc_die): Modernize comment.
32778         * lib/glthread/thread.h: Modernize comment.
32780         obstack: use _Noreturn
32781         * lib/obstack.c (__attribute__): Remove macro.
32782         (print_and_abort): Use _Noreturn.
32784         c-stack: use _Noreturn
32785         * lib/c-stack.c (die, overflow_handler, segv_handler):
32786         Use _Noreturn rather than __attribute__((noreturn)).
32788         argmatch-tests, exclude_tests: use _Noreturn
32789         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
32790         Remove.
32791         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
32793         stdlib: use _Noreturn
32794         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
32795         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
32796         * modules/stdlib (Depends-on): Add _Noreturn.
32797         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
32799         stdnoreturn-tests: new module
32800         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
32802         stdnoreturn: new module
32803         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
32804         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
32806         _Noreturn-tests: new module
32807         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
32809         _Noreturn: new module
32810         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
32811         New section, mentioning it.
32812         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
32814         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
32816 2011-07-11  Eric Blake  <eblake@redhat.com>
32818         ffs: new module
32819         * modules/ffs: New file.
32820         * m4/ffs.m4: Likewise.
32821         * lib/ffs.c: Likewise.
32822         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
32823         * modules/strings (Makefile.am): Substitute witness.
32824         (Depends-on): Add c++defs.
32825         * lib/strings.in.h (ffs): Declare.
32826         * modules/ffs-tests: New test file.
32827         * tests/test-ffs.c: Test new module.
32828         * MODULES.html.sh (Integer arithmetic functions): Mention it.
32829         * doc/posix-functions/ffs.texi (ffs): Likewise.
32831         regex: avoid compiler warning
32832         * lib/regex.c (includes): Include <strings.h>, for use of
32833         strcasecmp in regcomp.c.
32834         Reported by Joachim Schmitz.
32836 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
32838         stdint: respect system's intmax_t if INTMAX_MAX
32839         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
32840         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
32841         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
32842         long but int64_t is long long, and where we will clash with the
32843         system intmax_t if we override it.  See
32844         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
32845         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
32846         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
32847         similarly for UINTMAX_C.
32849 2011-07-08  Bruno Haible  <bruno@clisp.org>
32851         pthread_sigmask tests: Avoid a compiler warning.
32852         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
32853         non-zero.
32855         sigprocmask tests: A better way to avoid a compiler warning.
32856         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
32857         (main): Complain if system() returns non-zero.
32858         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
32860 2011-07-08  Bruno Haible  <bruno@clisp.org>
32862         pthread_sigmask: Work around IRIX bug.
32863         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
32864         bug.
32865         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
32866         there may be unblocked pending signals.
32867         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
32869 2011-07-08  Bruno Haible  <bruno@clisp.org>
32871         pthread_sigmask: Work around Cygwin bug.
32872         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
32873         bug.
32874         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
32875         the system's pthread_sigmask function.
32876         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
32878 2011-07-08  Bruno Haible  <bruno@clisp.org>
32880         pthread_sigmask: Work around bug in single-threaded implementation.
32881         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
32882         FreeBSD, HP-UX, Solaris bug.
32883         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
32884         * lib/pthread_sigmask.c: Include <stddef.h>.
32885         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
32886         the system's pthread_sigmask function.
32887         * modules/pthread_sigmask (configure.ac): Invoke
32888         gl_PREREQ_PTHREAD_SIGMASK.
32889         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
32890         HP-UX, Solaris.
32892 2011-07-08  Eric Blake  <eblake@redhat.com>
32894         test-sigprocmask: avoid compiler warning
32895         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
32896         * tests/test-sigprocmask.c (main): Use it to silence warning.
32897         Reported by Jim Meyering.
32899         test-snprintf: avoid compiler warning
32900         * tests/test-snprintf.c (main): Avoid shadowed declaration.
32901         * tests/test-vsnprintf.c (main): Likewise.
32902         Reported by Jim Meyering.
32904 2011-07-08  Bruno Haible  <bruno@clisp.org>
32906         Tests for module 'pthread_sigmask'.
32907         * modules/pthread_sigmask-tests: New file.
32908         * tests/test-pthread_sigmask1.c: New file, based on
32909         tests/test-sigprocmask.c.
32910         * tests/test-pthread_sigmask2.c: New file.
32912 2011-07-08  Jim Meyering  <meyering@redhat.com>
32914         test-getopt.h: avoid warning about an unused variable
32915         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
32917 2011-07-07  Jim Meyering  <meyering@redhat.com>
32919         maint: reduce list of files exempt from sc_prohibit_leading_TABs
32920         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
32921         now that it no longer contains leading TABs.
32922         Remove unused "url=FIXME" statement.
32924 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
32926         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
32927         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
32928         When gl_THREADLIB is not in use, assume that the POSIX sematics
32929         are desired.  This is better for Emacs, which uses POSIX semantics
32930         on GNUish and/or POSIXish platforms, and does not use threads at
32931         all otherwise.
32933         pthread_sigmask: fix typo when testing for libraries
32934         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
32935         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
32937 2011-07-08  Eric Blake  <eblake@redhat.com>
32939         fts: introduce FTS_NOATIME
32940         * lib/fts_.h (FTS_NOATIME): New bit flag.
32941         (FTS_OPTIONMASK): Adjust.
32942         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
32943         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
32945 2011-07-08  Bruno Haible  <bruno@clisp.org>
32947         Tests for module 'thread'.
32948         * modules/thread-tests: New file.
32949         * tests/test-thread_self.c: New file.
32950         * tests/test-thread_create.cc: New file.
32952 2011-07-08  Bruno Haible  <bruno@clisp.org>
32954         thread: Avoid gcc warnings when using gl_thread_self().
32955         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
32956         'void *'.
32957         (gl_thread_self_pointer): Update.
32959 2011-07-07  Bruno Haible  <bruno@clisp.org>
32961         signal-c++-tests: Check declaration of pthread_sigmask.
32962         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
32963         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
32964         $(LIB_PTHREAD_SIGMASK).
32966 2011-07-07  Bruno Haible  <bruno@clisp.org>
32968         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
32969         * lib/signal.in.h (pthread_sigmask): Override if
32970         REPLACE_PTHREAD_SIGMASK is 1.
32971         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
32972         REPLACE_PTHREAD_SIGMASK.
32973         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
32974         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
32975         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
32976         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
32977         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
32979 2011-07-07  Bruno Haible  <bruno@clisp.org>
32981         pthread_sigmask: Ensure declaration in <signal.h>.
32982         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
32983         include <pthread.h>.
32984         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
32985         problem.
32987 2011-07-07  Bruno Haible  <bruno@clisp.org>
32989         pthread_sigmask: Document the module.
32990         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
32992 2011-07-07  Bruno Haible  <bruno@clisp.org>
32994         pthread_sigmask: Follow gnulib conventions.
32995         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
32996         gl_PTHREAD_SIGMASK.
32997         * modules/pthread_sigmask (configure.ac): Update.
32999 2011-07-07  Bruno Haible  <bruno@clisp.org>
33001         pthread_sigmask: Make declaration C++ safe.
33002         * lib/signal.in.h: In two special conditions, just do an #include_next.
33003         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
33004         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
33005         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
33006         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
33007         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
33008         not REPLACE_PTHREAD_MASK.
33009         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
33010         not REPLACE_PTHREAD_MASK.
33011         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
33013 2011-07-07  Bruno Haible  <bruno@clisp.org>
33015         pthread_sigmask: Fix return value.
33016         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
33017         * lib/pthread_sigmask.c: New file.
33018         * modules/pthread_sigmask (Files): Add it.
33019         (configure.ac): Invoke AC_LIBOBJ.
33021 2011-07-07  Eric Blake  <eblake@redhat.com>
33023         getopt: more portable argv creation
33024         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
33025         const, use char arrays rather than strings.
33026         Suggested by Paul Eggert.
33028 2011-07-07  Bruno Haible  <bruno@clisp.org>
33030         Tests for module 'sigprocmask'.
33031         * modules/sigprocmask-tests: New file.
33032         * tests/test-sigprocmask.c: New file.
33034 2011-07-07  Bruno Haible  <bruno@clisp.org>
33036         float tests: Tweak.
33037         * tests/test-float.c (main): Tweak skip message.
33039 2011-07-07  Eric Blake  <eblake@redhat.com>
33041         getopt: avoid compiler warning during configure
33042         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
33043         assigning string literals to non-const pointer.
33045         getopt-gnu: avoid crash in glibc getopt
33046         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
33047         * tests/test-getopt.h (test_getopt): Enhance test.
33048         * tests/test-getopt_long.h (test_getopt_long): Likewise.
33049         * doc/posix-functions/getopt.texi (getopt): Document it.
33050         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
33051         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33052         Likewise.
33054 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
33056         getopt: handle W; without long options in getopt [BZ #12922]
33057         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
33058         but no long options are defined, just return 'W'.
33060 2011-07-07  Bruno Haible  <bruno@clisp.org>
33062         Avoid literal tabs.
33063         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
33064         variable containing a tab instead of a literal tab.
33065         Reported by Jim Meyering.
33067 2011-07-07  Bruno Haible  <bruno@clisp.org>
33069         Comments.
33070         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
33072 2011-07-06  Bruno Haible  <bruno@clisp.org>
33074         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
33075         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
33076         <winsock2.h>.
33077         (rpl_fd_isset, FD_ISSET): New definitions, copied from
33078         lib/sys_socket.in.h.
33079         (close, gethostname): Hide declarations from <winsock2.h>.
33080         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
33081         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
33082         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
33083         (select): Don't override if gnulib's <sys/select.h> was already
33084         included.
33085         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
33086         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
33087         setsockopt, shutdown, select): Tweak indentation.
33089 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
33091         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
33092         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
33093         in an application that does not use the sys_select module.
33095 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
33097         poll: do not return 0 on timeout=-1
33098         * lib/poll.c: Loop with yield if no events occurred.
33100 2011-07-06  Eric Blake  <eblake@redhat.com>
33102         pthread_sigmask: always replace when not using pthread
33103         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
33104         replacement when using some threading other than pthread.  Fix
33105         logic bug.
33107 2011-07-06  Bruno Haible  <bruno@clisp.org>
33109         Comments.
33110         * m4/printf.m4: Update comments about mingw.
33112 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
33114         sys_select: define sigset_t more portably
33115         * lib/sys_select.in.h: Always include <sys/types.h>, since
33116         we now need sigset_t and mingw defines it there.
33117         Include <signal.h> before split inclusion guard, to avoid
33118         mishaps on Solaris, whose <signal.h> eventually includes us.
33119         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
33120         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
33121         which come from ...
33122         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
33123         gl_CHECK_TYPE_SIGSET_T.
33124         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
33125         does the real work.
33126         * modules/sys_select (Depends-on): Add 'signal'.
33128         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
33129         Suggested by Bruno Haible.
33131         pselect: Use pthread_sigmask, not sigprocmask.
33132         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
33133         multithreaded apps better than sigprocmask does.
33134         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
33135         sigprocmask directly.
33137 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
33139         * lib/pselect.c (pselect): Use plain name, without "rpl_".
33140         Don't #undef,  since we don't need any underlying pselect.
33141         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
33142         (Depends-on): Add select.
33143         (Link): Add $(LIBSOCKET).
33144         These changes suggested by Bruno Haible.
33146         pselect: document better
33147         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
33148         * doc/posix-functions/pselect.texi (pselect): Document new module.
33150         pthread_sigmask: new module
33151         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
33152         * doc/posix-functions/pthread_sigmask.texi: Document new module.
33153         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
33154         This is done only as a macro; I don't know how well that'll
33155         work for C++.  Move <sys/types.h> include before the include_next,
33156         to avoid mishap on Solaris.
33157         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
33158         * modules/signal (Makefile.am): Substitute the check's results.
33159         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
33161         test-pselect: new module
33162         * modules/pselect-tests, tests/test-pselect.c: New files.
33163         * tests/test-select.c, tests/test-sys_select-c++.cc:
33164         If TEST_PSELECT is defined, test pselect instead of testing select.
33166         * tests/test-sys_select.c (sigset_t): Test for it, too.
33167         Suggested by Bruno Haible.
33169 2011-07-05  Eric Blake  <eblake@redhat.com>
33171         snprintf: guarantee %1$d, for libintl
33172         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
33173         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
33174         * doc/posix-functions/snprintf.texi (snprintf): Update.
33175         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
33176         * tests/test-snprintf.c (main): Enhance test.
33177         * tests/test-vsnprintf.c (main): Likewise.
33179 2011-07-05  Jim Meyering  <meyering@redhat.com>
33181         maint: exempt stdio-read.c and stdio-write.c from the cppi check
33182         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
33183         per Bruno's request, to accommodate this idiom (no space after "#")
33184         even when the function is inside an #if block:
33185         char *
33186         gets (char *s)
33187         #undef gets
33188         {
33189           ...
33190         }
33192 2011-07-04  Jim Meyering  <meyering@redhat.com>
33194         maint: indent with spaces, not TABs, and add a rule to check this
33195         * tests/test-userspec.c: Indent with spaces, not TABs.
33196         * tests/test-argp.c: Likewise.
33197         * tests/test-c-stack2.sh: Likewise.
33198         * tests/test-parse-duration.sh: Likewise
33199         * m4/strtod.m4: Likewise.
33200         * m4/alloca.m4: Likewise.
33201         * m4/pselect.m4: Likewise.
33202         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
33204 2011-07-03  Jim Meyering  <meyering@redhat.com>
33206         maint.mk: correct omissions in prohibit_argmatch_without_use check
33207         This rule would mistakenly report that argmatch.h is included without
33208         use even when both the argmatch and invalid_arg macro were used.
33209         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
33210         of argmatch and invalid_arg.
33212 2011-07-03  Bruno Haible  <bruno@clisp.org>
33214         Comments about EINTR.
33215         * lib/safe-read.h: Explain the purpose of this module.
33216         * lib/safe-write.h: Likewise.
33217         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
33218         module.
33219         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
33220         module.
33221         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33223 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
33225         xnanosleep: Rewrite to use new dtotimespec module.
33226         It has the conversion code that used to be in xnanosleep.
33227         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
33228         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
33229         (TIME_T_MAX): Remove.
33230         (xnanosleep): Rewrite in terms of dtotimespec.
33231         * modules/xnanosleep (Depends-on): Add dtotimespec.
33232         Remove intprops, stdbool.
33234         timespec-add, timespec-sub: new modules
33235         * lib/timespec.h (timespec_add, timespec_sub): New decls.
33236         * lib/timespec-add.c, lib/timespec-sub.c:
33237         * modules/timespec-add, modules/timespec-sub: New files.
33239         dtotimespec: new module
33240         * lib/timespec.h (dtotimespec): New decl.
33241         * lib/dtotimespec.c, modules/dtotimespec: New files.
33243         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
33245         pselect: new module
33246         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
33247         (pselect): New decls.
33248         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
33249         since the standard pselect decl uses 'restrict'.
33250         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
33251         HAVE_PSELECT, REPLACE_PSELECT.
33252         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
33253         HAVE_PSELECT, REPLACE_PSELECT.
33254         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
33256         sys_select: don't depend on sys_socket
33257         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
33258         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
33259         This fix works on GNU and GNU-like platforms, but has not been tested
33260         on native Windows.
33261         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
33262         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
33263         gl_HEADER_SYS_SOCKET.
33264         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
33265         gl_PREREQ_SYS_H_WINSOCK2.
33267 2011-06-29  Eric Blake  <eblake@redhat.com>
33269         pipe2: fix C89 compile problem
33270         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
33271         Reported by Bruno Haible.
33273         pipe, pipe2: don't corrupt fd on error
33274         * lib/pipe.c (pipe): Leave fd unchanged on error.
33275         * lib/pipe2.c (pipe2): Likewise.
33276         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
33277         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
33279 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
33281         mmap-anon: do not use regular expressions inadvertently
33282         * m4/mmap-anon.m4: Remove trailing period from strings sought
33283         in the output.
33285 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
33287         nanosleep: fix integer overflow problem
33288         * lib/nanosleep.c (my_usleep): Don't assume signed integer
33289         arithmetic wraps around on overflow.
33291         nanosleep: simplify carrying
33292         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
33293         first call to the underyling nanosleep, not for the last one.
33294         This doesn't fix any bugs, but it simplifies the computation of
33295         the remaining delay.  Found while auditing integer overflow issues.
33297         dup2: remove test for existence of fcntl
33298         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
33299         "#if HAVE_FCNTL", in the configure-time test program.
33300         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
33301         and therefore speeds up "configure" a bit.  Found while
33302         adding the dup2 module to Emacs.
33304 2011-06-24  Eric Blake  <eblake@redhat.com>
33306         maint.mk: enhance useless header checks
33307         * top/maint.mk (_sc_header_without_use): Check both include
33308         styles.
33309         (sc_prohibit_assert_without_use)
33310         (sc_prohibit_close_stream_without_use)
33311         (sc_prohibit_getopt_without_use)
33312         (sc_prohibit_quotearg_without_use)
33313         (sc_prohibit_quote_without_use)
33314         (sc_prohibit_long_options_without_use)
33315         (sc_prohibit_inttostr_without_use)
33316         (sc_prohibit_ignore_value_without_use)
33317         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
33318         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
33319         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
33320         (sc_prohibit_hash_pjw_without_use)
33321         (sc_prohibit_safe_read_without_use)
33322         (sc_prohibit_argmatch_without_use)
33323         (sc_prohibit_canonicalize_without_use)
33324         (sc_prohibit_root_dev_ino_without_use)
33325         (sc_prohibit_openat_without_use)
33326         (sc_prohibit_c_ctype_without_use)
33327         (sc_prohibit_signal_without_use)
33328         (sc_prohibit_stdio--_without_use)
33329         (sc_prohibit_stdio-safer_without_use)
33330         (sc_prohibit_strings_without_use)
33331         (sc_prohibit_intprops_without_use)
33332         (sc_prohibit_stddef_without_use)
33333         (sc_prohibit_xfreopen_without_use): Update clients.
33335 2011-06-24  Jim Meyering  <meyering@redhat.com>
33337         syntax-check: keep one maint.mk rule in sync with its header
33338         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
33339         of the bug Eric has just fixed, with today's commit 25e4c2ec.
33340         I prefer to avoid temporary files here, so use <(...), but that
33341         is not supported by /bin/sh, so...
33342         (SHELL): Define to /bin/bash.
33344 2011-06-24  Eric Blake  <eblake@redhat.com>
33346         maint.mk: update sc_prohibit_intprops_without_use
33347         * top/maint.mk (_intprops_names): Match recent changes.
33349 2011-06-24  Bruno Haible  <bruno@clisp.org>
33351         strerror-override: No-op tweak.
33352         * lib/strerror-override.h (strerror_override): Reorder conditions,
33353         for consistency with lib/strerror-override.c.
33355 2011-06-23  Eric Blake  <eblake@redhat.com>
33357         maint.mk: test further PATH_MAX issues
33358         * top/maint.mk (sc_prohibit_path_max_array): Rename...
33359         (sc_prohibit_path_max_allocation): ...and also test alloca.
33360         Suggested by Jim Meyering.
33362 2011-06-22  Eric Blake  <eblake@redhat.com>
33364         maint.mk: add syntax-check to avoid char[PATH_MAX]
33365         * top/maint.mk (sc_prohibit_path_max_array): New rule.
33367         stat: be robust to PATH_MAX definition
33368         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
33369         * modules/stat (Depends-on): Add verify.
33371         link: work around IRIX bug
33372         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
33373         * lib/link.c (rpl_link): Work around it.
33374         * tests/test-link.h (test_link): Enhance test.
33375         * doc/posix-functions/link.texi (link): Document the bug.
33377         getopt: silence clang warning
33378         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
33379         dereference.
33380         Reported by Gustavo Martin Domato.
33382 2011-06-22  Jim Meyering  <meyering@redhat.com>
33384         bootstrap: do not insert a blank line into each .gitignore file
33385         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
33387 2011-06-21  Eric Blake  <eblake@redhat.com>
33389         perror: test for output mismatch
33390         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
33391         perror on IRIX.
33393         strerror_r: fix OpenBSD behavior on out-of-range
33394         * lib/strerror_r.c (strerror_r): Always use maximal string.
33395         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
33397         strerror_r: fix OpenBSD behavior on 0
33398         * lib/strerror-override.c (strerror_override): Also override 0
33399         when needed.
33400         * lib/strerror-override.h (strerror_override): Likewise.
33401         * lib/strerror.c (strerror): Simplify, now that 0 override is done
33402         earlier.
33403         * lib/strerror_r.c (strerror_r): Likewise.
33404         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
33405         behavior...
33406         (gl_FUNC_STRERROR_0): ...into new macro.
33407         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
33408         is overridden.
33409         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
33410         * modules/strerror-override (Files): Add strerror.m4.
33411         (configure.ac): Also provide override for 0 when needed.
33412         * doc/posix-functions/strerror.texi (strerror): Document this.
33413         * doc/posix-functions/perror.texi (perror): Likewise.
33415         perror: adjust array size
33416         * modules/perror (Depends-on): Add strerror-override.
33417         * lib/perror.c (perror): Use it to avoid magic number.
33419         strerror-override: reduce size
33420         * lib/strerror-override.c (strerror_override): Use fewer lines.
33422 2011-06-20  Bruno Haible  <bruno@clisp.org>
33424         pathmax: Ensure correct value for PATH_MAX on HP-UX.
33425         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
33427 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
33429         alloca: port to compilers that can optimize like GCC 4.6.0
33430         * lib/alloca.c (find_stack_direction): New signature, taken from
33431         Autoconf git.  This works with GCC 4.6.0.  This code should never
33432         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
33433         be used with other compilers that optimize as well as GCC 4.6.0 does.
33434         (alloca): Adjust to new signature.
33435         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
33436         New macro, which patches Autoconf in a similar way.
33438         c-stack: stop worrying about stack direction
33439         * lib/c-stack.c (find_stack_direction): Remove.
33440         (segv_handler): Don't worry about stack direction growth, as it's
33441         too much of a pain to configure this correctly, given how compilers
33442         are optimizing-away our stack-growth detection code.  Instead, assume
33443         that any access to just before or just after the stack is OK.
33444         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
33445         Don't require AC_FUNC_ALLOCA; no longer needed.
33447 2011-06-20  Eric Blake  <eblake@redhat.com>
33449         test-stat: don't allocate PATH_MAX bytes
33450         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
33451         PATH_MAX-sized buffer.
33452         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
33453         * modules/stat-tests (Depends-on): Likewise.
33454         * tests/test-fstatat.c (includes): Drop pathmax.h.
33455         * tests/test-stat.c (includes): Likewise.
33456         Reported by Bruno Haible.
33458 2011-06-20  Bruno Haible  <bruno@clisp.org>
33460         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
33461         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
33462         * lib/float.c: New file.
33463         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
33464         REPLACE_FLOAT_LDBL.
33465         * modules/float (Files): Add lib/float.c.
33466         (configure.ac): Invoke AC_LIBOBJ.
33467         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
33469 2011-06-20  Bruno Haible  <bruno@clisp.org>
33471         Tests for module 'float'.
33472         * modules/float-tests: New file.
33473         * tests/test-float.c: New file.
33475 2011-06-19  Bruno Haible  <bruno@clisp.org>
33477         isinf: Coding style.
33478         * lib/isinf.c: Use GNU coding style.
33480 2011-06-19  Bruno Haible  <bruno@clisp.org>
33482         linkat test: Avoid test failure on AIX 7.1.
33483         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
33484         * tests/test-link.h (test_link): Likewise.
33486 2011-06-19  Bruno Haible  <bruno@clisp.org>
33488         pread test: Avoid test failure on OpenBSD 4.9.
33489         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
33491 2011-06-19  Bruno Haible  <bruno@clisp.org>
33493         sprintf-posix: Fix test failure on AIX 7.1.
33494         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
33495         * doc/posix-functions/dprintf.texi: Mention limited precision problem
33496         on AIX.
33497         * doc/posix-functions/fprintf.texi: Likewise.
33498         * doc/posix-functions/printf.texi: Likewise.
33499         * doc/posix-functions/snprintf.texi: Likewise.
33500         * doc/posix-functions/sprintf.texi: Likewise.
33501         * doc/posix-functions/vdprintf.texi: Likewise.
33502         * doc/posix-functions/vfprintf.texi: Likewise.
33503         * doc/posix-functions/vprintf.texi: Likewise.
33504         * doc/posix-functions/vsnprintf.texi: Likewise.
33505         * doc/posix-functions/vsprintf.texi: Likewise.
33507 2011-06-19  Bruno Haible  <bruno@clisp.org>
33509         roundl-ieee: Fix test failure on AIX 7.1.
33510         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
33511         * doc/posix-functions/roundl.texi: Mention problem with negative
33512         arguments.
33514 2011-06-19  Bruno Haible  <bruno@clisp.org>
33516         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
33517         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
33518         * doc/posix-functions/round.texi: Mention problem with negative
33519         arguments.
33520         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
33522 2011-06-19  Bruno Haible  <bruno@clisp.org>
33524         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
33525         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
33526         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
33527         * doc/posix-functions/roundf.texi: Mention problem with negative
33528         arguments.
33529         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
33531 2011-06-19  Bruno Haible  <bruno@clisp.org>
33533         ceilf-ieee: Work around bug on MacOS X 10.5.
33534         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
33536         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
33537         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
33538         IEEE compliant, avoid compiler optimizations.
33539         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
33540         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
33541         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
33542         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
33543         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
33544         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
33545         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
33546         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
33547         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
33548         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
33550 2011-06-19  Bruno Haible  <bruno@clisp.org>
33552         ceilf-ieee: Work around bug on AIX 7.1.
33553         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
33554         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
33556 2011-06-19  Bruno Haible  <bruno@clisp.org>
33558         ceil-ieee: Work around bug on AIX 7.1.
33559         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
33560         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
33562 2011-06-18  Bruno Haible  <bruno@clisp.org>
33564         fsync test: Avoid test failure on MacOS X and AIX.
33565         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
33566         EINVAL.
33568 2011-06-18  Bruno Haible  <bruno@clisp.org>
33570         openat, fdopendir tests: Fix link errors.
33571         * modules/openat-tests (Depends-on): Add progname.
33572         * modules/fdopendir-tests (Depends-on): Likewise.
33573         * tests/test-fchownat.c: Include progname.h.
33574         (main): Call set_program_name.
33575         * tests/test-fstatat.c: Include progname.h.
33576         (main): Call set_program_name.
33577         * tests/test-mkdirat.c: Include progname.h.
33578         (main): Call set_program_name.
33579         * tests/test-openat.c: Include progname.h.
33580         (main): Call set_program_name.
33581         * tests/test-unlinkat.c: Include progname.h.
33582         (main): Call set_program_name.
33583         * tests/test-fdopendir.c: Include progname.h.
33584         (main): Call set_program_name.
33586 2011-06-18  Bruno Haible  <bruno@clisp.org>
33588         Doc update.
33589         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
33590         HP-UX.
33591         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
33593 2011-06-18  Bruno Haible  <bruno@clisp.org>
33595         getcwd tests: Avoid compilation error on HP-UX 11.31.
33596         * modules/getcwd-tests (Depends-on): Add pathmax.
33597         * tests/test-getcwd.c: Include pathmax.h.
33599 2011-06-18  Bruno Haible  <bruno@clisp.org>
33601         isfinite, isinf: Fix link error on AIX 6 and 7.
33602         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
33603         needed, also test the macro with a 'float' argument.
33604         * m4/isinf.m4 (gl_ISINF): Likewise.
33606 2011-06-18  Bruno Haible  <bruno@clisp.org>
33608         getloadavg: Don't clobber LIBS. Regression from previous commit.
33609         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
33610         AC_CHECK_LIB from here...
33611         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
33612         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
33613         gl_func_getloadavg_done.
33614         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33616 2011-06-18  Bruno Haible  <bruno@clisp.org>
33618         clean-temp: Improve documentation.
33619         * lib/clean-temp.h: Explain better how to use this module.
33620         Reported by John Darrington <john@darrington.wattle.id.au>.
33622 2011-06-17  Bruno Haible  <bruno@clisp.org>
33624         pread, pwrite: Avoid cc warning on AIX.
33625         * lib/unistd.in.h (pread): Undefine before defining as a macro.
33626         (pwrite): Likewise.
33628 2011-06-17  Bruno Haible  <bruno@clisp.org>
33630         spawn-pipe tests: Fix link error.
33631         * tests/test-spawn-pipe-child.c: Undefine fprintf.
33632         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33634 2011-06-17  Bruno Haible  <bruno@clisp.org>
33636         Tests: Remove unnecessary dependency.
33637         * modules/canonicalize-tests (Depends-on): Remove progname.
33638         * modules/chown-tests (Depends-on): Likewise.
33639         * modules/dirname-tests (Depends-on): Likewise.
33640         * modules/fdopendir-tests (Depends-on): Likewise.
33641         * modules/fdutimensat-tests (Depends-on): Likewise.
33642         * modules/hash-tests (Depends-on): Likewise.
33643         * modules/lchown-tests (Depends-on): Likewise.
33644         * modules/linkat-tests (Depends-on): Likewise.
33645         * modules/renameat-tests (Depends-on): Likewise.
33646         * modules/spawn-pipe-tests (Depends-on): Likewise.
33647         * modules/utimensat-tests (Depends-on): Likewise.
33649 2011-06-17  Bruno Haible  <bruno@clisp.org>
33651         spawn-pipe tests: Fix link error.
33652         * tests/test-spawn-pipe-child.c: Undefine fflush.
33654 2011-06-17  Bruno Haible  <bruno@clisp.org>
33656         Fix tests link errors.
33657         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
33658         * modules/chown-tests (Makefile.am): Don't link test-chown with
33659         LIBINTL.
33660         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
33661         LIBINTL.
33662         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
33663         LIBINTL.
33664         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
33665         LIBINTL.
33667 2011-06-16  Bruno Haible  <bruno@clisp.org>
33669         crypto/gc-sha1: Fix recent regression.
33670         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
33671         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
33673         crypto/gc-md5: Fix recent regression.
33674         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
33676         crypto/gc-md4: Fix recent regression.
33677         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
33678         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
33680         crypto/gc-arctwo: Fix recent regression.
33681         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
33682         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
33684         crypto/gc-rijndael: Fix recent regression.
33685         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
33686         (configure.ac): Invoke AC_LIBOBJ here.
33687         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
33688         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33690         crypto/gc-hmac-sha1: Fix recent regression.
33691         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
33692         (configure.ac): Invoke AC_LIBOBJ here.
33693         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
33694         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33696         crypto/gc-hmac-md5: Fix recent regression.
33697         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
33698         (configure.ac): Invoke AC_LIBOBJ here.
33699         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
33700         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33702         crypto/gc-des: Fix recent regression.
33703         * modules/crypto/gc-des (Files): Remove m4/des.m4.
33704         (configure.ac): Invoke AC_LIBOBJ here.
33705         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
33706         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33708         crypto/gc-arcfour: Fix recent regression.
33709         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
33710         (configure.ac): Invoke AC_LIBOBJ here.
33711         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
33712         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33714 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
33716         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
33717         After the 2011-05-21 change, this macro requires
33718         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
33719         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
33721 2011-06-16  Bruno Haible  <bruno@clisp.org>
33723         fprintftime: Move AC_LIBOBJ invocations to module description.
33724         * m4/fprintftime.m4: Remove file.
33725         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
33726         (configure.ac): Remove gl_FPRINTFTIME call.
33727         (Makefile.am): Augment lib_SOURCES.
33728         Reported by Jim Meyering.
33730 2011-06-16  Bruno Haible  <bruno@clisp.org>
33732         tmpfile-safer: Finish 2011-05-23 commit.
33733         * m4/stdio-safer.m4: Really remove file.
33734         Reported by Jim Meyering.
33736 2011-06-16  Bruno Haible  <bruno@clisp.org>
33738         syntax-check: Fix typo.
33739         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
33740         printf-posix.m4.
33741         Reported by Jim Meyering.
33743 2011-06-13  Jim Meyering  <meyering@redhat.com>
33745         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
33746         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
33748 2011-05-23  Bruno Haible  <bruno@clisp.org>
33750         yesno: Move AC_LIBOBJ invocations to module description.
33751         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
33752         * modules/yesno (Makefile.am): Augment lib_SOURCES.
33754 2011-05-23  Bruno Haible  <bruno@clisp.org>
33756         xstrtol: Move AC_LIBOBJ invocations to module description.
33757         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
33758         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
33760 2011-05-23  Bruno Haible  <bruno@clisp.org>
33762         xstrtold: Move AC_LIBOBJ invocations to module description.
33763         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
33764         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
33766 2011-05-23  Bruno Haible  <bruno@clisp.org>
33768         xstrtod: Move AC_LIBOBJ invocations to module description.
33769         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
33770         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
33772 2011-05-23  Bruno Haible  <bruno@clisp.org>
33774         xnanosleep: Move AC_LIBOBJ invocations to module description.
33775         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
33776         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
33778 2011-05-23  Bruno Haible  <bruno@clisp.org>
33780         xgetcwd: Move AC_LIBOBJ invocations to module description.
33781         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
33782         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
33784 2011-05-23  Bruno Haible  <bruno@clisp.org>
33786         xalloc: Move AC_LIBOBJ invocations to module description.
33787         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
33788         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
33790 2011-05-23  Bruno Haible  <bruno@clisp.org>
33792         write-any-file: Move AC_LIBOBJ invocations to module description.
33793         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
33794         invocation.
33795         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
33797 2011-05-23  Bruno Haible  <bruno@clisp.org>
33799         utimens: Move AC_LIBOBJ invocations to module description.
33800         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
33801         * modules/utimens (Makefile.am): Augment lib_SOURCES.
33803 2011-05-23  Bruno Haible  <bruno@clisp.org>
33805         utimecmp: Move AC_LIBOBJ invocations to module description.
33806         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
33807         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
33809 2011-05-23  Bruno Haible  <bruno@clisp.org>
33811         userspec: Move AC_LIBOBJ invocations to module description.
33812         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
33813         * modules/userspec (Makefile.am): Augment lib_SOURCES.
33815 2011-05-23  Bruno Haible  <bruno@clisp.org>
33817         unlinkdir: Move AC_LIBOBJ invocations to module description.
33818         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
33819         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
33821 2011-05-23  Bruno Haible  <bruno@clisp.org>
33823         unistd-safer: Move AC_LIBOBJ invocations to module description.
33824         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
33825         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
33827 2011-05-23  Bruno Haible  <bruno@clisp.org>
33829         tempname: Move AC_LIBOBJ invocations to module description.
33830         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
33831         * modules/tempname (Makefile.am): Augment lib_SOURCES.
33833 2011-05-23  Bruno Haible  <bruno@clisp.org>
33835         strftime: Move AC_LIBOBJ invocations to module description.
33836         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
33837         * modules/strftime (Makefile.am): Augment lib_SOURCES.
33839 2011-05-23  Bruno Haible  <bruno@clisp.org>
33841         stdlib-safer: Move AC_LIBOBJ invocations to module description.
33842         * m4/stdlib-safer.m4: Remove file.
33843         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
33844         (configure.ac): Remove gl_STDLIB_SAFER call.
33845         (Makefile.am): Augment lib_SOURCES.
33847 2011-05-23  Bruno Haible  <bruno@clisp.org>
33849         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
33850         * m4/stdio-safer.m4: Remove file.
33851         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
33852         (configure.ac): Remove gl_TMPFILE_SAFER call.
33853         (Makefile.am): Augment lib_SOURCES.
33855 2011-05-23  Bruno Haible  <bruno@clisp.org>
33857         popen-safer: Move AC_LIBOBJ invocations to module description.
33858         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
33859         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
33860         (configure.ac): Remove gl_POPEN_SAFER call.
33861         (Makefile.am): Augment lib_SOURCES.
33863 2011-05-23  Bruno Haible  <bruno@clisp.org>
33865         freopen-safer: Move AC_LIBOBJ invocations to module description.
33866         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
33867         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
33868         (configure.ac): Remove gl_FREOPEN_SAFER call.
33869         (Makefile.am): Augment lib_SOURCES.
33871 2011-05-23  Bruno Haible  <bruno@clisp.org>
33873         fopen-safer: Move AC_LIBOBJ invocations to module description.
33874         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
33875         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
33876         (configure.ac): Remove gl_FOPEN_SAFER call.
33877         (Makefile.am): Augment lib_SOURCES.
33879 2011-05-23  Bruno Haible  <bruno@clisp.org>
33881         crypto/sha512: Move AC_LIBOBJ invocations to module description.
33882         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
33883         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
33885 2011-05-23  Bruno Haible  <bruno@clisp.org>
33887         crypto/sha256: Move AC_LIBOBJ invocations to module description.
33888         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
33889         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
33891 2011-05-23  Bruno Haible  <bruno@clisp.org>
33893         crypto/sha1: Move AC_LIBOBJ invocations to module description.
33894         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
33895         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
33897 2011-05-23  Bruno Haible  <bruno@clisp.org>
33899         settime: Move AC_LIBOBJ invocations to module description.
33900         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
33901         * modules/settime (Makefile.am): Augment lib_SOURCES.
33903 2011-05-23  Bruno Haible  <bruno@clisp.org>
33905         savedir: Move AC_LIBOBJ invocations to module description.
33906         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
33907         * modules/savedir (Makefile.am): Augment lib_SOURCES.
33909 2011-05-23  Bruno Haible  <bruno@clisp.org>
33911         save-cwd: Move AC_LIBOBJ invocations to module description.
33912         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
33913         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
33915 2011-05-23  Bruno Haible  <bruno@clisp.org>
33917         same: Move AC_LIBOBJ invocations to module description.
33918         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
33919         * modules/same (Makefile.am): Augment lib_SOURCES.
33921 2011-05-23  Bruno Haible  <bruno@clisp.org>
33923         safe-write: Move AC_LIBOBJ invocations to module description.
33924         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
33925         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
33926         instead of gl_SAFE_WRITE.
33927         (Makefile.am): Augment lib_SOURCES.
33929 2011-05-23  Bruno Haible  <bruno@clisp.org>
33931         safe-read: Move AC_LIBOBJ invocations to module description.
33932         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
33933         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
33934         of gl_SAFE_READ.
33935         (Makefile.am): Augment lib_SOURCES.
33937 2011-05-23  Bruno Haible  <bruno@clisp.org>
33939         safe-alloc: Move AC_LIBOBJ invocations to module description.
33940         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
33941         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
33943 2011-05-23  Bruno Haible  <bruno@clisp.org>
33945         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
33946         * m4/rijndael.m4: Remove file.
33947         * modules/crypto/rijndael (Files): Remove it.
33948         (configure.ac): Remove gl_RIJNDAEL call.
33949         (Makefile.am): Augment lib_SOURCES.
33951 2011-05-23  Bruno Haible  <bruno@clisp.org>
33953         readtokens: Move AC_LIBOBJ invocations to module description.
33954         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
33955         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
33957 2011-05-23  Bruno Haible  <bruno@clisp.org>
33959         read-file: Move AC_LIBOBJ invocations to module description.
33960         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
33961         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
33962         of gl_FUNC_READ_FILE.
33963         (Makefile.am): Augment lib_SOURCES.
33965 2011-05-23  Bruno Haible  <bruno@clisp.org>
33967         quotearg: Move AC_LIBOBJ invocations to module description.
33968         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
33969         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
33971 2011-05-23  Bruno Haible  <bruno@clisp.org>
33973         quote: Move AC_LIBOBJ invocations to module description.
33974         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
33975         * modules/quote (Makefile.am): Augment lib_SOURCES.
33977 2011-05-23  Bruno Haible  <bruno@clisp.org>
33979         posixver: Move AC_LIBOBJ invocations to module description.
33980         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
33981         * modules/posixver (Makefile.am): Augment lib_SOURCES.
33983 2011-05-23  Bruno Haible  <bruno@clisp.org>
33985         posixtm: Move AC_LIBOBJ invocations to module description.
33986         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
33987         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
33989 2011-05-23  Bruno Haible  <bruno@clisp.org>
33991         physmem: Move AC_LIBOBJ invocations to module description.
33992         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
33993         * modules/physmem (Makefile.am): Augment lib_SOURCES.
33995 2011-05-23  Bruno Haible  <bruno@clisp.org>
33997         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
33998         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
33999         invocation.
34000         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
34002 2011-05-23  Bruno Haible  <bruno@clisp.org>
34004         mpsort: Move AC_LIBOBJ invocations to module description.
34005         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
34006         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
34008 2011-05-23  Bruno Haible  <bruno@clisp.org>
34010         modechange: Move AC_LIBOBJ invocations to module description.
34011         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
34012         * modules/modechange (Makefile.am): Augment lib_SOURCES.
34014 2011-05-23  Bruno Haible  <bruno@clisp.org>
34016         mkdir-p: Move AC_LIBOBJ invocations to module description.
34017         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
34018         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
34020 2011-05-23  Bruno Haible  <bruno@clisp.org>
34022         mkancesdirs: Move AC_LIBOBJ invocations to module description.
34023         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
34024         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
34026 2011-05-23  Bruno Haible  <bruno@clisp.org>
34028         mgetgroups: Move AC_LIBOBJ invocations to module description.
34029         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
34030         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
34032 2011-05-23  Bruno Haible  <bruno@clisp.org>
34034         memxor: Move AC_LIBOBJ invocations to module description.
34035         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
34036         * modules/memxor (Makefile.am): Augment lib_SOURCES.
34038 2011-05-23  Bruno Haible  <bruno@clisp.org>
34040         memcoll: Move AC_LIBOBJ invocations to module description.
34041         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
34042         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
34044 2011-05-23  Bruno Haible  <bruno@clisp.org>
34046         memcasecmp: Move AC_LIBOBJ invocations to module description.
34047         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
34048         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
34050 2011-05-23  Bruno Haible  <bruno@clisp.org>
34052         crypto/md5: Move AC_LIBOBJ invocations to module description.
34053         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
34054         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
34056 2011-05-23  Bruno Haible  <bruno@clisp.org>
34058         crypto/md4: Move AC_LIBOBJ invocations to module description.
34059         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
34060         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
34062 2011-05-23  Bruno Haible  <bruno@clisp.org>
34064         crypto/md2: Move AC_LIBOBJ invocations to module description.
34065         * m4/md2.m4: Remove file.
34066         * modules/crypto/md2 (Files): Remove it.
34067         (configure.ac): Remove gl_MD2 call.
34068         (Makefile.am): Augment lib_SOURCES.
34070 2011-05-23  Bruno Haible  <bruno@clisp.org>
34072         long-options: Move AC_LIBOBJ invocations to module description.
34073         * m4/long-options.m4: Remove file.
34074         * modules/long-options (Files): Remove it.
34075         (configure.ac): Remove gl_LONG_OPTIONS call.
34076         (Makefile.am): Augment lib_SOURCES.
34078 2011-05-23  Bruno Haible  <bruno@clisp.org>
34080         i-ring: Move AC_LIBOBJ invocations to module description.
34081         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
34082         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
34084 2011-05-23  Bruno Haible  <bruno@clisp.org>
34086         idcache: Move AC_LIBOBJ invocations to module description.
34087         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
34088         * modules/idcache (Makefile.am): Augment lib_SOURCES.
34090 2011-05-23  Bruno Haible  <bruno@clisp.org>
34092         human: Move AC_LIBOBJ invocations to module description.
34093         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
34094         * modules/human (Makefile.am): Augment lib_SOURCES.
34096 2011-05-23  Bruno Haible  <bruno@clisp.org>
34098         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
34099         * m4/hmac-sha1.m4: Remove file.
34100         * modules/crypto/hmac-sha1 (Files): Remove it.
34101         (configure.ac): Remove gl_HMAC_SHA1 call.
34102         (Makefile.am): Augment lib_SOURCES.
34104 2011-05-23  Bruno Haible  <bruno@clisp.org>
34106         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
34107         * m4/hmac-md5.m4: Remove file.
34108         * modules/crypto/hmac-md5 (Files): Remove it.
34109         (configure.ac): Remove gl_HMAC_MD5 call.
34110         (Makefile.am): Augment lib_SOURCES.
34112 2011-05-23  Bruno Haible  <bruno@clisp.org>
34114         hash: Move AC_LIBOBJ invocations to module description.
34115         * m4/hash.m4: Remove file.
34116         * modules/hash (Files): Remove it.
34117         (configure.ac): Remove gl_HASH call.
34118         (Makefile.am): Augment lib_SOURCES.
34120 2011-05-23  Bruno Haible  <bruno@clisp.org>
34122         hard-locale: Move AC_LIBOBJ invocations to module description.
34123         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
34124         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
34126 2011-05-23  Bruno Haible  <bruno@clisp.org>
34128         getugroups: Move AC_LIBOBJ invocations to module description.
34129         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
34130         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
34132 2011-05-23  Bruno Haible  <bruno@clisp.org>
34134         gettime: Move AC_LIBOBJ invocations to module description.
34135         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
34136         * modules/gettime (Makefile.am): Augment lib_SOURCES.
34138 2011-05-23  Bruno Haible  <bruno@clisp.org>
34140         getndelim2: Move AC_LIBOBJ invocations to module description.
34141         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
34142         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
34144 2011-05-23  Bruno Haible  <bruno@clisp.org>
34146         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
34147         * m4/gc-pbkdf2-sha1.m4: Remove file.
34148         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
34149         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
34150         (Makefile.am): Augment lib_SOURCES.
34152 2011-05-23  Bruno Haible  <bruno@clisp.org>
34154         fts: Move AC_LIBOBJ invocations to module description.
34155         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
34156         * modules/fts (configure.ac): ... to here.
34158 2011-05-23  Bruno Haible  <bruno@clisp.org>
34160         file-type: Move AC_LIBOBJ invocations to module description.
34161         * m4/file-type.m4: Remove file.
34162         * modules/file-type (Files): Remove it.
34163         (configure.ac): Remove gl_FILE_TYPE call.
34164         (Makefile.am): Augment lib_SOURCES.
34166 2011-05-23  Bruno Haible  <bruno@clisp.org>
34168         filenamecat*: Respect rules for use of AC_LIBOBJ.
34169         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
34170         Remove AC_LIBOBJ invocation.
34171         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
34172         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
34174 2011-05-23  Bruno Haible  <bruno@clisp.org>
34176         filemode: Move AC_LIBOBJ invocations to module description.
34177         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
34178         * modules/filemode (Makefile.am): Augment lib_SOURCES.
34180 2011-05-23  Bruno Haible  <bruno@clisp.org>
34182         openat-safer: Move AC_LIBOBJ invocations to module description.
34183         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
34184         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
34186 2011-05-23  Bruno Haible  <bruno@clisp.org>
34188         fcntl-safer: Move AC_LIBOBJ invocations to module description.
34189         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
34190         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
34192 2011-05-23  Bruno Haible  <bruno@clisp.org>
34194         exclude: Move AC_LIBOBJ invocations to module description.
34195         * m4/exclude.m4: Remove file.
34196         * modules/exclude (Files): Remove it.
34197         (configure.ac): Remove gl_EXCLUDE call.
34198         (Makefile.am): Augment lib_SOURCES.
34200 2011-05-23  Bruno Haible  <bruno@clisp.org>
34202         dirname*: Respect rules for use of AC_LIBOBJ.
34203         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
34204         invocations.
34205         * modules/dirname (Makefile.am): Augment lib_SOURCES.
34206         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
34208 2011-05-23  Bruno Haible  <bruno@clisp.org>
34210         dirent-safer: Move AC_LIBOBJ invocations to module description.
34211         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
34212         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
34214 2011-05-23  Bruno Haible  <bruno@clisp.org>
34216         crypto/des: Move AC_LIBOBJ invocations to module description.
34217         * m4/des.m4: Remove file.
34218         * modules/crypto/des (Files): Remove it.
34219         (configure.ac): Remove gl_DES call.
34220         (Makefile.am): Augment lib_SOURCES.
34222 2011-05-23  Bruno Haible  <bruno@clisp.org>
34224         cycle-check: Move AC_LIBOBJ invocations to module description.
34225         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
34226         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
34228 2011-05-23  Bruno Haible  <bruno@clisp.org>
34230         c-strtold: Move AC_LIBOBJ invocations to module description.
34231         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
34232         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
34234 2011-05-23  Bruno Haible  <bruno@clisp.org>
34236         c-strtod: Move AC_LIBOBJ invocations to module description.
34237         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
34238         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
34240 2011-05-23  Bruno Haible  <bruno@clisp.org>
34242         crc: Move AC_LIBOBJ invocations to module description.
34243         * m4/crc.m4: Remove file.
34244         * modules/crc (Files): Remove it.
34245         (configure.ac): Remove gl_CRC call.
34246         (Makefile.am): Augment lib_SOURCES.
34248 2011-05-23  Bruno Haible  <bruno@clisp.org>
34250         close-stream: Move AC_LIBOBJ invocations to module description.
34251         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
34252         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
34254 2011-05-23  Bruno Haible  <bruno@clisp.org>
34256         closeout: Move AC_LIBOBJ invocations to module description.
34257         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
34258         * modules/closeout (Makefile.am): Augment lib_SOURCES.
34260 2011-05-23  Bruno Haible  <bruno@clisp.org>
34262         closein: Move AC_LIBOBJ invocations to module description.
34263         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
34264         * modules/closein (Makefile.am): Augment lib_SOURCES.
34266 2011-05-23  Bruno Haible  <bruno@clisp.org>
34268         cloexec: Move AC_LIBOBJ invocations to module description.
34269         * m4/cloexec.m4: Remove file.
34270         * modules/cloexec (Files): Remove it.
34271         (configure.ac): Remove gl_CLOEXEC call.
34272         (Makefile.am): Augment lib_SOURCES.
34274 2011-05-23  Bruno Haible  <bruno@clisp.org>
34276         check-version: Move AC_LIBOBJ invocations to module description.
34277         * m4/check-version.m4: Remove file.
34278         * modules/check-version (Files): Remove it.
34279         (configure.ac): Remove gl_CHECK_VERSION call.
34280         (Makefile.am): Augment lib_SOURCES.
34282 2011-05-23  Bruno Haible  <bruno@clisp.org>
34284         chdir-safer: Move AC_LIBOBJ invocations to module description.
34285         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
34286         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
34288 2011-05-23  Bruno Haible  <bruno@clisp.org>
34290         canonicalize: Move AC_LIBOBJ invocations to module description.
34291         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
34292         AC_LIBOBJ invocation.
34293         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
34295 2011-05-23  Bruno Haible  <bruno@clisp.org>
34297         canon-host: Move AC_LIBOBJ invocations to module description.
34298         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
34299         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
34300         instead of gl_CANON_HOST.
34301         (Makefile.am): Augment lib_SOURCES.
34303 2011-05-23  Bruno Haible  <bruno@clisp.org>
34305         backupfile: Move AC_LIBOBJ invocations to module description.
34306         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
34307         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
34309 2011-05-23  Bruno Haible  <bruno@clisp.org>
34311         argmatch: Move AC_LIBOBJ invocations to module description.
34312         * m4/argmatch.m4: Remove file.
34313         * modules/argmatch (Files): Remove it.
34314         (configure.ac): Remove gl_ARGMATCH call.
34315         (Makefile.am): Augment lib_SOURCES.
34317 2011-05-23  Bruno Haible  <bruno@clisp.org>
34319         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
34320         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
34321         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
34323 2011-05-23  Bruno Haible  <bruno@clisp.org>
34325         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
34326         * m4/arcfour.m4: Remove file.
34327         * modules/crypto/arcfour (Files): Remove it.
34328         (configure.ac): Remove gl_ARCFOUR call.
34329         (Makefile.am): Augment lib_SOURCES.
34331 2011-05-22  Bruno Haible  <bruno@clisp.org>
34333         write: Move AC_LIBOBJ invocations to module description.
34334         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
34335         * modules/write (configure.ac): ... to here.
34337 2011-05-22  Bruno Haible  <bruno@clisp.org>
34339         wmemset: Move AC_LIBOBJ invocations to module description.
34340         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
34341         here...
34342         * modules/wmemset (configure.ac): ... to here.
34344 2011-05-22  Bruno Haible  <bruno@clisp.org>
34346         wmemmove: Move AC_LIBOBJ invocations to module description.
34347         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
34348         here...
34349         * modules/wmemmove (configure.ac): ... to here.
34351 2011-05-22  Bruno Haible  <bruno@clisp.org>
34353         wmemcpy: Move AC_LIBOBJ invocations to module description.
34354         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
34355         here...
34356         * modules/wmemcpy (configure.ac): ... to here.
34358 2011-05-22  Bruno Haible  <bruno@clisp.org>
34360         wmemcmp: Move AC_LIBOBJ invocations to module description.
34361         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
34362         here...
34363         * modules/wmemcmp (configure.ac): ... to here.
34365 2011-05-22  Bruno Haible  <bruno@clisp.org>
34367         wmemchr: Move AC_LIBOBJ invocations to module description.
34368         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
34369         here...
34370         * modules/wmemchr (configure.ac): ... to here.
34372 2011-05-22  Bruno Haible  <bruno@clisp.org>
34374         wcswidth: Move AC_LIBOBJ invocations to module description.
34375         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
34376         here...
34377         * modules/wcswidth (configure.ac): ... to here.
34379 2011-05-22  Bruno Haible  <bruno@clisp.org>
34381         wcwidth: Respect rules for use of AC_LIBOBJ.
34382         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
34383         invocation from here...
34384         * modules/wcwidth (configure.ac): ... to here.
34385         (Depends-on): Update conditions.
34387 2011-05-22  Bruno Haible  <bruno@clisp.org>
34389         wctype: Move AC_LIBOBJ invocations to module description.
34390         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
34391         invocation from here...
34392         * modules/wctype (configure.ac): ... to here.
34393         (Depends-on): Update conditions.
34395 2011-05-22  Bruno Haible  <bruno@clisp.org>
34397         wctrans: Move AC_LIBOBJ invocations to module description.
34398         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
34399         invocation from here...
34400         * modules/wctrans (configure.ac): ... to here.
34402 2011-05-22  Bruno Haible  <bruno@clisp.org>
34404         wctomb: Move AC_LIBOBJ invocations to module description.
34405         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
34406         invocations from here...
34407         * modules/wctomb (configure.ac): ... to here.
34409 2011-05-22  Bruno Haible  <bruno@clisp.org>
34411         wctob: Move AC_LIBOBJ invocations to module description.
34412         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
34413         gl_PREREQ_WCTOB invocations from here...
34414         * modules/wctob (configure.ac): ... to here.
34415         (Depends-on): Update conditions.
34417 2011-05-22  Bruno Haible  <bruno@clisp.org>
34419         wcsxfrm: Move AC_LIBOBJ invocations to module description.
34420         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
34421         here...
34422         * modules/wcsxfrm (configure.ac): ... to here.
34424 2011-05-22  Bruno Haible  <bruno@clisp.org>
34426         wcstok: Move AC_LIBOBJ invocations to module description.
34427         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
34428         * modules/wcstok (configure.ac): ... to here.
34430 2011-05-22  Bruno Haible  <bruno@clisp.org>
34432         wcsstr: Move AC_LIBOBJ invocations to module description.
34433         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
34434         * modules/wcsstr (configure.ac): ... to here.
34436 2011-05-22  Bruno Haible  <bruno@clisp.org>
34438         wcsspn: Move AC_LIBOBJ invocations to module description.
34439         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
34440         * modules/wcsspn (configure.ac): ... to here.
34442 2011-05-22  Bruno Haible  <bruno@clisp.org>
34444         wcsrtombs: Move AC_LIBOBJ invocations to module description.
34445         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
34446         gl_PREREQ_WCSRTOMBS invocations from here...
34447         * modules/wcsrtombs (configure.ac): ... to here.
34449 2011-05-22  Bruno Haible  <bruno@clisp.org>
34451         wcsrchr: Move AC_LIBOBJ invocations to module description.
34452         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
34453         here...
34454         * modules/wcsrchr (configure.ac): ... to here.
34456 2011-05-22  Bruno Haible  <bruno@clisp.org>
34458         wcspbrk: Move AC_LIBOBJ invocations to module description.
34459         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
34460         here...
34461         * modules/wcspbrk (configure.ac): ... to here.
34463 2011-05-22  Bruno Haible  <bruno@clisp.org>
34465         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
34466         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
34467         gl_PREREQ_WCSNRTOMBS invocations from here...
34468         * modules/wcsnrtombs (configure.ac): ... to here.
34470 2011-05-22  Bruno Haible  <bruno@clisp.org>
34472         wcsnlen: Move AC_LIBOBJ invocations to module description.
34473         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
34474         here...
34475         * modules/wcsnlen (configure.ac): ... to here.
34477 2011-05-22  Bruno Haible  <bruno@clisp.org>
34479         wcsncpy: Move AC_LIBOBJ invocations to module description.
34480         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
34481         here...
34482         * modules/wcsncpy (configure.ac): ... to here.
34484 2011-05-22  Bruno Haible  <bruno@clisp.org>
34486         wcsncmp: Move AC_LIBOBJ invocations to module description.
34487         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
34488         here...
34489         * modules/wcsncmp (configure.ac): ... to here.
34491 2011-05-22  Bruno Haible  <bruno@clisp.org>
34493         wcsncat: Move AC_LIBOBJ invocations to module description.
34494         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
34495         here...
34496         * modules/wcsncat (configure.ac): ... to here.
34498 2011-05-22  Bruno Haible  <bruno@clisp.org>
34500         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
34501         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
34502         from here...
34503         * modules/wcsncasecmp (configure.ac): ... to here.
34505 2011-05-22  Bruno Haible  <bruno@clisp.org>
34507         wcslen: Move AC_LIBOBJ invocations to module description.
34508         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
34509         * modules/wcslen (configure.ac): ... to here.
34511 2011-05-22  Bruno Haible  <bruno@clisp.org>
34513         wcsdup: Move AC_LIBOBJ invocations to module description.
34514         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
34515         * modules/wcsdup (configure.ac): ... to here.
34517 2011-05-22  Bruno Haible  <bruno@clisp.org>
34519         wcscspn: Move AC_LIBOBJ invocations to module description.
34520         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
34521         here...
34522         * modules/wcscspn (configure.ac): ... to here.
34524 2011-05-22  Bruno Haible  <bruno@clisp.org>
34526         wcscpy: Move AC_LIBOBJ invocations to module description.
34527         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
34528         * modules/wcscpy (configure.ac): ... to here.
34530 2011-05-22  Bruno Haible  <bruno@clisp.org>
34532         wcscoll: Move AC_LIBOBJ invocations to module description.
34533         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
34534         here...
34535         * modules/wcscoll (configure.ac): ... to here.
34537 2011-05-22  Bruno Haible  <bruno@clisp.org>
34539         wcscmp: Move AC_LIBOBJ invocations to module description.
34540         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
34541         * modules/wcscmp (configure.ac): ... to here.
34543 2011-05-22  Bruno Haible  <bruno@clisp.org>
34545         wcschr: Move AC_LIBOBJ invocations to module description.
34546         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
34547         * modules/wcschr (configure.ac): ... to here.
34549 2011-05-22  Bruno Haible  <bruno@clisp.org>
34551         wcscat: Move AC_LIBOBJ invocations to module description.
34552         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
34553         * modules/wcscat (configure.ac): ... to here.
34555 2011-05-22  Bruno Haible  <bruno@clisp.org>
34557         wcscasecmp: Move AC_LIBOBJ invocations to module description.
34558         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
34559         here...
34560         * modules/wcscasecmp (configure.ac): ... to here.
34562 2011-05-22  Bruno Haible  <bruno@clisp.org>
34564         wcrtomb: Move AC_LIBOBJ invocations to module description.
34565         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
34566         invocations from here...
34567         * modules/wcrtomb (configure.ac): ... to here.
34569 2011-05-22  Bruno Haible  <bruno@clisp.org>
34571         wcpncpy: Move AC_LIBOBJ invocations to module description.
34572         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
34573         here...
34574         * modules/wcpncpy (configure.ac): ... to here.
34576 2011-05-22  Bruno Haible  <bruno@clisp.org>
34578         wcpcpy: Move AC_LIBOBJ invocations to module description.
34579         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
34580         * modules/wcpcpy (configure.ac): ... to here.
34582 2011-05-22  Bruno Haible  <bruno@clisp.org>
34584         waitpid: Move AC_LIBOBJ invocations to module description.
34585         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
34586         invocation from here...
34587         * modules/waitpid (configure.ac): ... to here.
34589 2011-05-22  Bruno Haible  <bruno@clisp.org>
34591         utimensat: Move AC_LIBOBJ invocations to module description.
34592         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
34593         here...
34594         * modules/utimensat (configure.ac): ... to here.
34596 2011-05-22  Bruno Haible  <bruno@clisp.org>
34598         usleep: Move AC_LIBOBJ invocations to module description.
34599         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
34600         here...
34601         * modules/usleep (configure.ac): ... to here.
34603 2011-05-22  Bruno Haible  <bruno@clisp.org>
34605         unlockpt: Move AC_LIBOBJ invocations to module description.
34606         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
34607         gl_PREREQ_UNLOCKPT invocations from here...
34608         * modules/unlockpt (configure.ac): ... to here.
34610 2011-05-22  Bruno Haible  <bruno@clisp.org>
34612         unlink: Respect rules for use of AC_LIBOBJ.
34613         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
34614         * modules/unlink (configure.ac): ... to here.
34616 2011-05-22  Bruno Haible  <bruno@clisp.org>
34618         uname: Move AC_LIBOBJ invocations to module description.
34619         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
34620         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
34621         here...
34622         * modules/uname (configure.ac): ... to here.
34624 2011-05-22  Bruno Haible  <bruno@clisp.org>
34626         ttyname_r: Move AC_LIBOBJ invocations to module description.
34627         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
34628         gl_PREREQ_TTYNAME_R invocations from here...
34629         * modules/ttyname_r (configure.ac): ... to here.
34631 2011-05-22  Bruno Haible  <bruno@clisp.org>
34633         tsearch: Move AC_LIBOBJ invocations to module description.
34634         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
34635         invocations from here...
34636         * modules/tsearch (configure.ac): ... to here.
34638 2011-05-22  Bruno Haible  <bruno@clisp.org>
34640         towctrans: Move AC_LIBOBJ invocations to module description.
34641         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
34642         AC_LIBOBJ invocation from here...
34643         * modules/towctrans (configure.ac): ... to here.
34645 2011-05-22  Bruno Haible  <bruno@clisp.org>
34647         tmpfile: Move AC_LIBOBJ invocations to module description.
34648         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
34649         invocations from here...
34650         * modules/tmpfile (configure.ac): ... to here.
34652 2011-05-22  Bruno Haible  <bruno@clisp.org>
34654         times: Move AC_LIBOBJ invocations to module description.
34655         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
34656         * modules/times (configure.ac): ... to here.
34658 2011-05-22  Bruno Haible  <bruno@clisp.org>
34660         time_r: Move AC_LIBOBJ invocations to module description.
34661         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
34662         invocations from here...
34663         * modules/time_r (configure.ac): ... to here.
34665 2011-05-22  Bruno Haible  <bruno@clisp.org>
34667         timegm: Move AC_LIBOBJ invocations to module description.
34668         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
34669         invocations from here...
34670         * modules/timegm (configure.ac): ... to here.
34672 2011-05-22  Bruno Haible  <bruno@clisp.org>
34674         tcgetsid: Move AC_LIBOBJ invocations to module description.
34675         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
34676         and gl_PREREQ_TCGETSID invocations from here...
34677         * modules/tcgetsid (configure.ac): ... to here.
34678         (Depends-on): Update conditions.
34680 2011-05-22  Bruno Haible  <bruno@clisp.org>
34682         symlinkat: Move AC_LIBOBJ invocations to module description.
34683         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
34684         here...
34685         * modules/symlinkat (configure.ac): ... to here.
34687 2011-05-22  Bruno Haible  <bruno@clisp.org>
34689         symlink: Move AC_LIBOBJ invocations to module description.
34690         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
34691         here...
34692         * modules/symlink (configure.ac): ... to here.
34694 2011-05-22  Bruno Haible  <bruno@clisp.org>
34696         strverscmp: Move AC_LIBOBJ invocations to module description.
34697         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
34698         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
34699         from here...
34700         * modules/strverscmp (configure.ac): ... to here.
34702 2011-05-22  Bruno Haible  <bruno@clisp.org>
34704         strtok_r: Move AC_LIBOBJ invocations to module description.
34705         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
34706         and gl_PREREQ_STRTOK_R invocations from here...
34707         * modules/strtok_r (configure.ac): ... to here.
34708         (Depends-on): Update conditions.
34710 2011-05-22  Bruno Haible  <bruno@clisp.org>
34712         strtoumax: Move AC_LIBOBJ invocations to module description.
34713         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
34714         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
34715         from here...
34716         * modules/strtoumax (configure.ac): ... to here.
34718 2011-05-22  Bruno Haible  <bruno@clisp.org>
34720         strtoimax: Move AC_LIBOBJ invocations to module description.
34721         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
34722         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
34723         from here...
34724         * modules/strtoimax (configure.ac): ... to here.
34726 2011-05-22  Bruno Haible  <bruno@clisp.org>
34728         strtoull: Move AC_LIBOBJ invocations to module description.
34729         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
34730         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
34731         from here...
34732         * modules/strtoull (configure.ac): ... to here.
34734 2011-05-22  Bruno Haible  <bruno@clisp.org>
34736         strtoll: Move AC_LIBOBJ invocations to module description.
34737         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
34738         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
34739         here...
34740         * modules/strtoll (configure.ac): ... to here.
34742 2011-05-22  Bruno Haible  <bruno@clisp.org>
34744         strtoul: Move AC_LIBOBJ invocations to module description.
34745         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
34746         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
34747         * modules/strtoul (configure.ac): ... to here.
34749 2011-05-22  Bruno Haible  <bruno@clisp.org>
34751         strtol: Move AC_LIBOBJ invocations to module description.
34752         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
34753         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
34754         * modules/strtol (configure.ac): ... to here.
34756 2011-05-22  Bruno Haible  <bruno@clisp.org>
34758         strtod: Move AC_LIBOBJ invocations to module description.
34759         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
34760         invocations from here...
34761         * modules/strtod (configure.ac): ... to here.
34763 2011-05-22  Bruno Haible  <bruno@clisp.org>
34765         strstr*: Move AC_LIBOBJ invocations to module description.
34766         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
34767         invocations from here...
34768         * modules/strstr-simple (configure.ac): ... to here.
34769         * modules/strstr (configure.ac): ... and here.
34771 2011-05-22  Bruno Haible  <bruno@clisp.org>
34773         strsignal: Move AC_LIBOBJ invocations to module description.
34774         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
34775         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
34776         * modules/strsignal (configure.ac): ... to here.
34777         (Depends-on): Update conditions.
34779 2011-05-22  Bruno Haible  <bruno@clisp.org>
34781         strsep: Move AC_LIBOBJ invocations to module description.
34782         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
34783         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
34784         here...
34785         * modules/strsep (configure.ac): ... to here.
34787 2011-05-22  Bruno Haible  <bruno@clisp.org>
34789         strptime: Move AC_LIBOBJ invocations to module description.
34790         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
34791         gl_PREREQ_STRPTIME invocations from here...
34792         * modules/strptime (configure.ac): ... to here.
34794 2011-05-22  Bruno Haible  <bruno@clisp.org>
34796         strpbrk: Move AC_LIBOBJ invocations to module description.
34797         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
34798         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
34799         here...
34800         * modules/strpbrk (configure.ac): ... to here.
34802 2011-05-22  Bruno Haible  <bruno@clisp.org>
34804         strnlen: Move AC_LIBOBJ invocations to module description.
34805         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
34806         invocations from here...
34807         * modules/strnlen (configure.ac): ... to here.
34809 2011-05-22  Bruno Haible  <bruno@clisp.org>
34811         strndup: Move AC_LIBOBJ invocations to module description.
34812         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
34813         invocations from here...
34814         * modules/strndup (configure.ac): ... to here.
34815         (Depends-on): Update conditions.
34817 2011-05-22  Bruno Haible  <bruno@clisp.org>
34819         strncat: Move AC_LIBOBJ invocations to module description.
34820         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
34821         invocations from here...
34822         * modules/strncat (configure.ac): ... to here.
34824 2011-05-22  Bruno Haible  <bruno@clisp.org>
34826         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
34827         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
34828         invocations from here...
34829         * modules/strdup (configure.ac): ... to here.
34830         * modules/strdup-posix (configure.ac): ... and here.
34832 2011-05-22  Bruno Haible  <bruno@clisp.org>
34834         strcspn: Move AC_LIBOBJ invocations to module description.
34835         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
34836         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
34837         here...
34838         * modules/strcspn (configure.ac): ... to here.
34840 2011-05-22  Bruno Haible  <bruno@clisp.org>
34842         strchrnul: Move AC_LIBOBJ invocations to module description.
34843         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
34844         gl_PREREQ_STRCHRNUL invocations from here...
34845         * modules/strchrnul (configure.ac): ... to here.
34847 2011-05-22  Bruno Haible  <bruno@clisp.org>
34849         strcasestr*: Move AC_LIBOBJ invocations to module description.
34850         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
34851         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
34852         * modules/strcasestr-simple (configure.ac): ... to here.
34853         * modules/strcasestr (configure.ac): ... and here.
34855 2011-05-22  Bruno Haible  <bruno@clisp.org>
34857         strcase: Move AC_LIBOBJ invocations to module description.
34858         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
34859         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
34860         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
34861         gl_PREREQ_STRNCASECMP invocations from here...
34862         * modules/strcase (configure.ac): ... to here.
34864 2011-05-22  Bruno Haible  <bruno@clisp.org>
34866         stpncpy: Move AC_LIBOBJ invocations to module description.
34867         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
34868         here...
34869         * modules/stpncpy (configure.ac): ... to here.
34871 2011-05-22  Bruno Haible  <bruno@clisp.org>
34873         stpcpy: Move AC_LIBOBJ invocations to module description.
34874         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
34875         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
34876         here...
34877         * modules/stpcpy (configure.ac): ... to here.
34879 2011-05-21  Bruno Haible  <bruno@clisp.org>
34881         stat: Move AC_LIBOBJ invocations to module description.
34882         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
34883         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
34884         here...
34885         * modules/stat (configure.ac): ... to here.
34887 2011-05-21  Bruno Haible  <bruno@clisp.org>
34889         sleep: Move AC_LIBOBJ invocations to module description.
34890         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
34891         * modules/sleep (configure.ac): ... to here.
34893 2011-05-21  Bruno Haible  <bruno@clisp.org>
34895         signbit: Move AC_LIBOBJ invocations to module description.
34896         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
34897         * modules/signbit (configure.ac): ... to here.
34899 2011-05-21  Bruno Haible  <bruno@clisp.org>
34901         sigprocmask: Move AC_LIBOBJ invocations to module description.
34902         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
34903         gl_PREREQ_SIGPROMASK invocations from here...
34904         * modules/sigprocmask (configure.ac): ... to here.
34906 2011-05-21  Bruno Haible  <bruno@clisp.org>
34908         sigaction: Move AC_LIBOBJ invocations to module description.
34909         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
34910         gl_PREREQ_SIGACTION invocations from here...
34911         * modules/sigaction (configure.ac): ... to here.
34913 2011-05-21  Bruno Haible  <bruno@clisp.org>
34915         sig2str: Move AC_LIBOBJ invocations to module description.
34916         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
34917         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
34918         here...
34919         * modules/sig2str (configure.ac): ... to here.
34921 2011-05-21  Bruno Haible  <bruno@clisp.org>
34923         setlocale: Move AC_LIBOBJ invocations to module description.
34924         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
34925         gl_PREREQ_SETLOCALE invocations from here...
34926         * modules/setlocale (configure.ac): ... to here.
34928 2011-05-21  Bruno Haible  <bruno@clisp.org>
34930         unsetenv: Move AC_LIBOBJ invocations to module description.
34931         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
34932         and gl_PREREQ_UNSETENV invocations from here...
34933         * modules/unsetenv (configure.ac): ... to here.
34934         (Depends-on): Update.
34936 2011-05-21  Bruno Haible  <bruno@clisp.org>
34938         setenv: Move AC_LIBOBJ invocations to module description.
34939         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
34940         here...
34941         * modules/setenv (configure.ac): ... to here.
34943 2011-05-21  Bruno Haible  <bruno@clisp.org>
34945         selinux-h: Move AC_LIBOBJ invocations to module description.
34946         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
34947         AC_LIBOBJ invocation from here...
34948         * modules/selinux-h (configure.ac): ... to here.
34950 2011-05-21  Bruno Haible  <bruno@clisp.org>
34952         select: Respect rules for use of AC_LIBOBJ.
34953         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
34954         here...
34955         * modules/select (configure.ac): ... to here.
34957 2011-05-21  Bruno Haible  <bruno@clisp.org>
34959         scandir: Move AC_LIBOBJ invocations to module description.
34960         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
34961         invocations from here...
34962         * modules/scandir (configure.ac): ... to here.
34964 2011-05-21  Bruno Haible  <bruno@clisp.org>
34966         rpmatch: Move AC_LIBOBJ invocations to module description.
34967         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
34968         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
34969         here...
34970         * modules/rpmatch (configure.ac): ... to here.
34972 2011-05-21  Bruno Haible  <bruno@clisp.org>
34974         rmdir: Respect rules for use of AC_LIBOBJ.
34975         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
34976         * modules/rmdir (configure.ac): ... to here.
34978 2011-05-21  Bruno Haible  <bruno@clisp.org>
34980         renameat: Move AC_LIBOBJ invocations to module description.
34981         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
34982         here...
34983         * modules/renameat (configure.ac): ... to here.
34985 2011-05-21  Bruno Haible  <bruno@clisp.org>
34987         rename: Respect rules for use of AC_LIBOBJ.
34988         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
34989         here...
34990         * modules/rename (configure.ac): ... to here.
34992 2011-05-21  Bruno Haible  <bruno@clisp.org>
34994         remove: Move AC_LIBOBJ invocations to module description.
34995         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
34996         here...
34997         * modules/remove (configure.ac): ... to here.
34999 2011-05-21  Bruno Haible  <bruno@clisp.org>
35001         relocatable-lib: Move AC_LIBOBJ invocations to module description.
35002         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
35003         macro.
35004         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
35005         * modules/relocatable-lib (configure.ac): ... to here.
35006         * modules/relocatable-prog-wrapper (configure.ac): Invoke
35007         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
35009 2011-05-21  Bruno Haible  <bruno@clisp.org>
35011         relocatable-prog: Move AC_LIBOBJ invocations to module description.
35012         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
35013         here...
35014         * modules/relocatable-prog (configure.ac): ... to here.
35016 2011-05-21  Bruno Haible  <bruno@clisp.org>
35018         regex: Move AC_LIBOBJ invocations to module description.
35019         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
35020         invocations from here...
35021         * modules/regex (configure.ac): ... to here.
35023 2011-05-21  Bruno Haible  <bruno@clisp.org>
35025         realloc-*: Move AC_LIBOBJ invocations to module description.
35026         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
35027         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
35028         AC_LIBOBJ invocations from here...
35029         * modules/realloc-gnu (configure.ac): ... to here.
35030         * modules/realloc-posix (configure.ac): ... and here.
35032 2011-05-21  Bruno Haible  <bruno@clisp.org>
35034         readutmp: Move AC_LIBOBJ invocations to module description.
35035         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
35036         * modules/readutmp (configure.ac): ... to here.
35038 2011-05-21  Bruno Haible  <bruno@clisp.org>
35040         readlinkat: Move AC_LIBOBJ invocations to module description.
35041         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
35042         here...
35043         * modules/readlinkat (configure.ac): ... to here.
35045 2011-05-21  Bruno Haible  <bruno@clisp.org>
35047         readlink: Move AC_LIBOBJ invocations to module description.
35048         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
35049         gl_PREREQ_READLINK invocations from here...
35050         * modules/readlink (configure.ac): ... to here.
35052 2011-05-21  Bruno Haible  <bruno@clisp.org>
35054         readline: Move AC_LIBOBJ invocations to module description.
35055         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
35056         gl_PREREQ_READLINE invocations from here...
35057         * modules/readline (configure.ac): ... to here.
35059 2011-05-21  Bruno Haible  <bruno@clisp.org>
35061         read: Move AC_LIBOBJ invocations to module description.
35062         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
35063         * modules/read (configure.ac): ... to here.
35065 2011-05-21  Bruno Haible  <bruno@clisp.org>
35067         rawmemchr: Move AC_LIBOBJ invocations to module description.
35068         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
35069         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
35070         from here...
35071         * modules/rawmemchr (configure.ac): ... to here.
35073 2011-05-21  Bruno Haible  <bruno@clisp.org>
35075         random_r: Move AC_LIBOBJ invocations to module description.
35076         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
35077         gl_PREREQ_RANDOM_R invocations from here...
35078         * modules/random_r (configure.ac): ... to here.
35080 2011-05-21  Bruno Haible  <bruno@clisp.org>
35082         pwrite: Move AC_LIBOBJ invocations to module description.
35083         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
35084         * modules/pwrite (configure.ac): ... to here.
35086 2011-05-21  Bruno Haible  <bruno@clisp.org>
35088         putenv: Move AC_LIBOBJ invocations to module description.
35089         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
35090         * modules/putenv (configure.ac): ... to here.
35092 2011-05-21  Bruno Haible  <bruno@clisp.org>
35094         login_tty: Move AC_LIBOBJ invocations to module description.
35095         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
35096         * modules/login_tty (configure.ac): ... to here.
35098 2011-05-21  Bruno Haible  <bruno@clisp.org>
35100         openpty: Move AC_LIBOBJ invocations to module description.
35101         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
35102         * modules/openpty (configure.ac): ... to here.
35104 2011-05-21  Bruno Haible  <bruno@clisp.org>
35106         forkpty: Move AC_LIBOBJ invocations to module description.
35107         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
35108         * modules/forkpty (configure.ac): ... to here.
35110 2011-05-21  Bruno Haible  <bruno@clisp.org>
35112         ptsname: Move AC_LIBOBJ invocations to module description.
35113         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
35114         invocations from here...
35115         * modules/ptsname (configure.ac): ... to here.
35117 2011-05-21  Bruno Haible  <bruno@clisp.org>
35119         pread: Move AC_LIBOBJ invocations to module description.
35120         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
35121         * modules/pread (configure.ac): ... to here.
35123 2011-05-21  Bruno Haible  <bruno@clisp.org>
35125         posix_spawn*: Move AC_LIBOBJ invocations to module description.
35126         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
35127         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
35128         * modules/posix_spawn (configure.ac): ... to here.
35129         * modules/posix_spawnp (configure.ac): ... and here.
35131 2011-05-21  Bruno Haible  <bruno@clisp.org>
35133         popen: Move AC_LIBOBJ invocations to module description.
35134         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
35135         invocations from here...
35136         * modules/popen (configure.ac): ... to here.
35138 2011-05-21  Bruno Haible  <bruno@clisp.org>
35140         poll: Move AC_LIBOBJ invocations to module description.
35141         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
35142         invocations from here...
35143         * modules/poll (configure.ac): ... to here.
35145 2011-05-21  Bruno Haible  <bruno@clisp.org>
35147         pipe-posix: Move AC_LIBOBJ invocations to module description.
35148         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
35149         * modules/pipe-posix (configure.ac): ... to here.
35151 2011-05-21  Bruno Haible  <bruno@clisp.org>
35153         openat: Respect rules for use of AC_LIBOBJ.
35154         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
35155         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
35156         * modules/openat (configure.ac): ... to here.
35158 2011-05-21  Bruno Haible  <bruno@clisp.org>
35160         obstack-printf*: Move AC_LIBOBJ invocations to module description.
35161         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
35162         invocation from here...
35163         * modules/obstack-printf (configure.ac): ... to here.
35164         * modules/obstack-printf-posix (configure.ac): ... and here.
35166 2011-05-21  Bruno Haible  <bruno@clisp.org>
35168         nl_langinfo: Move AC_LIBOBJ invocations to module description.
35169         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
35170         from here...
35171         * modules/nl_langinfo (configure.ac): ... to here.
35173 2011-05-21  Bruno Haible  <bruno@clisp.org>
35175         nanosleep: Move AC_LIBOBJ invocations to module description.
35176         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
35177         gl_PREREQ_NANOSLEEP invocations from here...
35178         * modules/nanosleep (configure.ac): ... to here.
35180 2011-05-21  Bruno Haible  <bruno@clisp.org>
35182         mountlist: Move AC_LIBOBJ invocations to module description.
35183         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
35184         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
35185         * modules/mountlist (configure.ac): ... to here.
35187 2011-05-21  Bruno Haible  <bruno@clisp.org>
35189         mktime: Respect rules for use of AC_LIBOBJ.
35190         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
35191         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
35192         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
35193         (gl_FUNC_MKTIME_INTERNAL): ... and here...
35194         * modules/mktime (configure.ac): ... to here.
35195         * modules/mktime-internal (configure.ac): ... and here.
35196         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
35198 2011-05-21  Bruno Haible  <bruno@clisp.org>
35200         mkstemps: Move AC_LIBOBJ invocations to module description.
35201         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
35202         here...
35203         * modules/mkstemps (configure.ac): ... to here.
35205 2011-05-21  Bruno Haible  <bruno@clisp.org>
35207         mkstemp: Move AC_LIBOBJ invocations to module description.
35208         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
35209         gl_PREREQ_MKSTEMP invocations from here...
35210         * modules/mkstemp (configure.ac): ... to here.
35212 2011-05-21  Bruno Haible  <bruno@clisp.org>
35214         mkostemps: Move AC_LIBOBJ invocations to module description.
35215         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
35216         here...
35217         * modules/mkostemps (configure.ac): ... to here.
35219 2011-05-21  Bruno Haible  <bruno@clisp.org>
35221         mkostemp: Move AC_LIBOBJ invocations to module description.
35222         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
35223         gl_PREREQ_MKOSTEMP invocations from here...
35224         * modules/mkostemp (configure.ac): ... to here.
35226 2011-05-21  Bruno Haible  <bruno@clisp.org>
35228         mknod: Move AC_LIBOBJ invocations to module description.
35229         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
35230         * modules/mknod (configure.ac): ... to here.
35232 2011-05-21  Bruno Haible  <bruno@clisp.org>
35234         mkfifoat: Move AC_LIBOBJ invocations to module description.
35235         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
35236         here...
35237         * modules/mkfifoat (configure.ac): ... to here.
35239 2011-05-21  Bruno Haible  <bruno@clisp.org>
35241         mkfifo: Respect rules for use of AC_LIBOBJ.
35242         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
35243         here...
35244         * modules/mkfifo (configure.ac): ... to here.
35246 2011-05-21  Bruno Haible  <bruno@clisp.org>
35248         mkdtemp: Move AC_LIBOBJ invocations to module description.
35249         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
35250         invocations from here...
35251         * modules/mkdtemp (configure.ac): ... to here.
35253 2011-05-21  Bruno Haible  <bruno@clisp.org>
35255         mkdir: Move AC_LIBOBJ invocations to module description.
35256         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
35257         * modules/mkdir (configure.ac): ... to here.
35259 2011-05-21  Bruno Haible  <bruno@clisp.org>
35261         memset: Move AC_LIBOBJ invocations to module description.
35262         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
35263         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
35264         here...
35265         * modules/memset (configure.ac): ... to here.
35267 2011-05-21  Bruno Haible  <bruno@clisp.org>
35269         memrchr: Move AC_LIBOBJ invocations to module description.
35270         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
35271         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
35272         here...
35273         * modules/memrchr (configure.ac): ... to here.
35275 2011-05-21  Bruno Haible  <bruno@clisp.org>
35277         mempcpy: Move AC_LIBOBJ invocations to module description.
35278         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
35279         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
35280         here...
35281         * modules/mempcpy (configure.ac): ... to here.
35283 2011-05-21  Bruno Haible  <bruno@clisp.org>
35285         memmove: Move AC_LIBOBJ invocations to module description.
35286         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
35287         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
35288         here...
35289         * modules/memmove (configure.ac): ... to here.
35291 2011-05-21  Bruno Haible  <bruno@clisp.org>
35293         memmem*: Move AC_LIBOBJ invocations to module description.
35294         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
35295         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
35296         here...
35297         (gl_FUNC_MEMMEM): ... and here...
35298         * modules/memmem-simple (configure.ac): ... to here.
35299         * modules/memmem (configure.ac): ... and here.
35301 2011-05-21  Bruno Haible  <bruno@clisp.org>
35303         memcpy: Move AC_LIBOBJ invocations to module description.
35304         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
35305         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
35306         here...
35307         * modules/memcpy (configure.ac): ... to here.
35309 2011-05-21  Bruno Haible  <bruno@clisp.org>
35311         memcmp: Simplify autoconf macro.
35312         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
35313         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
35314         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
35316 2011-05-21  Bruno Haible  <bruno@clisp.org>
35318         memcmp: Move AC_LIBOBJ invocations to module description.
35319         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
35320         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
35321         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
35322         * modules/memcmp (configure.ac): ... to here.
35323         (Depends-on): Update conditions.
35325 2011-05-21  Bruno Haible  <bruno@clisp.org>
35327         memchr: Respect rules for use of AC_LIBOBJ.
35328         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
35329         invocations from here...
35330         * modules/memchr (configure.ac): ... to here.
35332 2011-05-21  Bruno Haible  <bruno@clisp.org>
35334         mbtowc: Move AC_LIBOBJ invocations to module description.
35335         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
35336         invocations from here...
35337         * modules/mbtowc (configure.ac): ... to here.
35339 2011-05-21  Bruno Haible  <bruno@clisp.org>
35341         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
35342         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
35343         gl_PREREQ_MBSRTOWCS invocations from here...
35344         * modules/mbsrtowcs (configure.ac): ... to here.
35346 2011-05-21  Bruno Haible  <bruno@clisp.org>
35348         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
35349         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
35350         gl_PREREQ_MBSNRTOWCS invocations from here...
35351         * modules/mbsnrtowcs (configure.ac): ... to here.
35353 2011-05-21  Bruno Haible  <bruno@clisp.org>
35355         mbsinit: Move AC_LIBOBJ invocations to module description.
35356         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
35357         invocations from here...
35358         * modules/mbsinit (configure.ac): ... to here.
35360 2011-05-21  Bruno Haible  <bruno@clisp.org>
35362         mbrlen: Move AC_LIBOBJ invocations to module description.
35363         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
35364         invocations from here...
35365         * modules/mbrlen (configure.ac): ... to here.
35367 2011-05-21  Bruno Haible  <bruno@clisp.org>
35369         mbrtowc: Respect rules for use of AC_LIBOBJ.
35370         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
35371         invocations from here...
35372         * modules/mbrtowc (configure.ac): ... to here.
35374 2011-05-21  Bruno Haible  <bruno@clisp.org>
35376         malloc-*: Move AC_LIBOBJ invocations to module description.
35377         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
35378         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
35379         AC_LIBOBJ invocations from here...
35380         * modules/malloc-gnu (configure.ac): ... to here.
35381         * modules/malloc-posix (configure.ac): ... and here.
35383 2011-05-21  Bruno Haible  <bruno@clisp.org>
35385         lstat, openat: Respect rules for use of AC_LIBOBJ.
35386         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
35387         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
35388         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
35389         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
35390         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
35391         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
35392         here.
35393         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
35395 2011-05-21  Bruno Haible  <bruno@clisp.org>
35397         lseek: Move AC_LIBOBJ invocations to module description.
35398         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
35399         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
35400         * modules/lseek (configure.ac): ... to here.
35402 2011-05-21  Bruno Haible  <bruno@clisp.org>
35404         linkat: Move AC_LIBOBJ invocations to module description.
35405         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
35406         here...
35407         * modules/linkat (configure.ac): ... to here.
35409 2011-05-21  Bruno Haible  <bruno@clisp.org>
35411         link: Respect rules for use of AC_LIBOBJ.
35412         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
35413         * modules/link (configure.ac): ... to here.
35415 2011-05-21  Bruno Haible  <bruno@clisp.org>
35417         lchown: Move AC_LIBOBJ invocations to module description.
35418         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
35419         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
35420         * modules/lchown (configure.ac): ... to here.
35422 2011-05-21  Bruno Haible  <bruno@clisp.org>
35424         iswctype: Move AC_LIBOBJ invocations to module description.
35425         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
35426         here...
35427         * modules/iswctype (configure.ac): ... to here.
35429 2011-05-21  Bruno Haible  <bruno@clisp.org>
35431         iswblank: Move AC_LIBOBJ invocations to module description.
35432         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
35433         here...
35434         * modules/iswblank (configure.ac): ... to here.
35436 2011-05-21  Bruno Haible  <bruno@clisp.org>
35438         atanl: Move AC_LIBOBJ invocations to module description.
35439         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
35440         * modules/atanl (configure.ac): ... to here.
35442 2011-05-21  Bruno Haible  <bruno@clisp.org>
35444         acosl: Move AC_LIBOBJ invocations to module description.
35445         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
35446         * modules/acosl (configure.ac): ... to here.
35448 2011-05-21  Bruno Haible  <bruno@clisp.org>
35450         asinl: Respect rules for use of AC_LIBOBJ.
35451         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
35452         * modules/asinl (configure.ac): ... to here.
35454 2011-05-21  Bruno Haible  <bruno@clisp.org>
35456         tanl: Move AC_LIBOBJ invocations to module description.
35457         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
35458         * modules/tanl (configure.ac): ... to here.
35460 2011-05-21  Bruno Haible  <bruno@clisp.org>
35462         cosl: Move AC_LIBOBJ invocations to module description.
35463         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
35464         * modules/cosl (configure.ac): ... to here.
35466 2011-05-21  Bruno Haible  <bruno@clisp.org>
35468         sinl: Move AC_LIBOBJ invocations to module description.
35469         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
35470         * modules/sinl (configure.ac): ... to here.
35472 2011-05-21  Bruno Haible  <bruno@clisp.org>
35474         logl: Move AC_LIBOBJ invocations to module description.
35475         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
35476         * modules/logl (configure.ac): ... to here.
35478 2011-05-21  Bruno Haible  <bruno@clisp.org>
35480         expl: Move AC_LIBOBJ invocations to module description.
35481         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
35482         * modules/expl (configure.ac): ... to here.
35484 2011-05-21  Bruno Haible  <bruno@clisp.org>
35486         roundl: Move AC_LIBOBJ invocations to module description.
35487         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
35488         * modules/roundl (configure.ac): ... to here.
35490 2011-05-21  Bruno Haible  <bruno@clisp.org>
35492         round: Move AC_LIBOBJ invocations to module description.
35493         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
35494         * modules/round (configure.ac): ... to here.
35496 2011-05-21  Bruno Haible  <bruno@clisp.org>
35498         roundf: Move AC_LIBOBJ invocations to module description.
35499         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
35500         * modules/roundf (configure.ac): ... to here.
35502 2011-05-21  Bruno Haible  <bruno@clisp.org>
35504         truncl: Move AC_LIBOBJ invocations to module description.
35505         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
35506         * modules/truncl (configure.ac): ... to here.
35508 2011-05-21  Bruno Haible  <bruno@clisp.org>
35510         trunc: Move AC_LIBOBJ invocations to module description.
35511         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
35512         * modules/trunc (configure.ac): ... to here.
35514 2011-05-21  Bruno Haible  <bruno@clisp.org>
35516         truncf: Move AC_LIBOBJ invocations to module description.
35517         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
35518         * modules/truncf (configure.ac): ... to here.
35520 2011-05-21  Bruno Haible  <bruno@clisp.org>
35522         ceill: Move AC_LIBOBJ invocations to module description.
35523         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
35524         * modules/ceill (configure.ac): ... to here.
35526 2011-05-21  Bruno Haible  <bruno@clisp.org>
35528         ceil: Move AC_LIBOBJ invocations to module description.
35529         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
35530         * modules/ceil (configure.ac): ... to here.
35532 2011-05-21  Bruno Haible  <bruno@clisp.org>
35534         ceilf: Move AC_LIBOBJ invocations to module description.
35535         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
35536         * modules/ceilf (configure.ac): ... to here.
35538 2011-05-21  Bruno Haible  <bruno@clisp.org>
35540         floorl: Respect rules for use of AC_LIBOBJ.
35541         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
35542         * modules/floorl (configure.ac): ... to here.
35544 2011-05-21  Bruno Haible  <bruno@clisp.org>
35546         floor: Respect rules for use of AC_LIBOBJ.
35547         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
35548         * modules/floor (configure.ac): ... to here.
35550 2011-05-21  Bruno Haible  <bruno@clisp.org>
35552         floorf: Move AC_LIBOBJ invocations to module description.
35553         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
35554         * modules/floorf (configure.ac): ... to here.
35556 2011-05-20  Bruno Haible  <bruno@clisp.org>
35558         sqrtl: Respect rules for use of AC_LIBOBJ.
35559         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
35560         * modules/sqrtl (configure.ac): ... to here.
35562 2011-05-20  Bruno Haible  <bruno@clisp.org>
35564         ldexpl: Respect rules for use of AC_LIBOBJ.
35565         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
35566         * modules/ldexpl (configure.ac): ... to here.
35568 2011-05-20  Bruno Haible  <bruno@clisp.org>
35570         frexpl*: Respect rules for use of AC_LIBOBJ.
35571         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
35572         invocation from here...
35573         * modules/frexpl (configure.ac): ... to here.
35574         * modules/frexpl-nolibm (configure.ac): ... and here.
35576 2011-05-20  Bruno Haible  <bruno@clisp.org>
35578         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
35579         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
35580         invocation from here...
35581         * modules/frexp (configure.ac): ... to here.
35582         * modules/frexp-nolibm (configure.ac): ... and here.
35584 2011-05-20  Bruno Haible  <bruno@clisp.org>
35586         isnan: Respect rules for use of AC_LIBOBJ.
35587         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
35588         invocations here.
35589         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
35590         REPLACE_ISNAN.
35591         * modules/isnand (configure.ac): Likewise.
35592         * modules/isnanl (configure.ac): Likewise.
35594 2011-05-20  Bruno Haible  <bruno@clisp.org>
35596         isnanl*: Respect rules for use of AC_LIBOBJ.
35597         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
35598         invocation from here...
35599         * modules/isnanl (configure.ac): ... to here.
35600         * modules/isnanl-nolibm (configure.ac): ... and here.
35602 2011-05-20  Bruno Haible  <bruno@clisp.org>
35604         isnand*: Move AC_LIBOBJ invocations to module description.
35605         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
35606         invocation from here...
35607         * modules/isnand (configure.ac): ... to here.
35608         * modules/isnand-nolibm (configure.ac): ... and here.
35610 2011-05-20  Bruno Haible  <bruno@clisp.org>
35612         isnanf*: Move AC_LIBOBJ invocations to module description.
35613         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
35614         invocation from here...
35615         * modules/isnanf (configure.ac): ... to here.
35616         * modules/isnanf-nolibm (configure.ac): ... and here.
35618 2011-05-20  Bruno Haible  <bruno@clisp.org>
35620         isnan*: Separate the AC_LIBOBJ invocations.
35621         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
35622         AC_LIBOBJ invocation.
35623         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
35624         here.
35625         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
35626         AC_LIBOBJ invocation.
35627         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
35628         here.
35629         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
35630         AC_LIBOBJ invocation.
35631         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
35632         here.
35633         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
35635 2011-05-08  Bruno Haible  <bruno@clisp.org>
35637         isinf: Move AC_LIBOBJ invocations to module description.
35638         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
35639         * modules/isinf (configure.ac): ... to here.
35641 2011-05-08  Bruno Haible  <bruno@clisp.org>
35643         isfinite: Move AC_LIBOBJ invocations to module description.
35644         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
35645         * modules/isfinite (configure.ac): ... to here.
35647 2011-05-08  Bruno Haible  <bruno@clisp.org>
35649         isblank: Move AC_LIBOBJ invocations to module description.
35650         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
35651         here...
35652         * modules/isblank (configure.ac): ... to here.
35654 2011-05-08  Bruno Haible  <bruno@clisp.org>
35656         isapipe: Move AC_LIBOBJ invocations to module description.
35657         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
35658         gl_PREREQ_ISAPIPE invocations from here...
35659         * modules/isapipe (configure.ac): ... to here.
35660         (Depends-on): Update condition.
35662 2011-05-08  Bruno Haible  <bruno@clisp.org>
35664         ioctl: Move AC_LIBOBJ invocations to module description.
35665         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
35666         invocations from here...
35667         * modules/ioctl (configure.ac): ... to here.
35668         (Depends-on): Update condition.
35670 2011-05-08  Bruno Haible  <bruno@clisp.org>
35672         imaxdiv: Move AC_LIBOBJ invocations to module description.
35673         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
35674         invocations from here...
35675         * modules/imaxdiv (configure.ac): ... to here.
35677 2011-05-08  Bruno Haible  <bruno@clisp.org>
35679         imaxabs: Move AC_LIBOBJ invocations to module description.
35680         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
35681         invocations from here...
35682         * modules/imaxabs (configure.ac): ... to here.
35684 2011-05-08  Bruno Haible  <bruno@clisp.org>
35686         getaddrinfo: Move AC_LIBOBJ invocations to module description.
35687         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
35688         AC_LIBOBJ invocations from here...
35689         * modules/getaddrinfo (configure.ac): ... to here.
35690         (Depends-on): Add conditions.
35692 2011-05-08  Bruno Haible  <bruno@clisp.org>
35694         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
35695         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
35696         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
35697         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
35698         (gl_PREREQ_INET_PTON): ... from here.
35699         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
35700         gl_PREREQ_INET_PTON here.
35701         (Depends-on): Update condition.
35703 2011-05-08  Bruno Haible  <bruno@clisp.org>
35705         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
35706         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
35707         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
35708         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
35709         (gl_PREREQ_INET_NTOP): ... from here.
35710         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
35711         gl_PREREQ_INET_NTOP here.
35712         (Depends-on): Update condition.
35714 2011-05-08  Bruno Haible  <bruno@clisp.org>
35716         iconv_open: Move AC_LIBOBJ invocations to module description.
35717         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
35718         AC_LIBOBJ invocations from here...
35719         * modules/iconv_open (configure.ac): ... to here.
35721 2011-05-08  Bruno Haible  <bruno@clisp.org>
35723         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
35724         If module 'iconv_open' is among the main modules and module
35725         'iconv_open-utf' is among the tests dependencies, then
35726         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
35727         return the special iconv_t values. Therefore iconv() and iconv_close()
35728         must support these special iconv_t values, already in lib, not only in
35729         tests.
35730         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
35731         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
35732         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
35733         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
35734         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
35735         (Depends-on): Add the dependencies of iconv_open-utf.
35736         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
35737         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
35738         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
35740 2011-05-08  Bruno Haible  <bruno@clisp.org>
35742         group-member: Move AC_LIBOBJ invocations to module description.
35743         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
35744         gl_PREREQ_GROUP_MEMBER invocations from here...
35745         * modules/group-member (configure.ac): ... to here.
35747 2011-05-08  Bruno Haible  <bruno@clisp.org>
35749         grantpt: Move AC_LIBOBJ invocations to module description.
35750         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
35751         invocations from here...
35752         * modules/grantpt (configure.ac): ... to here.
35754 2011-05-08  Bruno Haible  <bruno@clisp.org>
35756         glob: Move AC_LIBOBJ invocations to module description.
35757         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
35758         from here...
35759         * modules/glob (configure.ac): ... to here.
35761 2011-05-08  Bruno Haible  <bruno@clisp.org>
35763         getusershell: Move AC_LIBOBJ invocations to module description.
35764         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
35765         Move AC_LIBOBJ invocation from here...
35766         * modules/getusershell (configure.ac): ... to here.
35767         (Depends-on): Update condition.
35769 2011-05-08  Bruno Haible  <bruno@clisp.org>
35771         gettimeofday: Move AC_LIBOBJ invocations to module description.
35772         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
35773         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
35774         gl_PREREQ_GETTIMEOFDAY invocations from here...
35775         * modules/gettimeofday (configure.ac): ... to here.
35777 2011-05-08  Bruno Haible  <bruno@clisp.org>
35779         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
35780         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
35781         just gl_FUNC_TZSET.
35782         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
35783         (gl_FUNC_TZSET_CLOBBER): Remove actions.
35784         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
35785         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
35787 2011-05-08  Bruno Haible  <bruno@clisp.org>
35789         getsubopt: Move AC_LIBOBJ invocations to module description.
35790         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
35791         gl_PREREQ_GETSUBOPT invocations from here...
35792         * modules/getsubopt (configure.ac): ... to here.
35794 2011-05-08  Bruno Haible  <bruno@clisp.org>
35796         getpass-gnu: Move AC_LIBOBJ invocations to module description.
35797         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
35798         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
35799         * modules/getpass-gnu (configure.ac): ... to here.
35801 2011-05-08  Bruno Haible  <bruno@clisp.org>
35803         getpass: Move AC_LIBOBJ invocations to module description.
35804         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
35805         gl_PREREQ_GETPASS invocations from here...
35806         * modules/getpass (configure.ac): ... to here.
35808 2011-05-08  Bruno Haible  <bruno@clisp.org>
35810         getpagesize: Move AC_LIBOBJ invocations to module description.
35811         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
35812         from here...
35813         * modules/getpagesize (configure.ac): ... to here.
35815 2011-05-08  Bruno Haible  <bruno@clisp.org>
35817         getopt: Move AC_LIBOBJ invocations to module description.
35818         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
35819         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
35820         invocations from here...
35821         * modules/getopt-gnu (configure.ac): ... to here.
35822         * modules/getopt-posix (configure.ac): ... and here.
35823         (Depends-on): Update condition.
35825 2011-05-08  Bruno Haible  <bruno@clisp.org>
35827         getopt, argp: Respect rules for use of AC_LIBOBJ.
35828         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
35829         (gl_REPLACE_GETOPT_ALWAYS): New macro.
35830         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
35831         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
35833 2011-05-08  Bruno Haible  <bruno@clisp.org>
35835         getlogin_r: Move AC_LIBOBJ invocations to module description.
35836         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
35837         gl_PREREQ_GETLOGIN_R invocations from here...
35838         * modules/getlogin_r (configure.ac): ... to here.
35840 2011-05-08  Bruno Haible  <bruno@clisp.org>
35842         getlogin: Move AC_LIBOBJ invocations to module description.
35843         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
35844         here...
35845         * modules/getlogin (configure.ac): ... to here.
35847 2011-05-08  Bruno Haible  <bruno@clisp.org>
35849         getloadavg: Move AC_LIBOBJ invocations to module description.
35850         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
35851         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
35852         * modules/getloadavg (configure.ac): ... to here.
35854 2011-05-08  Bruno Haible  <bruno@clisp.org>
35856         gethrxtime: Move AC_LIBOBJ invocations to module description.
35857         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
35858         LIB_GETHRXTIME from here...
35859         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
35860         invocations from here...
35861         * modules/gethrxtime (configure.ac): ... to here.
35863 2011-05-08  Bruno Haible  <bruno@clisp.org>
35865         gethostname: Move AC_LIBOBJ invocations to module description.
35866         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
35867         gl_PREREQ_GETHOSTNAME invocations from here...
35868         * modules/gethostname (configure.ac): ... to here.
35870 2011-05-08  Bruno Haible  <bruno@clisp.org>
35872         getgroups: Move AC_LIBOBJ invocations to module description.
35873         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
35874         here...
35875         * modules/getgroups (configure.ac): ... to here.
35877 2011-05-08  Bruno Haible  <bruno@clisp.org>
35879         getdtablesize: Move AC_LIBOBJ invocations to module description.
35880         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
35881         invocation from here...
35882         * modules/getdtablesize (configure.ac): ... to here.
35884 2011-05-08  Bruno Haible  <bruno@clisp.org>
35886         getdomainname: Move AC_LIBOBJ invocations to module description.
35887         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
35888         gl_PREREQ_GETDOMAINNAME invocations from here...
35889         * modules/getdomainname (configure.ac): ... to here.
35891 2011-05-08  Bruno Haible  <bruno@clisp.org>
35893         getline: Move AC_LIBOBJ invocations to module description.
35894         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
35895         invocations from here...
35896         * modules/getline (configure.ac): ... to here.
35898 2011-05-08  Bruno Haible  <bruno@clisp.org>
35900         getline: Simplify.
35901         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
35902         It's already handled through the module dependency.
35904 2011-05-08  Bruno Haible  <bruno@clisp.org>
35906         getdelim: Move AC_LIBOBJ invocations to module description.
35907         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
35908         and gl_PREREQ_GETDELIM invocations from here...
35909         * modules/getdelim (configure.ac): ... to here.
35910         (Depends-on): Fix condition.
35912 2011-05-08  Bruno Haible  <bruno@clisp.org>
35914         getcwd: Move AC_LIBOBJ invocations to module description.
35915         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
35916         invocations from here...
35917         * modules/getcwd (configure.ac): ... to here.
35919 2011-05-08  Bruno Haible  <bruno@clisp.org>
35921         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
35922         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
35923         here...
35924         * modules/getcwd-lgpl (configure.ac): ... to here.
35926 2011-05-07  Bruno Haible  <bruno@clisp.org>
35928         crypto/gc: Move AC_LIBOBJ invocations to module description.
35929         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
35930         * modules/crypto/gc (configure.ac): ... to here.
35932 2011-05-07  Bruno Haible  <bruno@clisp.org>
35934         fwriting: Move AC_LIBOBJ invocations to module description.
35935         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
35936         here...
35937         * modules/fwriting (configure.ac): ... to here.
35939 2011-05-07  Bruno Haible  <bruno@clisp.org>
35941         fwritable: Move AC_LIBOBJ invocations to module description.
35942         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
35943         here...
35944         * modules/fwritable (configure.ac): ... to here.
35946 2011-05-07  Bruno Haible  <bruno@clisp.org>
35948         futimens: Move AC_LIBOBJ invocations to module description.
35949         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
35950         here...
35951         * modules/futimens (configure.ac): ... to here.
35953 2011-05-07  Bruno Haible  <bruno@clisp.org>
35955         ftruncate: Move AC_LIBOBJ invocations to module description.
35956         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
35957         gl_PREREQ_FTRUNCATE invocations from here...
35958         * modules/ftruncate (configure.ac): ... to here.
35960 2011-05-07  Bruno Haible  <bruno@clisp.org>
35962         fsync: Move AC_LIBOBJ invocations to module description.
35963         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
35964         invocations from here...
35965         * modules/fsync (configure.ac): ... to here.
35967 2011-05-07  Bruno Haible  <bruno@clisp.org>
35969         fsusage: Move AC_LIBOBJ invocations to module description.
35970         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
35971         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
35972         * modules/fsusage (configure.ac): ... to here.
35974 2011-05-07  Bruno Haible  <bruno@clisp.org>
35976         freopen: Move AC_LIBOBJ invocations to module description.
35977         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
35978         invocations from here...
35979         * modules/freopen (configure.ac): ... to here.
35981 2011-05-07  Bruno Haible  <bruno@clisp.org>
35983         free: Move AC_LIBOBJ invocations to module description.
35984         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
35985         invocations from here...
35986         * modules/free (configure.ac): ... to here.
35988 2011-05-07  Bruno Haible  <bruno@clisp.org>
35990         freadable: Move AC_LIBOBJ invocations to module description.
35991         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
35992         here...
35993         * modules/freadable (configure.ac): ... to here.
35995 2011-05-07  Bruno Haible  <bruno@clisp.org>
35997         fpurge: Move AC_LIBOBJ invocations to module description.
35998         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
35999         invocations from here...
36000         * modules/fpurge (configure.ac): ... to here.
36002 2011-05-07  Bruno Haible  <bruno@clisp.org>
36004         fpending: Move AC_LIBOBJ invocations to module description.
36005         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
36006         gl_FUNC_FPENDING.
36007         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
36008         invocations from here...
36009         * modules/fpending (configure.ac): ... to here.
36011 2011-05-07  Bruno Haible  <bruno@clisp.org>
36013         fopen: Move AC_LIBOBJ invocations to module description.
36014         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
36015         invocations from here...
36016         * modules/fopen (configure.ac): ... to here.
36018 2011-05-07  Bruno Haible  <bruno@clisp.org>
36020         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
36021         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
36022         gl_FUNC_FNMATCH_POSIX.
36023         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
36024         invocations from here...
36025         * modules/fnmatch (configure.ac): ... to here.
36026         * modules/fnmatch-gnu (configure.ac): ... and here.
36028 2011-05-07  Bruno Haible  <bruno@clisp.org>
36030         flock: Move AC_LIBOBJ invocations to module description.
36031         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
36032         invocations from here...
36033         * modules/flock (configure.ac): ... to here.
36035 2011-05-07  Bruno Haible  <bruno@clisp.org>
36037         fileblocks: Move AC_LIBOBJ invocations to module description.
36038         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
36039         gl_PREREQ_FILEBLOCKS invocations from here...
36040         * modules/fileblocks (configure.ac): ... to here.
36042 2011-05-06  Bruno Haible  <bruno@clisp.org>
36044         fflush: Move AC_LIBOBJ invocations to module description.
36045         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
36046         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
36047         invocations from here...
36048         * modules/fflush (configure.ac): ... to here.
36050 2011-05-06  Bruno Haible  <bruno@clisp.org>
36052         fdopendir: Move AC_LIBOBJ invocations to module description.
36053         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
36054         here...
36055         * modules/fdopendir (configure.ac): ... to here.
36056         (Depends-on): Improve conditions.
36058 2011-05-06  Bruno Haible  <bruno@clisp.org>
36060         _Exit: Move AC_LIBOBJ invocations to module description.
36061         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
36062         invocations from here...
36063         * modules/_Exit (configure.ac): ... to here.
36065 2011-05-21  Bruno Haible  <bruno@clisp.org>
36067         euidaccess: Respect rules for use of AC_LIBOBJ.
36068         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
36069         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
36070         from here...
36071         * modules/euidaccess (configure.ac): ... to here.
36073 2011-05-06  Bruno Haible  <bruno@clisp.org>
36075         error: Move AC_LIBOBJ invocations to module description.
36076         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
36077         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
36078         invocations from here...
36079         * modules/error (configure.ac): ... to here.
36081 2011-05-06  Bruno Haible  <bruno@clisp.org>
36083         duplocale: Move AC_LIBOBJ invocations to module description.
36084         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
36085         gl_PREREQ_DUPLOCALE invocations from here...
36086         * modules/duplocale (configure.ac): ... to here.
36088 2011-05-05  Bruno Haible  <bruno@clisp.org>
36090         dirfd: Move AC_LIBOBJ invocations to module description.
36091         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
36092         gl_FUNC_DIRFD.
36093         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
36094         here...
36095         * modules/dirfd (configure.ac): ... to here.
36096         (Depends-on): Fix condition.
36098 2011-05-05  Bruno Haible  <bruno@clisp.org>
36100         chown: Respect rules for use of AC_LIBOBJ.
36101         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
36102         * modules/chown (configure.ac): ... to here.
36104 2011-05-05  Bruno Haible  <bruno@clisp.org>
36106         chdir-long: Move AC_LIBOBJ invocations to module description.
36107         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
36108         gl_PREREQ_CHDIR_LONG invocations from here...
36109         * modules/chdir-long (configure.ac): ... to here.
36111 2011-05-05  Bruno Haible  <bruno@clisp.org>
36113         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
36114         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
36115         from here...
36116         * modules/canonicalize-lgpl (configure.ac): ... to here.
36118 2011-05-05  Bruno Haible  <bruno@clisp.org>
36120         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
36121         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
36122         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
36123         REPLACE_CALLOC.
36124         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
36125         * modules/calloc-gnu (configure.ac): Likewise.
36127 2011-05-05  Bruno Haible  <bruno@clisp.org>
36129         btowc: Move AC_LIBOBJ invocations to module description.
36130         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
36131         invocations from here...
36132         * modules/btowc (configure.ac): ... to here.
36134 2011-05-21  Bruno Haible  <bruno@clisp.org>
36136         atexit: Move AC_LIBOBJ invocations to module description.
36137         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
36138         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
36139         here...
36140         * modules/atexit (configure.ac): ... to here.
36142 2011-05-05  Bruno Haible  <bruno@clisp.org>
36144         atoll: Move AC_LIBOBJ invocations to module description.
36145         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
36146         invocations from here...
36147         * modules/atoll (configure.ac): ... to here.
36149 2011-05-05  Bruno Haible  <bruno@clisp.org>
36151         argz: Move AC_LIBOBJ invocations to module description.
36152         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
36153         * modules/argz (configure.ac): ... to here.
36155 2011-05-05  Bruno Haible  <bruno@clisp.org>
36157         alphasort: Move AC_LIBOBJ invocations to module description.
36158         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
36159         gl_PREREQ_ALPHASORT invocations from here...
36160         * modules/alphasort (configure.ac): ... to here.
36162 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
36164         verify: new macro verify_expr; verify_true deprecated
36165         * NEWS: Mention this.
36166         * doc/verify.texi (Compile-time Assertions): Document this.
36167         * lib/verify.h (verify_true): Deprecate.
36168         (verify_expr): New macro.
36169         * tests/test-verify.c (function): Test verify_expr.
36171 2011-06-14  Jim Meyering  <meyering@redhat.com>
36173         init.sh: give more portable redirection-related advice in a comment
36174         * tests/init.sh (stderr_fileno_): Update the advice in comments.
36175         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
36176         for lots of discussion.  Stefano Lattarini suggested the solution
36177         of putting "9>&2" after the command.  Reported by Bruno Haible.
36179 2011-06-13  Bruno Haible  <bruno@clisp.org>
36181         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
36182         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
36183         'none'.
36185 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
36187         ftoastr: use strtof only if HAVE_STRTOF
36188         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
36189         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
36190         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
36191         * modules/ftoastr (configure.ac): Check for strtof.
36193 2011-06-13  Bruno Haible  <bruno@clisp.org>
36195         gnulib-tool: Addendum to 2011-06-08 commit.
36196         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
36197         and --witness-c-macro have been given, augment AM_CPPFLAGS.
36199 2011-06-13  Bruno Haible  <bruno@clisp.org>
36201         fseeko: Provide a non-inline replacement of fseek().
36202         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
36203         * modules/fseeko (Depends-on): Add fseek.
36204         * modules/fseek (License): Change to LGPLv2+.
36206 2011-06-13  Bruno Haible  <bruno@clisp.org>
36208         ftello: Provide a non-inline replacement of ftell().
36209         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
36210         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
36211         not have ftello() (such as on mingw).
36212         * modules/ftello (Depends-on): Add ftell.
36213         * modules/ftell (License): Change to LGPLv2+.
36215 2011-05-07  Bruno Haible  <bruno@clisp.org>
36217         ftell: Move AC_LIBOBJ invocations to module description.
36218         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
36219         * modules/ftell (configure.ac): ... to here.
36221 2011-05-07  Bruno Haible  <bruno@clisp.org>
36223         ftello: Respect rules for use of AC_LIBOBJ.
36224         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
36225         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
36226         here...
36227         * modules/ftello (configure.ac): ... to here.
36229 2011-05-07  Bruno Haible  <bruno@clisp.org>
36231         fseeko: Simplify.
36232         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
36233         (gl_FUNC_FSEEKO): Inline it here.
36235 2011-05-07  Bruno Haible  <bruno@clisp.org>
36237         fseek: Move AC_LIBOBJ invocations to module description.
36238         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
36239         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
36240         * modules/fseek (configure.ac): ... to here.
36242 2011-05-07  Bruno Haible  <bruno@clisp.org>
36244         fseek: Respect rules for use of AC_LIBOBJ.
36245         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
36246         here...
36247         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
36249 2011-05-07  Bruno Haible  <bruno@clisp.org>
36251         fseeko: Respect rules for use of AC_LIBOBJ.
36252         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
36253         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
36254         here...
36255         * modules/fseeko (configure.ac): ... to here.
36257 2011-06-13  Bruno Haible  <bruno@clisp.org>
36259         gnulib-tool: Allow comments in the 'Depends-on' section.
36260         * doc/gnulib.texi (Module description): Mention comment syntax in the
36261         Depends-on section.
36262         * gnulib-tool (func_get_dependencies): Filter out comment lines.
36264 2011-06-13  Bruno Haible  <bruno@clisp.org>
36266         file-set.h: guard __attibute__ use, now that it's not always defined
36267         * lib/file-set.h (record_file): Use __attribute__ only with compiler
36268         versions that support it.  This fixes a coreutils build failure with
36269         the vendor cc on HP-UX 11.31.
36271 2011-06-12  Bruno Haible  <bruno@clisp.org>
36273         acl: Add support for HP-UX >= 11.11 JFS ACLs.
36274         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
36275         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
36276         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
36277         (acl, aclsort): New declarations.
36278         (aclv_nontrivial): New declaration.
36279         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
36280         (file_has_acl): Read also the second kind of HP-UX ACLs.
36281         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
36282         kind of HP-UX ACLs if the first kind fails.
36283         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
36284         second kind of HP-UX ACLs.
36285         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
36286         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
36287         agree.
36288         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
36289         hpuxjfs.
36290         Handle hpuxjfs.
36291         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
36292         hpuxjfs.
36293         Handle hpuxjfs.
36294         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
36295         (func_test_same_acls): Use both lsacl and getacl.
36296         Handle hpuxjfs.
36297         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
36298         (func_test_same_acls): Use both lsacl and getacl.
36299         Handle hpuxjfs.
36301 2011-06-12  Bruno Haible  <bruno@clisp.org>
36303         acl: Complete the 2010-08-10 fix.
36304         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
36305         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
36306         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
36307         explicitly.
36308         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
36309         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
36311 2011-06-12  Bruno Haible  <bruno@clisp.org>
36313         spawn-pipe tests: Comments.
36314         * tests/test-spawn-pipe-child.c (main): Update comment.
36315         Reported by James Youngman <jay@gnu.org>.
36317 2011-06-11  James Youngman  <jay@gnu.org>
36319         New module 'stat-size'.
36320         * modules/stat-size: New module.  Provides macros for accessing
36321         file size information in instances of struct stat.  Depends on the
36322         fileblocks module because it calls st_blocks.
36323         * lib/stat-size.h: New file, adapted from coreutils' system.h.
36324         * doc/gnulib.texi: Include stat-size.texi.
36325         * doc/stat-size.texi: Documentation for this module.
36326         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
36327         * m4/fileblocks.m4: Mention that stat-size depends on the call to
36328         AC_STRUCT_ST_BLOCKS.
36330 2011-06-09  Bruno Haible  <bruno@clisp.org>
36332         thread: Support pthreads-win32.
36333         * lib/glthread/thread.h (gl_thread_self): Define differently on
36334         pthreads-win32.
36335         (gl_null_thread): New declaration.
36336         (gl_thread_self_pointer): New macro.
36337         * lib/glthread/thread.c (gl_null_thread): New constant.
36338         * tests/test-lock.c: Use gl_thread_self_pointer instead of
36339         gl_thread_self.
36340         * tests/test-tls.c: Likewise.
36341         Suggested by Paul Eggert. Reported by Eric Blake.
36343 2011-06-09  Bruno Haible  <bruno@clisp.org>
36345         thread: Fix confusion between NULL and 0.
36346         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
36347         Reported by Paul Eggert.
36349 2011-06-09  Bruno Haible  <bruno@clisp.org>
36351         spawn-pipe tests: Avoid test failure on HP-UX 11.
36352         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
36353         is closed.
36355 2011-06-09  Bruno Haible  <bruno@clisp.org>
36357         acl tests: Fix compilation error on HP-UX 11.
36358         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
36360 2011-06-09  Bruno Haible  <bruno@clisp.org>
36362         rmdir: Avoid test failure on HP-UX 10.20.
36363         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
36364         EEXIST.
36366 2011-06-08  Eric Blake  <eblake@redhat.com>
36368         perror: fix test on mingw
36369         * modules/perror-tests (Depends-on): Add dup2.
36371         strerror_r-posix: fix on MacOS
36372         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
36373         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
36374         logic bug.
36375         * lib/strerror_r.c (strerror_r): Fix the bug.
36376         * lib/strerror.c (strerror): Likewise.
36377         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
36378         problem.
36379         * doc/posix-functions/strerror.texi (strerror): Likewise.
36380         * doc/posix-functions/perror.texi (perror): Likewise.
36381         * tests/test-strerror.c (main): Enhance test.
36382         * tests/test-strerror_r.c (main): Likewise.
36384 2011-06-08  Bruno Haible  <bruno@clisp.org>
36386         gnulib-tool: Better isolation between different gnulib-tool invocations.
36387         * gnulib-tool: New option --witness-c-macro.
36388         (witness_c_macro): New variable.
36389         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
36390         AM_CPPFLAGS define it as a C macro.
36391         (func_emit_tests_Makefile_am): Likewise.
36392         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
36393         read it from there.
36394         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
36395         m4_define, not AC_DEFUN.
36396         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
36397         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
36398         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
36399         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
36400         s|...|...|, to substitute the values of the GNULIB_* module indicator
36401         variables.
36402         * modules/dirent (Makefile.am): Likewise.
36403         * modules/fcntl-h (Makefile.am): Likewise.
36404         * modules/iconv-h (Makefile.am): Likewise.
36405         * modules/langinfo (Makefile.am): Likewise.
36406         * modules/locale (Makefile.am): Likewise.
36407         * modules/math (Makefile.am): Likewise.
36408         * modules/netdb (Makefile.am): Likewise.
36409         * modules/poll-h (Makefile.am): Likewise.
36410         * modules/pty (Makefile.am): Likewise.
36411         * modules/search (Makefile.am): Likewise.
36412         * modules/signal (Makefile.am): Likewise.
36413         * modules/spawn (Makefile.am): Likewise.
36414         * modules/stdio (Makefile.am): Likewise.
36415         * modules/stdlib (Makefile.am): Likewise.
36416         * modules/string (Makefile.am): Likewise.
36417         * modules/sys_ioctl (Makefile.am): Likewise.
36418         * modules/sys_select (Makefile.am): Likewise.
36419         * modules/sys_socket (Makefile.am): Likewise.
36420         * modules/sys_stat (Makefile.am): Likewise.
36421         * modules/sys_times (Makefile.am): Likewise.
36422         * modules/sys_utsname (Makefile.am): Likewise.
36423         * modules/sys_wait (Makefile.am): Likewise.
36424         * modules/termios (Makefile.am): Likewise.
36425         * modules/time (Makefile.am): Likewise.
36426         * modules/unistd (Makefile.am): Likewise.
36427         * modules/wchar (Makefile.am): Likewise.
36429 2011-06-08  Eric Blake  <eblake@redhat.com>
36431         strerror: simplify replacement
36432         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
36433         * modules/strerror (configure.ac): No prereqs needed here...
36434         * modules/strerror-override (configure.ac): ...but this needs it.
36435         (Files): Add file for needed prereq macro.
36437 2011-06-08  Bruno Haible  <bruno@clisp.org>
36439         strerror_r-posix: Tweaks.
36440         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
36441         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
36442         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
36443         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
36444         (gl_FUNC_STRERROR_R): ... to here.
36445         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
36447 2011-06-07  Eric Blake  <eblake@redhat.com>
36449         perror: document fixed bugs
36450         * doc/posix-functions/perror.texi (perror): Document recent
36451         patches.
36453 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
36455         stat-time: get_stat_birthtime failure is better-defined
36456         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
36457         return a timestamp whose tv_sec and tv_nsec values are both -1.
36458         Previously, the spec said only that the tv_nsec value was negative.
36459         This upward-compatible change simplifies GNU tar a bit.
36461 2011-06-07  Eric Blake  <eblake@redhat.com>
36463         strerror_r-posix: work around cygwin 1.7.9
36464         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
36465         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
36466         bug without replacing strerror_r.
36467         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
36468         strerror_r is buggy, but without requiring strerror_r compilation.
36469         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
36471         test-perror: relax test to ignore cygwin bug
36472         * tests/test-perror2.c (main): Relax test on requiring detection
36473         of stream errors, and use unbuffered stream.
36474         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
36475         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
36476         * doc/posix-functions/fputc.texi (fputc): Likewise.
36477         * doc/posix-functions/fputs.texi (fputs): Likewise.
36478         * doc/posix-functions/fputws.texi (fputws): Likewise.
36479         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
36480         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
36481         * doc/posix-functions/getopt.texi (getopt): Likewise.
36482         * doc/posix-functions/perror.texi (perror): Likewise.
36483         * doc/posix-functions/printf.texi (printf): Likewise.
36484         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
36485         * doc/posix-functions/psignal.texi (psignal): Likewise.
36486         * doc/posix-functions/putc.texi (putc): Likewise.
36487         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
36488         Likewise.
36489         * doc/posix-functions/putchar.texi (putchar): Likewise.
36490         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
36491         Likewise.
36492         * doc/posix-functions/puts.texi (puts): Likewise.
36493         * doc/posix-functions/putwc.texi (putwc): Likewise.
36494         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
36495         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
36496         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
36497         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
36498         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
36499         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
36500         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
36501         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
36503 2011-05-22  Bruno Haible  <bruno@clisp.org>
36505         strerror: Move AC_LIBOBJ invocations to module description.
36506         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
36507         gl_PREREQ_STRERROR invocations from here...
36508         * modules/strerror (configure.ac): ... to here.
36510 2011-05-21  Bruno Haible  <bruno@clisp.org>
36512         perror: Use common idiom.
36513         * modules/perror (configure.ac): Reorder statements.
36515 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
36517         tests: fix usage message in 'mktempd_'
36518         * tests/init.sh (mktempd_): In the usage message, use literal
36519         'mktempd_', not '$ME' (which is even undefined), as the name of
36520         the subroutine.
36522 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
36524         tests init: new function 'fatal_', for hard errors
36525         Before this patch, the only way offered by tests/init.sh to
36526         properly signal a hard error was the `framework_failure_'
36527         function.  But the error message issued by that function,
36528         as its name would suggest, refers to a set-up failure in the
36529         testsuite, while hard errors can obviously also be due to
36530         other reasons.  The best way to fix this inconsistency is to
36531         introduce a new function with a more general error message.
36532         * tests/init.sh (fatal_): New function.
36534 2011-06-06  Eric Blake  <eblake@redhat.com>
36536         canonicalize-lgpl: use common idiom
36537         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
36538         over newer POSIX -Rf.
36539         Reported by Bruno Haible.
36541         canonicalize-lgpl: work around AIX realpath bug
36542         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
36543         * doc/posix-functions/realpath.texi (realpath): Document it.
36544         Reported by Bruno Haible.
36546         strerror: work around FreeBSD bug
36547         * lib/strerror.c (strerror): Special case 0.
36548         Reported by Bruno Haible.
36550         strerror-override: avoid bloating errno module
36551         * modules/errno (Files, configure.ac): Move replacement strings...
36552         * modules/strerror-override: ...to new module.
36553         * modules/strerror (Depends-on): Add strerror-override.
36554         * modules/strerror_r-posix (Depends-on): Likewise.
36555         * MODULES.html.sh: Document new module.
36556         Reported by Bruno Haible.
36558 2011-06-06  Bruno Haible  <bruno@clisp.org>
36560         spawn-pipe tests: Rename program.
36561         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
36562         * tests/test-spawn-pipe-child.c: Update comment.
36563         * tests/test-spawn-pipe.sh: Update.
36564         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
36566         spawn-pipe tests: Link the child program only against libc.
36567         * tests/test-spawn-pipe-child.c: New file, extracted from
36568         tests/test-spawn-pipe.c.
36569         (main): Expect only one argument.
36570         (is_open): New function, copied from tests/test-pipe.c.
36571         * tests/test-spawn-pipe.c: Don't include <errno.h>.
36572         (child_main): Remove function.
36573         (test_pipe): Pass only one argument to the child program.
36574         (main): Remove child process code. Expect the child program's name as
36575         first argument.
36576         * tests/test-spawn-pipe.sh: Pass the child program's name as first
36577         argument.
36578         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
36579         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
36580         test-spawn-pipe-child against no libraries.
36582 2011-06-06  Bruno Haible  <bruno@clisp.org>
36584         careadlinkat: Avoid mismatch between ssize_t and int.
36585         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
36586         * lib/careadlinkat.c (careadlinkatcwd): Define always.
36588 2011-06-06  Jim Meyering  <meyering@redhat.com>
36590         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
36591         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
36592         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
36594 2011-06-05  Bruno Haible  <bruno@clisp.org>
36596         ansi-c++-opt: Interoperability with libtool.
36597         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
36598         set the variable to "no", not to ":".
36599         * NEWS: Mention the change.
36601 2011-06-05  Bruno Haible  <bruno@clisp.org>
36603         acl: Fix test failure on AIX 7.
36604         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
36605         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
36607 2011-06-05  Bruno Haible  <bruno@clisp.org>
36609         pipe-filter-ii: Fix test failure on AIX and IRIX.
36610         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
36611         with EAGAIN, retry with a smaller buffer size.
36613 2011-06-05  Bruno Haible  <bruno@clisp.org>
36615         localename: Fix link dependencies.
36616         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
36617         * modules/localename-tests (Makefile.am): Link test-localename with
36618         $(LIBTHREAD).
36620 2011-06-05  Bruno Haible  <bruno@clisp.org>
36622         error: Avoid gcc warning.
36623         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
36625 2011-06-05  Bruno Haible  <bruno@clisp.org>
36627         unsetenv: Avoid gcc warning.
36628         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
36630 2011-06-05  Bruno Haible  <bruno@clisp.org>
36632         setenv: Avoid gcc warning.
36633         * lib/setenv.c (setenv): Provide declaration if system lacks it.
36635 2011-06-05  Bruno Haible  <bruno@clisp.org>
36637         sys_select: Ensure memset is declared also on AIX 7.
36638         * lib/sys_select.in.h: Include <string.h> also on AIX.
36639         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
36640         self-contained also on AIX 7.1.
36642 2011-06-04  Jim Meyering  <meyering@redhat.com>
36644         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
36645         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
36646         function name, "error".
36647         (_gl_translatable_diag_func_re): New configurable variable.
36649 2011-06-04  Bruno Haible  <bruno@clisp.org>
36651         getopt: Avoid gcc warning.
36652         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
36654 2011-06-04  Bruno Haible  <bruno@clisp.org>
36656         strerror_r: Fix comments.
36657         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
36658         commit.
36660 2011-06-04  Bruno Haible  <bruno@clisp.org>
36662         perror: Fix compilation error.
36663         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
36664         Undefine fprintf, not sprintf.
36665         * modules/perror (Depends-on): Remove intprops, verify.
36667 2011-06-04  Bruno Haible  <bruno@clisp.org>
36669         setlocale: Enable replacement on Cygwin 1.5.
36670         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
36671         Cygwin 1.5.x.
36672         * doc/posix-functions/setlocale.texi: Mention that the problem with the
36673         LC_CTYPE category also exists on Cygwin 1.5.x.
36675 2011-06-04  Bruno Haible  <bruno@clisp.org>
36677         strerror-override: Don't disable symbol renamings.
36678         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
36679         * lib/strerror-override.c: Include config.h.
36680         (strerror_override): Don't undefine.
36682 2011-06-03  Bruno Haible  <bruno@clisp.org>
36684         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
36685         * lib/localename.h: Update copyright header.
36686         * lib/localename.c: Likewise.
36687         * lib/relocatable.h: Likewise.
36688         * lib/relocatable.c: Likewise.
36690 2011-06-02  Bruno Haible  <bruno@clisp.org>
36692         doc: Fix a module name.
36693         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
36695 2011-06-02  Bruno Haible  <bruno@clisp.org>
36697         pipe2: Remove dependency on 'nonblocking' module.
36698         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
36699         O_NONBLOCK is defined by gnulib.
36700         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
36701         is zero.
36702         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
36703         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
36704         defined by gnulib.
36705         (get_nonblocking_flag): New function.
36706         (main): Test O_NONBLOCK flag only if it is nonzero.
36707         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
36709 2011-06-03  Jim Meyering  <meyering@redhat.com>
36711         maint: three new prohibit-header-without-use rules
36712         Prohibit use of cloexec.h, posixver.h, same.h without use.
36713         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
36714         (sc_prohibit_posixver_without_use): Likewise.
36715         (sc_prohibit_same_without_use): Likewise.
36717 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
36719         allocator: 'die' routine is now given requested size
36720         * lib/allocator.h (struct allocator.die): New size arg.
36721         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
36722         If the actual problem is an ssize_t limitation, not a size_t or
36723         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
36725 2011-06-01  Eric Blake  <eblake@redhat.com>
36727         strerror: drop strerror_r dependency
36728         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
36729         * lib/strerror-override.c (strerror_override): ...to new file.
36730         * lib/strerror-override.h: Add prototype.
36731         * lib/strerror-impl.h: Delete.
36732         * lib/strerror.c (strerror): New implementation.
36733         * modules/errno (Files): Add new files.
36734         (configure.ac): Compile new file as appropriate.
36735         * modules/strerror (Files): Drop unused file.
36736         (Depends-on): Drop strerror_r-posix.
36737         * MODULES.html.sh: Document strerror_r-posix.
36738         Requested by Sam Steingold.
36740         perror: call strerror_r directly
36741         * modules/perror (Files): Drop strerror-impl.h.
36742         * lib/perror.c (perror): Use our own stack buffer, rather than
36743         calling a wrapper that uses static storage.
36744         * doc/posix-functions/perror.texi (perror): Document a limitation
36745         of our replacement.
36747         strerror_r: fix includes for FreeBSD
36748         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
36749         since we use abort on some platforms.
36750         Reported by Matthias Bolte.
36752 2011-05-31  Bruno Haible  <bruno@clisp.org>
36754         Fix link errors in tests: openat-die uses gettext-h.
36755         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
36756         against $(LIBINTL).
36757         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
36758         against $(LIBINTL).
36759         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
36760         $(LIBINTL).
36761         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
36762         against $(LIBINTL).
36763         * modules/linkat-tests (Makefile.am): Link test-linkat against
36764         $(LIBINTL).
36765         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
36766         $(LIBINTL).
36767         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
36768         against $(LIBINTL).
36769         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
36770         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
36771         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
36772         $(LIBINTL).
36773         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
36774         $(LIBINTL).
36775         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
36776         $(LIBINTL).
36777         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36779 2011-05-31  Bruno Haible  <bruno@clisp.org>
36781         Fix link errors in tests: wait-process uses gettext-h.
36782         * modules/nonblocking-pipe-tests (Makefile.am): Set
36783         test_nonblocking_pipe_main_LDADD.
36784         * modules/nonblocking-socket-tests (Makefile.am): Link
36785         test-nonblocking-socket-main against $(LIBINTL).
36786         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36788 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
36790         assert-h: work around 'verify' incompatibility
36791         * lib/verify.h: Use @...@ directives, not ifdef.
36792         * modules/assert-h (assert.h): Implement the directives.
36793         (assert.h): Substitute the symbol-prefix more consistently.
36795 2011-05-29  Jim Meyering  <meyering@redhat.com>
36797         trim: remove three superfluous assignments
36798         * lib/trim.c (trim2): Remove three superfluous assignments
36799         and correct brace positioning.
36801 2011-05-29  Bruno Haible  <bruno@clisp.org>
36803         wctype-h: Avoid namespace pollution on Solaris 2.6.
36804         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
36805         identifiers.
36806         * doc/posix-headers/wctype.texi: Mention the problem.
36807         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36809 2011-05-28  Jim Meyering  <meyering@redhat.com>
36811         parse-datetime.y: accommodate -Wstrict-overflow
36812         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
36813         placate -Wstrict-overflow.
36815         trim: avoid a warning from -O2 -Wstrict-overflow
36816         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
36818 2011-05-29  Bruno Haible  <bruno@clisp.org>
36820         gnulib-tool: Fix bug in yesterday's commit.
36821         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
36822         twice.
36824 2011-05-29  Bruno Haible  <bruno@clisp.org>
36826         Allow multiple gnulib generated include files to be combined.
36827         * gnulib-tool (func_compute_include_guard_prefix): New function.
36828         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
36829         ${gl_include_guard_prefix} references.
36830         (func_import, func_create_testdir): Invoke
36831         func_compute_include_guard_prefix.
36832         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
36833         * lib/ctype.in.h: Likewise.
36834         * lib/dirent.in.h: Likewise.
36835         * lib/errno.in.h: Likewise.
36836         * lib/fcntl.in.h: Likewise.
36837         * lib/float.in.h: Likewise.
36838         * lib/getopt.in.h: Likewise.
36839         * lib/iconv.in.h: Likewise.
36840         * lib/langinfo.in.h: Likewise.
36841         * lib/locale.in.h: Likewise.
36842         * lib/math.in.h: Likewise.
36843         * lib/netdb.in.h: Likewise.
36844         * lib/netinet_in.in.h: Likewise.
36845         * lib/poll.in.h: Likewise.
36846         * lib/pthread.in.h: Likewise.
36847         * lib/pty.in.h: Likewise.
36848         * lib/sched.in.h: Likewise.
36849         * lib/se-selinux.in.h: Likewise.
36850         * lib/search.in.h: Likewise.
36851         * lib/signal.in.h: Likewise.
36852         * lib/spawn.in.h: Likewise.
36853         * lib/stdarg.in.h: Likewise.
36854         * lib/stddef.in.h: Likewise.
36855         * lib/stdint.in.h: Likewise.
36856         * lib/stdio.in.h: Likewise.
36857         * lib/stdlib.in.h: Likewise.
36858         * lib/string.in.h: Likewise.
36859         * lib/strings.in.h: Likewise.
36860         * lib/sys_file.in.h: Likewise.
36861         * lib/sys_ioctl.in.h: Likewise.
36862         * lib/sys_select.in.h: Likewise.
36863         * lib/sys_socket.in.h: Likewise.
36864         * lib/sys_stat.in.h: Likewise.
36865         * lib/sys_time.in.h: Likewise.
36866         * lib/sys_times.in.h: Likewise.
36867         * lib/sys_uio.in.h: Likewise.
36868         * lib/sys_utsname.in.h: Likewise.
36869         * lib/sys_wait.in.h: Likewise.
36870         * lib/sysexits.in.h: Likewise.
36871         * lib/termios.in.h: Likewise.
36872         * lib/time.in.h: Likewise.
36873         * lib/unistd.in.h: Likewise.
36874         * lib/wchar.in.h: Likewise.
36875         * lib/wctype.in.h: Likewise.
36876         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
36877         * modules/ctype (Makefile.am): Likewise.
36878         * modules/dirent (Makefile.am): Likewise.
36879         * modules/errno (Makefile.am): Likewise.
36880         * modules/fcntl-h (Makefile.am): Likewise.
36881         * modules/float (Makefile.am): Likewise.
36882         * modules/getopt-posix (Makefile.am): Likewise.
36883         * modules/iconv-h (Makefile.am): Likewise.
36884         * modules/langinfo (Makefile.am): Likewise.
36885         * modules/locale (Makefile.am): Likewise.
36886         * modules/math (Makefile.am): Likewise.
36887         * modules/netdb (Makefile.am): Likewise.
36888         * modules/netinet_in (Makefile.am): Likewise.
36889         * modules/poll-h (Makefile.am): Likewise.
36890         * modules/pthread (Makefile.am): Likewise.
36891         * modules/pty (Makefile.am): Likewise.
36892         * modules/sched (Makefile.am): Likewise.
36893         * modules/search (Makefile.am): Likewise.
36894         * modules/selinux-h (Makefile.am): Likewise.
36895         * modules/signal (Makefile.am): Likewise.
36896         * modules/spawn (Makefile.am): Likewise.
36897         * modules/stdarg (Makefile.am): Likewise.
36898         * modules/stddef (Makefile.am): Likewise.
36899         * modules/stdint (Makefile.am): Likewise.
36900         * modules/stdio (Makefile.am): Likewise.
36901         * modules/stdlib (Makefile.am): Likewise.
36902         * modules/string (Makefile.am): Likewise.
36903         * modules/strings (Makefile.am): Likewise.
36904         * modules/sys_file (Makefile.am): Likewise.
36905         * modules/sys_ioctl (Makefile.am): Likewise.
36906         * modules/sys_select (Makefile.am): Likewise.
36907         * modules/sys_socket (Makefile.am): Likewise.
36908         * modules/sys_stat (Makefile.am): Likewise.
36909         * modules/sys_time (Makefile.am): Likewise.
36910         * modules/sys_times (Makefile.am): Likewise.
36911         * modules/sys_uio (Makefile.am): Likewise.
36912         * modules/sys_utsname (Makefile.am): Likewise.
36913         * modules/sys_wait (Makefile.am): Likewise.
36914         * modules/sysexits (Makefile.am): Likewise.
36915         * modules/termios (Makefile.am): Likewise.
36916         * modules/time (Makefile.am): Likewise.
36917         * modules/unistd (Makefile.am): Likewise.
36918         * modules/wchar (Makefile.am): Likewise.
36919         * modules/wctype-h (Makefile.am): Likewise.
36920         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
36922 2011-05-29  Bruno Haible  <bruno@clisp.org>
36924         assert-h: Allow multiple gnulib generated replacements to coexist.
36925         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
36927 2011-05-29  Bruno Haible  <bruno@clisp.org>
36929         argp: Allow coexistence with strerror_r-posix module.
36930         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
36931         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
36932         by gnulib's <string.h> replacement), assume it has the POSIX signature,
36933         not the glibc signature.
36935 2011-05-28  Bruno Haible  <bruno@clisp.org>
36937         gnulib-tool: Alternative structure of testdirs, similar to --import.
36938         * gnulib-tool: New option --single-configure.
36939         (func_usage): Document it.
36940         (single_configure): New variable.
36941         (func_modules_transitive_closure_separately,
36942         func_modules_transitive_closure_separately,
36943         func_determine_use_libtests, func_modules_add_dummy_separately,
36944         func_modules_to_filelist_separately): New functions, extracted from
36945         func_import.
36946         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
36947         (func_import): Use the new functions.
36948         (func_create_testdir): Set final_modules. Handle $single_configure =
36949         true case.
36951 2011-05-28  Bruno Haible  <bruno@clisp.org>
36953         getloadavg: Remove an unreliable safety check.
36954         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
36955         getloadavg.c is in place.
36956         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
36957         Reported by Sam Steingold <sds@gnu.org>.
36959 2011-05-28  Bruno Haible  <bruno@clisp.org>
36961         doc: Cleanup yet another file produced by texinfo.tex.
36962         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
36964 2011-05-28  Bruno Haible  <bruno@clisp.org>
36966         Finish the conditional dependencies mechanism.
36967         * gnulib-tool: New option --no-conditional-dependencies.
36968         (func_usage): Document it. Don't mark --conditional-dependencies as
36969         experimental.
36970         (cond_dependencies): The possible values can now be true, false, empty.
36971         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
36972         (func_import): Store setting in gnulib-cache.m4 and read it from there.
36973         * doc/gnulib-tool.texi (Conditional dependencies): New section.
36975 2011-05-28  Bruno Haible  <bruno@clisp.org>
36977         doc: Use a recent texinfo.tex.
36978         * doc/Makefile (tex_opts): New variable.
36979         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
36981 2011-05-28  Jim Meyering  <meyering@redhat.com>
36983         intprops.h: adjust comment to match code change
36984         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
36985         only once, it *may* have side effects.  Also fix an unrelated typo.
36986         (_GL_INT_SIGNED): Likewise.
36988 2011-05-26  Simon Josefsson  <simon@josefsson.org>
36990         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
36992 2011-05-26  Bruno Haible  <bruno@clisp.org>
36994         mbsrchr: Avoid collision with system function on Interix.
36995         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
36996         Reported by Markus Duft <mduft@gentoo.org>.
36998 2011-05-15  James Youngman  <jay@gnu.org>
37000         getopt: for ambiguous options, enumerate the possibilities.
37001         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
37002         the ambiguous options when an ambiguous prefix is given. This was
37003         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
37004         glibc change was
37005         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
37007 2011-05-25  Eric Blake  <eblake@redhat.com>
37009         getcwd: work around mingw bug
37010         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
37011         * doc/posix-functions/getcwd.texi (getcwd): Document it.
37012         Reported by Matthias Bolte.
37014 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
37016         test-intprops: disable -Wtype-limits diagnostics
37017         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
37018         diagnostics.  Otherwise, the integer overflow macros generate many
37019         diagnostics.  Reported by Jim Meyering in
37020         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
37022         intprops: shorten, to pacify gcc -Woverlength-strings
37023         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
37024         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
37025         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
37026         likely to run afoul of C compiler limits for string constant lengths.
37027         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
37029 2011-05-24  Eric Blake  <eblake@redhat.com>
37031         docs: document recently fixed glibc printf bug
37032         * doc/posix-functions/fprintf.texi (fprintf): Document it.
37033         * doc/posix-functions/printf.texi (printf): Likewise.
37034         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
37035         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
37037         closein-tests: convert to init.sh
37038         * modules/closein-tests (Files): Add init.sh
37039         * tests/test-closein.sh Use it.
37041         yesno-tests: convert to init.sh
37042         * modules/yesno-tests (Files): Add init.sh.
37043         * tests/test-yesno.sh: Use it.
37045         atexit-tests: ensure reliable exit status
37046         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
37047         Reported by Bruno Haible.
37049 2011-05-24  Bruno Haible  <bruno@clisp.org>
37051         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
37052         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
37053         gl_PREREQ_STRERROR_R invocations from here...
37054         * modules/strerror_r-posix (configure.ac): ... to here.
37056 2011-05-24  Eric Blake  <eblake@redhat.com>
37058         strerror_r: fix missing header
37059         * lib/strerror_r.c: Avoid compiler warning about snprintf.
37061         strerror_r: fix AIX test failures
37062         * lib/strerror_r.c (strerror_r): Convert silent truncation to
37063         ERANGE failure.
37065         strerror_r: fix Solaris test failures
37066         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
37067         failures.
37068         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
37070         strerror_r: enforce POSIX recommendations
37071         * lib/strerror_r.c (safe_copy): New helper method.
37072         (strerror_r): Guarantee a non-empty string.
37073         * tests/test-strerror_r.c (main): Enhance tests to incorporate
37074         recent POSIX rulings and to match our strerror guarantees.
37075         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
37077 2011-05-24  Jim Meyering  <meyering@redhat.com>
37079         test-perror2.c: avoid warning about unused variable
37080         * tests/test-perror2.c (main): Remove declaration of unused "fp".
37082 2011-05-24  Eric Blake  <eblake@redhat.com>
37084         perror: avoid spurious test failure on HP-UX
37085         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
37087         tests: fix logic bug in init.sh
37088         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
37089         shell.
37091 2011-05-24  Jim Meyering  <meyering@redhat.com>
37093         utimensat: do not reference an out-of-scope buffer
37094         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
37095         declared in an inner scope, yet "times" would be dereferenced outside
37096         the scope in which "ts" was valid.
37097         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
37098         of ts[2] "out/up", so that the use of aliased "times" (via
37099         "times = ts;") does not end up referencing an out-of-scope "ts"
37101         opendir-safer.c: don't clobber errno; don't close negative FD
37102         * lib/opendir-safer.c (opendir_safer):
37103         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
37104         file descriptor, and more importantly, don't clobber the
37105         offending errno value with EINVAL.  Before, upon failure
37106         of dup_safer, we would pass the negative file descriptor to
37107         fdopendir, which would clobber errno.
37109 2011-05-23  Bruno Haible  <bruno@clisp.org>
37111         idcache: Fix module description.
37112         * modules/idcache (Include): Set to "idcache.h".
37114 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
37116         gnulib-tool: fix portability problem with MacOS sed
37117         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
37118         before the "}".  Problem reported by Leo in
37119         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
37120         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
37121         sed_extract_condition1, sed_extract_condition2.
37123 2011-05-23  Bruno Haible  <bruno@clisp.org>
37125         hash: Simplify autoconf macro.
37126         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
37128 2011-05-23  Bruno Haible  <bruno@clisp.org>
37130         getugroups: Fix module description.
37131         * modules/getugroups (Include): Set to "getugroups.h".
37133 2011-05-23  Bruno Haible  <bruno@clisp.org>
37135         linkat: Simplify autoconf macro.
37136         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
37138 2011-05-23  Bruno Haible  <bruno@clisp.org>
37139             Eric Blake  <eblake@redhat.com>
37141         linkat, renameat: Update dependencies.
37142         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
37143         * modules/linkat (Depends-on): Likewise. Remove also readlink,
37144         symlinkat.
37146 2011-05-23  Jim Meyering  <meyering@redhat.com>
37148         maint.mk: more tight_scope improvements
37149         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
37150         (_gl_TS_headers): Define only in if-0'd block.
37151         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
37152         sometimes we must *not* use it.  Adjust uses accordingly.
37153         (sc_tight_scope): Use much simpler grep-based test to determine
37154         whether we skip this rule.
37156         maint.mk: generalize/improve the tight-scope rule
37157         * top/maint.mk: Emit a warning when the test is skipped.
37158         (_gl_TS_dir): Add $(srcdir)/ prefix.
37159         (_gl_TS_function_match): Simplify, rather than trying
37160         to enumerate common types.  Otherwise, it would fail to match an
37161         "extern unsigned char const *" declaration in idutils.
37162         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
37163         a way to support use of that type of macro.
37164         (_gl_TS_var_match): Simplify regexp.
37165         (_gl_TS_obj_files): New configurable variable.
37166         (_gl_TS_headers): Likewise.
37168 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
37170         verify: fix bug when gnulib <assert.h> is also included
37171         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
37172         is defined, not if _GL_STATIC_ASSERT_H is not defined.
37173         Perhaps there's a better way, but this fixes the immediate problem.
37174         Problem reported by Bruno Haible in
37175         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
37177 2011-05-22  Bruno Haible  <bruno@clisp.org>
37179         xgetcwd: Simplify autoconf macro.
37180         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
37182 2011-05-22  Bruno Haible  <bruno@clisp.org>
37184         New module 'mktime-internal'.
37185         * modules/mktime-internal: New file.
37186         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
37187         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
37188         mktime_internal as a C macro if libc has __mktime_internal.
37189         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
37190         conditions.
37191         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
37193 2011-05-22  Bruno Haible  <bruno@clisp.org>
37195         timegm: Correct mktime replacement statements.
37196         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
37197         defining mktime as a C macro. This completes a 2009-07-28 commit.
37199 2011-05-22  Bruno Haible  <bruno@clisp.org>
37201         timegm: Simplify autoconf macro.
37202         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
37204 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
37206         clock-time: change to LGPLv2+.
37207         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
37208         BSD-like but we have no mark for that; this is good enough for now.
37210 2011-05-21  Bruno Haible  <bruno@clisp.org>
37212         strerror_r: Fix comments.
37213         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
37215 2011-05-21  Bruno Haible  <bruno@clisp.org>
37217         relocatable-prog-wrapper: Fix possible link error.
37218         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
37219         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
37220         (gl_FUNC_SETENV): ... to here.
37221         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
37222         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
37224 2011-05-21  Bruno Haible  <bruno@clisp.org>
37226         relocatable-prog-wrapper: Assume strerror() exists.
37227         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
37228         m4/strerror.m4.
37229         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
37230         * lib/relocwrapper.c: Remove mention of strerror module.
37231         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
37232         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
37233         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
37234         C macro.
37236 2011-05-21  Bruno Haible  <bruno@clisp.org>
37238         select: Simplify replacement idiom.
37239         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
37240         Win32 platforms.
37241         * lib/sys_select.in.h (select): Simplify accordingly.
37242         * modules/select (Depends-on): Likewise.
37244 2011-05-21  Bruno Haible  <bruno@clisp.org>
37246         mkdir-p: Simplify autoconf macro.
37247         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
37248         gl_FUNC_LCHOWN.
37250 2011-05-21  Eric Blake  <eblake@redhat.com>
37252         strerror_r: avoid clobbering strerror on cygwin
37253         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
37254         fall back instead to sys_errlist.
37255         * modules/strerror (configure.ac): Add witness.
37256         * tests/test-strerror_r.c (main): Enhance test.
37257         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
37258         * tests/test-perror2.c (main): Free memory before exit.
37260 2011-05-21  Bruno Haible  <bruno@clisp.org>
37262         mkdtemp: Use gnulib naming conventions.
37263         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
37264         * modules/mkdtemp (configure.ac): Update.
37266 2011-05-20  Eric Blake  <eblake@redhat.com>
37268         strerror_r: avoid corrupting errno on Solaris
37269         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
37270         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
37272         strerror_r: avoid compiler warning
37273         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
37275         strerror_r: simplify AIX code
37276         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
37278         test-perror: avoid spurious failure on FreeBSD
37279         * modules/perror-tests (Depends-on): Add strerror, now that
37280         strerror_r no longer pulls it in.
37282 2011-05-20  Bruno Haible  <bruno@clisp.org>
37284         strerror_r-posix: Remove unused dependencies.
37285         * modules/strerror_r-posix (Depends-on): Remove strerror.
37286         Reported by Eric Blake.
37288 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
37290         intprops: remove assumption about A|B representation
37291         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
37292         is a valid integer if both A and B are.  Although this is true for
37293         all known practical hosts, the C standard doesn't guarantee it,
37294         and the code need not assume it.  Also, this change may work around
37295         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
37296         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
37298 2011-05-20  Eric Blake  <eblake@redhat.com>
37300         perror: work around FreeBSD bug
37301         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
37302         is broken.  Move AC_LIBOBJ...
37303         * modules/perror (configure.ac): Here.
37304         * doc/posix-functions/perror.texi (perror): Document this.
37305         * tests/test-perror2.c (main): Enhance test.
37307         test-perror: check for strerror interactions
37308         * tests/macros.h (STREQ): Add macro.
37309         * modules/perror-tests (Files): Add second test.
37310         * tests/test-perror2.c (main): New file.
37311         * doc/posix-functions/perror.texi (perror): Document glibc bug.
37313         test-perror: rewrite to use init script
37314         * modules/perror-tests (Files): Add init.sh.
37315         * tests/test-perror.sh: Use temporary directory.
37317 2011-05-20  Jim Meyering  <meyering@redhat.com>
37319         maint: replace misused "a" with "an"
37320         * doc/intprops.texi: "a integer"
37321         * doc/regex.texi: "a explanation"
37322         * lib/alignof.h: "a object"
37323         * lib/argmatch.h: "a explanation"
37324         * lib/argp-help.c: "a option" and "a OPTION_DOC"
37325         * lib/stdint.in.h: "a integer"
37326         * lib/userspec.c: "a owner"
37327         * doc/gnulib.texi: Fix "a idea", and reword.
37329 2011-05-19  Jim Meyering  <meyering@redhat.com>
37331         maint: correct misuse of "a" and "an"
37332         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
37333         * lib/argp-help.c: "an docum...": s/an/a/
37334         * lib/argp-parse.c: "An vector": s/An/A/
37335         * lib/execute.c: "an native": s/an/a/
37336         * lib/spawn-pipe.c: Likewise.
37337         * lib/gc.h: "an Gc_rc": s/an/a/
37338         * lib/unigbrk.in.h: "an grapheme": s/an/a/
37339         * lib/fts.c: "an stat.st_dev": s/an/a/
37341 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
37343         intprops-tests: work around HP-UX 11.23 cc bug with constants
37344         * tests/test-intprops.c (VERIFY): New macro.
37345         (main): Use it, instead of verify, to work around the compiler bug; see
37346         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
37348         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
37349         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
37350         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
37351         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
37352         (_GL_REMAINDER_OVERFLOW): Use it.
37354         intprops-tests: revert unsigned part of previous change
37355         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
37356         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
37357         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
37358         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
37360 2011-05-19  Bruno Haible  <bruno@clisp.org>
37362         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
37363         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
37364         strerror_r() returned without filling the buffer.
37365         Reported by Eric Blake.
37367 2011-05-19  Eric Blake  <eblake@redhat.com>
37369         strerror_r: guarantee unchanged errno
37370         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
37371         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
37372         failure.
37373         * tests/test-strerror_r.c (main): Enhance test.
37375 2011-05-19  Bruno Haible  <bruno@clisp.org>
37377         strerror_r: Reorder #if blocks.
37378         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
37379         for consistency with the previous commit.
37381 2011-05-19  Bruno Haible  <bruno@clisp.org>
37383         perror: Avoid clobbering the strerror buffer when possible.
37384         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
37385         * lib/strerror.c: Include it.
37386         * modules/strerror (Files): Add lib/strerror-impl.h.
37387         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
37388         (my_strerror): New function, defined through lib/strerror-impl.h.
37389         (perror): Use it instead of strerror.
37390         * modules/perror (Files): Add lib/strerror-impl.h.
37391         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
37393 2011-05-19  Eric Blake  <eblake@redhat.com>
37395         strerror_r: fix on newer cygwin
37396         * lib/strerror_r.c (strerror_r): Cygwin now has
37397         __xpg_strerror_r, use it.
37399 2011-05-19  Bruno Haible  <bruno@clisp.org>
37401         strerror_r: Avoid clobbering the strerror buffer when possible.
37402         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
37403         (sys_nerr, sys_errlist): New declarations.
37404         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
37405         HP-UX, native Win32, IRIX, and 32-bit Solaris.
37406         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
37408 2011-05-19  Bruno Haible  <bruno@clisp.org>
37410         strerror_r: Fix test failure on mingw.
37411         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
37412         EXTEND_STRERROR_R.
37413         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
37414         macros from errno.in.h instead.
37416 2011-05-19  Eric Blake  <eblake@redhat.com>
37418         strerror: relax test for Solaris
37419         * tests/test-strerror.c (main): Permit Solaris behavior.
37420         * tests/test-strerror_r.c (main): Likewise.
37422         strerror: enforce POSIX ruling on strerror(0)
37423         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
37424         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
37425         * lib/strerror_r.c (rpl_strerror_r): Work around it.
37426         * doc/posix-functions/strerror.texi (strerror): Document it.
37427         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
37428         * tests/test-strerror.c (main): Strengthen test.
37429         * tests/test-strerror_r.c (main): Likewise.
37431 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
37433         intprop-tests: port to older and more-pedantic compilers
37434         * modules/intprops-tests (Files): Add tests/macros.h.
37435         * tests/test-intprops.c: Include macros.h.
37436         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
37437         it's no longer documented to expand to an integer constant expression.
37438         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
37439         argument is floating point, as it's no longer documented to expand
37440         to an integer constant expression in that case.
37441         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
37442         compiler bugs reported by Bruno Haible.  See
37443         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
37444         (U0, U1): New constants, to work around the same bugs.  Also,
37445         in tests, use e.g., "(unsigned int) 39" rather than "39u".
37447         intprops: work around C compiler bugs
37448         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
37449         bug in Sun C 5.11 2010/08/13 and other compilers; see
37450         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
37452         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
37453         * doc/intprops.texi (Integer Type Determination): Fix
37454         documentation for TYPE_IS_INTEGER: it returns an constant
37455         expression, not an integer constant expression.  Fix doc for
37456         TYPE_SIGNED: it returns an integer constant expression only if its
37457         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
37458         hardly worth documented that way....)
37460 2011-05-18  Bruno Haible  <bruno@clisp.org>
37462         strerror_r: Avoid clobbering the strerror buffer when possible.
37463         * lib/strerror_r.c (strerror_r): Merge the three implementations.
37464         Handle gnulib defined errno values here. When strerror() returns NULL
37465         or an empty string, return EINVAL.
37466         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
37467         gnulib defined errno values here.
37468         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
37470 2011-05-18  Eric Blake  <eblake@redhat.com>
37472         fnmatch: avoid compiler warning
37473         * lib/fnmatch_loop.c (FCT): Use correct type.
37474         Reported by Matthias Bolte.
37476 2011-05-13  Jim Meyering  <meyering@redhat.com>
37478         maint.mk: three new prohibit_<HDR>_without_use rules
37479         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
37480         (sc_prohibit_stdio-safer_without_use): Likewise.
37481         (sc_prohibit_xfreopen_without_use): Likewise.
37483 2011-05-17  Jim Meyering  <meyering@redhat.com>
37485         announce-gen: fail if the NEWS delta is empty
37486         If there's nothing noteworthy in NEWS, then either you forgot
37487         or you shouldn't be releasing.
37488         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
37490 2011-05-17  Pádraig Brady  <P@draigBrady.com>
37492         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
37493         reserved symbols starting with double underscore from the check.
37495 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
37497         intprops: add doc
37498         * doc/intprops.texi: New file, documenting intprops.
37499         * doc/gnulib.texi (Particular Modules): Include it.
37501         verify: add doc to gnulib manual and fix example
37502         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
37503         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
37504         (Compile-time Assertions): Fix example so it can't overflow.
37506 2011-05-17  Jim Meyering  <meyering@redhat.com>
37508         warnings.m4: don't usurp save_CPPFLAGS variable name
37509         * m4/warnings.m4: Prefix local temporary variable name with gl_.
37511         doc: fix typo
37512         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
37514 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
37515             Bruno Haible  <bruno@clisp.org>
37517         doc: Tweak recent change.
37518         * README (Portability guidelines): Tweak new text.
37519         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
37520         Interix 6.1.
37522 2011-05-16  Eric Blake  <eblake@redhat.com>
37524         inttypes: avoid autoconf warning
37525         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
37526         * m4/stdint.m4 (gl_STDINT_H): Likewise.
37528 2011-05-16  Sam Steingold  <sds@gnu.org>
37529         and Eric Blake  <eblake@redhat.com>
37531         vc-list-files: accept multiple directory operands
37532         * build-aux/vc-list-files: Iterate over all remaining operands.
37534 2011-05-16  Bruno Haible  <bruno@clisp.org>
37536         Fix confusion regarding deprecated modules.
37537         * modules/calloc (Status, Notice): Mark module as deprecated, not
37538         obsolete.
37539         * modules/fnmatch-posix (Status, Notice): Likewise.
37540         * modules/getdate (Status, Notice): Likewise.
37541         * modules/getopt (Status, Notice): Likewise.
37542         * modules/malloc (Status, Notice): Likewise.
37543         * modules/pipe (Status, Notice): Likewise.
37544         * modules/realloc (Status, Notice): Likewise.
37545         * modules/rename-dest-slash (Status, Notice): Likewise.
37546         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
37547         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
37548         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
37549         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
37550         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
37552 2011-05-16  Bruno Haible  <bruno@clisp.org>
37554         doc: List the target platforms.
37555         * doc/gnulib-intro.texi (Target Platforms): New section.
37556         * doc/gnulib.texi (Introduction): Update menu.
37557         * README (Portability guidelines): Refer to the new section. Update
37558         statement about oldest supported environment. Remove rationale why
37559         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
37560         unportable C89 function.
37561         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
37562         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
37564 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
37566         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
37568 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
37570         intprops-tests: new module
37571         * modules/intprops-tests, tests/test-intprops.c: New files.
37573         intprops: add safe, portable integer overflow checking
37574         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
37575         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
37576         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
37577         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
37578         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
37579         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
37580         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
37581         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
37582         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
37583         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
37584         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
37586 2011-05-12  James Youngman  <jay@gnu.org>
37588         Add a test for glibc's Bugzilla bug #12378.
37589         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
37590         doesn't allow the literal matching of a lone "[" (which is
37591         required by POSIX).
37592         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
37594 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
37596         Sync glibc change fixing Bugzilla bug #12378.
37597         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
37598         beginning and fall back to matching as normal character if the
37599         string ends before the matching ']' is found.  This is what POSIX
37600         requires.
37602 2011-05-13  Eric Blake  <eblake@redhat.com>
37604         getcwd-lgpl: relax test for FreeBSD
37605         * doc/posix-functions/getcwd.texi (getcwd): Document portability
37606         issue.
37607         * tests/test-getcwd-lgpl.c (main): Relax test.
37608         Reported by Matthias Bolte.
37610 2011-05-11  Eric Blake  <eblake@redhat.com>
37612         test-fflush: silence compiler warning
37613         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
37615 2011-05-11  Bruno Haible  <bruno@clisp.org>
37617         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
37618         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
37619         * modules/canonicalize (Depends-on): Add 'nocrash'.
37620         * modules/canonicalize-lgpl (Depends-on): Likewise.
37621         * doc/posix-functions/realpath.texi: Update platforms list.
37622         Reported by Ryan Schmidt <ryandesign@macports.org>.
37624 2011-05-11  Bruno Haible  <bruno@clisp.org>
37626         group-member: Declare function in <unistd.h>.
37627         * lib/unistd.in.h (group_member): New declaration.
37628         * lib/group-member.h: Remove file.
37629         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
37630         * tests/test-unistd-c++.cc: Check signature of group_member.
37631         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
37632         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
37633         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
37634         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
37635         HAVE_GROUP_MEMBER.
37636         * modules/group-member (Files): Remove lib/group-member.h.
37637         (Depends-on): Add unistd. Specify conditions.
37638         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
37639         (Include): Change to <unistd.h>.
37640         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
37641         HAVE_GROUP_MEMBER.
37642         * NEWS: Mention the change.
37643         * lib/euidaccess.c: Don't include group-member.h.
37645 2011-05-11  Bruno Haible  <bruno@clisp.org>
37647         group-member: Document module.
37648         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
37649         module.
37651 2011-05-11  Bruno Haible  <bruno@clisp.org>
37653         fclose: Fix mistake earlier today.
37654         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
37656 2011-05-11  Eric Blake  <eblake@redhat.com>
37658         fclose: preserve fflush errors
37659         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
37660         Reported by Jim Meyering.
37662         bootstrap: support a prereq of 'rpcgen -' on RHEL5
37663         * build-aux/bootstrap (check_versions): When no specific version
37664         is required, merely check that the app produces an exit status
37665         that indicates its existence.
37667         maint.mk: drop redundant check
37668         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
37669         the same but better.
37671 2011-05-11  Bruno Haible  <bruno@clisp.org>
37673         fclose: Fix possible link error.
37674         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
37675         unregister_shadow_fd. Improve comments.
37676         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
37677         Eric Blake.
37679 2011-05-11  Jim Meyering  <meyering@redhat.com>
37681         maint.mk: improve "can not" detection and generalize rule name
37682         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
37683         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
37684         Use the same technique as in sc_prohibit_doubled_word, so that
37685         we recognize "can not" also when the words are separated by a newline.
37686         Suggested by Eric Blake.
37687         (perl_filename_lineno_text_): Define.  Factored out of...
37688         (prohibit_doubled_word_): ...here.  Use the new definition.
37689         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
37690         (prohibit_undesirable_word_seq_RE_): New overridable variable.
37691         (ignore_undesirable_word_sequence_RE_): New overridable variable.
37693 2011-05-10  Eric Blake  <eblake@redhat.com>
37695         fclose: avoid double close race when possible
37696         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
37697         all but WINDOWS_SOCKETS.
37699 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
37701         openat: correct new comment
37702         * lib/openat-proc.c (openat_proc_name): Correct the comment.
37704 2011-05-10  Jim Meyering  <meyering@redhat.com>
37706         openat: add comments
37707         * lib/openat-proc.c (openat_proc_name): Add comments,
37708         mostly from Eric Blake.
37710 2011-05-09  Eric Blake  <eblake@redhat.com>
37712         openat: reduce syscalls in first probe of /proc
37713         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
37714         be a directory.  Simplify the probe for .. bugs.
37715         * modules/openat (Depends-on): Drop same-inode.
37716         Reported by Bastien ROUCARIES.
37718 2011-05-09  Jim Meyering  <meyering@redhat.com>
37720         maint.mk: change semantics/name of tight_scope variables
37721         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
37722         Rename variables to align with semantics that make them more useful.
37724         maint.mk: tweak new rule's name not to impinge
37725         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
37726         (sc_tight_scope): Use new rule name rather than $@-0.
37728         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
37729         * top/maint.mk (sc_tight_scope): New rule.
37730         (sc_tight_scope-0): New rule, ifdef'd out.
37731         (_gl_TS_dir): Default.
37732         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
37733         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
37735 2011-05-09  Simon Josefsson  <simon@josefsson.org>
37737         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
37738         Haible <bruno@clisp.org>.
37740 2011-05-08  Bruno Haible  <bruno@clisp.org>
37742         Comments.
37743         * m4/isnanf.m4: Add comment.
37744         * m4/isnanl.m4: Likewise.
37746 2011-05-08  Bruno Haible  <bruno@clisp.org>
37748         glob: Remove obsolete macro.
37749         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
37751 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
37753         intprops: Sun C 5.11 supports __typeof__
37754         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
37755         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
37756         which is new.
37757         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
37759         intprops: switch to usual gnulib indenting and naming
37760         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
37761         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
37763         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
37765 2011-05-08  Jim Meyering  <meyering@redhat.com>
37767         maint.mk: suppress "Entering/Leaving directory" diag in announcement
37768         * top/maint.mk (release-prep): Use make's --no-print-directory
37769         option when generating the announcement.  This eliminates the
37770         pesky "make[2]: Entering/Leaving directory" diagnostics in the
37771         generated announcement template.
37773 2011-05-08  Bruno Haible  <bruno@clisp.org>
37775         tzset: Fix gettimeofday wrapper on Solaris 2.6.
37776         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
37777         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
37779 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
37781         ignore-value, verify: Omit include files from lib_SOURCES.
37782         * modules/ignore-value, modules/verify (Makefile.am):
37783         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
37784         that leads Automake to duplicate use of am__objects_... variables
37785         in Makefile.in.  See
37786         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
37788 2011-05-07  Bruno Haible  <bruno@clisp.org>
37790         fclose: Simplify autoconf macro.
37791         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
37792         defined.
37794 2011-05-07  Bruno Haible  <bruno@clisp.org>
37796         canonicalize-lgpl: Fix autoconf macro ordering bug.
37797         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
37798         gl_STDLIB_H_DEFAULTS.
37800 2011-05-06  Eric Blake  <eblake@redhat.com>
37802         maintainer-makefile: make sc_po_check easier to tune
37803         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
37804         to probe for strings, such as an alternate location for gnulib.
37806         fclose: guarantee behavior on seekable stdin
37807         * modules/fclose (Depends-on): Add fflush.
37808         * doc/posix-functions/fclose.texi (fclose): Document this.
37809         * tests/test-fclose.c (main): Make test for this unconditional.
37811 2011-05-06  Bruno Haible  <bruno@clisp.org>
37813         fflush, fpurge: Relicense under LGPLv2+.
37814         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
37815         * modules/fpurge (License): Likewise.
37816         With permission from Eric Blake and Jim Meyering.
37817         Suggested by Eric Blake.
37819 2011-05-06  Karl Berry  <karl@gnu.org>
37821         * MODULES.html.sh (func_all_modules): remove exit.
37823 2011-05-06  Jim Meyering  <meyering@redhat.com>
37825         maint.mk: use info-gnu@ as the default only for a stable release
37826         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
37827         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
37828         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
37829         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
37831 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
37833         assert-h: new module, which supports C1X-style static_assert
37834         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
37835         * lib/verify.h: Revamp so that this can be copied into assert.h,
37836         while retaining the ability to use it standalone as before.
37837         Rename private identifiers so as not to encroach on the
37838         standard C namespace, since this is now used by assert.h.
37839         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
37840         the old verify_true.
37841         (_GL_VERIFY_TRUE): New macro, with much of the contents of
37842         the old verify_true.  Use _GL_VERIFY_TYPE.
37843         (_GL_VERIFY): New macro, with much of the contents of the old verify.
37844         (static_assert): New macro, if _GL_STATIC_ASSERT_H
37845         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
37846         defined when this file is copied into the replacement assert.h.
37847         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
37848         and _Static_assert is not built in.
37849         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
37850         defined, and use the new macros mentioned above.
37851         * doc/posix-headers/assert.texi: Document this.
37853 2011-05-05  Bruno Haible  <bruno@clisp.org>
37855         fclose, fflush: Respect rules for use of AC_LIBOBJ.
37856         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
37857         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
37858         gl_REPLACE_FCLOSE here.
37859         * modules/fflush (Depends-on): Remove fclose.
37860         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
37861         combination with module 'fclose'.
37863 2011-05-05  Bruno Haible  <bruno@clisp.org>
37865         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
37866         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
37867         gl_FUNC_FFLUSH.
37868         (gl_FUNC_FFLUSH): Use it.
37869         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
37870         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
37871         gl_REPLACE_FSEEKO here.
37873 2011-05-05  Bruno Haible  <bruno@clisp.org>
37875         tzset: Relicense under LGPL.
37876         * modules/tzset (License): Change to LGPL.
37877         No agreement needed; it's a no-op.
37879         strtoimax, strtoumax: Relicense under LGPL.
37880         * modules/strtoimax (License): Change to LGPL.
37881         * modules/strtoumax (License): Likewise.
37882         With permission from Jim Meyering, Paul Eggert:
37883         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
37884         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
37886         getgroups: Relicense under LGPL.
37887         * modules/getgroups (License): Change to LGPL.
37888         With permission from Jim Meyering, Paul Eggert, Eric Blake:
37889         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
37890         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
37891         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
37893         nanosleep: Relicense under LGPL.
37894         * modules/nanosleep (License): Change to LGPL.
37895         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
37896         Haible:
37897         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
37898         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
37899         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
37900         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
37902         futimens: Relicense under LGPL.
37903         * modules/futimens (License): Change to LGPL.
37904         With permission from Eric Blake:
37905         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
37907         fflush: Relicense under LGPL.
37908         * modules/fflush (License): Change to LGPL.
37909         With permission from Eric Blake, Bruno Haible, Jim Meyering:
37910         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
37911         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
37912         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
37914         tmpfile: Relicense under LGPL.
37915         * modules/tmpfile (License): Change to LGPL.
37916         With permission from Ben Pfaff:
37917         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
37919         isfinite: Relicense under LGPL.
37920         * modules/isfinite (License): Change to LGPL.
37921         With permission from Ben Pfaff, Bruno Haible:
37922         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
37923         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
37925         acosl..tanl: Relicense under LGPL.
37926         * modules/acosl (License): Change to LGPL.
37927         * modules/asinl (License): Likewise.
37928         * modules/atanl (License): Likewise.
37929         * modules/cosl (License): Likewise.
37930         * modules/expl (License): Likewise.
37931         * modules/logl (License): Likewise.
37932         * modules/sinl (License): Likewise.
37933         * modules/sqrtl (License): Likewise.
37934         * modules/tanl (License): Likewise.
37935         Source code originally from glibc and Paolo Bonzini. Agreements:
37936         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
37937         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
37939 2011-05-05  Bruno Haible  <bruno@clisp.org>
37941         signal: Define sighandler_t.
37942         * lib/signal.in.h (sighandler_t): New type.
37943         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
37944         whether sighandler_t is defined.
37945         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
37946         * modules/signal (Depends-on): Add extensions.
37947         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
37948         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
37949         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
37951 2011-05-05  Eric Blake  <eblake@redhat.com>
37953         maint: remove useless REPLACE_*_H macros
37954         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
37955         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
37956         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
37957         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
37958         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
37959         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
37960         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
37961         * m4/btowc.m4: Update callers.
37962         * m4/dirfd.m4: Likewise.
37963         * m4/duplocale.m4: Likewise.
37964         * m4/fchdir.m4: Likewise.
37965         * m4/fdopendir.m4: Likewise.
37966         * m4/inet_ntop.m4: Likewise.
37967         * m4/inet_pton.m4: Likewise.
37968         * m4/ioctl.m4: Likewise.
37969         * m4/mbrlen.m4: Likewise.
37970         * m4/mbrtowc.m4: Likewise.
37971         * m4/mbsinit.m4: Likewise.
37972         * m4/mbsnrtowcs.m4: Likewise.
37973         * m4/mbsrtowcs.m4: Likewise.
37974         * m4/poll.m4: Likewise.
37975         * m4/setlocale.m4: Likewise.
37976         * m4/wcrtomb.m4: Likewise.
37977         * m4/wcsnrtombs.m4: Likewise.
37978         * m4/wcsrtombs.m4: Likewise.
37979         * m4/wctob.m4: Likewise.
37980         * m4/wcwidth.m4: Likewise.
37981         * modules/posix_spawn: Likewise.
37982         * modules/posix_spawn_file_actions_addclose: Likewise.
37983         * modules/posix_spawn_file_actions_adddup2: Likewise.
37984         * modules/posix_spawn_file_actions_addopen: Likewise.
37985         * modules/posix_spawn_file_actions_destroy: Likewise.
37986         * modules/posix_spawn_file_actions_init: Likewise.
37987         * modules/posix_spawnattr_destroy: Likewise.
37988         * modules/posix_spawnattr_getflags: Likewise.
37989         * modules/posix_spawnattr_getpgroup: Likewise.
37990         * modules/posix_spawnattr_getschedparam: Likewise.
37991         * modules/posix_spawnattr_getschedpolicy: Likewise.
37992         * modules/posix_spawnattr_getsigdefault: Likewise.
37993         * modules/posix_spawnattr_getsigmask: Likewise.
37994         * modules/posix_spawnattr_init: Likewise.
37995         * modules/posix_spawnattr_setflags: Likewise.
37996         * modules/posix_spawnattr_setpgroup: Likewise.
37997         * modules/posix_spawnattr_setschedparam: Likewise.
37998         * modules/posix_spawnattr_setschedpolicy: Likewise.
37999         * modules/posix_spawnattr_setsigdefault: Likewise.
38000         * modules/posix_spawnattr_setsigmask: Likewise.
38001         * modules/posix_spawnp: Likewise.
38003 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
38005         Add option to do-release-commit-and-tag to specify branch.
38006         * build-aux/do-release-commit-and-tag: Add --branch.
38008 2011-05-03  Bruno Haible  <bruno@clisp.org>
38010         Avoid unnecessary compilation units, through conditional dependencies.
38011         * modules/accept (Depends-on): Add conditions to the dependencies.
38012         * modules/acosl (Depends-on): Likewise.
38013         * modules/argz (Depends-on): Likewise.
38014         * modules/asinl (Depends-on): Likewise.
38015         * modules/atanl (Depends-on): Likewise.
38016         * modules/atoll (Depends-on): Likewise.
38017         * modules/bind (Depends-on): Likewise.
38018         * modules/btowc (Depends-on): Likewise.
38019         * modules/canonicalize-lgpl (Depends-on): Likewise.
38020         * modules/ceil (Depends-on): Likewise.
38021         * modules/ceilf (Depends-on): Likewise.
38022         * modules/ceill (Depends-on): Likewise.
38023         * modules/chdir-long (Depends-on): Likewise.
38024         * modules/chown (Depends-on): Likewise.
38025         * modules/close (Depends-on): Likewise.
38026         * modules/connect (Depends-on): Likewise.
38027         * modules/cosl (Depends-on): Likewise.
38028         * modules/dirfd (Depends-on): Likewise.
38029         * modules/dprintf (Depends-on): Likewise.
38030         * modules/dprintf-posix (Depends-on): Likewise.
38031         * modules/error (Depends-on): Likewise.
38032         * modules/euidaccess (Depends-on): Likewise.
38033         * modules/expl (Depends-on): Likewise.
38034         * modules/faccessat (Depends-on): Likewise.
38035         * modules/fchdir (Depends-on): Likewise.
38036         * modules/fclose (Depends-on): Likewise.
38037         * modules/fcntl (Depends-on): Likewise.
38038         * modules/fdopendir (Depends-on): Likewise.
38039         * modules/fflush (Depends-on): Likewise.
38040         * modules/floor (Depends-on): Likewise.
38041         * modules/floorf (Depends-on): Likewise.
38042         * modules/floorl (Depends-on): Likewise.
38043         * modules/fnmatch (Depends-on): Likewise.
38044         * modules/fopen (Depends-on): Likewise.
38045         * modules/fprintf-posix (Depends-on): Likewise.
38046         * modules/frexp (Depends-on): Likewise.
38047         * modules/frexp-nolibm (Depends-on): Likewise.
38048         * modules/frexpl (Depends-on): Likewise.
38049         * modules/frexpl-nolibm (Depends-on): Likewise.
38050         * modules/fseek (Depends-on): Likewise.
38051         * modules/fsusage (Depends-on): Likewise.
38052         * modules/ftell (Depends-on): Likewise.
38053         * modules/ftello (Depends-on): Likewise.
38054         * modules/futimens (Depends-on): Likewise.
38055         * modules/getcwd (Depends-on): Likewise.
38056         * modules/getcwd-lgpl (Depends-on): Likewise.
38057         * modules/getdelim (Depends-on): Likewise.
38058         * modules/getdomainname (Depends-on): Likewise.
38059         * modules/getgroups (Depends-on): Likewise.
38060         * modules/gethostname (Depends-on): Likewise.
38061         * modules/getline (Depends-on): Likewise.
38062         * modules/getlogin_r (Depends-on): Likewise.
38063         * modules/getopt-posix (Depends-on): Likewise.
38064         * modules/getpeername (Depends-on): Likewise.
38065         * modules/getsockname (Depends-on): Likewise.
38066         * modules/getsockopt (Depends-on): Likewise.
38067         * modules/getsubopt (Depends-on): Likewise.
38068         * modules/getusershell (Depends-on): Likewise.
38069         * modules/glob (Depends-on): Likewise.
38070         * modules/grantpt (Depends-on): Likewise.
38071         * modules/iconv_open (Depends-on): Likewise.
38072         * modules/iconv_open-utf (Depends-on): Likewise.
38073         * modules/inet_ntop (Depends-on): Likewise.
38074         * modules/inet_pton (Depends-on): Likewise.
38075         * modules/ioctl (Depends-on): Likewise.
38076         * modules/isapipe (Depends-on): Likewise.
38077         * modules/isfinite (Depends-on): Likewise.
38078         * modules/isinf (Depends-on): Likewise.
38079         * modules/lchown (Depends-on): Likewise.
38080         * modules/ldexpl (Depends-on): Likewise.
38081         * modules/link (Depends-on): Likewise.
38082         * modules/linkat (Depends-on): Likewise.
38083         * modules/listen (Depends-on): Likewise.
38084         * modules/logl (Depends-on): Likewise.
38085         * modules/lstat (Depends-on): Likewise.
38086         * modules/mbrlen (Depends-on): Likewise.
38087         * modules/mbrtowc (Depends-on): Likewise.
38088         * modules/mbsinit (Depends-on): Likewise.
38089         * modules/mbsnrtowcs (Depends-on): Likewise.
38090         * modules/mbsrtowcs (Depends-on): Likewise.
38091         * modules/mbtowc (Depends-on): Likewise.
38092         * modules/memcmp (Depends-on): Likewise.
38093         * modules/mkdir (Depends-on): Likewise.
38094         * modules/mkdtemp (Depends-on): Likewise.
38095         * modules/mkfifo (Depends-on): Likewise.
38096         * modules/mkfifoat (Depends-on): Likewise.
38097         * modules/mknod (Depends-on): Likewise.
38098         * modules/mkostemp (Depends-on): Likewise.
38099         * modules/mkostemps (Depends-on): Likewise.
38100         * modules/mkstemp (Depends-on): Likewise.
38101         * modules/mkstemps (Depends-on): Likewise.
38102         * modules/mktime (Depends-on): Likewise.
38103         * modules/nanosleep (Depends-on): Likewise.
38104         * modules/open (Depends-on): Likewise.
38105         * modules/openat (Depends-on): Likewise.
38106         * modules/perror (Depends-on): Likewise.
38107         * modules/poll (Depends-on): Likewise.
38108         * modules/popen (Depends-on): Likewise.
38109         * modules/posix_spawn (Depends-on): Likewise.
38110         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
38111         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
38112         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
38113         * modules/posix_spawnp (Depends-on): Likewise.
38114         * modules/pread (Depends-on): Likewise.
38115         * modules/printf-posix (Depends-on): Likewise.
38116         * modules/ptsname (Depends-on): Likewise.
38117         * modules/putenv (Depends-on): Likewise.
38118         * modules/pwrite (Depends-on): Likewise.
38119         * modules/readline (Depends-on): Likewise.
38120         * modules/readlink (Depends-on): Likewise.
38121         * modules/readlinkat (Depends-on): Likewise.
38122         * modules/recv (Depends-on): Likewise.
38123         * modules/recvfrom (Depends-on): Likewise.
38124         * modules/regex (Depends-on): Likewise.
38125         * modules/remove (Depends-on): Likewise.
38126         * modules/rename (Depends-on): Likewise.
38127         * modules/renameat (Depends-on): Likewise.
38128         * modules/rmdir (Depends-on): Likewise.
38129         * modules/round (Depends-on): Likewise.
38130         * modules/roundf (Depends-on): Likewise.
38131         * modules/roundl (Depends-on): Likewise.
38132         * modules/rpmatch (Depends-on): Likewise.
38133         * modules/select (Depends-on): Likewise.
38134         * modules/send (Depends-on): Likewise.
38135         * modules/sendto (Depends-on): Likewise.
38136         * modules/setenv (Depends-on): Likewise.
38137         * modules/setlocale (Depends-on): Likewise.
38138         * modules/setsockopt (Depends-on): Likewise.
38139         * modules/shutdown (Depends-on): Likewise.
38140         * modules/sigaction (Depends-on): Likewise.
38141         * modules/signbit (Depends-on): Likewise.
38142         * modules/sigprocmask (Depends-on): Likewise.
38143         * modules/sinl (Depends-on): Likewise.
38144         * modules/sleep (Depends-on): Likewise.
38145         * modules/snprintf (Depends-on): Likewise.
38146         * modules/snprintf-posix (Depends-on): Likewise.
38147         * modules/socket (Depends-on): Likewise.
38148         * modules/sprintf-posix (Depends-on): Likewise.
38149         * modules/sqrtl (Depends-on): Likewise.
38150         * modules/stat (Depends-on): Likewise.
38151         * modules/strchrnul (Depends-on): Likewise.
38152         * modules/strdup-posix (Depends-on): Likewise.
38153         * modules/strerror (Depends-on): Likewise.
38154         * modules/strerror_r-posix (Depends-on): Likewise.
38155         * modules/strndup (Depends-on): Likewise.
38156         * modules/strnlen (Depends-on): Likewise.
38157         * modules/strptime (Depends-on): Likewise.
38158         * modules/strsep (Depends-on): Likewise.
38159         * modules/strsignal (Depends-on): Likewise.
38160         * modules/strstr-simple (Depends-on): Likewise.
38161         * modules/strtod (Depends-on): Likewise.
38162         * modules/strtoimax (Depends-on): Likewise.
38163         * modules/strtok_r (Depends-on): Likewise.
38164         * modules/strtoumax (Depends-on): Likewise.
38165         * modules/symlink (Depends-on): Likewise.
38166         * modules/symlinkat (Depends-on): Likewise.
38167         * modules/tanl (Depends-on): Likewise.
38168         * modules/tcgetsid (Depends-on): Likewise.
38169         * modules/tmpfile (Depends-on): Likewise.
38170         * modules/trunc (Depends-on): Likewise.
38171         * modules/truncf (Depends-on): Likewise.
38172         * modules/truncl (Depends-on): Likewise.
38173         * modules/uname (Depends-on): Likewise.
38174         * modules/unlink (Depends-on): Likewise.
38175         * modules/unlockpt (Depends-on): Likewise.
38176         * modules/unsetenv (Depends-on): Likewise.
38177         * modules/usleep (Depends-on): Likewise.
38178         * modules/utimensat (Depends-on): Likewise.
38179         * modules/vasprintf (Depends-on): Likewise.
38180         * modules/vdprintf (Depends-on): Likewise.
38181         * modules/vdprintf-posix (Depends-on): Likewise.
38182         * modules/vfprintf-posix (Depends-on): Likewise.
38183         * modules/vprintf-posix (Depends-on): Likewise.
38184         * modules/vsnprintf (Depends-on): Likewise.
38185         * modules/vsnprintf-posix (Depends-on): Likewise.
38186         * modules/vsprintf-posix (Depends-on): Likewise.
38187         * modules/wcrtomb (Depends-on): Likewise.
38188         * modules/wcscasecmp (Depends-on): Likewise.
38189         * modules/wcscspn (Depends-on): Likewise.
38190         * modules/wcsdup (Depends-on): Likewise.
38191         * modules/wcsncasecmp (Depends-on): Likewise.
38192         * modules/wcsnrtombs (Depends-on): Likewise.
38193         * modules/wcspbrk (Depends-on): Likewise.
38194         * modules/wcsrtombs (Depends-on): Likewise.
38195         * modules/wcsspn (Depends-on): Likewise.
38196         * modules/wcsstr (Depends-on): Likewise.
38197         * modules/wcstok (Depends-on): Likewise.
38198         * modules/wcswidth (Depends-on): Likewise.
38199         * modules/wctob (Depends-on): Likewise.
38200         * modules/wctomb (Depends-on): Likewise.
38201         * modules/wctype (Depends-on): Likewise.
38202         * modules/wcwidth (Depends-on): Likewise.
38203         * modules/write (Depends-on): Likewise.
38205 2011-05-03  Bruno Haible  <bruno@clisp.org>
38207         Support for conditional dependencies.
38208         * doc/gnulib.texi (Module description): Document the syntax of
38209         conditional dependencies.
38210         * gnulib-tool: New option --conditional-dependencies.
38211         (func_usage): Document it.
38212         (cond_dependencies): New variable.
38213         (func_get_automake_snippet_conditional,
38214         func_get_automake_snippet_unconditional): New functions, extracted from
38215         func_get_automake_snippet.
38216         (func_get_automake_snippet): Use them.
38217         (sed_first_32_chars): New variable.
38218         (func_module_shellfunc_name): New function.
38219         (func_module_shellvar_name): New function.
38220         (func_module_conditional_name): New function.
38221         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
38222         func_cond_module_condition): New functions.
38223         (func_modules_transitive_closure): Add support for conditional
38224         dependencies.
38225         (func_emit_lib_Makefile_am): For a conditional module, enclose the
38226         conditional automake snippet in an automake conditional.
38227         (func_emit_autoconf_snippets): Emit shell functions that contain the
38228         code for conditional modules.
38229         (func_import, func_create_testdir): Update specification.
38231 2011-05-03  Eric Blake  <eblake@redhat.com>
38233         test-getaddrinfo: report error information
38234         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
38236 2011-05-03  Jim Meyering  <meyering@redhat.com>
38238         bootstrap: avoid build failure when $GZIP is set
38239         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
38240         program name.  If defined at all, it is supposed to list gzip options.
38241         Reported by Alan Curry in http://debbugs.gnu.org/8609
38243 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
38245         readme-release: new module with release instructions
38246         * modules/readme-release: New module.
38247         * top/README-release: New file, from coreutils, grep, diffutils.
38248         * MODULES.html.sh (Support for maintaining and releasing): Add it.
38250 2011-05-02  Eric Blake  <eblake@redhat.com>
38252         fflush: also replace fclose when fixing fflush
38253         * modules/fflush (Depends-on): Add fclose.
38254         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
38255         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
38256         memstreams with no backing fd.
38257         * doc/posix-functions/fclose.texi (fclose): Document the use of
38258         fflush module to fix the bug.
38259         * tests/test-fclose.c (main): Relax test when fclose is used in
38260         isolation.
38262         fclose: add some tests
38263         * modules/fclose-tests: New test module.
38264         * tests/test-fclose.c: New file.
38265         * doc/posix-functions/fclose.texi (fclose): Document the bug.
38267         fclose: reduced dependencies
38268         * modules/fclose (Depends-on): Switch from fflush/fseeko to
38269         simpler lseek.
38270         * lib/fclose.c (rpl_fclose): Likewise.
38271         Reported by Simon Josefsson.
38273         exit: drop remaining clients
38274         * modules/argmatch (Depends-on): Replace exit with stdlib.
38275         * modules/copy-file (Depends-on): Likewise.
38276         * modules/execute (Depends-on): Likewise.
38277         * modules/exitfail (Depends-on): Likewise.
38278         * modules/obstack (Depends-on): Likewise.
38279         * modules/pagealign_alloc (Depends-on): Likewise.
38280         * modules/pipe-filter-gi (Depends-on): Likewise.
38281         * modules/pipe-filter-ii (Depends-on): Likewise.
38282         * modules/savewd (Depends-on): Likewise.
38283         * modules/spawn-pipe (Depends-on): Likewise.
38284         * modules/wait-process (Depends-on): Likewise.
38285         * modules/xsetenv (Depends-on): Likewise.
38286         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
38287         * modules/git-merge-changelog (Depends-on): Likewise.
38288         * modules/long-options (Depends-on): Likewise.
38289         * modules/pt_chown (Depends-on): Likewise.
38290         * modules/sysexits (Depends-on): Likewise.
38292         freading: relax license from LGPLv3+ to LGPLv2+
38293         * modules/freading (License): Relax LGPL version.
38295 2011-05-02  Bruno Haible  <bruno@clisp.org>
38297         fchdir: Remove unused dependencies.
38298         * modules/fchdir (Depends-on): Remove include_next.
38300 2011-05-02  Bruno Haible  <bruno@clisp.org>
38302         gnulib-tool: Refactor.
38303         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
38304         from func_emit_autoconf_snippets.
38305         (func_emit_autoconf_snippets): Use it.
38307 2011-05-02  Simon Josefsson  <simon@josefsson.org>
38309         * NEWS: Document removal of 'exit'.
38310         * modules/exit: Remove file.
38312 2011-05-01  Bruno Haible  <bruno@clisp.org>
38314         Update DEPENDENCIES.
38315         * DEPENDENCIES (gettext): Recommend the newest release.
38316         Reported by Simon Josefsson.
38318 2011-05-01  Bruno Haible  <bruno@clisp.org>
38320         gnulib-tool: Reduce code duplication.
38321         * gnulib-tool (func_emit_autoconf_snippets): New function.
38322         (func_import, func_create_testdir): Use it.
38324 2011-04-30  Eric Blake  <eblake@redhat.com>
38326         fclose: don't fail on non-seekable input stream
38327         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
38328         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
38329         since fflush is allowed to fail in that case.
38331 2011-04-30  Bruno Haible  <bruno@clisp.org>
38333         dup3: cleanup
38334         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
38336 2011-04-30  Bruno Haible  <bruno@clisp.org>
38338         netdb: Make it work in C++ mode.
38339         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
38340         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
38341         module.
38342         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
38343         gl_MODULE_INDICATOR_FOR_TESTS.
38344         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
38345         * modules/netdb-c++-tests: New file.
38346         * tests/test-netdb-c++.cc: New file.
38348 2011-04-30  Bruno Haible  <bruno@clisp.org>
38350         New modules 'vfscanf', 'vscanf'.
38351         * modules/vfscanf: New file.
38352         * modules/vscanf: New file.
38353         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
38354         here.
38355         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
38356         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
38358 2011-04-30  Bruno Haible  <bruno@clisp.org>
38360         passfd: Add comments.
38361         * lib/passfd.c: Add comments about platforms.
38363 2011-04-30  Bruno Haible  <bruno@clisp.org>
38365         sys_uio: Make <sys/uio.h> self-contained.
38366         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
38367         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
38369 2011-04-30  Bruno Haible  <bruno@clisp.org>
38371         sys_socket: Ensure 'struct iovec' definition.
38372         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
38373         <sys/socket.h>.
38374         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
38376 2011-04-30  Bruno Haible  <bruno@clisp.org>
38378         sys_uio: Protect definition of 'struct iovec'.
38379         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
38380         it as a C struct.
38382 2011-04-30  Bruno Haible  <bruno@clisp.org>
38384         manywarnings: fix indentation
38385         * m4/manywarnings.m4: Indent by 2 spaces consistently.
38387 2011-04-30  Pádraig Brady  <P@draigBrady.com>
38389         manywarnings: add -Wno-missing-field-initializers if needed.
38390         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
38391         option if it's needed to allow initialization with { 0, }
38393 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
38395         announce-gen: cosmetic improvement
38396         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
38398 2011-04-29  Jim Meyering  <meyering@redhat.com>
38400         vc-list-files: indent with spaces, not TABs
38401         * build-aux/vc-list-files: Convert leading TABs to spaces,
38402         to match the style of most other files in gnulib.
38404         announce-gen: indent with spaces, not TABs
38405         * build-aux/announce-gen: Convert all TABs to spaces, to match
38406         the style of most other files in gnulib.
38408 2011-04-29  Eric Blake  <eblake@redhat.com>
38410         quotearg: avoid uninitialized variable use
38411         * lib/quotearg.c (quoting_options_from_style): Initialize
38412         remaining fields, and ensure that custom styles are only used via
38413         quoting_options rather than quoting_style.
38415 2011-04-29  Jim Meyering  <meyering@redhat.com>
38417         maint.mk: remove unused VC-tag variable
38418         * top/maint.mk (VC-tag): Remove unused variable.
38420 2011-04-29  Bruno Haible  <bruno@clisp.org>
38422         netdb: fix gai_strerror replacements
38423         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
38424         * modules/netdb: Substitute it.
38426 2011-04-29  Jim Meyering  <meyering@redhat.com>
38428         test-getcwd.c: avoid new set-but-not-used warning
38429         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
38430         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
38431         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
38432         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
38434         test-hash.c: avoid a new shadowing warning
38435         * tests/test-hash.c (main): Don't shadow "dup".
38437 2011-04-28  Eric Blake  <eblake@redhat.com>
38439         getaddrinfo: fix gai_strerror signature
38440         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
38441         and work around mingw with UNICODE defined.
38442         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
38443         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
38444         * modules/netdb (Makefile.am): Substitute it.
38445         * lib/netdb.in.h (gai_strerror): Declare replacement.
38446         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
38447         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
38448         the fix.
38450         getsockopt: avoid compiler warning
38451         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
38452         Reported by Matthias Bolte.
38454         tests: drop unused link dependency
38455         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
38456         * modules/dirent-safer-tests (Makefile.am): Likewise.
38457         * modules/fdopendir-tests (Makefile.am): Likewise.
38458         * modules/mkfifoat-tests (Makefile.am): Likewise.
38459         * modules/openat-safer-tests (Makefile.am): Likewise.
38460         * modules/openat-tests (Makefile.am): Likewise.
38461         * modules/readlinkat-tests (Makefile.am): Likewise.
38462         * modules/symlinkat-tests (Makefile.am): Likewise.
38463         * modules/linkat-tests (Makefile.am): Likewise.
38464         (Depends-on): Switch to filenamecat-lgpl.
38465         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
38466         LIBINTL.
38467         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
38468         * tests/test-linkat.c (main): Don't require xalloc.
38470         hash, mgetgroups: drop xalloc dependency
38471         * lib/hash.c (includes): Adjust includes.
38472         * lib/mgetgroups.c (includes): Likewise.
38473         (xgetgroups): Move...
38474         * lib/xgetgroups.c: ...to new file.
38475         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
38476         * modules/xgetgroups: New file, split from...
38477         * modules/mgetgroups: ...here.
38478         (Depends-on): Add xalloc-oversized.
38479         * modules/hash (Depends-on): Likewise.
38480         * modules/hash-tests (Depends-on): Drop xalloc.
38481         (test_hash_LDADD): Drop unused library.
38482         * tests/test-hash.c (main): Break xalloc dependency.
38483         (includes): Drop unused include.
38485         xalloc-oversized: new module
38486         * modules/xalloc-oversized: New module.
38487         * modules/xalloc (Depends-on): Add it.
38488         * lib/xalloc.h (xalloc_oversized): Move...
38489         * lib/xalloc-oversized.h: ...into new file.
38491         utimecmp: drop dependency on xmalloc
38492         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
38493         due to memory pressure.
38494         * modules/utimecmp (Depends-on): Drop xalloc.
38496 2011-04-27  Eric Blake  <eblake@redhat.com>
38498         getcwd: fix mingw bugs
38499         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
38500         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
38501         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
38503 2011-04-27  Bruno Haible  <bruno@clisp.org>
38505         mkstemps: Ensure declaration on MacOS X 10.5.
38506         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
38507         * doc/glibc-functions/mkstemps.texi: Document header file problem on
38508         MacOS X.
38510 2011-04-27  Bruno Haible  <bruno@clisp.org>
38512         mkstemp: More documentation.
38513         * doc/posix-functions/mkstemp.texi: Document header file problem on
38514         MacOS X.
38516 2011-04-27  Bruno Haible  <bruno@clisp.org>
38518         mkstemp: Tweak configure message when cross-compiling.
38519         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
38520         result as a guess.
38522 2011-04-27  Bruno Haible  <bruno@clisp.org>
38524         clean-temp: Clarify what it does.
38525         * lib/clean-temp.h: Add more comments.
38526         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
38527         module.
38528         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
38529         * doc/glibc-functions/mkstemps.texi: Likewise.
38530         * doc/glibc-functions/mkostemps.texi: Likewise.
38532 2011-04-27  Eric Blake  <eblake@redhat.com>
38534         fchdir: avoid extra chdir and fix test
38535         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
38536         getcwd-lgpl.
38537         * lib/fchdir.c (get_name): Any absolute name will do; it does not
38538         have to be canonical.
38539         (canonicalize_file_name): Drop unused macro.
38540         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
38542         filenamecat-lgpl: fix licence
38543         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
38544         when it was first created.
38546         linkat, renameat: add missing dependency
38547         * modules/linkat (Depends-on): Require getcwd-lgpl.
38548         * modules/renameat (Depends-on): Likewise.
38550         tests: reduce dependencies
38551         * tests/test-linkat.c (main): Use lighter-weight getcwd.
38552         * tests/test-renameat.c (main): Likewise.
38553         * modules/linkat-tests (Depends-on): Relax dependency.
38554         * modules/renameat-tests (Depends-on): Likewise.
38555         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
38556         dependency explicit.
38558         save-cwd: reduce default dependency
38559         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
38560         * lib/save-cwd.c: Update comments.
38561         * NEWS: Document the semantic change.
38563         getcwd: enhance tests
38564         * tests/test-getcwd-lgpl.c: New file, taken from...
38565         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
38566         repeat long path stress tests from m4 probe.
38567         * modules/getcwd-lgpl-tests: New module.
38568         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
38569         * m4/getcwd-abort-bug.m4: Update comment.
38570         * m4/getcwd-path-max.m4: Likewise.
38572         getcwd-lgpl: new module
38573         * modules/getcwd-lgpl: New module.
38574         * lib/getcwd-lgpl.c: New file.
38575         * doc/posix-functions/getcwd.texi (getcwd): Document it.
38576         * MODULES.html.sh (lacking POSIX:2008): Likewise.
38577         * modules/getcwd (configure.ac): Set C witness.
38578         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
38580         getcwd: tweak comments
38581         * m4/getcwd-abort-bug.m4: Fix comments.
38582         * m4/getcwd-path-max.m4: Likewise.
38583         * m4/getcwd.m4: Likewise.
38585 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
38586         and Eric Blake  <eblake@redhat.com>
38588         mkstemp: replace if system version uses wrong permissions
38589         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
38590         read/write mode bits set in file created by mkstemp.
38591         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
38593 2011-04-27  Eric Blake  <eblake@redhat.com>
38595         passfd: avoid compiler warning
38596         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
38597         Reported by Laine Stump.
38599 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
38601         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
38602         required by the NetBSD (and perhaps other 4.4BSD derived) join.
38604 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
38605         and Eric Blake  <eblake@redhat.com>
38607         mkstemp: mention clean-temp module
38608         * lib/mkstemp.c: Add comment.
38609         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
38611 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
38613         inttypes: also provide default values for 32-bit tests
38614         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
38615         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
38617 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
38619         strtoumax: remove dependency on strtoimax
38620         This is like the strtoull change of yesterday.
38621         * modules/strtoumax (Files): Add lib/strtoimax.c.
38622         (Depends-on): Remove strtoimax and add verify.
38624         inttypes-incomplete: new module
38625         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
38626         all but the PRI* and SCN* parts of gl_INTTYPES_H.
38627         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
38628         of gl_INTTYPES_H.
38629         (gl_INTTYPES_H): Rewrite in terms of these new macros.
38630         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
38631         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
38632         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
38633         * modules/strtoumax, modules/xstrtol (Depends-on):
38634         Depend on inttypes-incomplete, not inttypes.
38635         * modules/inttypes-incomplete: New module, containing the contents
38636         of the old modules/inttypes module, except that the Files: section
38637         omits m4/inttypes-pri.m4, and the configure.ac section invokes
38638         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
38639         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
38640         (Depends-on): Depend only on inttypes-incomplete.
38641         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
38643         inttypes: omit now-redundant strtoimax and strtoumax work
38644         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
38645         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
38647         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
38648         This supports apps that need pointers to strtoimax and strtoumax,
38649         and ports to HP-UX 11.00 64.bit, which has macros that expand to
38650         nonexistent functions.  See
38651         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
38652         et seq.
38653         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
38654         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
38655         a macro.
38656         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
38658 2011-04-25  Simon Josefsson  <simon@josefsson.org>
38660         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
38662 2011-04-25  Bruno Haible  <bruno@clisp.org>
38664         strtol, strtoul: Mark modules as obsolete.
38665         * modules/strtol (Status, Notice): New sections.
38666         * modules/strtoul (Status, Notice): New sections.
38668 2011-04-25  Bruno Haible  <bruno@clisp.org>
38670         strtod: Remove check for strtod, unless supporting old platforms.
38671         * modules/strtod-obsolete: New file.
38672         * m4/strtod-obsolete.m4: New file.
38673         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
38674         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
38675         * modules/strtod (Depends-on): Add strtod-obsolete.
38676         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
38678 2011-04-25  Bruno Haible  <bruno@clisp.org>
38680         strcase: Make module obsolete.
38681         * modules/strcase (Status, Notice): New sections.
38683 2011-04-25  Bruno Haible  <bruno@clisp.org>
38685         dup2: Remove check for dup2, unless supporting old obsolete platforms.
38686         * modules/dup2-obsolete: New file.
38687         * m4/dup2-obsolete.m4: New file.
38688         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
38689         gl_FUNC_DUP2_OBSOLETE is not also defined.
38690         * modules/dup2 (Depends-on): Add dup2-obsolete.
38691         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
38693 2011-04-25  Bruno Haible  <bruno@clisp.org>
38695         strnlen: Avoid memchr related link error on old obsolete platforms.
38696         * modules/memchr-obsolete: New file.
38697         * m4/memchr-obsolete.m4: New file.
38698         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
38699         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
38700         * modules/memchr (Depends-on): Add memchr-obsolete.
38701         * modules/strnlen (Depends-on): Likewise.
38702         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
38704 2011-04-25  Jim Meyering  <meyering@redhat.com>
38706         maint.mk: makefile_at_at_check extend and clean up
38707         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
38708         in addition to */Makefile.am.
38709         Exempt legitimate uses of @VAR@ notation, e.g.,
38710         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
38711         Remove obsolete coreutils-specific comment.
38712         Prompted by discussion here:
38713         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
38715 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
38717         strtoul: remove dependency on strtol
38718         This is so that 'configure' need not check for strtol merely because
38719         the application needs strtoul.
38720         * modules/strtoul (Files): Add lib/strtol.c.
38721         (Depends-on): Remove strtol.
38723         strtoull: remove dependency on strtoul
38724         This is like the strtoll change.
38725         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
38726         (Depends-on): Remove strtoul.
38728         strtoll: remove dependency on strtol
38729         This is so that 'configure' need not check for strtol merely because
38730         the application needs strtoll.
38731         * modules/strtoll (Files): Add lib/strtol.c.
38732         (Depends-on): Remove strtol.
38734 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
38736         inttypes: Move some configure check to module 'imaxdiv'.
38737         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
38738         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
38739         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
38741 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
38743         inttypes: Move some configure check to module 'imaxabs'.
38744         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
38745         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
38746         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
38748 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
38750         inttypes: Remove configure tests that are not needed since 2009-12-31.
38751         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
38752         gl_cv_header_working_inttypes_h.
38754 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
38756         * modules/strnlen (Depends-on): Remove memchr.
38757         The strnlen implementation doesn't need the memchr module's fixes; see
38758         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
38760         strtol: remove dependency on wchar
38761         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
38762         * modules/strtol (Depends-on): Remove wchar.
38764 2011-04-21  Eric Blake  <eblake@redhat.com>
38766         passfd: fix test regression on Linux
38767         * modules/passfd-tests (configure.ac): Correct socketpair check.
38769         passfd: speed up configure and drop unused code
38770         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
38771         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
38772         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
38773         Instead of probing at configure for unix_scm_rights_bsd44_way,
38774         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
38775         check to a struct member probe.
38776         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
38777         (sendfd, recvfd): Update preprocessor checks.
38778         * modules/passfd (Files): Reflect rename, and drop unused file.
38779         (Depends-on): Drop unused dependency.
38781         passfd: allow compilation on mingw
38782         * modules/sys_socket (Depends-on): Add sys_uio.
38783         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
38784         iovec and a minimal struct msghdr.
38785         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
38786         * tests/test-sys_socket.c (main): Enhance test.
38787         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
38788         guaranteed to provide what we need.
38789         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
38790         * modules/passfd-tests (Depends-on): Add sys_wait.
38791         * tests/test-passfd.c (main): Skip test on mingw, for now.
38792         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
38793         partial 'struct msghdr' implementation.
38795         sys_uio: new module
38796         * modules/sys_uio: New module.
38797         * modules/sys_uio-tests: Likewise.
38798         * lib/sys_uio.in.h: New file.
38799         * m4/sys_uio_h.m4: Likewise.
38800         * tests/test-sys_uio.c: Likewise.
38801         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
38802         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
38804 2011-04-20  Jim Meyering  <meyering@redhat.com>
38806         useless-if-before-free: avoid false-positive
38807         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
38808         disjunct so that it too requires a terminating ";".  Without that,
38809         this script would identify as useless one statement from gcc that
38810         was not:
38811           if (aligned_ptr)
38812             free (((void **) aligned_ptr) [-1]);
38814 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
38816         doc: update users.txt.
38817         * users.txt: Add barcode.
38819 2011-04-19  Bruno Haible  <bruno@clisp.org>
38821         ioctl: Remove link dependency on native Windows.
38822         * lib/fd-hook.h: Renamed from lib/close-hook.h.
38823         (gl_close_fn, gl_ioctl_fn): New types.
38824         (struct fd_hook): Renamed from struct close_hook. Change type of
38825         private_close_fn field. Add private_ioctl_fn field.
38826         (close_hook_fn): Add parameter for primary close method.
38827         (execute_close_hooks, execute_all_close_hooks): Likewise.
38828         (ioctl_hook_fn): New type.
38829         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
38830         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
38831         argument.
38832         (unregister_fd_hook): Renamed from unregister_close_hook.
38833         * lib/fd-hook.c: Renamed from lib/close-hook.c.
38834         Don't include <unistd.h>.
38835         (close): Remove undef.
38836         (anchor): Update.
38837         (execute_close_hooks): Add argument for primary close method.
38838         (execute_all_close_hooks): Likewise.
38839         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
38840         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
38841         argument. Allow each argument to be NULL.
38842         (unregister_fd_hook): Renamed from unregister_close_hook.
38843         * lib/close.c (rpl_close): Pass 'close' function pointer to
38844         execute_all_close_hooks.
38845         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
38846         (primary_ioctl): New function.
38847         (ioctl): Don't call ioctlsocket here. Instead, call
38848         execute_all_ioctl_hooks.
38849         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
38850         close method.
38851         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
38852         (fd_sockets_hook): Renamed from close_sockets_hook.
38853         (gl_sockets_startup, gl_sockets_cleanup): Update.
38854         * modules/fd-hook: Renamed from modules/close-hook. Update.
38855         * modules/close (Depends-on): Add fd-hook, remove close-hook.
38856         * modules/sockets (Depends-on): Likewise.
38857         * modules/ioctl (Depends-on): Add fd-hook.
38858         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
38859         GNULIB_SOCKET.
38861 2011-04-19  Bruno Haible  <bruno@clisp.org>
38863         Move the support of O_NONBLOCK in open() to the 'open' module.
38864         * modules/nonblocking (Depends-on): Remove 'open'.
38865         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
38866         gl_cv_have_open_O_NONBLOCK.
38867         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
38868         O_NONBLOCK support.
38869         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
38871 2011-04-17  Bruno Haible  <bruno@clisp.org>
38873         pipe2: Simplify code.
38874         * lib/pipe2.c (pipe2): Reduce code duplication.
38876 2011-04-17  Bruno Haible  <bruno@clisp.org>
38878         nonblocking: Add comment.
38879         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
38881 2011-04-17  Bruno Haible  <bruno@clisp.org>
38883         nonblocking: Add tests for sockets.
38884         * tests/test-nonblocking-socket.sh: New file.
38885         * tests/test-nonblocking-socket-main.c: New file.
38886         * tests/test-nonblocking-socket-child.c: New file.
38887         * tests/test-nonblocking-socket.h: New file.
38888         * tests/socket-server.h: New file.
38889         * tests/socket-client.h: New file.
38890         * modules/nonblocking-socket-tests: New file.
38891         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
38893 2011-04-17  Bruno Haible  <bruno@clisp.org>
38895         nonblocking: Add tests for pipes.
38896         * tests/test-nonblocking-pipe.sh: New file.
38897         * tests/test-nonblocking-pipe-main.c: New file.
38898         * tests/test-nonblocking-pipe-child.c: New file.
38899         * tests/test-nonblocking-pipe.h: New file.
38900         * tests/test-nonblocking-writer.h: New file.
38901         * tests/test-nonblocking-reader.h: New file.
38902         * tests/test-nonblocking-misc.h: New file.
38903         * modules/nonblocking-pipe-tests: New file.
38904         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
38906 2011-04-16  Bruno Haible  <bruno@clisp.org>
38908         gettext: Clarify the needed programmer actions.
38909         * modules/gettext (Notice): New field.
38910         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
38912 2011-04-16  Bruno Haible  <bruno@clisp.org>
38914         strchrnul: Tweak last commit.
38915         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
38916         bug.
38917         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
38918         as in _GL_FUNCDECL_SYS.
38919         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
38920         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
38922 2011-04-15  Eric Blake  <eblake@redhat.com>
38924         strchrnul: work around cygwin bug
38925         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
38926         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
38927         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
38928         * modules/string (Makefile.am): Substitute it.
38929         * lib/string.in.h (strchrnul): Use it.
38931 2011-04-15  Bruno Haible  <bruno@clisp.org>
38933         Don't require lib/stdio-write.c when only module 'stdio' is used.
38934         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
38935         invocation.
38936         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
38938 2011-04-14  Bruno Haible  <bruno@clisp.org>
38940         Support non-blocking pipe I/O in read() on native Windows.
38941         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
38942         (read): New declaration.
38943         * lib/read.c: New file.
38944         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
38945         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
38946         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
38947         vscanf): New declarations.
38948         * lib/stdio-read.c: New file.
38949         * m4/read.m4: New file.
38950         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
38951         REPLACE_READ.
38952         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
38953         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
38954         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
38955         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
38956         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
38957         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
38958         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
38959         * modules/read: New file.
38960         * modules/nonblocking (Files): Add lib/stdio-read.c.
38961         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
38962         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
38963         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
38964         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
38965         * modules/pread (Depends-on): Add read.
38966         * modules/safe-read (Depends-on): Likewise.
38967         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
38968         gets, scanf, vfscanf, vscanf): Verify signatures.
38969         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
38970         problem with non-blocking pipes.
38971         * doc/posix-functions/fgetc.texi: Likewise.
38972         * doc/posix-functions/fgets.texi: Likewise.
38973         * doc/posix-functions/fread.texi: Likewise.
38974         * doc/posix-functions/fscanf.texi: Likewise.
38975         * doc/posix-functions/getc.texi: Likewise.
38976         * doc/posix-functions/getchar.texi: Likewise.
38977         * doc/posix-functions/gets.texi: Likewise.
38978         * doc/posix-functions/scanf.texi: Likewise.
38979         * doc/posix-functions/vfscanf.texi: Likewise.
38980         * doc/posix-functions/vscanf.texi: Likewise.
38982 2011-04-14  Bruno Haible  <bruno@clisp.org>
38984         Support non-blocking pipe I/O in write() on native Windows.
38985         * lib/write.c (rpl_write): Split a write request that failed merely
38986         because the byte count was larger than the pipe buffer's size.
38987         * doc/posix-functions/write.texi: Mention the problem with large byte
38988         counts.
38990 2011-04-14  Bruno Haible  <bruno@clisp.org>
38992         wchar: Ensure that wchar_t gets defined on uClibc.
38993         * lib/wchar.in.h: On uClibc, include <stddef.h>.
38994         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
38996 2011-04-13  Bruno Haible  <bruno@clisp.org>
38998         safe-write, full-read: Avoid unnecessary compilation units.
38999         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
39000         (Depends-on): Remove safe-read. Add ssize_t.
39001         * modules/full-read (Files): Add lib/full-write.c.
39002         (Depends-on): Add full-write.
39004 2011-04-13  Bruno Haible  <bruno@clisp.org>
39006         Support non-blocking pipe I/O and SIGPIPE in pwrite().
39007         * modules/pwrite (Depends-on): Add 'write'.
39009 2011-04-13  Bruno Haible  <bruno@clisp.org>
39011         Support non-blocking pipe I/O in write() on native Windows.
39012         * lib/unistd.in.h (write): Enable replacement also if
39013         GNULIB_UNISTD_H_NONBLOCKING is 1.
39014         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
39015         (rpl_write): When failing to write on a non-blocking pipe, change
39016         errno from ENOSPC to EAGAIN.
39017         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
39018         putchar, puts, vfprintf, vprintf): Enable replacement also if
39019         GNULIB_STDIO_H_NONBLOCKING is 1.
39020         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
39021         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
39022         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
39023         CALL_WITH_SIGPIPE_EMULATION.
39024         (CALL_WITH_SIGPIPE_EMULATION): Use them.
39025         * m4/nonblocking.m4: New file.
39026         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
39027         for non-blocking I/O support.
39028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39029         GNULIB_UNISTD_H_NONBLOCKING.
39030         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
39031         required for non-blocking I/O support.
39032         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
39033         * modules/nonblocking (Files): Add m4/nonblocking.m4,
39034         lib/stdio-write.c, m4/asm-underscore.m4.
39035         (Depends-on): Add stdio, unistd.
39036         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
39037         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
39038         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
39039         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
39040         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
39041         problem with non-blocking pipes.
39042         * doc/posix-functions/fputc.texi: Likewise.
39043         * doc/posix-functions/fputs.texi: Likewise.
39044         * doc/posix-functions/fwrite.texi: Likewise.
39045         * doc/posix-functions/printf.texi: Likewise.
39046         * doc/posix-functions/putc.texi: Likewise.
39047         * doc/posix-functions/putchar.texi: Likewise.
39048         * doc/posix-functions/puts.texi: Likewise.
39049         * doc/posix-functions/vfprintf.texi: Likewise.
39050         * doc/posix-functions/vprintf.texi: Likewise.
39051         * doc/posix-functions/write.texi: Likewise.
39053 2011-04-10  Jim Meyering  <meyering@redhat.com>
39055         maint.mk: prohibit doubled words
39056         Detect them also when they're separated by a newline.
39057         There are 3 ways to customize it:
39058           - disable the test on a per file basis, as usual with rules using
39059             $(VC_LIST_EXCEPT)
39060           - replace the default doubled-word-selecting regexp (affects all files)
39061           - ignore a particular file-vs-doubled-word match
39062         I nearly used that last one to ignore the "is is" match in
39063         coreutils' NEWS file, since the text was "ls -is is ..."
39064         To do that, I would have added this line to cfg.mk:
39065           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
39066         but it would have ignored any "is is" match in NEWS.
39067         Low probability, but still...
39068         Instead, I changed the text, slightly:
39069           -  ls -is is now consistent with ls -lis in ignoring values returned
39070           +  "ls -is" is now consistent with ls -lis in ignoring values returned
39071         * top/maint.mk (prohibit_double_word_RE_): Provide default.
39072         (prohibit_doubled_word_): Define.
39073         (sc_prohibit_doubled_word): New rule.
39074         (sc_prohibit_the_the): Remove.  Subsumed by the above.
39076 2011-04-10  Jim Meyering  <meyering@redhat.com>
39078         maint: fix doubled-word typo in comment
39079         * m4/gethostname.m4: s/is is/it is/
39080         * m4/getdomainname.m4: Likewise.
39082 2011-04-10  Jim Meyering  <meyering@redhat.com>
39084         maint: remove doubled word: s/it it/it/
39085         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
39087 2011-04-10  Jim Meyering  <meyering@redhat.com>
39089         maint.mk: remove useless semicolon and backslash
39090         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
39091         semicolon and backslash.
39093 2011-04-10  Bruno Haible  <bruno@clisp.org>
39095         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
39096         * modules/stdint-tests (Depends-on): Add wchar.
39098 2011-04-10  Jim Meyering  <meyering@redhat.com>
39100         maint: remove doubled words in comments, e.g., s/a a/a/
39101         * lib/strptime.c (day_of_the_week): s/the the/the/
39102         * tests/test-chown.h (test_chown): s/a a/a/
39104         test-chown.h: correct a cast
39105         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
39106         when the destination is a stat.st_gid.
39108 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
39110         getaddrinfo: Fix test for sa_len member.
39111         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
39112         include <sys/types.h> before <sys/socket.h>.
39114 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
39116         maint: change "can not" to "cannot"
39117         * doc/posix-functions/iconv.texi (iconv): This one crossed line
39118         boundaries.
39120 2011-04-09  Jim Meyering  <meyering@redhat.com>
39122         maint: change "a a" to "a"
39123         * tests/test-lchown.h (test_lchown): s/a a/a/
39125         maint.mk: prohibit \<the the\>
39126         * top/maint.mk (sc_prohibit_the_the): New rule.
39128         maint: fix "the the" in comment
39129         * lib/count-one-bits.h: s/the the/the/
39131         maint: change "can not" to "cannot"
39132         But do not change the occurrences in maintain.texi or in
39133         build-aux/po/Makefile.in.in, which I presume comes from gettext.
39134         * doc/gnulib-tool.texi: s/can not/cannot/
39135         * doc/posix-functions/accept.texi (accept): Likewise.
39136         * doc/posix-functions/socket.texi (socket): Likewise.
39137         * lib/mbrtowc.c: Likewise.
39139         maint.mk: prohibit use of "can not"
39140         * top/maint.mk (sc_prohibit_can_not): New rule.
39141         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
39143 2011-04-09  Bruno Haible  <bruno@clisp.org>
39145         careadlinkat: Guard against misuse of careadlinkatcwd.
39146         * lib/careadlinkat.c: Include <stdlib.h>.
39147         (careadlinkatcwd): Check that the fd argument is as expected.
39149 2011-04-09  Bruno Haible  <bruno@clisp.org>
39151         careadlinkat: Use common coding style.
39152         * lib/careadlinkat.c: Move gnulib includes after system includes.
39154 2011-04-09  Bruno Haible  <bruno@clisp.org>
39156         careadlinkat: Clarify specification.
39157         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
39158         (careadlinkatcwd): Add comment.
39159         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
39161 2011-04-09  Bruno Haible  <bruno@clisp.org>
39163         areadlinkat: Avoid link error on many platforms.
39164         * modules/areadlinkat (Depends-on): Add areadlink.
39166 2011-04-09  Bruno Haible  <bruno@clisp.org>
39168         allocator, careadlinkat: Fix double-inclusion guard.
39169         * lib/allocator.h: Fix double-inclusion guard.
39170         * lib/careadlinkat.h: Likewise.
39172 2011-04-09  Bruno Haible  <bruno@clisp.org>
39174         relocatable-prog-wrapper: Update after module 'areadlink' changed.
39175         * lib/relocwrapper.c: Update dependencies hierarchy.
39176         * build-aux/install-reloc: Update list of files to be compiled.
39177         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
39178         lib/allocator.[hc].
39180 2011-04-08  Eric Blake  <eblake@redhat.com>
39182         strftime: silence gnulib-tool warning
39183         * modules/strftime-tests (Depends-on): Drop automatic dependency.
39185 2011-04-08  Bruno Haible  <bruno@clisp.org>
39187         verify: Fix syntax error with GCC 4.6 in C++ mode.
39188         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
39189         (HAVE_STATIC_ASSERT): New macro.
39190         (verify_true, verify): Use 'static_assert' if it is supported and
39191         '_Static_assert' is not supported.
39193 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
39195         allocator: New module.
39196         * modules/allocator, lib/allocator.c: New files.
39197         * lib/allocator.h (stdlib_allocator): New decl.
39198         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
39199         Remove.  Do not include <stdlib.h>.
39200         (careadlinkat): Use stdlib_allocator instead of rolling our own.
39201         * modules/careadlinkat (Files): Remove lib/allocator.h.
39202         (Depends-on): Add allocator.
39204         stdlib: let modules use system malloc, realloc
39205         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
39206         if !_GL_USE_STDLIB_ALLOC.
39207         (malloc, realloc): Limit this change to a smaller scope.
39209         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
39210         (malloc, realloc): Don't #undef; no longer needed.
39211         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
39212         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
39213         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
39214         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
39215         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
39216         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
39217         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
39218         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
39220         careadlinkat: rename members to avoid problem
39221         * lib/allocator.h (struct allocator): Rename members from
39222         malloc/realloc to allocate/reallocate, to avoid problems if malloc
39223         and realloc are #define'd.  Reported by Eric Blake in
39224         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
39225         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
39227 2011-04-08  Eric Blake  <eblake@redhat.com>
39229         nonblocking: reduce dependency
39230         * tests/test-nonblocking.c: Only test sockets when in use.
39231         * modules/nonblocking-tests (Depends-on): Drop socket.
39232         (Makefile.am): Link even if sockets are not present.
39233         * modules/pipe2-tests (Makefile.am): Likewise.
39234         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
39236         pipe2: fix O_NONBLOCK support on mingw
39237         * modules/pipe2 (Depends-on): Add nonblocking.
39238         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
39239         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
39240         * tests/test-nonblocking.c (main): Likewise.
39241         * modules/pipe2-tests (Makefile.am): Avoid link failure.
39243         fcntl-h: fix O_ACCMODE on cygwin
39244         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
39245         * lib/fcntl.in.h (O_ACCMODE): Fix it.
39247         pipe-filter: drop O_NONBLOCK workarounds
39248         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
39249         * modules/pipe-filter-ii (Depends-on): Likewise.
39250         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
39252         nonblocking: provide O_NONBLOCK for mingw
39253         * modules/nonblocking (Depends-on): Add open.
39254         (configure.ac): Set new witness macro.
39255         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
39256         * modules/fcntl-h (Makefile.am): Substitute it.
39257         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
39258         nonblocking module is in use.
39259         * lib/nonblocking.c: Adjust portability test.
39260         * lib/open.c (open): Don't let native open see gnulib flag.
39261         * tests/test-fcntl-h.c (main): Enhance test.
39262         * tests/test-open.h (test_open): Likewise.
39263         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
39265         careadlinkat: fix compilation error on mingw
39266         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
39267         within struct allocator.
39269 2011-04-06  Eric Blake  <eblake@redhat.com>
39271         binary-io: relicense under LGPLv2+
39272         * modules/binary-io (License): Relax to LGPLv2+.
39273         Requested for libvirt, and required by pipe2.
39275 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
39277         verify: use _Static_assert if available
39278         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
39279         (verify_true, verify): Use it if available.  This generates better
39280         diagnostics with GCC 4.6.0 and later.
39282 2011-04-05  Bruno Haible  <bruno@clisp.org>
39284         Remove leftover generated .h files after config.status changed.
39286         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
39287         GL_GENERATE_ALLOCA_H.
39288         * modules/alloca-opt (Makefile.am): Remove alloca.h if
39289         GL_GENERATE_ALLOCA_H evaluates to false.
39291         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
39292         GL_GENERATE_ARGZ_H.
39293         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
39294         evaluates to false.
39296         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
39297         GL_GENERATE_BYTESWAP_H.
39298         * modules/byteswap (Makefile.am): Remove byteswap.h if
39299         GL_GENERATE_BYTESWAP_H evaluates to false.
39301         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
39302         GL_GENERATE_ERRNO_H.
39303         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
39304         evaluates to false.
39306         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
39307         GL_GENERATE_FLOAT_H.
39308         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
39309         evaluates to false.
39311         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
39312         GL_GENERATE_FNMATCH_H.
39313         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
39314         GL_GENERATE_FNMATCH_H evaluates to false.
39316         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
39317         GL_GENERATE_GLOB_H.
39318         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
39319         evaluates to false.
39321         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
39322         automake conditional GL_GENERATE_ICONV_H.
39323         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
39324         evaluates to false.
39326         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
39327         GL_GENERATE_NETINET_IN_H.
39328         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
39329         GL_GENERATE_NETINET_IN_H evaluates to false.
39331         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
39332         conditional GL_GENERATE_PTHREAD_H.
39333         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
39334         * modules/pthread (Makefile.am): Remove pthread.h if
39335         GL_GENERATE_PTHREAD_H evaluates to false.
39337         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
39338         GL_GENERATE_SCHED_H.
39339         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
39340         evaluates to false.
39342         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
39343         conditional GL_GENERATE_SELINUX_CONTEXT_H.
39344         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
39345         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
39347         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
39348         GL_GENERATE_STDARG_H.
39349         * modules/stdarg (Makefile.am): Remove stdarg.h if
39350         GL_GENERATE_STDARG_H evaluates to false.
39352         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
39353         GL_GENERATE_STDBOOL_H.
39354         * modules/stdbool (Makefile.am): Remove stdbool.h if
39355         GL_GENERATE_STDBOOL_H evaluates to false.
39357         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
39358         conditional GL_GENERATE_STDDEF_H.
39359         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
39360         * modules/stddef (Makefile.am): Remove stddef.h if
39361         GL_GENERATE_STDDEF_H evaluates to false.
39363         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
39364         GL_GENERATE_STDINT_H.
39365         * modules/stdint (Makefile.am): Remove stdint.h if
39366         GL_GENERATE_STDINT_H evaluates to false.
39368         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
39369         GL_GENERATE_SYSEXITS_H.
39370         * modules/sysexits (Makefile.am): Remove sysexits.h if
39371         GL_GENERATE_SYSEXITS_H evaluates to false.
39373         Reported by Karl Berry and Ralf Wildenhues.
39375 2011-04-05  Bruno Haible  <bruno@clisp.org>
39377         Ensure to rebuild generated .h files when config.status has changed.
39378         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
39379         config.status.
39380         * modules/ctype (Makefile.am): Likewise.
39381         * modules/dirent (Makefile.am): Likewise.
39382         * modules/errno (Makefile.am): Likewise.
39383         * modules/fcntl-h (Makefile.am): Likewise.
39384         * modules/float (Makefile.am): Likewise.
39385         * modules/getopt-posix (Makefile.am): Likewise.
39386         * modules/glob (Makefile.am): Likewise.
39387         * modules/iconv-h (Makefile.am): Likewise.
39388         * modules/inttypes (Makefile.am): Likewise.
39389         * modules/langinfo (Makefile.am): Likewise.
39390         * modules/locale (Makefile.am): Likewise.
39391         * modules/math (Makefile.am): Likewise.
39392         * modules/netdb (Makefile.am): Likewise.
39393         * modules/netinet_in (Makefile.am): Likewise.
39394         * modules/poll-h (Makefile.am): Likewise.
39395         * modules/pthread (Makefile.am): Likewise.
39396         * modules/pty (Makefile.am): Likewise.
39397         * modules/sched (Makefile.am): Likewise.
39398         * modules/search (Makefile.am): Likewise.
39399         * modules/selinux-h (Makefile.am): Likewise.
39400         * modules/signal (Makefile.am): Likewise.
39401         * modules/spawn (Makefile.am): Likewise.
39402         * modules/stdarg (Makefile.am): Likewise.
39403         * modules/stdbool (Makefile.am): Likewise.
39404         * modules/stddef (Makefile.am): Likewise.
39405         * modules/stdint (Makefile.am): Likewise.
39406         * modules/stdio (Makefile.am): Likewise.
39407         * modules/stdlib (Makefile.am): Likewise.
39408         * modules/string (Makefile.am): Likewise.
39409         * modules/strings (Makefile.am): Likewise.
39410         * modules/sys_file (Makefile.am): Likewise.
39411         * modules/sys_ioctl (Makefile.am): Likewise.
39412         * modules/sys_select (Makefile.am): Likewise.
39413         * modules/sys_socket (Makefile.am): Likewise.
39414         * modules/sys_stat (Makefile.am): Likewise.
39415         * modules/sys_time (Makefile.am): Likewise.
39416         * modules/sys_times (Makefile.am): Likewise.
39417         * modules/sys_utsname (Makefile.am): Likewise.
39418         * modules/sys_wait (Makefile.am): Likewise.
39419         * modules/sysexits (Makefile.am): Likewise.
39420         * modules/termios (Makefile.am): Likewise.
39421         * modules/time (Makefile.am): Likewise.
39422         * modules/unistd (Makefile.am): Likewise.
39423         * modules/wchar (Makefile.am): Likewise.
39424         * modules/wctype-h (Makefile.am): Likewise.
39425         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
39427 2011-04-05  Bruno Haible  <bruno@clisp.org>
39429         pipe2: Relicense under LGPLv2+.
39430         * modules/pipe2 (License): Change to LGPLv2+.
39431         Requested by Eric Blake, for libvirt.
39433 2011-04-05  Bruce Korb  <bkorb@gnu.org>
39435         bootstrap: compute gnulib_extra_files after updating build_aux
39436         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
39437         change build_aux or also supply gnulib_extra_files.  Handle correctly.
39439 2011-04-05  Eric Blake  <eblake@redhat.com>
39441         bootstrap: preserve git whitelist item sorting
39442         * build-aux/bootstrap (sort_patterns): New function.
39443         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
39445 2011-04-05  Simon Josefsson  <simon@josefsson.org>
39447         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
39448         sc_space_tab check.
39450 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
39452         areadlink, areadlinkat: rewrite in terms of careadlinkat
39453         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
39454         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
39455         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
39456         (malloc, realloc): Remove #undefs.
39457         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
39458         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
39459         readlink, ssize_t, stdint, unistd.
39460         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
39461         areadlink, stdint.
39463         careadlinkat: new module
39464         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
39465         * modules/careadlinkat: New files, written by me with
39466         a review and feedback from Ben Pfaff in
39467         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
39469 2011-04-01  Bruno Haible  <bruno@clisp.org>
39471         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
39472         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
39473         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
39474         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
39475         Reported by Bruce Korb <bruce.korb@gmail.com>.
39477 2011-04-01  Bruno Haible  <bruno@clisp.org>
39479         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
39480         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
39481         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
39482         * modules/wcpcpy (Depends-on): Add extensions.
39483         * modules/wcpncpy (Depends-on): Likewise.
39484         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
39485         systems.
39486         * doc/posix-functions/wcpncpy.texi: Likewise.
39487         * doc/posix-functions/wcwidth.texi: Likewise.
39489 2011-03-31  Eric Blake  <eblake@redhat.com>
39491         nonblocking: fix mingw test failures
39492         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
39493         non-blocking flag on regular file.
39494         (get_nonblocking_flag): Set errno on invalid fd.
39495         * tests/test-nonblocking.c (main): Avoid test failure on
39496         directories if fchdir is not active.
39497         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
39499 2011-03-31  Bruno Haible  <bruno@clisp.org>
39501         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
39502         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
39503         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
39504         Reported by Simon Josefsson <simon@josefsson.org>.
39506 2011-03-31  Bruno Haible  <bruno@clisp.org>
39507         and Eric Blake  <eblake@redhat.com>
39509         nonblocking: new module
39510         * modules/nonblocking: New module.
39511         * modules/nonblocking-tests: Likewise.
39512         * lib/nonblocking.h: New file.
39513         * lib/nonblocking.c: Likewise.
39514         * tests/test-nonblocking.c: New test.
39515         * lib/ioctl.c (ioctl) [mingw]: Update comment.
39517 2011-03-30  Bruno Haible  <bruno@clisp.org>
39519         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
39520         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
39521         instead of 'printf' format for GCC >= 4.4.
39522         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
39523         (fprintf, printf, vfprintf, vprintf): Declare with
39524         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
39525         the system's vfprintf() function.
39526         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
39528 2011-03-30  Eric Blake  <eblake@redhat.com>
39530         passfd: fix scoping bug
39531         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
39532         before sendmsg/recvmsg.
39534         passfd: standardize coding conventions
39535         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
39536         can be learned at compile time.
39537         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
39538         ifdefs.
39539         (sendfd, recvfd): Follow gnulib code conventions.
39541         passfd: fix incorrect sendmsg arguments
39542         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
39543         incorrect msg_controllen value.
39544         * modules/passfd-tests (Depends-on): Check for alarm.
39545         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
39546         Reported by Bastien ROUCARIES.
39548 2011-03-30  Bruno Haible  <bruno@clisp.org>
39550         c-strcasestr: Relicense under LGPLv2+.
39551         * modules/c-strcasestr (License): Change to LGPLv2+.
39552         Requested by Eric Blake, for libvirt.
39554 2011-03-30  Simon Josefsson  <simon@josefsson.org>
39556         * users.txt: Add libidn2.  Fix libtasn1 link.
39558 2011-03-30  Jim Meyering  <meyering@redhat.com>
39560         tests: readlink* ("",... fails with EINVAL on newer kernels
39561         readlink and readlinkat have typically failed with ENOENT for
39562         the invalid, empty file name,  "".  However, with the advent
39563         of linux-2.6.39, they fail with EINVAL.
39564         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
39565         when operating on the empty file name.
39566         * tests/test-readlink.h (test_readlink): Likewise.
39568 2011-03-29  Bruno Haible  <bruno@clisp.org>
39570         Relicense some modules under LGPLv2+, for libidn2.
39571         * modules/array-mergesort (License): Change to LGPLv2+.
39572         * modules/c-strcaseeq (License): Likewise.
39573         * modules/striconveh (License): Likewise.
39574         * modules/striconveha (License): Likewise.
39575         * modules/uniconv/base (License): Likewise.
39576         * modules/uniconv/u8-conv-from-enc (License): Likewise.
39577         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
39578         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
39579         * modules/unictype/base (License): Likewise.
39580         * modules/unictype/bidiclass-of (License): Likewise.
39581         * modules/unictype/category-M (License): Likewise.
39582         * modules/unictype/category-none (License): Likewise.
39583         * modules/unictype/category-of (License): Likewise.
39584         * modules/unictype/category-test (License): Likewise.
39585         * modules/unictype/category-test-withtable (License): Likewise.
39586         * modules/unictype/combining-class (License): Likewise.
39587         * modules/unictype/joiningtype-of (License): Likewise.
39588         * modules/unictype/scripts (License): Likewise.
39589         * modules/uninorm/base (License): Likewise.
39590         * modules/uninorm/canonical-decomposition (License): Likewise.
39591         * modules/uninorm/composition (License): Likewise.
39592         * modules/uninorm/decompose-internal (License): Likewise.
39593         * modules/uninorm/decomposition-table (License): Likewise.
39594         * modules/uninorm/nfc (License): Likewise.
39595         * modules/uninorm/nfd (License): Likewise.
39596         * modules/uninorm/u32-normalize (License): Likewise.
39597         * modules/unistr/base (License): Likewise.
39598         * modules/unistr/u32-cpy (License): Likewise.
39599         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
39600         * modules/unistr/u32-to-u8 (License): Likewise.
39601         * modules/unistr/u32-uctomb (License): Likewise.
39602         * modules/unistr/u8-check (License): Likewise.
39603         * modules/unistr/u8-mblen (License): Likewise.
39604         * modules/unistr/u8-mbtouc (License): Likewise.
39605         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
39606         * modules/unistr/u8-mbtoucr (License): Likewise.
39607         * modules/unistr/u8-prev (License): Likewise.
39608         * modules/unistr/u8-strlen (License): Likewise.
39609         * modules/unistr/u8-to-u32 (License): Likewise.
39610         * modules/unistr/u8-uctomb (License): Likewise.
39611         * modules/unitypes (License): Likewise.
39612         Requested by Simon Josefsson.
39614 2011-03-29  Simon Josefsson  <simon@josefsson.org>
39616         lib-symbol-visibility: Add a notice.
39617         * modules/lib-symbol-visibility (Notice): New field.
39619 2011-03-29  Bruno Haible  <bruno@clisp.org>
39621         getaddrinfo: Doc fix.
39622         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
39623         section "fixed in Gnulib".
39625 2011-03-28  Simon Josefsson  <simon@josefsson.org>
39627         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
39628         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
39630 2011-03-26  Bruno Haible  <bruno@clisp.org>
39632         unictype/property-byname: Reduce the number of load-time relocations.
39633         * lib/unictype/pr_byname.c: Include <stdlib.h>.
39634         (UC_PROPERTY_INDEX_*): New enumeration values.
39635         (uc_property_byname): Convert an index from the lookup table to an
39636         uc_property_t.
39637         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
39638         values.
39640 2011-03-26  Bruno Haible  <bruno@clisp.org>
39642         unictype/property-byname: Allow omitted word separators and aliases.
39643         * lib/unictype/pr_byname.gperf: Add property names without word
39644         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
39645         for 'space'.
39647 2011-03-26  Bruno Haible  <bruno@clisp.org>
39649         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
39650         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
39651         also hyphens to space.
39652         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
39653         without spaces.
39654         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
39656 2011-03-26  Bruno Haible  <bruno@clisp.org>
39658         unictype/joiningtype-byname: Recognize long names as well.
39659         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
39660         a long name.
39661         * lib/unictype/joiningtype_byname.c: Include <string.h>,
39662         unictype/joiningtype_byname.h.
39663         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
39664         * lib/unictype/joiningtype_byname.gperf: New file.
39665         * modules/unictype/joiningtype-byname (Files): Add
39666         lib/unictype/joiningtype_byname.gperf.
39667         (Depends-on): Add gperf.
39668         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
39669         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
39670         long names.
39672         Tests for module 'unictype/joiningtype-longname'.
39673         * modules/unictype/joiningtype-longname-tests: New file.
39674         * tests/unictype/test-joiningtype_longname.c: New file.
39676         New module 'unictype/joiningtype-longname'.
39677         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
39678         * lib/unictype/joiningtype_longname.c: New file.
39679         * modules/unictype/joiningtype-longname: New file.
39680         * modules/unictype/joiningtype-all (Depends-on): Add
39681         unictype/joiningtype-longname.
39683 2011-03-26  Bruno Haible  <bruno@clisp.org>
39685         unictype/bidiclass-byname: Recognize long names as well.
39686         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
39687         name.
39688         * lib/unictype/bidi_byname.c: Include <string.h>,
39689         unictype/bidi_byname.h.
39690         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
39691         * lib/unictype/bidi_byname.gperf: New file.
39692         * modules/unictype/bidiclass-byname (Files): Add
39693         lib/unictype/bidi_byname.gperf.
39694         (Depends-on): Add gperf.
39695         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
39696         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
39697         long names.
39699         Tests for module 'unictype/bidiclass-longname'.
39700         * modules/unictype/bidiclass-longname-tests: New file.
39701         * tests/unictype/test-bidi_longname.c: New file.
39703         New module 'unictype/bidiclass-longname'.
39704         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
39705         * lib/unictype/bidi_longname.c: New file.
39706         * modules/unictype/bidiclass-longname: New file.
39707         * modules/unictype/bidiclass-all (Depends-on): Add
39708         unictype/bidiclass-longname.
39710 2011-03-26  Bruno Haible  <bruno@clisp.org>
39712         unictype/bidi*: Rename modules.
39713         * modules/unictype/bidiclass-all: Renamed from
39714         modules/unictype/bidicategory-all.
39715         * modules/unictype/bidiclass-name: Renamed from
39716         modules/unictype/bidiclass-name.
39717         (Description): Update.
39718         * modules/unictype/bidiclass-name-tests: Renamed from
39719         modules/unictype/bidicategory-name-tests.
39720         * modules/unictype/bidiclass-byname: Renamed from
39721         modules/unictype/bidicategory-byname.
39722         (Description): Update.
39723         * modules/unictype/bidiclass-byname-tests: Renamed from
39724         modules/unictype/bidicategory-byname-tests.
39725         * modules/unictype/bidiclass-of: Renamed from
39726         modules/unictype/bidicategory-of.
39727         (Description): Update.
39728         * modules/unictype/bidiclass-of-tests: Renamed from
39729         modules/unictype/bidicategory-of-tests.
39730         * modules/unictype/bidiclass-test: Renamed from
39731         modules/unictype/bidicategory-test.
39732         (Description): Update.
39733         * modules/unictype/bidiclass-test-tests: Renamed from
39734         modules/unictype/bidicategory-test-tests.
39735         * modules/unictype/bidicategory-all: New file, a simple redirection.
39736         * modules/unictype/bidicategory-name: Likewise.
39737         * modules/unictype/bidicategory-byname: Likewise.
39738         * modules/unictype/bidicategory-of: Likewise.
39739         * modules/unictype/bidicategory-test: Likewise.
39740         * modules/unictype/property-bidi-* (Dependencies): Update.
39741         * lib/unictype/bidi_*.c: Update comment.
39743 2011-03-26  Bruno Haible  <bruno@clisp.org>
39745         unictype/bidi*: Rename functions, part 2.
39746         * modules/unictype/bidicategory-name (configure.ac): Update required
39747         libunistring version.
39748         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
39750 2011-03-25  Bruno Haible  <bruno@clisp.org>
39752         New module 'unictype/combining-class-all'.
39753         * modules/unictype/combining-class-all: New file.
39755         Tests for module 'unictype/combining-class-byname'.
39756         * modules/unictype/combining-class-byname-tests: New file.
39757         * tests/unictype/test-combiningclass_byname.c: New file.
39759         New module 'unictype/combining-class-byname'.
39760         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
39761         * lib/unictype/combiningclass_byname.c: New file.
39762         * lib/unictype/combiningclass_byname.gperf: New file.
39763         * modules/unictype/combining-class-byname: New file.
39765         Tests for module 'unictype/combining-class-longname'.
39766         * modules/unictype/combining-class-longname-tests: New file.
39767         * tests/unictype/test-combiningclass_longname.c: New file.
39769         New module 'unictype/combining-class-longname'.
39770         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
39771         * lib/unictype/combiningclass_longname.c: New file.
39772         * modules/unictype/combining-class-longname: New file.
39774         Tests for module 'unictype/combining-class-name'.
39775         * modules/unictype/combining-class-name-tests: New file.
39776         * tests/unictype/test-combiningclass_name.c: New file.
39778         New module 'unictype/combining-class-name'.
39779         * lib/unictype.in.h (uc_combining_class_name): New declaration.
39780         * lib/unictype/combiningclass_name.c: New file.
39781         * modules/unictype/combining-class-name: New file.
39783 2011-03-25  Bruno Haible  <bruno@clisp.org>
39785         unictype/combining-class: Rename source files.
39786         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
39787         of unictype/combining.h.
39788         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
39789         Update.
39790         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
39791         * modules/unictype/combining-class (Description): Fix.
39792         (Files, Makefile.am): Update.
39793         * tests/unictype/test-combiningclass.c: Renamed from
39794         tests/unictype/test-combining.c.
39795         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
39797 2011-03-25  Bruno Haible  <bruno@clisp.org>
39799         unictype: Update list of canonical combining classes.
39800         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
39802 2011-03-25  Bruno Haible  <bruno@clisp.org>
39804         unictype/category-byname: Recognize long names as well.
39805         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
39806         a long name.
39807         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
39808         unictype/categ_byname.h.
39809         (UC_CATEGORY_INDEX_*): New enumeration values.
39810         (uc_general_category_byname): Use uc_general_category_lookup and
39811         convert from index to value.
39812         * lib/unictype/categ_byname.gperf: New file.
39813         * modules/unictype/category-byname (Files): Add
39814         lib/unictype/categ_byname.gperf.
39815         (Depends-on): Add gperf.
39816         (Makefile.am): Add rule for generating unictype/categ_byname.h.
39817         * tests/unictype/test-categ_byname.c (main): Test the recognition of
39818         long names.
39820         Tests for module 'unictype/category-longname'.
39821         * modules/unictype/category-longname-tests: New file.
39822         * tests/unictype/test-categ_longname.c: New file.
39824         New module 'unictype/category-longname'.
39825         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
39826         * lib/unictype/categ_longname.c: New file.
39827         * modules/unictype/category-longname: New file.
39828         * modules/unictype/category-all (Depends-on): Add it.
39830 2011-03-25  Bruno Haible  <bruno@clisp.org>
39832         Tests for module 'unictype/category-LC'.
39833         * modules/unictype/category-LC-tests: New file.
39834         * tests/unictype/test-categ_LC.c: New file, automatically generated.
39836         New module 'unictype/category-LC'.
39837         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
39838         (UC_CATEGORY_LC): New declaration.
39839         (UC_CASED_LETTER): New macro.
39840         * lib/gen-uni-tables.c (is_category_LC): New function.
39841         (output_categories): Also handle category LC.
39842         (UC_CATEGORY_MASK_LC): New enumeration value.
39843         (general_category_byname): Also handle category LC.
39844         * lib/unictype/categ_LC.c: New file.
39845         * lib/unictype/categ_LC.h: New file, automatically generated.
39846         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
39847         category LC.
39848         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
39849         * modules/unictype/category-LC: New file.
39850         * modules/unictype/category-byname (Depends-on): Add
39851         unictype/category-LC.
39852         * modules/unictype/category-all (Depends-on): Likewise.
39854 2011-03-25  Eric Blake  <eblake@redhat.com>
39856         xmalloc: revert yesterday's regression
39857         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
39858         realloc's underlying behavior (allowing allocation of zero-size
39859         objects, especially if malloc-gnu is also in use).
39861 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
39863         maint.mk: add missing version to VC-tag
39864         * top/maint.mk: git tag was missing actual tag name; add it.
39866         valgrind: do leak checking, and exit with code 1 on error (not 0)
39867         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
39868         to VALGRIND.
39870 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
39872         posix-modules: say what it does.
39873         * posix-modules: Add a line to the --help output saying what it does.
39875 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
39877         xmalloc: Do not leak if underlying realloc is C99 compatible.
39878         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
39879         This avoids a leak on C99-based systems.  See
39880         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
39882 2011-03-24  Eric Blake  <eblake@redhat.com>
39884         realloc: document portability problem
39885         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
39886         passing 0 size to realloc.
39888 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
39890         doc: update users.txt
39891         * users.txt: Add cvsps, tmpwatch
39893 2011-03-23  Matt Rice  <ratmice@gmail.com>
39895         doc: update users.txt
39896         * users.txt: Add gdb.
39898 2011-03-23  Jim Meyering  <meyering@redhat.com>
39900         doc: update users.txt
39901         Looking through matches up to the following URL (there are still
39902         several more pages), I found several projects that use gnulib:
39903         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
39904         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
39905         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
39907 2011-03-22  Bruno Haible  <bruno@clisp.org>
39909         unictype/bidi*: Rename functions.
39910         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
39911         uc_bidi_class, uc_is_bidi_class): New declarations.
39912         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
39913         uc_bidi_category_byname.
39914         (uc_bidi_category_byname): New function.
39915         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
39916         u_bidi_category_name.
39917         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
39918         (uc_bidi_category_name): New function.
39919         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
39920         uc_bidi_category.
39921         (uc_bidi_category): New function.
39922         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
39923         uc_is_bidi_category. Invoke uc_bidi_class.
39924         (uc_is_bidi_category): New function.
39925         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
39926         instead of uc_bidi_category_byname.
39927         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
39928         instead of uc_bidi_category_name.
39929         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
39930         uc_bidi_category.
39931         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
39932         instead of uc_is_bidi_category.
39934 2011-03-21  Bruno Haible  <bruno@clisp.org>
39936         New module 'unictype/joininggroup-all'.
39937         * modules/unictype/joininggroup-all: New file.
39939         Tests for module 'unictype/joininggroup-of'.
39940         * modules/unictype/joininggroup-of-tests: New file.
39941         * tests/unictype/test-joininggroup_of.c: New file.
39942         * tests/unictype/test-joininggroup_of.h: New file, automatically
39943         generated by gen-uni-tables.
39945         New module 'unictype/joininggroup-of'.
39946         * modules/unictype/joininggroup-of: New file.
39947         * lib/unictype/joininggroup_of.c: New file.
39948         * lib/unictype/joininggroup_of.h: New file, automatically generated by
39949         gen-uni-tables.
39951         Tests for module 'unictype/joininggroup-byname'.
39952         * modules/unictype/joininggroup-byname-tests: New file.
39953         * tests/unictype/test-joininggroup_byname.c: New file.
39955         New module 'unictype/joininggroup-byname'.
39956         * modules/unictype/joininggroup-byname: New file.
39957         * lib/unictype/joininggroup_byname.c: New file.
39958         * lib/unictype/joininggroup_byname.gperf: New file.
39960         Tests for module 'unictype/joininggroup-name'.
39961         * modules/unictype/joininggroup-name-tests: New file.
39962         * tests/unictype/test-joininggroup_name.c: New file.
39964         New module 'unictype/joininggroup-name'.
39965         * modules/unictype/joininggroup-name: New file.
39966         * lib/unictype/joininggroup_name.c: New file.
39967         * lib/unictype/joininggroup_name.h: New file.
39969         New module 'unictype/joiningtype-all'.
39970         * modules/unictype/joiningtype-all: New file.
39972         Tests for module 'unictype/joiningtype-of'.
39973         * modules/unictype/joiningtype-of-tests: New file.
39974         * tests/unictype/test-joiningtype_of.c: New file.
39975         * tests/unictype/test-joiningtype_of.h: New file, automatically
39976         generated by gen-uni-tables.
39978         New module 'unictype/joiningtype-of'.
39979         * modules/unictype/joiningtype-of: New file.
39980         * lib/unictype/joiningtype_of.c: New file.
39981         * lib/unictype/joiningtype_of.h: New file, automatically generated by
39982         gen-uni-tables.
39984         Tests for module 'unictype/joiningtype-byname'.
39985         * modules/unictype/joiningtype-byname-tests: New file.
39986         * tests/unictype/test-joiningtype_byname.c: New file.
39988         New module 'unictype/joiningtype-byname'.
39989         * modules/unictype/joiningtype-byname: New file.
39990         * lib/unictype/joiningtype_byname.c: New file.
39992         Tests for module 'unictype/joiningtype-name'.
39993         * modules/unictype/joiningtype-name-tests: New file.
39994         * tests/unictype/test-joiningtype_name.c: New file.
39996         New module 'unictype/joiningtype-name'.
39997         * modules/unictype/joiningtype-name: New file.
39998         * lib/unictype/joiningtype_name.c: New file.
40000         unictype: Add support for Arabic shaping properties.
40001         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
40002         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
40003         declarations.
40004         (UC_JOINING_GROUP_*): New enumeration values.
40005         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
40006         declarations.
40007         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
40008         (unicode_joining_type): New variable.
40009         (UC_JOINING_GROUP_*): New enumeration values.
40010         (unicode_joining_group): New variable.
40011         (fill_arabicshaping, joining_type_as_c_identifier,
40012         output_joining_type_test, output_joining_type,
40013         joining_group_as_c_identifier, output_joining_group_test,
40014         output_joining_group): New functions.
40015         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
40016         fill_arabicshaping and output_joining_type_test, output_joining_type,
40017         output_joining_group_test, output_joining_group.
40018         Reported by Simon Josefsson.
40020 2011-03-21  Jim Meyering  <meyering@redhat.com>
40022         strftime: fix a bug in yesterday's change
40023         * lib/strftime.c (add): Accommodate width's initial value of -1.
40024         Otherwise, nstrftime would copy uninitialized data into
40025         the result buffer.
40027 2011-03-21  Jim Meyering  <meyering@redhat.com>
40029         tests: add strftime-tests module
40030         * tests/test-strftime.c: New file.
40031         * modules/strftime-tests: New module.
40033 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
40035         strftime: don't assume a byte count fits in 'int'
40036         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
40037         found this problem by static analysis, using gcc -Wstrict-overflow
40038         (GCC 4.5.2, x86-64).  This reported an optimization that depended
40039         on an integer overflow having undefined behavior, but it turns out
40040         that the argument is a size, which might not fit in 'int' anyway,
40042 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
40044         stdio: don't require ignore_value around fwrite
40046         This patch works around libc bug 11959
40047         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
40048         Without this patch, applications must often write
40049         ignore_value (fwrite (...)) even though the ignore_value is
40050         not helpful here.  It's common to write many objects, using
40051         fwrite/printf/etc., and then use ferror to detect output error.
40053         I considered making this patch optional, but decided against it,
40054         because libc is obviously being inconsistent here: there is no
40055         reason libc should insist that user code must inspect fwrite
40056         return's value without also insisting that it inspect printf's,
40057         putchar's, etc.  If user code wants to have a strict style where
40058         all these functions' values are checked (so that ferror need not
40059         be checked), we could add support for that style in a new gnulib
40060         module, but in the meantime it's better to be consistent and to
40061         support common usage.
40063         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
40064         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
40065         that we are compiling in checking mode, and if not C++, and
40066         if not already wrapping fwrite for some other reason.
40067         (fwrite): #define to rpl_fwrite if the latter is defined.
40069 2011-03-20  Bruno Haible  <bruno@clisp.org>
40071         verror: Fix compilation error introduced on 2011-02-13.
40072         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
40073         instead of __attribute__.
40074         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40076 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
40077             Bruno Haible  <bruno@clisp.org>
40079         socklen: do not depend on sys_socket
40080         While trying to modify Emacs to use gnulib's socklen module,
40081         I discovered a circular dependency: socklen depends on sys_socket
40082         and vice versa.  Emacs can use socklen, but it does not need
40083         sys_socket because it has its own substitute for sys/socket.h.
40084         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
40085         gl_TYPE_SOCKLEN_T.
40086         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
40087         gl_PREREQ_SYS_H_SOCKET.
40088         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
40089         gl_PREREQ_SYS_H_SOCKET.
40090         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
40091         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
40092         * modules/socklen (Depends-on): Do not depend on sys_socket.
40093         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
40095 2011-03-20  Jim Meyering  <meyering@redhat.com>
40097         maint.mk: sort file names *after* new transformation
40098         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
40099         prefix would have led to an unwarranted failure in GNU parted.
40100         Sort after that transformation.
40102 2011-03-19  Jim Meyering  <meyering@redhat.com>
40104         maint.mk: fix po-file syntax-check rule
40105         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
40106         Patch by Bruno Haible.
40108 2011-03-19  Bruno Haible  <bruno@clisp.org>
40110         socklen: Update comment.
40111         * m4/socklen.m4: Update comment about platforms.
40113 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
40114             Bruno Haible  <bruno@clisp.org>
40116         inet_ntop, inet_pton: Simplify.
40117         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
40118         documented to provide socklen_t and we already depend on sys_socket.
40119         * modules/inet_pton (Depends-on): Likewise.
40120         * lib/arpa_inet.in.h: Adjust comment.
40122 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
40123             Bruno Haible  <bruno@clisp.org>
40125         netdb: Simplify.
40126         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
40127         documented to provide socklen_t and we already depend on sys_socket.
40128         * lib/netdb.in.h: Adjust comment.
40130 2011-03-19  Bruno Haible  <bruno@clisp.org>
40132         sys_socket, netdb: Document problem with socklen_t.
40133         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
40134         platforms.
40135         * doc/posix-headers/netdb.texi: Likewise.
40137 2011-03-18  Eric Blake  <eblake@redhat.com>
40139         maint.mk: let po check work in VPATH build
40140         * top/maint.mk (po_file): Allow cfg.mk override.
40141         (sc_po_check): Allow VPATH use.
40142         Reported by Jiri Denemark.
40144 2011-03-16  Jim Meyering  <meyering@redhat.com>
40146         maint.mk: allow fine-grained syntax-check exclusion via Make variables
40147         Before, you would have had to create one .x-sc_ file per rule in order
40148         to exempt offending files.  Now, you may instead use a Make variable --
40149         usually defined in cfg.mk -- whose name identifies the affected rule.
40150         * top/maint.mk (_sc_excl): Define.
40151         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
40152         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
40154 2011-03-13  Bruno Haible  <bruno@clisp.org>
40156         ignore-value tests: Avoid warnings.
40157         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
40158         empty for gcc < 3.4.
40160 2011-03-13  Bruno Haible  <bruno@clisp.org>
40162         passfd: Fix link error on Solaris.
40163         * modules/passfd (Description): Correct.
40164         (Depends-on): Add socketlib.
40165         (Link): New section.
40166         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
40168 2011-03-13  Bruno Haible  <bruno@clisp.org>
40170         passfd: Fix link error on AIX 5.2.
40171         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
40173 2011-03-13  Bruno Haible  <bruno@clisp.org>
40175         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
40176         * lib/sys_socket.in.h: Include <stddef.h>.
40177         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
40178         CMSG_FIRSTHDR. Remove unused variable.
40180 2011-03-13  Bruno Haible  <bruno@clisp.org>
40182         passfd: Fix compilation error on OpenBSD.
40183         * lib/passfd.c: Include <sys/uio.h>.
40185 2011-03-13  Bruno Haible  <bruno@clisp.org>
40187         passfd test: Fix warnings.
40188         * tests/test-passfd.c: Include <sys/wait.h>.
40189         (main): Fix typo.
40191 2011-03-13  Bruno Haible  <bruno@clisp.org>
40193         passfd module, part 4, tweaks.
40194         * tests/test-passfd.c: Reorder includes.
40195         (main): Fix perror and printf calls.
40197 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
40199         passfd module, part 4.
40200         * modules/passfd-tests: New file.
40201         * tests/test-passfd.c: New file.
40203 2011-03-13  Jim Meyering  <meyering@redhat.com>
40205         Makefile: rely on GNU make; derive syntax-check rule names
40206         Rather than requiring that each sc_ rule be listed as a dependent
40207         of "check", use features of GNU make to derive the list.
40208         * Makefile (syntax-check-rules): Define.
40209         (check): Depend on the new variable, not the hard-coded list.
40211 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
40212             Bruno Haible  <bruno@clisp.org>
40214         passfd module, part 3.
40215         * lib/passfd.h (recvfd): Add a flags argument.
40216         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
40217         (recvfd): Add a flags argument.
40218         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
40219         exists.
40220         * modules/passfd (Depends-on): Add cloexec.
40221         Suggested by Eric Blake.
40223 2011-03-13  Bruno Haible  <bruno@clisp.org>
40225         passfd module, part 2, tweaks.
40226         * modules/passfd (Files): Reorder.
40227         (Depends-on): Remove errno.
40228         (Include): Remove <sys/socket.h>, <sys/un.h>.
40229         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
40230         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
40231         specification header. Include <sys/socket.h> always. Don't include
40232         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
40233         (sendfd): Clarify that it sets errno when it fails.
40234         (recvfd): Fix specification.
40236 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
40238         passfd module, part 2.
40239         * modules/passfd: New file.
40240         * lib/passfd.h: New file.
40241         * lib/passfd.c: New file.
40243 2011-03-12  Bruno Haible  <bruno@clisp.org>
40245         wcswidth, mbswidth: Avoid integer overflow.
40246         * lib/wcswidth.c: Include <limits.h>.
40247         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
40248         * lib/mbswidth.c: Include <limits.h>.
40249         (mbsnwidth): Avoid 'int' overflow.
40250         Reported by Jim Meyering.
40252 2011-03-12  Bruno Haible  <bruno@clisp.org>
40254         futimens, utimensat: Avoid endless recursion on Solaris 10.
40255         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
40256         Solaris.
40257         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
40258         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
40260 2011-03-11  Jim Meyering  <meyering@redhat.com>
40262         maint.mk: relax a regexp to accommodate other formatting styles
40263         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
40264         between "ngettext" and the following "(".
40266 2011-03-11  Pádraig Brady  <P@draigBrady.com>
40268         maint.mk: suppress a false positive warning
40269         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
40270         diagnostics are marked with ngettext.
40272 2011-03-10  Eric Blake  <eblake@redhat.com>
40274         wchar: add explicit dependencies, for Tru64
40275         * modules/mbmemcasecoll (Depends-on): Add wchar.
40276         * modules/mbtowc (Depends-on): Likewise.
40277         * modules/vasnprintf (Depends-on): Likewise.
40278         * modules/unistdio/u-printf-args (Depends-on): Likewise.
40279         * modules/wctomb (Depends-on): Likewise.
40280         Reported by Peter O'Gorman.
40282 2011-03-08  Bruno Haible  <bruno@clisp.org>
40284         passfd module, part 1, tweaks.
40285         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
40286         Improve indentation. Improve AC_MSG_CHECKING messages.
40287         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
40288         gl_SOCKET_FAMILIES.
40290 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
40292         passfd module, part 1.
40293         * m4/afunix.m4: New file.
40294         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
40295         sockets.
40297 2011-03-08  Bruno Haible  <bruno@clisp.org>
40299         regex-quote: New API.
40300         * lib/regex-quote.h: Include <stdbool.h>.
40301         (struct regex_quote_spec): New type.
40302         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
40303         New declarations.
40304         (regex_quote_length, regex_quote_copy, regex_quote): Take a
40305         'const struct regex_quote_spec *' argument.
40306         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
40307         (pcre_special): New constant.
40308         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
40309         New functions.
40310         (regex_quote_length, regex_quote_copy, regex_quote): Take a
40311         'const struct regex_quote_spec *' argument.
40312         * modules/regex-quote (Depends-on): Add stdbool.
40313         * tests/test-regex-quote.c (check): Update for new API. Add test for
40314         anchored results.
40315         * NEWS: Mention the API change.
40316         Reported by Reuben Thomas and Eric Blake.
40318 2011-03-06  Bruno Haible  <bruno@clisp.org>
40320         regex-quote: Fix creation of POSIX extended regular expressions.
40321         * lib/regex-quote.c (ere_special): Add grouping and alternation
40322         operators.
40324 2011-03-05  Bruno Haible  <bruno@clisp.org>
40326         doc: Improve doc regarding autopoint vs. gnulib.
40327         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
40328         disable autopoint while running autoreconf.
40329         Suggested by Ralf Wildenhues.
40331 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40333         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
40334         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
40336 2011-03-03  Bruce Korb  <bkorb@gnu.org>
40338         parse-duration: remove xalloc.h dependency
40339         * lib/parse-duration.c (parse_period): handle NULL return from
40340         strdup instead of calling xstrdup().
40341         * modules/parse-duration: remove "xalloc" dependency
40343 2011-03-03  Matthew Booth  <mbooth@redhat.com>
40345         bootstrap: honor m4_base when running aclocal
40346         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
40348 2011-03-02  Jim Meyering  <meyering@redhat.com>
40350         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
40351         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
40352         on request from Matt Booth.
40354 2011-03-01  Eric Blake  <eblake@redhat.com>
40356         test-link: work on Hurd
40357         * tests/test-link.h (test_link): Hurd rejects linking directories
40358         with EISDIR instead of the POSIX-mandated EPERM.
40360 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
40362         stdio: simplify by moving files to printf-posix, sigpipe
40363         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
40364         since this symbol is needed only if printf is replaced.
40365         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
40366         Require gl_ASM_SYMBOL_PREFIX.
40367         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
40368         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
40369         (Depends-on): Add 'raise'.
40370         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
40371         * modules/stdio (Files): Remove lib/stdio-write.c,
40372         m4/asm-underscore.m4.
40373         (Depends-on): Remove 'raise'.
40375         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
40376         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
40377         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
40378         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
40380 2011-02-28  Bruno Haible  <bruno@clisp.org>
40382         localcharset: Assume ANSI C behaviour of free().
40383         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
40384         calling free().
40385         Suggested by Simon Josefsson <simon@josefsson.org>.
40387 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
40388             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
40389             Bruno Haible  <bruno@clisp.org>  (tiny change)
40391         On Cygwin, use /proc file system instead of win32 API.
40392         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
40393         Win32 file names.
40394         (DllMain): Simplify by removing Cygwin specific code.
40395         (find_shared_library_fullname): Use Linux specific implementation also
40396         for Cygwin.
40397         (get_shared_library_fullname): Update accordingly.
40398         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
40399         Win32 file names.
40400         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
40401         Cygwin specific code.
40403 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
40404             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
40406         Fix OpenMP flag detection for various Fortran compilers.
40407         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
40408         OpenMP-conditional compilation construct, to force compile
40409         failure with missing OpenMP flag.
40410         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
40412 2011-02-25  Eric Blake  <eblake@redhat.com>
40414         strstr: expand test coverage
40415         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
40416         compilation.
40417         * tests/test-memmem.c (main): Duplicate tests.
40418         * tests/test-strcasestr.c (main): Likewise.
40419         * tests/test-c-strcasestr.c (main): Likewise.
40421 2011-02-25  Jim Meyering  <meyering@redhat.com>
40423         maint.mk: detect missing-NL-at-EOF, too
40424         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
40425         it also detects when a file lacks a newline at EOF.
40426         (require_exactly_one_NL_at_EOF_): Renamed from
40427         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
40428         since people may well have .x-sc_... file names tied to the
40429         existing name.  Suggested by Eric Blake.
40431 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
40433         dirname: move m4/dos.m4 functionality into lib/dosname.h
40435         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
40436         extracts symbols from it, puts them into config.h; but it's much
40437         easier to use the symbols directly.  filename.h already does this,
40438         but it disagrees with dos.m4 in some respects.  This patch
40439         introduces a different include file dosname.h that packages up
40440         dos.m4, and then later we can work on merging filename.h and
40441         dosname.h.  Applications that need only the easy-to-configure
40442         symbols should consider including dosname.h rather than dirname.h.
40443         * NEWS: Mention incompatible changes.
40444         * m4/dos.m4: Remove.
40445         * lib/dosname.h, modules/dosname: New files.
40446         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
40447         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
40448         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
40449         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
40450         Include dosname.h, not dirname.h.
40451         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
40452         Include dosname.h, for definitions of symbols like ISSLASH
40453         that used to be in config.h.
40454         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
40455         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
40456         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40457         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
40458         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
40459         * modules/rmdir (Files): Likewise.
40460         * modules/stat (Files): Likewise.
40461         * modules/unlink (Files): Likewise.
40462         * modules/dirname-lgpl (Depends-on): Add dosname.
40463         * modules/lstat (Depends-on): Likewise.
40464         * modules/openat (Depends-on): Likewise.
40465         * modules/rmdir (Depends-on): Likewise.
40466         * modules/savewd (Depends-on): Likewise.
40467         * modules/stat (Depends-on): Likewise.
40468         * modules/unlink (Depends-on): Likewise.
40469         * modules/openat (Depends-on): Remove dirname-lgpl.
40470         * modules/savewd (Depends-on): Likewise.
40471         * tests/test-dirname.c: Do not use removed symbols like
40472         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
40473         the remaining symbols, e.g., ISSLASH ('\\').
40475 2011-02-25  Eric Blake  <eblake@redhat.com>
40477         strstr: revert patches that introduced bug and pessimization
40478         * lib/str-two-way.h: Add another reference.
40479         (two_way_short_needle, two_way_long_needle): Revert changes from
40480         2011-02-24; they pessimize search speed.
40481         (critical_factorization): Partially revert changes from
40482         2010-06-22; they violate the requirement that the left half of the
40483         needle be smaller than the period of the needle.
40485 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
40487         filenamecat: remove unnecessary dependency on dirname-lgpl
40488         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
40489         is no direct dependency, just an indirect one via filenamecat-lgpl.
40491         remove: remove unnecessary use of m4/dos.m4
40492         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
40493         * modules/remove (FILES): Remove m4/dos.m4.
40495         * lib/openat-proc.c: Don't include dirname.h; not needed.
40497         backupfile: remove unnecessary use of m4/dos.m4
40498         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
40499         of its symbols are used by the backupfile code.  backupfile.c does
40500         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
40501         for the rare case of programs that want all their backup file
40502         names to live within 8+3 limits, and dos.m4 doesn't address that.
40503         * modules/backupfile (Files): Remove m4/dos.m4.
40505 2011-02-24  Jim Meyering  <meyering@redhat.com>
40507         strstr: fix a bug whereby strstr would mistakenly return NULL
40508         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
40509         in period calculation.
40510         (two_way_long_needle): Likewise.
40511         The original problem was reported by Mike Stump in
40512         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
40513         Ralf Wildenhues provided the short needle and haystack.
40514         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
40515         Add a more involved test to trigger the bug in two_way_long_needle.
40517 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
40519         gnulib-tool: remove use of bold display in help screen
40520         * gnulib-tool (func_usage): Do not use bold display anymore in the
40521         help screen.  That was just meant to be a temporary emphasis for a
40522         backward-incompatible change.
40524 2011-02-23  Bruno Haible  <bruno@clisp.org>
40526         Fix misindentation of preprocessor directives.
40527         * lib/argp-namefrob.h: Reindent preprocessor directives.
40528         * lib/getopt_int.h (struct _getopt_data): Likewise.
40529         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
40530         * lib/vasnprintf.c (decode_long_double): Likewise.
40531         * tests/test-argmatch.c: Insert blank lines, for clarity.
40532         * tests/test-exclude.c: Likewise.
40534 2011-02-22  Bruno Haible  <bruno@clisp.org>
40536         ioctl: Fix for MacOS X in 64-bit mode.
40537         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
40538         value.
40539         Suggested by Eric Blake.
40540         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
40542 2011-02-22  Jim Meyering  <meyering@redhat.com>
40544         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
40545         * Makefile (sc_cpp_indent_check): Don't limit the check to files
40546         in lib/.
40548 2011-02-22  Eric Blake  <eblake@redhat.com>
40550         maint: avoid any CDPATH issue
40551         * Makefile (sc_cpp_indent_check): Anchor cd argument.
40553         maint: adjust cpp indentation for my modules, as well
40554         * Makefile (sc_cpp_indent_check): Add my name.
40555         * lib/fbufmode.c: Filter through cppi.
40556         * lib/fpurge.c: Likewise.
40557         * lib/freadable.c: Likewise.
40558         * lib/freading.c: Likewise.
40559         * lib/fwritable.c: Likewise.
40560         * lib/fwriting.c: Likewise.
40561         * lib/sigaction.c: Likewise.
40563 2011-02-22  Jim Meyering  <meyering@redhat.com>
40565         maint: adjust cpp indentation to reflect nesting depth
40566         I.e., in a block of code that begins with an unnested "#if",
40567         put one space between the "#" in column 1 and following token.
40568         For example,
40569         -#include <sys/vfs.h>
40570         +# include <sys/vfs.h>
40571         Do this only in .c files that are part of a module I maintain.
40572         * lib/linkat.c: Filter through cppi.
40573         * lib/nanosleep.c: Likewise.
40574         * lib/openat.c: Likewise.
40575         * lib/openat-die.c: Likewise.
40576         * lib/dup3.c: Likewise.
40577         * lib/fchownat.c: Likewise.
40578         * lib/flock.c: Likewise.
40579         * lib/fsync.c: Likewise.
40580         * lib/fts.c: Likewise.
40581         * lib/getpass.c: Likewise.
40582         * lib/gettimeofday.c: Likewise.
40583         * lib/userspec.c: Likewise.
40584         * Makefile (sc_cpp_indent_check): New rule, to check this.
40586 2011-02-22  Bruno Haible  <bruno@clisp.org>
40588         New module 'wctomb'.
40589         * lib/stdlib.in.h (wctomb): New declaration.
40590         * lib/wctomb.c: New file.
40591         * lib/wctomb-impl.h: New file.
40592         * m4/wctomb.m4: New file.
40593         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
40594         REPLACE_WCTOMB.
40595         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
40596         REPLACE_WCTOMB.
40597         * modules/wctomb: New file.
40598         * tests/test-stdlib-c++.cc: Test signature of wctomb.
40599         * doc/posix-functions/wctomb.texi: Mention the new module.
40600         * modules/wctob (Depends-on): Add wctomb.
40602 2011-02-22  Bruno Haible  <bruno@clisp.org>
40604         New module 'mbtowc'.
40605         * lib/stdlib.in.h (mbtowc): New declaration.
40606         * lib/mbtowc.c: New file.
40607         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
40608         * m4/mbtowc.m4: New file.
40609         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
40610         REPLACE_MBTOWC.
40611         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
40612         REPLACE_MBTOWC.
40613         * modules/mbtowc: New file.
40614         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
40615         * doc/posix-functions/mbtowc.texi: Mention the new module.
40616         * modules/btowc (Depends-on): Add mbtowc.
40618 2011-02-22  Bruno Haible  <bruno@clisp.org>
40620         wcrtomb: Add more tests for native Windows platforms.
40621         * tests/test-wcrtomb-w32-1.sh: New file.
40622         * tests/test-wcrtomb-w32-2.sh: New file.
40623         * tests/test-wcrtomb-w32-3.sh: New file.
40624         * tests/test-wcrtomb-w32-4.sh: New file.
40625         * tests/test-wcrtomb-w32-5.sh: New file.
40626         * tests/test-wcrtomb-w32.c: New file.
40627         * modules/wcrtomb-tests (Files): Add them.
40628         (Makefile.am): Arrange to run these tests.
40629         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
40630         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
40632 2011-02-20  Bruno Haible  <bruno@clisp.org>
40634         wcrtomb: Enhance test.
40635         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
40637 2011-02-20  Bruno Haible  <bruno@clisp.org>
40639         mbrtowc: Tiny optimization.
40640         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
40642 2011-02-20  Jim Meyering  <meyering@redhat.com>
40644         test-exclude.c: remove unmatched #endif
40645         * tests/test-exclude.c: Remove stray #endif, left over from
40646         the change of a week ago.
40648 2011-02-19  Jim Meyering  <meyering@redhat.com>
40650         git-version-gen: skip "-dirty" check when appropriate
40651         * build-aux/git-version-gen: Don't run any git commands when the
40652         version string comes from .tarball-version.  Prior to this, we
40653         would run git update-index --refresh even from a just-unpacked
40654         tarball directory, and that could affect a .git/ directory in a
40655         parent of the build directory.  Reported by Mike Frysinger.
40657 2011-02-19  Bruno Haible  <bruno@clisp.org>
40659         unictype/property-byname: Reduce the size of the 'data' segment.
40660         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
40662 2011-02-19  Bruno Haible  <bruno@clisp.org>
40664         unictype/scripts: Reduce the size of the 'data' segment.
40665         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
40666         '%pic'.
40667         * lib/unictype/scripts_byname.gperf: Regenerated.
40669 2011-02-19  Bruno Haible  <bruno@clisp.org>
40671         stdint: Update documentation.
40672         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
40674 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
40676         stdint: omit redundant check for wchar.h
40677         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
40678         always tests whether wchar.h exists, so remove the now-redundant test.
40680 2011-02-18  Bruno Haible  <bruno@clisp.org>
40682         stdint: Cut dependency to module 'wchar'.
40683         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
40684         include the necessary prerequisites.
40685         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
40686         * modules/stdint (Depends-on): Remove wchar.
40687         (Makefile.am): Substitute HAVE_WCHAR_H.
40688         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
40690 2011-02-18  Eric Blake  <eblake@redhat.com>
40692         longlong: skip, rather than fail, on cross-compilation
40693         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
40694         when cross-compiling; regression from 2011-02-16.
40696 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
40698         * NEWS: Mention 2011-02-08 change to stdlib.
40700 2011-02-17  Bruno Haible  <bruno@clisp.org>
40702         getloadavg: Add comments about platforms.
40703         * m4/getloadavg.m4: Add comment.
40704         * lib/getloadavg.c: Likewise.
40706 2011-02-17  Bruno Haible  <bruno@clisp.org>
40708         getloadavg: Fix link error on Solaris 2.6.
40709         * modules/getloadavg (Link): New section.
40710         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
40711         linking test-getloadavg.
40712         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
40713         getloadavg.
40715 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
40717         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
40718         It was 'int', but this doesn't match the IRIX 6.5 manual.
40719         Suggested by Bruno Haible in
40720         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
40722 2011-02-17  Bruno Haible  <bruno@clisp.org>
40724         havelib: Fix comments.
40725         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
40726         change.
40728 2011-02-17  Bruno Haible  <bruno@clisp.org>
40730         havelib: Update config.rpath.
40731         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
40733 2011-02-17  Bruno Haible  <bruno@clisp.org>
40735         getloadavg test: Add some plausibility checks.
40736         * tests/test-getloadavg.c (check_avg): Print a warning when the value
40737         is improbable.
40739 2011-02-16  Eric Blake  <eblake@redhat.com>
40741         maintainer-makefile: make syntax-check a no-op from tarballs
40742         * top/maint.mk (no-vc-detected): New rule.
40743         (local-checks-available): Use it to avoid hanging if someone tries
40744         'make syntax-check' from a tarball.  Also append to any non-syntax
40745         checks already defined in cfg.mk.
40747 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
40749         longlong: tune, particularly for common case of c99
40751         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
40752         or running anything if c99, or if unsigned long long int does not
40753         work.  In either case, we know the answer without further tests.
40754         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
40755         it at most once, and use its results for both long long int and
40756         unsigned long long int.  This is more likely to be efficient in
40757         the common case where the program wants to check for both long
40758         long int and unsigned long long int.
40759         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
40760         since the answer is already known.
40762 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
40764         getloadavg: set errno
40765         * lib/getloadavg.c: Set errno when returning -1.  If no other
40766         error number looks appropriate, set it to ENOSYS if the getloadavg
40767         looks like it can't possibly ever work, ENOTSUP otherwise.
40768         Suggested by Bruno Haible in
40769         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
40771         getloadavg: trim unused parts and speed up 'configure'
40772         * NEWS: Document this.
40773         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
40774         always compiled if getloadavg is absent.
40775         Move test code to ...
40776         * tests/test-getloadavg.c: New file, containing previous
40777         contents of test from lib/getloadavg.c.  It also contains
40778         suggestions by Bruno Haible in
40779         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
40780         * modules/getloadavg-tests: New file.
40781         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
40782         Do tests in the same order as they're needed for getloadavg.c.
40783         Omit setgid-related tests that generate symbols KMEM_GROUP,
40784         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
40785         Do only the tests that are needed to see whether the system has
40786         getloadavg, moving the other tests into ...
40787         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
40788         NLIST_NAME_UNION; nobody should be using it.  Do not define
40789         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
40790         relevant, as the user of this module shouldn't care how getloadavg
40791         is implemented.
40793         getloadavg: omit unused var
40794         * lib/getloadavg.c (getloadavg): Omit unused local variable.
40796 2011-02-15  Jim Meyering  <meyering@redhat.com>
40798         doc: update users.txt
40799         * users.txt: Update iwhd's URL.
40801 2011-02-13  Bruno Haible  <bruno@clisp.org>
40803         Consistent macro naming for macros that use GCC __attribute__.
40804         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
40805         _ATTRIBUTE_NONNULL_.
40806         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
40807         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
40808         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
40809         ATTRIBUTE_DEPRECATED.
40810         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
40811         ATTRIBUTE_NORETURN.
40812         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
40813         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
40814         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
40815         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
40816         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
40817         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
40818         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
40819         ATTRIBUTE_SENTINEL.
40820         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
40821         ATTRIBUTE_RETURN_CHECK.
40822         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
40823         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
40824         ATTRIBUTE_NORETURN.
40825         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
40826         Reported by Paul Eggert.
40828 2011-02-13  Bruno Haible  <bruno@clisp.org>
40830         Don't interfere with a program's definition of __attribute__.
40831         * lib/argp.h (__attribute__): Remove definition.
40832         (_GL_ATTRIBUTE_FORMAT): New macro.
40833         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
40834         * lib/argp-fmtstream.h (__attribute__): Remove definition.
40835         (_GL_ATTRIBUTE_FORMAT): New macro.
40836         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
40837         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
40838         GCC 3 or newer.
40839         * lib/error.h (__attribute__): Remove definition.
40840         (_GL_ATTRIBUTE_FORMAT): New macro.
40841         (error, error_at_line): Use it.
40842         * lib/hash.h (__attribute__): Remove definition.
40843         (ATTRIBUTE_WUR): Update definition. Define always.
40844         * lib/openat.h (__attribute__): Remove definition.
40845         (ATTRIBUTE_NORETURN): Update definition. Define always.
40846         * lib/sigpipe-die.h (__attribute__): Remove definition.
40847         (ATTRIBUTE_NORETURN): Update definition. Define always.
40848         * lib/vasnprintf.h (__attribute__): Remove definition.
40849         (_GL_ATTRIBUTE_FORMAT): New macro.
40850         (asnprintf, vasnprintf): Use it.
40851         * lib/xalloc.h (__attribute__): Remove definition.
40852         (ATTRIBUTE_NORETURN): Update definition. Define always.
40853         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
40854         * lib/xmemdup0.h (__attribute__): Remove definition.
40855         (ATTRIBUTE_NORETURN): Update definition. Define always.
40856         * lib/xprintf.h (__attribute__): Remove definition.
40857         (_GL_ATTRIBUTE_FORMAT): New macro.
40858         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
40859         * lib/xstrtol.h (__attribute__): Remove definition.
40860         (ATTRIBUTE_NORETURN): Update definition. Define always.
40861         * lib/xvasprintf.h (__attribute__): Remove definition.
40862         (_GL_ATTRIBUTE_FORMAT): New macro.
40863         (xasprintf, xvasprintf): Use it.
40864         * tests/test-argmatch.c (__attribute__): Remove definition.
40865         (ATTRIBUTE_NORETURN): Update definition. Define always.
40866         * tests/test-exclude.c (__attribute__): Remove definition.
40867         (ATTRIBUTE_NORETURN): Update definition. Define always.
40868         Reported by Paul Eggert.
40870 2011-02-13  Bruno Haible  <bruno@clisp.org>
40872         mbrtowc: Add more tests for native Windows platforms.
40873         * tests/test-mbrtowc-w32-1.sh: New file.
40874         * tests/test-mbrtowc-w32-2.sh: New file.
40875         * tests/test-mbrtowc-w32-3.sh: New file.
40876         * tests/test-mbrtowc-w32-4.sh: New file.
40877         * tests/test-mbrtowc-w32-5.sh: New file.
40878         * tests/test-mbrtowc-w32.c: New file.
40879         * modules/mbrtowc-tests (Files): Add them.
40880         (Makefile.am): Arrange to run these tests.
40881         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
40882         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
40884 2011-02-13  Bruno Haible  <bruno@clisp.org>
40886         mbrtowc: Work around native Windows bug.
40887         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
40888         guess when no suitable locale for testing was found.
40889         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
40891 2011-02-13  Bruno Haible  <bruno@clisp.org>
40893         mbsinit: Work around mingw bug.
40894         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
40895         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
40896         Windows.
40897         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
40899 2011-02-13  Bruno Haible  <bruno@clisp.org>
40901         mbsinit: Don't crash for a NULL argument.
40902         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
40903         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
40905 2011-02-13  Bruno Haible  <bruno@clisp.org>
40907         Don't interfere with a program's definition of __attribute__.
40908         * lib/stdio.in.h (__attribute__): Remove definition.
40909         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
40910         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
40911         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
40912         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
40913         * lib/string.in.h (__attribute__): Remove definition.
40914         Reported by Paul Eggert.
40916 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
40918         stdlib: don't get in the way of non-GCC __attribute__
40919         See thread starting at
40920         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
40921         Revert previous stdlib change, installing the following instead:
40922         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
40923         to get in the way of a non-GCC compiler that supports __attribute__.
40924         (_GL_ATTRIBUTE_RETURN): New macro.
40925         (_Exit): Use it instead of __attribute__.
40927 2011-02-12  Bruno Haible  <bruno@clisp.org>
40929         quotearg test: Avoid test failure on mingw.
40930         * tests/test-quotearg.sh: Convert the locale identifier from native
40931         Windows syntax to Unix syntax.
40933 2011-02-12  Bruno Haible  <bruno@clisp.org>
40935         setlocale: Prefer gnulib's override over libintl's override.
40936         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
40937         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
40938         GNULIB_defined_setlocale is set.
40940 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
40942         stdlib: support non-GCC __attribute__
40944         Fix a serious and tricky problem encountered when attempting to
40945         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
40946         5.5, but it crashed due to memory corruption on Solaris 10 with
40947         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
40948         bits that are otherwise zero.  This tagging is optional inside
40949         Emacs but is preferred and is used when __attribute__ ((__aligned
40950         (8))) works, as it does with both recent-enough GCC and with Sun C
40951         5.11.  However, Sun C 5.11 is not GCC and does not #define
40952         __GNUC__ and __GNUC_MINOR__.
40954         When I added the getloadavg module to Emacs, it brought in
40955         stdlib.in.h, which contained this fragment:
40957            #ifndef __attribute__
40958            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
40959            #  define __attribute__(Spec)   /* empty */
40960            # endif
40961            #endif
40963         When files that include <stdlib.h> were compiled with Sun C 5.11,
40964         the above code disabled __attribute__ ((__aligned (8))), which
40965         caused variables to not be properly aligned, which eventually led
40966         to the pointer corruption mentioned above.  (This was a bit hard
40967         to diagnose, unfortunately.)
40969         Several "#define __attribute__(X) /* empty */" code snippets need
40970         to be eradicated from Gnulib to work with non-GCC compilers that
40971         support __attribute__.  The Autoconf way to do this is to test for
40972         each kind of attribute that we want support for, and selectively
40973         enable that in source code.
40975         Fix this problem just for stdlib.h, by adding a test for the
40976         __noreturn__ attribute, and change stdlib.in.h to use that test
40977         when needed.  This technique can be easily generalized to the
40978         other *.in.h files and attributes, and a similar technique can be
40979         used for *.h and *.c files.  This patch is enough to solve the
40980         problem for Emacs + getloadavg, and I thought I'd publish it for
40981         feedback before undertaking further, similar fixes in other
40982         modules.
40984         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
40985         because it's not needed for stdlib.h.  It merely substitutes the
40986         value directly into stdlib.h.  We may well need to #define it, or
40987         similar symbols, for other modules, but it's nice to also have an
40988         option to not #define it for applications like Emacs that do not
40989         need it.
40991         * lib/stdlib.in.h (__attribute__): Do not #define.
40992         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
40993         be defined only if the _Exit module is also used.
40994         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
40995         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
40996         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
40997         platforms.
40998         * modules/_Exit (Files): Add m4/attribute.m4.
40999         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
41000         * m4/attribute.m4: New file.
41002 2011-02-12  Bruno Haible  <bruno@clisp.org>
41004         wcsrtombs: Work around bug on native Windows.
41005         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
41006         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
41007         instead of len.
41008         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
41010 2011-02-12  Bruno Haible  <bruno@clisp.org>
41012         mbsrtowcs: Work around bug on native Windows.
41013         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
41014         against mingw bug.
41015         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
41017 2011-02-12  Bruno Haible  <bruno@clisp.org>
41019         Avoid setlocale bugs in tests.
41020         * modules/btowc (Dependencies): Add setlocale.
41021         * modules/c-strcase (Dependencies): Likewise.
41022         * modules/mbmemcasecmp (Dependencies): Likewise.
41023         * modules/mbmemcasecoll (Dependencies): Likewise.
41024         * modules/mbrtowc (Dependencies): Likewise.
41025         * modules/mbscasecmp (Dependencies): Likewise.
41026         * modules/mbscasestr (Dependencies): Likewise.
41027         * modules/mbschr (Dependencies): Likewise.
41028         * modules/mbscspn (Dependencies): Likewise.
41029         * modules/mbsinit (Dependencies): Likewise.
41030         * modules/mbsncasecmp (Dependencies): Likewise.
41031         * modules/mbsnrtowcs (Dependencies): Likewise.
41032         * modules/mbspbrk (Dependencies): Likewise.
41033         * modules/mbspcasecmp (Dependencies): Likewise.
41034         * modules/mbsrchr (Dependencies): Likewise.
41035         * modules/mbsrtowcs (Dependencies): Likewise.
41036         * modules/mbsspn (Dependencies): Likewise.
41037         * modules/mbsstr (Dependencies): Likewise.
41038         * modules/nl_langinfo (Dependencies): Likewise.
41039         * modules/quotearg (Dependencies): Likewise.
41040         * modules/unicase/locale-language (Dependencies): Likewise.
41041         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
41042         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
41043         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
41044         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
41045         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
41046         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
41047         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
41048         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
41049         * modules/vasnprintf-posix (Dependencies): Likewise.
41050         * modules/wcrtomb (Dependencies): Likewise.
41051         * modules/wcsnrtombs (Dependencies): Likewise.
41052         * modules/wcsrtombs (Dependencies): Likewise.
41054 2011-02-12  Bruno Haible  <bruno@clisp.org>
41056         setlocale: Workaround native Windows bug.
41057         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
41058         succeeds but sets LC_CTYPE to "C", report a failure.
41059         * tests/test-setlocale2.sh: New file.
41060         * tests/test-setlocale2.c: New file.
41061         * modules/setlocale-tests (Files): Add the new files.
41062         (Makefile.am): Enable test-setlocale2.sh test.
41063         * doc/posix-functions/setlocale.texi: Mention workaround.
41065 2011-02-11  Bruno Haible  <bruno@clisp.org>
41067         Tests for module 'setlocale'.
41068         * modules/setlocale-tests: New file.
41069         * tests/test-setlocale1.sh: New file.
41070         * tests/test-setlocale1.c: New file.
41072         New module 'setlocale'.
41073         * lib/locale.in.h (setlocale): New declaration.
41074         * lib/setlocale.c: New file, based on
41075         gettext/gettext-runtime/intl/setlocale.c.
41076         * m4/setlocale.m4: New file.
41077         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
41078         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
41079         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
41080         REPLACE_SETLOCALE.
41081         * modules/setlocale: New file.
41082         * tests/test-locale-c++.cc: Test the declaration of setlocale.
41083         * doc/posix-functions/setlocale.texi: Mention the new module.
41085 2011-02-11  Bruno Haible  <bruno@clisp.org>
41087         Prepare for locale dependent tests on mingw.
41088         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
41089         because it has the wrong locale encoding.
41090         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
41091         French_France.1252 instead of "fr".
41092         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
41093         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
41094         because it has the wrong locale encoding.
41095         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
41096         native Windows, try Turkish_Turkey.65001.
41097         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
41098         Chinese_China.54936.
41100         Prepare for locale dependent tests on mingw.
41101         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
41102         differently.
41103         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
41104         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
41105         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
41106         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
41108 2011-02-11  Eric Blake  <eblake@redhat.com>
41110         strptime: avoid compiler warnings
41111         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
41112         compiler warnings about dead code.
41113         Reported by Daniel P. Berrange.
41115 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
41117         doc: update users.txt
41118         * users.txt: Add rcs.
41120 2011-02-10  John W. Eaton  <jwe@gnu.org>
41122         doc: update users.txt
41123         * users.txt: Add octave.
41125 2011-02-10  Jim Meyering  <meyering@redhat.com>
41127         doc: update users.txt
41128         * users.txt: Add iwhd.
41130 2011-02-09  Bruno Haible  <bruno@clisp.org>
41132         gnulib-tool: Make copyright notice adjustment more robust.
41133         * gnulib-tool (func_import): In sed_transform_main_lib_file,
41134         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
41135         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
41136         License".
41137         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
41139 2011-02-06  Bruno Haible  <bruno@clisp.org>
41141         New module 'towctrans'.
41142         * modules/towctrans: New file.
41143         * lib/wctype.in.h (towctrans): New declaration.
41144         * lib/towctrans.c: New file.
41145         * lib/towctrans-impl.h: New file.
41146         * m4/towctrans.m4: New file.
41147         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
41148         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
41149         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
41150         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
41151         * doc/posix-functions/towctrans.texi: Mention the new module.
41153 2011-02-06  Bruno Haible  <bruno@clisp.org>
41155         New module 'wctrans'.
41156         * modules/wctrans: New file.
41157         * lib/wctype.in.h (wctrans): New declaration.
41158         * lib/wctrans.c: New file.
41159         * lib/wctrans-impl.h: New file.
41160         * m4/wctrans.m4: New file.
41161         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
41162         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
41163         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
41164         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
41165         * doc/posix-functions/wctrans.texi: Mention the new module.
41167 2011-02-06  Bruno Haible  <bruno@clisp.org>
41169         New module 'iswctype'.
41170         * modules/iswctype: New file.
41171         * lib/wctype.in.h (iswctype): New declaration.
41172         * lib/iswctype.c: New file.
41173         * lib/iswctype-impl.h: New file.
41174         * m4/iswctype.m4: New file.
41175         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
41176         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
41177         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
41178         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
41179         * doc/posix-functions/iswctype.texi: Mention the new module and the
41180         HP-UX 11.00 problem.
41182 2011-02-06  Bruno Haible  <bruno@clisp.org>
41184         New module 'wctype'.
41185         * modules/wctype: Change to represent the wctype() substitute.
41186         * lib/wctype.in.h (wctype): New declaration.
41187         * lib/wctype.c: New file.
41188         * lib/wctype-impl.h: New file.
41189         * m4/wctype.m4: New file.
41190         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
41191         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
41192         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
41193         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
41194         * doc/posix-functions/wctype.texi: Mention the new module and the
41195         HP-UX 11.00 problem.
41197 2011-02-06  Bruno Haible  <bruno@clisp.org>
41199         wctype-h: Ensure wctype_t and wctrans_t are defined.
41200         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
41201         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
41202         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
41203         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
41204         HAVE_WCTRANS_T.
41205         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
41207 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
41209         flock: fix license typo
41211         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
41212         omitted.
41214 2011-02-08  Bruno Haible  <bruno@clisp.org>
41216         Split large sed scripts, for HP-UX sed.
41217         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
41218         to avoid HP-UX limit of 99 commands, in the near future.
41219         * modules/stdlib (Makefile.am): Likewise.
41220         * modules/unistd (Makefile.am): Likewise.
41221         * modules/wchar (Makefile.am): Likewise.
41222         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41223         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
41224         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
41226 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
41227             Bruno Haible  <bruno@clisp.org>
41229         stdlib: improve random_r modularization
41230         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
41231         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
41232         you also need the random_r module to get this material right.
41233         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
41234         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
41235         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
41237 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
41239         stdlib: don't depend on stdint
41240         * lib/stdlib.in.h: Don't include <stdint.h> merely because
41241         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
41242         be independent of whether stdint.h is needed.
41243         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
41244         here, instead of ...
41245         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
41246         struct random_data should be using the random_r module, not just
41247         the stdlib module (which wouldn't make sense: what package needs
41248         just struct random_data without also needing random_r?).
41249         * modules/stdlib (Depends-on): Remove stdint.
41251         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
41252         See the thread rooted at
41253         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
41254         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
41255         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
41256         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
41257         __VMS)); previously it was always included (via fcntl--.h).
41258         (getloadavg): Do not use c_strtod.  Instead, approximate it by
41259         hand; this is good enough for load averages.  Also, do not use
41260         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
41261         flags directly if available and don't bother otherwise.  (Packages
41262         that need the extra reliability should use the modules that define
41263         these flags on older platforms that lack them.)
41264         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
41265         fcntl-safer.
41267 2011-02-08  Jim Meyering  <meyering@redhat.com>
41269         di-set.h, ino-map.h: add multiple-inclusion guard
41270         Technically, the guard is required only for ino-map.h, due to its
41271         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
41272         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
41273         * lib/ino-map.h: Likewise.
41275 2011-02-06  Bruno Haible  <bruno@clisp.org>
41277         iswblank: Ensure declaration on glibc systems.
41278         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
41279         * modules/iswblank (Dependencies): Add 'extensions'.
41280         * doc/posix-functions/iswblank.texi: Document the glibc problem.
41282 2011-02-06  Bruno Haible  <bruno@clisp.org>
41284         New module 'iswblank'.
41285         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
41286         * modules/iswblank: New file.
41287         * modules/wctype-h (Files): Remove lib/iswblank.c.
41288         (Makefile.am): Substitute GNULIB_ISWBLANK.
41289         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
41290         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
41291         (gl_WCTYPE_H_DEFAULTS): New macro.
41292         (gl_WCTYPE_H): Require it. Remove iswblank related code.
41293         * modules/iswblank-tests: New file.
41294         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
41295         * tests/test-wctype-h.c (main): Remove iswblank tests.
41296         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
41297         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
41298         of 'wctype-h'.
41299         * NEWS: Mention the change.
41300         * modules/mbchar (Depends-on): Add iswblank.
41302 2011-02-08  Bruno Haible  <bruno@clisp.org>
41304         di-set tests: Refactor.
41305         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
41306         unnecessary includes.
41307         (ASSERT): Remove macro.
41308         (main): Make C90 compliant by avoiding variable declaration after
41309         statement.
41310         * modules/di-set-tests (Files): Add tests/macros.h.
41312 2011-02-08  Bruno Haible  <bruno@clisp.org>
41314         ino-map tests: Refactor.
41315         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
41316         unnecessary includes.
41317         (ASSERT): Remove macro.
41318         (main): Make C90 compliant by avoiding variable declaration after
41319         statement.
41320         * modules/ino-map-tests (Files): Add tests/macros.h.
41322 2011-02-08  Jim Meyering  <meyering@redhat.com>
41324         di-set: add "const" to a cast
41325         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
41326         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
41328 2011-02-06  Bruno Haible  <bruno@clisp.org>
41330         Rename module 'wctype' to 'wctype-h'.
41331         * modules/wctype-h: Renamed from modules/wctype.
41332         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
41333         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
41334         (Files, Depends-on, Makefile.am): Update.
41335         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
41336         (Files, Makefile.am): Update.
41337         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
41338         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
41339         * doc/posix-headers/wctype.texi: Update.
41340         * doc/posix-functions/iswalnum.texi: Update.
41341         * doc/posix-functions/iswalpha.texi: Update.
41342         * doc/posix-functions/iswblank.texi: Update.
41343         * doc/posix-functions/iswcntrl.texi: Update.
41344         * doc/posix-functions/iswdigit.texi: Update.
41345         * doc/posix-functions/iswgraph.texi: Update.
41346         * doc/posix-functions/iswlower.texi: Update.
41347         * doc/posix-functions/iswprint.texi: Update.
41348         * doc/posix-functions/iswpunct.texi: Update.
41349         * doc/posix-functions/iswspace.texi: Update.
41350         * doc/posix-functions/iswupper.texi: Update.
41351         * doc/posix-functions/iswxdigit.texi: Update.
41352         * doc/posix-functions/towlower.texi: Update.
41353         * doc/posix-functions/towupper.texi: Update.
41354         * NEWS: Mention the change.
41355         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
41356         * modules/mbchar (Dependencies): Likewise.
41357         * modules/mbswidth (Dependencies): Likewise.
41358         * modules/quotearg (Dependencies): Likewise.
41359         * modules/regex (Dependencies): Likewise.
41360         * modules/wcscasecmp (Dependencies): Likewise.
41361         * modules/wcsncasecmp (Dependencies): Likewise.
41362         * modules/wcwidth (Dependencies): Likewise.
41364 2011-02-06  Bruno Haible  <bruno@clisp.org>
41366         New module 'wcswidth'.
41367         * modules/wcswidth: New file.
41368         * lib/wchar.in.h (wcswidth): New declaration.
41369         * lib/wcswidth.c: New file.
41370         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
41371         * m4/wcswidth.m4: New file.
41372         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
41373         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
41374         REPLACE_WCSWIDTH.
41375         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
41376         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
41377         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
41378         * doc/posix-functions/wcswidth.texi: Mention the new module.
41380 2011-02-06  Bruno Haible  <bruno@clisp.org>
41382         New module 'wcstok'.
41383         * modules/wcstok: New file.
41384         * lib/wchar.in.h (wcstok): New declaration.
41385         * lib/wcstok.c: New file.
41386         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
41387         * m4/wcstok.m4: New file.
41388         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
41389         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
41390         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
41391         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
41392         * doc/posix-functions/wcstok.texi: Mention the new module.
41394 2011-02-06  Bruno Haible  <bruno@clisp.org>
41396         New module 'wcsstr'.
41397         * modules/wcsstr: New file.
41398         * lib/wchar.in.h (wcsstr): New declaration.
41399         * lib/wcsstr.c: New file.
41400         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
41401         * m4/wcsstr.m4: New file.
41402         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
41403         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
41404         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
41405         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
41406         * doc/posix-functions/wcsstr.texi: Mention the new module.
41408 2011-02-06  Bruno Haible  <bruno@clisp.org>
41410         New module 'wcspbrk'.
41411         * modules/wcspbrk: New file.
41412         * lib/wchar.in.h (wcspbrk): New declaration.
41413         * lib/wcspbrk.c: New file.
41414         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
41415         * m4/wcspbrk.m4: New file.
41416         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
41417         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
41418         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
41419         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
41420         * doc/posix-functions/wcspbrk.texi: Mention the new module.
41422 2011-02-06  Bruno Haible  <bruno@clisp.org>
41424         New module 'wcsspn'.
41425         * modules/wcsspn: New file.
41426         * lib/wchar.in.h (wcsspn): New declaration.
41427         * lib/wcsspn.c: New file.
41428         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
41429         * m4/wcsspn.m4: New file.
41430         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
41431         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
41432         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
41433         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
41434         * doc/posix-functions/wcsspn.texi: Mention the new module.
41436 2011-02-06  Bruno Haible  <bruno@clisp.org>
41438         New module 'wcscspn'.
41439         * modules/wcscspn: New file.
41440         * lib/wchar.in.h (wcscspn): New declaration.
41441         * lib/wcscspn.c: New file.
41442         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
41443         * m4/wcscspn.m4: New file.
41444         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
41445         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
41446         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
41447         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
41448         * doc/posix-functions/wcscspn.texi: Mention the new module.
41450 2011-02-06  Bruno Haible  <bruno@clisp.org>
41452         New module 'wcsrchr'.
41453         * modules/wcsrchr: New file.
41454         * lib/wchar.in.h (wcsrchr): New declaration.
41455         * lib/wcsrchr.c: New file.
41456         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
41457         * m4/wcsrchr.m4: New file.
41458         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
41459         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
41460         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
41461         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
41462         * doc/posix-functions/wcsrchr.texi: Mention the new module.
41464 2011-02-06  Bruno Haible  <bruno@clisp.org>
41466         New module 'wcschr'.
41467         * modules/wcschr: New file.
41468         * lib/wchar.in.h (wcschr): New declaration.
41469         * lib/wcschr.c: New file.
41470         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
41471         * m4/wcschr.m4: New file.
41472         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
41473         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
41474         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
41475         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
41476         * doc/posix-functions/wcschr.texi: Mention the new module.
41478 2011-02-06  Bruno Haible  <bruno@clisp.org>
41480         New module 'wcsdup'.
41481         * modules/wcsdup: New file.
41482         * lib/wchar.in.h (wcsdup): New declaration.
41483         * lib/wcsdup.c: New file.
41484         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
41485         * m4/wcsdup.m4: New file.
41486         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
41487         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
41488         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
41489         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
41490         * doc/posix-functions/wcsdup.texi: Mention the new module.
41492 2011-02-06  Bruno Haible  <bruno@clisp.org>
41494         New module 'wcsxfrm'.
41495         * modules/wcsxfrm: New file.
41496         * lib/wchar.in.h (wcsxfrm): New declaration.
41497         * lib/wcsxfrm.c: New file.
41498         * lib/wcsxfrm-impl.h: New file.
41499         * m4/wcsxfrm.m4: New file.
41500         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
41501         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
41502         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
41503         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
41504         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
41506 2011-02-06  Bruno Haible  <bruno@clisp.org>
41508         New module 'wcscoll'.
41509         * modules/wcscoll: New file.
41510         * lib/wchar.in.h (wcscoll): New declaration.
41511         * lib/wcscoll.c: New file.
41512         * lib/wcscoll-impl.h: New file.
41513         * m4/wcscoll.m4: New file.
41514         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
41515         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
41516         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
41517         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
41518         * doc/posix-functions/wcscoll.texi: Mention the new module.
41520 2011-02-06  Bruno Haible  <bruno@clisp.org>
41522         New module 'wcsncasecmp'.
41523         * modules/wcsncasecmp: New file.
41524         * lib/wchar.in.h (wcsncasecmp): New declaration.
41525         * lib/wcsncasecmp.c: New file.
41526         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
41527         * m4/wcsncasecmp.m4: New file.
41528         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
41529         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
41530         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
41531         HAVE_WCSNCASECMP.
41532         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
41533         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
41535 2011-02-06  Bruno Haible  <bruno@clisp.org>
41537         New module 'wcscasecmp'.
41538         * modules/wcscasecmp: New file.
41539         * lib/wchar.in.h (wcscasecmp): New declaration.
41540         * lib/wcscasecmp.c: New file.
41541         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
41542         * m4/wcscasecmp.m4: New file.
41543         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
41544         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
41545         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
41546         HAVE_WCSCASECMP.
41547         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
41548         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
41550 2011-02-05  Bruno Haible  <bruno@clisp.org>
41552         New module 'wcsncmp'.
41553         * modules/wcsncmp: New file.
41554         * lib/wchar.in.h (wcsncmp): New declaration.
41555         * lib/wcsncmp.c: New file.
41556         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
41557         * m4/wcsncmp.m4: New file.
41558         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
41559         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
41560         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
41561         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
41562         * doc/posix-functions/wcsncmp.texi: Mention the new module.
41564 2011-02-05  Bruno Haible  <bruno@clisp.org>
41566         New module 'wcscmp'.
41567         * modules/wcscmp: New file.
41568         * lib/wchar.in.h (wcscmp): New declaration.
41569         * lib/wcscmp.c: New file.
41570         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
41571         * m4/wcscmp.m4: New file.
41572         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
41573         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
41574         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
41575         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
41576         * doc/posix-functions/wcscmp.texi: Mention the new module.
41578 2011-02-05  Bruno Haible  <bruno@clisp.org>
41580         New module 'wcsncat'.
41581         * modules/wcsncat: New file.
41582         * lib/wchar.in.h (wcsncat): New declaration.
41583         * lib/wcsncat.c: New file.
41584         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
41585         * m4/wcsncat.m4: New file.
41586         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
41587         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
41588         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
41589         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
41590         * doc/posix-functions/wcsncat.texi: Mention the new module.
41592 2011-02-05  Bruno Haible  <bruno@clisp.org>
41594         New module 'wcscat'.
41595         * modules/wcscat: New file.
41596         * lib/wchar.in.h (wcscat): New declaration.
41597         * lib/wcscat.c: New file.
41598         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
41599         * m4/wcscat.m4: New file.
41600         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
41601         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
41602         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
41603         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
41604         * doc/posix-functions/wcscat.texi: Mention the new module.
41606 2011-02-05  Bruno Haible  <bruno@clisp.org>
41608         New module 'wcpncpy'.
41609         * modules/wcpncpy: New file.
41610         * lib/wchar.in.h (wcpncpy): New declaration.
41611         * lib/wcpncpy.c: New file.
41612         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
41613         * m4/wcpncpy.m4: New file.
41614         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
41615         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
41616         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
41617         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
41618         * doc/posix-functions/wcpncpy.texi: Mention the new module.
41620 2011-02-05  Bruno Haible  <bruno@clisp.org>
41622         New module 'wcsncpy'.
41623         * modules/wcsncpy: New file.
41624         * lib/wchar.in.h (wcsncpy): New declaration.
41625         * lib/wcsncpy.c: New file.
41626         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
41627         * m4/wcsncpy.m4: New file.
41628         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
41629         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
41630         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
41631         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
41632         * doc/posix-functions/wcsncpy.texi: Mention the new module.
41634 2011-02-05  Bruno Haible  <bruno@clisp.org>
41636         New module 'wcpcpy'.
41637         * modules/wcpcpy: New file.
41638         * lib/wchar.in.h (wcpcpy): New declaration.
41639         * lib/wcpcpy.c: New file.
41640         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
41641         * m4/wcpcpy.m4: New file.
41642         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
41643         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
41644         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
41645         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
41646         * doc/posix-functions/wcpcpy.texi: Mention the new module.
41648 2011-02-05  Bruno Haible  <bruno@clisp.org>
41650         New module 'wcscpy'.
41651         * modules/wcscpy: New file.
41652         * lib/wchar.in.h (wcscpy): New declaration.
41653         * lib/wcscpy.c: New file.
41654         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
41655         * m4/wcscpy.m4: New file.
41656         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
41657         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
41658         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
41659         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
41660         * doc/posix-functions/wcscpy.texi: Mention the new module.
41662 2011-02-05  Bruno Haible  <bruno@clisp.org>
41664         New module 'wcsnlen'.
41665         * modules/wcsnlen: New file.
41666         * lib/wchar.in.h (wcsnlen): New declaration.
41667         * lib/wcsnlen.c: New file.
41668         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
41669         * m4/wcsnlen.m4: New file.
41670         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
41671         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
41672         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
41673         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
41674         * doc/posix-functions/wcsnlen.texi: Mention the new module.
41676 2011-02-05  Bruno Haible  <bruno@clisp.org>
41678         New module 'wcslen'.
41679         * modules/wcslen: New file.
41680         * lib/wchar.in.h (wcslen): New declaration.
41681         * lib/wcslen.c: New file.
41682         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
41683         * m4/wcslen.m4: New file.
41684         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
41685         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
41686         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
41687         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
41688         * doc/posix-functions/wcslen.texi: Mention the new module.
41690 2011-02-05  Bruno Haible  <bruno@clisp.org>
41692         New module 'wmemset'.
41693         * modules/wmemset: New file.
41694         * lib/wchar.in.h (wmemset): New declaration.
41695         * lib/wmemset.c: New file.
41696         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
41697         * m4/wmemset.m4: New file.
41698         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
41699         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
41700         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
41701         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
41702         * doc/posix-functions/wmemset.texi: Mention the new module.
41704 2011-02-05  Bruno Haible  <bruno@clisp.org>
41706         New module 'wmemmove'.
41707         * modules/wmemmove: New file.
41708         * lib/wchar.in.h (wmemmove): New declaration.
41709         * lib/wmemmove.c: New file.
41710         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
41711         * m4/wmemmove.m4: New file.
41712         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
41713         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
41714         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
41715         HAVE_WMEMMOVE.
41716         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
41717         * doc/posix-functions/wmemmove.texi: Mention the new module.
41719 2011-02-05  Bruno Haible  <bruno@clisp.org>
41721         New module 'wmemcpy'.
41722         * modules/wmemcpy: New file.
41723         * lib/wchar.in.h (wmemcpy): New declaration.
41724         * lib/wmemcpy.c: New file.
41725         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
41726         * m4/wmemcpy.m4: New file.
41727         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
41728         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
41729         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
41730         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
41731         * doc/posix-functions/wmemcpy.texi: Mention the new module.
41733 2011-02-05  Bruno Haible  <bruno@clisp.org>
41735         New module 'wmemcmp'.
41736         * modules/wmemcmp: New file.
41737         * lib/wchar.in.h (wmemcmp): New declaration.
41738         * lib/wmemcmp.c: New file.
41739         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
41740         * m4/wmemcmp.m4: New file.
41741         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
41742         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
41743         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
41744         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
41745         * doc/posix-functions/wmemcmp.texi: Mention the new module.
41747 2011-02-07  Jim Meyering  <meyering@redhat.com>
41749         di-set, ino-map: new modules, from coreutils
41750         * lib/di-set.c: New file.
41751         * lib/di-set.h: Likewise.
41752         * lib/ino-map.c: Likewise.
41753         * lib/ino-map.h: Likewise.
41754         * modules/di-set: Likewise.
41755         * modules/di-set-tests: Likewise.
41756         * modules/ino-map: Likewise.
41757         * modules/ino-map-tests: Likewise.
41758         * tests/test-di-set.c: Likewise.
41759         * tests/test-ino-map.c: Likewise.
41761 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
41763         getloadavg: merge minor changes from Emacs
41765         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
41766         (getloadavg): Use memset, not bzero.
41768         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
41769         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
41770         clash (bug#86).
41772 2010-11-14  Bruno Haible  <bruno@clisp.org>
41774         Allow multiple gnulib generated replacements to coexist.
41775         * lib/getopt.in.h (struct option): Avoid identical redefinition.
41776         * lib/inttypes.in.h (imaxdiv_t): Likewise.
41777         * lib/langinfo.in.h (nl_item): Likewise.
41778         * lib/math.in.h (_NaN, NAN): Likewise.
41779         * lib/netdb.in.h (struct addrinfo): Likewise.
41780         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
41781         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
41782         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
41783         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
41784         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
41785         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
41786         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
41787         pthread_mutexattr_init, pthread_mutexattr_settype,
41788         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
41789         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
41790         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
41791         pthread_spin_trylock, pthread_spin_unlock): Likewise.
41792         * lib/sched.in.h (struct sched_param): Likewise.
41793         * lib/se-selinux.in.h (security_class_t, security_context_t,
41794         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
41795         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
41796         lsetfilecon, fsetfilecon, security_check_context,
41797         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
41798         Likewise.
41799         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
41800         Likewise.
41801         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
41802         _gl_function_taking_int_returning_void_t, union sigval,
41803         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
41804         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
41805         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
41806         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
41807         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
41808         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
41809         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
41810         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
41811         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
41812         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
41813         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
41814         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
41815         socklen_t, rpl_fd_isset): Likewise.
41816         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
41817         * lib/sys_time.in.h (struct timeval): Likewise.
41818         * lib/sys_times.in.h (struct tms): Likewise.
41819         * lib/sys_utsname.in.h (struct utsname):
41820         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
41821         * lib/unistd.in.h (getpagesize): Likewise.
41822         * lib/wchar.in.h (mbstate_t): Likewise.
41823         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
41824         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
41825         towlower, towupper): Likewise.
41826         Reported by Sam Steingold <sds@gnu.org>.
41828 2011-02-05  Eric Blake  <eblake@redhat.com>
41830         unsetenv: work around Haiku issues
41831         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
41832         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
41834 2010-12-30  Bruce Korb  <bkorb@gnu.org>
41836         libposix: avoid calling error() within libposix
41837         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
41838         is defined.
41840 2011-02-05  Eric Blake  <eblake@redhat.com>
41842         strerror_r-posix: port to cygwin
41843         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
41844         implementation.
41845         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
41846         * tests/test-strerror_r.c (main): Fix test.
41847         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
41848         issue.
41850 2011-02-05  Bruno Haible  <bruno@clisp.org>
41852         New module 'wmemchr'.
41853         * modules/wmemchr: New file.
41854         * lib/wchar.in.h (wmemchr): New declaration.
41855         * lib/wmemchr.c: New file.
41856         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
41857         * m4/wmemchr.m4: New file.
41858         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
41859         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
41860         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
41861         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
41862         * doc/posix-functions/wmemchr.texi: Mention the new module.
41864 2011-02-04  Eric Blake  <eblake@redhat.com>
41866         fdopendir: detect FreeBSD bug
41867         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
41868         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
41870 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
41872         stdbool: do not define HAVE_STDBOOL_H
41873         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
41874         AC_HEADER_STDBOOL.  All uses changed.  Do not define
41875         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
41876         imported from the latest Autoconf git.  It was motivated by Emacs,
41877         which uses gnulib but does not need HAVE_STDBOOL_H.
41879 2011-02-04  Bruno Haible  <bruno@clisp.org>
41881         wcsnrtombs: Prepare for new module wwcsnrtombs.
41882         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
41883         * lib/wcsnrtombs.c: Include it.
41884         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
41886         wcsrtombs: Prepare for new module wwcsrtombs.
41887         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
41888         * lib/wcsrtombs.c: Include it.
41889         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
41891         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
41892         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
41893         * lib/mbsnrtowcs.c: Include it.
41894         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
41896         mbsrtowcs: Prepare for new module mbsrtowwcs.
41897         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
41898         * lib/mbsrtowcs.c: Include it.
41899         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
41901 2011-02-04  Bruno Haible  <bruno@clisp.org>
41903         vasnprintf: Reduce use of malloc for small format strings.
41904         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
41905         (arguments): Add room for the first 7 arguments.
41906         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
41907         (char_directives, u8_directives, u16_directives, u32_directives): Add
41908         room for the first 7 directives.
41909         * lib/printf-parse.c: Include <string.h>.
41910         (PRINTF_PARSE): Change memory handling code so that it uses the first
41911         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
41912         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
41913         Reported by Pádraig Brady <P@draigbrady.com>.
41915 2011-01-31  Eric Blake  <eblake@redhat.com>
41917         dup2: work around Haiku bug
41918         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
41919         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
41920         * doc/posix-functions/dup2.texi (dup2): Document the bug.
41921         * tests/test-dup2.c (main): Enhance test.
41923 2011-01-31  Simon Josefsson  <simon@josefsson.org>
41925         doc: off_t is not available in eglibc 2.11.2 stdio.h.
41926         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
41927         declared by eglibc 2.11.2.
41928         * lib/stdio.in.h: Likewise.
41930 2011-01-31  Eric Blake  <eblake@redhat.com>
41932         ignore-value: add missing test dependency
41933         * tests/test-ignore-value.c: Revert previous change; stdio.h
41934         provides off_t.
41935         * modules/ignore-value-tests (Depends-on): Add missing dependency.
41937 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
41939         mktime: clarify long_int width checking
41940         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
41941         the top level, to make it clearer that the assumption about
41942         long_int width is being checked.  See
41943         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
41945 2011-01-30  Simon Josefsson  <simon@josefsson.org>
41947         ignore-value: Fix self-test.
41948         * tests/test-ignore-value.c: Include sys/types.h for off_t.
41950 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
41952         TYPE_MAXIMUM: avoid theoretically undefined behavior
41953         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
41954         negative number, which the C Standard says has undefined behavior.
41955         In practice this is not a problem, but might as well do it by the book.
41956         Reported by Rich Felker and Eric Blake; see
41957         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
41958         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
41959         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
41960         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
41961         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
41962         * m4/stdint.m4 (gl_STDINT_H): Likewise.
41963         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
41965         mktime: #undef mktime before #defining it
41966         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
41968         mktime: systematically normalize tm_isdst comparisons
41969         * lib/mktime.c (isdst_differ): New function.
41970         (__mktime_internal): Use it systematically for all isdst comparisons.
41971         This completes the fix for libc BZ #6723, and removes the need for
41972         normalizing tm_isdst.  See
41973         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
41974         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
41976         mktime: fix some integer overflow issues and sidestep the rest
41978         This was prompted by a bug report by Benjamin Lindner for MinGW
41979         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
41980         His bug is due to signed integer overflow (0 - INT_MIN), and I
41981         I scanned through mktime.c looking for other integer overflow
41982         problems, fixing all the bugs I found.
41984         Although the C Standard says the resulting code is still not safe
41985         in the presence of integer overflow, in practice it should be good
41986         enough for all real-world two's-complement implementations, except
41987         for debugging environments that deliberately trap on integer
41988         overflow (e.g., gcc -ftrapv).
41990         * lib/mktime.c (WRAPV): New macro.
41991         (SHR): Also check that long_int and time_t shift right in the
41992         usual way, before using the fast-but-unportable method.
41993         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
41994         used.  The code already assumed two's complement, so there's
41995         no need to test for alternatives.  All uses removed.
41996         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
41997         the C standard.  Problem reported by Rich Felker in
41998         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
41999         (twos_complement_arithmetic): Also check long_int and time_t.
42000         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
42001         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
42002         (__mktime_internal): Avoid integer overflow with unary subtraction
42003         in two instances where -1 - X is an adequate replacement for -X,
42004         since the calculations are approximate.
42006 2011-01-29  Eric Blake  <eblake@redhat.com>
42008         mktime: avoid infinite loop
42009         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
42010         type; behavior is still undefined but portable to all known targets.
42011         Reported by Rich Felker.
42013 2011-01-29  Simon Josefsson  <simon@josefsson.org>
42015         rename, unlink, same-inode: Relicense.
42016         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
42017         * modules/unlink (License): Likewise.
42018         * modules/same-inode (License): Likewise.
42020 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
42022         mktime: avoid problems on NetBSD 5 / i386
42023         * lib/mktime.c (long_int): New type.  This works around a problem
42024         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
42025         but time_t is 64 bits, and where I expect the existing code is
42026         wrong in some cases.
42027         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
42028         (ydhms_diff): Bring back the compile-time check for wide-enough
42029         year and yday.
42031         mktime: fix misspelling in comment
42032         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
42033         This merges all recent glibc changes of importance.
42035 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42037         move-if-change: cope with concurrent mv of identical file.
42038         * build-aux/move-if-change (CMPPROG): Accept environment
42039         variable as an override for `cmp'.
42040         (usage): Document CMPPROG.
42041         Adjust comparison to drop stdout.  Cope with failure of mv if
42042         the target file exists and is identical to the source, for
42043         parallel builds.
42044         Report from H.J. Lu against binutils in PR binutils/12283.
42046 2011-01-28  Bruce Korb  <bkorb@gnu.org>
42048         * users.txt: Mention sharutils.
42050 2011-01-28  Simon Josefsson  <simon@josefsson.org>
42052         * users.txt: Mention OATH Toolkit.
42054 2011-01-27  Bruno Haible  <bruno@clisp.org>
42056         Prepare for supporting FreeBSD 10.
42057         * build-aux/config.libpath: Remove handling of freebsd1*.
42059 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
42061         Prepare for supporting FreeBSD 10.
42062         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
42063         match FreeBSD 10.0.
42065 2011-01-27  Bruno Haible  <bruno@clisp.org>
42067         vma-iter, get-rusage-as: Add OpenBSD support.
42068         * modules/vma-iter (configure.ac): Test for mquery.
42069         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
42070         * lib/vma-iter.c: Include <sys/mman.h>.
42071         (vma_iterate): Add an implementation based on mquery().
42072         * lib/resource-ext.h (get_rusage_as): Update comments.
42073         * lib/get-rusage-as.c: Likewise.
42074         * lib/get-rusage-data.c: Likewise.
42076 2011-01-26  Karl Berry  <karl@gnu.org>
42078         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
42079         variables to make it easier to override the makeinfo program used.
42081 2011-01-26  Eric Blake  <eblake@redhat.com>
42083         fcntl: work around Haiku F_DUPFD bugs
42084         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
42085         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
42086         cloexec bit on duplication.
42087         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
42089 2011-01-26  Bruno Haible  <bruno@clisp.org>
42091         Enable memory leak tests on AIX.
42092         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
42093         * tests/test-fprintf-posix3.c (main): Likewise.
42095 2011-01-26  Bruno Haible  <bruno@clisp.org>
42097         Tests for module 'get-rusage-data'.
42098         * modules/get-rusage-data-tests: New file.
42099         * tests/test-get-rusage-data.c: New file.
42101         New module 'get-rusage-data'.
42102         * lib/resource-ext.h (get_rusage_data): New declaration.
42103         * lib/get-rusage-data.c: New file.
42104         * modules/get-rusage-data: New file.
42106 2011-01-25  Bruno Haible  <bruno@clisp.org>
42108         get-rusage-as: Allow for easier testing.
42109         * lib/resource-ext.h (get_rusage_as): Add comment.
42110         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
42111         (main): New function for interactive testing.
42113 2011-01-25  Bruno Haible  <bruno@clisp.org>
42115         vma-iter: Treat Haiku like BeOS.
42116         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
42117         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
42119 2011-01-25  Eric Blake  <eblake@redhat.com>
42121         c-stack: fix regression on cygwin when libsigsegv is present
42122         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
42124 2011-01-24  Bruno Haible  <bruno@clisp.org>
42126         vma-iter: Avoid empty intervals.
42127         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
42128         on an empty interval.
42130 2011-01-24  Jim Meyering  <meyering@redhat.com>
42132         u64: remove unnecessary #include
42133         * lib/u64.h: Don't include <stddef.h>.  It was not used.
42135 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
42137         Allow the user to avoid the HAVE_RAW_DECL_* macros.
42138         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
42140 2011-01-23  Bruno Haible  <bruno@clisp.org>
42142         New module 'vma-iter'.
42143         * lib/vma-iter.h: New file.
42144         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
42145         * modules/vma-iter: New file.
42146         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
42147         for get_rusage_as_via_iterator.
42148         (vma_iterate_callback): New function.
42149         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
42150         * modules/get-rusage-as (Depends-on): Add vma-iter.
42152 2011-01-23  Bruno Haible  <bruno@clisp.org>
42154         uninorm: Tweak includes.
42155         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
42156         Reported by Jim Meyering.
42158 2011-01-23  Bruno Haible  <bruno@clisp.org>
42160         get-rusage-as: Improve on NetBSD.
42161         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
42162         /proc, like on FreeBSD.
42164 2011-01-23  Jim Meyering  <meyering@redhat.com>
42166         xreadlink.h: remove unnecessary #include
42167         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
42169         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
42170         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
42172 2011-01-23  Bruno Haible  <bruno@clisp.org>
42174         get-rusage-as: Fix bug.
42175         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
42176         original limit when aborting the first loop.
42178 2011-01-23  Bruno Haible  <bruno@clisp.org>
42180         wctype: Ensure valid C syntax.
42181         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
42182         unconditionally, instead of gl_NEXT_HEADERS conditionally.
42184 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
42186         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
42187         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
42188         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
42189         as they are needed only for configure's test case.
42190         This removes two unnecessary symbols from config.h.
42192         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
42193         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
42194         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
42195         AC_CHECK_HEADERS_ONCE on a header that we also invoke
42196         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
42197         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
42198         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
42199         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
42200         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
42201         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
42202         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
42203         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42204         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
42205         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
42206         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
42207         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
42208         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
42209         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
42211 2011-01-21  Eric Blake  <eblake@redhat.com>
42213         maintainer-makefile: work with older git for submodule check
42214         * top/maint.mk (public-submodule-commit): Rewrite to avoid
42215         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
42216         Reported by Matthias Bolte.
42218         bootstrap: minor portability fixes
42219         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
42220         (usage): Omit leading capital and trailing . on help phrases, per
42221         GNU Coding Standards.
42222         (check_versions, top level): Prefix messages with script name.
42224 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
42226         bootstrap: support --no-git option
42227         * build-aux/bootstrap: Add --no-git option, to be used when
42228         --gnulib-srcdir points to the exact desired checkout.
42230 2011-01-21  Eric Blake  <eblake@redhat.com>
42232         strerror_r-posix: work with glibc 2.13
42233         * lib/strerror_r.c (strerror_r): Fix return type.
42235 2011-01-21  Pádraig Brady  <P@draigBrady.com>
42236             Bruno Haible  <bruno@clisp.org>
42238         uN_strstr: New unit tests.
42239         * modules/unistr/u8-strstr-tests: New file.
42240         * modules/unistr/u16-strstr-tests: New file.
42241         * modules/unistr/u32-strstr-tests: New file.
42242         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
42243         * tests/unistr/test-u8-strstr.c: New file.
42244         * tests/unistr/test-u16-strstr.c: New file.
42245         * tests/unistr/test-u32-strstr.c: New file.
42247 2011-01-21  Pádraig Brady  <P@draigBrady.com>
42248             Bruno Haible  <bruno@clisp.org>
42250         Make uN_strstr functions O(n) worst-case.
42251         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
42252         16-bit and 32-bit unit cases, use the unibyte algorithm from
42253         lib/mbsstr.c.
42254         * lib/unistr/u8-strstr.c: Include <string.h>.
42255         (UNIT_IS_UINT8_T): New macro.
42256         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
42257         (U_STRLEN, U_STRNLEN): New macros.
42258         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
42259         (U_STRLEN, U_STRNLEN): New macros.
42260         * modules/unistr/u8-strstr (Depends-on): Add strstr.
42261         (configure.ac): Update required libunistring version.
42262         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
42263         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
42264         malloca.
42265         (configure.ac): Update required libunistring version.
42266         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
42267         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
42268         malloca.
42269         (configure.ac): Update required libunistring version.
42271 2011-01-21  Pádraig Brady  <P@draigBrady.com>
42272             Bruno Haible  <bruno@clisp.org>
42274         Prepare for faster uN_strstr functions.
42275         * lib/str-kmp.h: Support definable UNITs.
42276         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
42277         needle_len argument.
42278         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
42279         * lib/mbscasestr.c (mbscasestr): Likewise.
42281 2011-01-21  Pádraig Brady  <P@draigBrady.com>
42283         malloca-tests: make faster by unsetting MALLOC_PERTURB_
42284         * tests/test-malloca.c (main): Unset the environment variable
42285         to greatly speed up the test.
42286         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
42287         * modules/malloca-tests: Depend on unsetenv.
42289 2011-01-21  Pádraig Brady  <P@draigBrady.com>
42291         ignore-value: remove stdint dependency
42292         * lib/ignore-value.h: Remove <stdint.h>
42293         * modules/ignore-value: Remove stdint dependency.
42295 2011-01-21  Jim Meyering  <meyering@redhat.com>
42297         maint.mk: adjust variable name to be consistent with other gl_ vars
42298         * top/maint.mk (gl_public_submodule_commit): Rename the variable
42299         to be lower case.
42301 2011-01-20  Jim Meyering  <meyering@redhat.com>
42303         maint.mk: make "check" depend on public-submodule-commit by default
42304         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
42306 2011-01-20  Bruno Haible  <bruno@clisp.org>
42308         mbfile, mbiter: Complete change from 2008-12-21.
42309         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
42310         * m4/mbiter.m4 (gl_MBITER): Likewise.
42312 2011-01-20  Jim Meyering  <meyering@redhat.com>
42314         init.sh: insert space between each function name and "()"
42315         * tests/init.sh: Make it a little easier to see that a function's
42316         name is "warn_", and not "warn" when looking at the first part of
42317         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
42319 2011-01-20  Jim Meyering  <meyering@redhat.com>
42321         mountlist: clean up code formatting
42322         * lib/mountlist.c (read_file_system_list): Split a long line,
42323         correct bracing style, use NULL in place of "(struct statfs *)0",
42324         don't parenthesize return value, add spaces around "=" and after
42325         ";-in-for-stmt".
42327 2011-01-14  Markus Duft  <mduft@gentoo.org>
42329         mountlist: add support for Interix
42330         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
42331         Apply statvfs to all entries of /dev/fs.
42332         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
42333         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
42335 2011-01-20  Jim Meyering  <meyering@redhat.com>
42337         maint.mk: improve the public-submodule-commit rule
42338         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
42339         to suppress printing of its commands... unless V=1.
42340         Add git submodule's --quiet option to suppress printing of e.g.,
42341         "Entering gnulib" output.
42342         "cd" into $(srcdir) before running git submodule.
42344 2011-01-20  Bruno Haible  <bruno@clisp.org>
42346         include_next: Fix bug introduced on 2011-01-18.
42347         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
42348         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
42349         ac_cv_header_... variable if the second argument is not 'check'.
42350         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
42351         gl_NEXT_HEADERS_INTERNAL.
42353 2011-01-20  Bruno Haible  <bruno@clisp.org>
42355         Allow the user to avoid the GNULIB_TEST_* macros.
42356         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
42357         Suggested by Paul Eggert.
42359 2011-01-14  Jim Meyering  <meyering@redhat.com>
42361         bootstrap: avoid failure when there is no .gitmodules file
42362         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
42363         has been assigned to, even when its value is the empty string.
42364         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
42365         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
42366         Reported by John W. Eaton <jwe@gnu.org>.
42368 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
42370         assume <ctype.h>, ..., <time.h> exist
42371         For years gnulib has been assuming the existence of the headers
42372         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
42373         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
42374         them, since they don't appear to be needed.
42375         * README (Portability guidelines): Document this.
42376         * lib/flock.c: Assume <fcntl.h> exists.
42377         * lib/regex_internal.h: Assume <locale.h> exists.
42378         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
42379         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
42380         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
42381         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
42382         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
42383         * m4/regex.m4 (gl_REGEX): Likewise.
42384         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
42385         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
42386         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
42387         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
42388         * tests/test-argp.c: Likewise.
42389         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
42391         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
42392         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
42393         AA_APPLE_UNIVERSAL_BUILD.  See
42394         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
42395         * NEWS: Document this.
42397 2011-01-19  Eric Blake  <eblake@redhat.com>
42399         c-stack: assume stack overflow if SA_SIGINFO unsupported
42400         * lib/c-stack.c (SIGACTION_WORKS): Rename...
42401         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
42402         sigaction will work.
42403         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
42404         behavior match Linux.
42405         * tests/test-c-stack.c (main): Prefer NULL for pointers.
42407         stdbool-tests: accommodate Haiku
42408         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
42410         binary-io: fix O_TEXT on Haiku
42411         * modules/binary-io (Depends-on): Add fcntl-h.
42412         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
42413         than blindly undefining O_TEXT.
42414         Reported by Scott McCreary.
42416 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
42418         include_next: do not check for standard headers like stddef.h
42420         I found this problem when modifying Emacs to use gnulib.
42421         I noticed that it added HAVE_STDDEF_H to config.h, even though
42422         gnulib always assumes <stddef.h> exists as per README and this
42423         symbol is unnecessary.
42424         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
42425         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
42426         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
42427         faster for headers like stddef.h that are known to exist.
42428         (gl_CHECK_NEXT_HEADERS): Use it.
42429         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
42430         rather than gl_CHECK_NEXT_HEADERS.
42431         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
42432         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
42434 2011-01-18  Eric Blake  <eblake@redhat.com>
42436         ansi-c++-opt: skip C++ dependency style if C++ is unused
42437         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
42438         tests when we know C++ compilation is not desired.
42439         Reported by Scott McCreary.
42441 2011-01-18  Bruno Haible  <bruno@clisp.org>
42443         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
42444         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
42445         (main): Perform test also when getrlimit and setrlimit don't exist or
42446         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
42447         limiting the address space size using setrlimit, compare the address
42448         space size before and after the test.
42449         * tests/test-dprintf-posix2.c: Likewise.
42450         * tests/test-fprintf-posix3.sh: Update skip messages.
42451         * tests/test-dprintf-posix2.sh: Likewise.
42452         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
42453         * modules/dprintf-posix-tests (Depends-on): Likewise.
42454         Reported by Bruce Korb <bkorb@gnu.org> and
42455         Gary V. Vaughan <gary@gnu.org>.
42457 2011-01-18  Bruno Haible  <bruno@clisp.org>
42459         get-rusage-as: Improvement for Cygwin.
42460         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
42461         areas that are merely reserved.
42463 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
42465         strftime: remove dependencies on multibyte modules
42467         strftime depended on mbrlen, mbsinit, and wchar, but these modules
42468         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
42469         only if __osf__ is defined, and I suspect OSF doesn't need these
42470         other modules.  If my guess is wrong, we'll need to come up with a
42471         variant of strftime that doesn't need the multibyte modules.
42473         I discovered this problem when attempting modify Emacs to use the
42474         strftime module.  With the previous gnulib, this caused Emacs to
42475         need 31 new files, ranging from lib/config.charset to
42476         m4/wint_t.m4.  This was overkill and I expect would be offputting
42477         to the Emacs maintainers.  After this change, only 6 new files are
42478         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
42479         stdbool.m4, and tm_gmtoff.m4.
42481         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
42482         Suggested by Bruno Haible in
42483         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
42484         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
42485         and do not check for wchar.h.
42486         * modules/strftime (Files): Remove m4/mbstate_t.m4.
42487         (Depends-on): Remove mbrlen, mbsinit, wchar.
42489 2011-01-18  Bruno Haible  <bruno@clisp.org>
42491         Tests for module 'get-rusage-as'.
42492         * modules/get-rusage-as-tests: New file.
42493         * tests/test-get-rusage-as.c: New file.
42495         New module 'get-rusage-as'.
42496         * modules/get-rusage-as: New file.
42497         * lib/resource-ext.h: New file.
42498         * lib/get-rusage-as.c: New file.
42500 2011-01-17  Eric Blake  <eblake@redhat.com>
42502         sigaction: relax license from LGPLv3+ to LGPLv2+
42503         * modules/sigaction (License): Relax to LGPLv2+.
42505 2011-01-14  Bruno Haible  <bruno@clisp.org>
42507         filemode: Make function declarations usable in C++ mode.
42508         * lib/filemode.h: Enclose function declarations in extern "C" block.
42509         Reported by John W. Eaton <jwe@gnu.org>.
42511 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
42513         save-cwd: no longer include "xgetcwd.h"
42514         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
42515         This avoids a compilation failure in projects that use save-cwd
42516         without also using the xgetcwd module.
42518 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
42520         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
42521         This is so that a program like Emacs, which needs only dtoastr,
42522         does not have to bother with distributing and compiling ftoastr
42523         and ldtoastr.
42524         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
42525         * modules/dtoastr, modules/ldtoastr: New files.
42526         * modules/ftoastr: Now works just for 'float'.
42527         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
42528         (Makefile.am): Remove ftoastr.h (not needed and no effect),
42529         dtoastr.c, ldtoastr.c.
42531 2011-01-11  Jim Meyering  <meyering@redhat.com>
42533         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
42534         There is no need to work around the lack of the fchdir function,
42535         since gnulib can now provide a replacement when required.
42536         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
42537         * modules/save-cwd (Depends-on): Add fchdir.
42539 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
42541         openat, save-cwd: avoid xmalloc
42543         This removes a direct (but undocumented) dependency of openat on
42544         xalloc, along with an indirect dependency via save-cwd.  It also
42545         removes a dependency of save-cwd on xgetcwd, and thereby
42546         indirectly on xalloc.  This change causes the openat substitute
42547         to fall back on save_cwd when memory is tight, and for save_cwd to
42548         fail instead of dying when memory is tight, but that's good enough.
42549         Problem and initial idea for fix reported by Bastien Roucaries in
42550         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
42552         * lib/openat-proc.c: Include stdlib.h (for malloc), not
42553         xalloc.h (for xmalloc).
42554         (openat_proc_name): Use malloc, not xmalloc.
42555         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
42556         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
42558         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
42559         This avoids heap allocation for file names whose lengths are in
42560         the range 512..1023, with the upper bound increasing to at most
42561         4031 depending on the platform's PATH_MAX.  (We do not want
42562         pathmax.h here as it might supply a non-constant PATH_MAX.)
42563         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
42564         Perhaps they should be moved to malloca.h?
42565         (OPENAT_BUFFER_SIZE): Use them.
42567 2011-01-10  Bruno Haible  <bruno@clisp.org>
42569         doc: Update users.txt.
42570         * users.txt: Add recutils.
42572 2011-01-09  Karl Berry  <karl@gnu.org>
42574         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
42576         * doc/configmake.texi: New file.
42577         * doc/gnulib.texi: Include it.
42578         * modules/configmake: Move documentation from here.
42580 2011-01-09  Bruno Haible  <bruno@clisp.org>
42582         Update to Unicode 6.0.0.
42583         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
42584         (get_lbp): Update for Unicode 6.0.0.
42585         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
42586         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
42587         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
42588         U+11001, U+11038..U+11046. Remove U+06DE.
42589         (uc_width): Fix bounds of planes.
42590         * tests/uniwidth/test-uc_width2.sh: Same updates as in
42591         lib/uniwidth/width.c.
42592         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
42593         trailing whitespace removed.
42594         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
42595         without comments, but with the original copyright notice.
42596         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
42597         * lib/unicase/ignorable.h: Likewise.
42598         * lib/unicase/tocasefold.h: Likewise.
42599         * lib/unicase/tolower.h: Likewise.
42600         * lib/unicase/totitle.h: Likewise.
42601         * lib/unicase/toupper.h: Likewise.
42602         * lib/unictype/bidi_of.h: Likewise.
42603         * lib/unictype/blocks.h: Likewise.
42604         * lib/unictype/categ_C.h: Likewise.
42605         * lib/unictype/categ_Cn.h: Likewise.
42606         * lib/unictype/categ_L.h: Likewise.
42607         * lib/unictype/categ_Ll.h: Likewise.
42608         * lib/unictype/categ_Lm.h: Likewise.
42609         * lib/unictype/categ_Lo.h: Likewise.
42610         * lib/unictype/categ_Lu.h: Likewise.
42611         * lib/unictype/categ_M.h: Likewise.
42612         * lib/unictype/categ_Mc.h: Likewise.
42613         * lib/unictype/categ_Me.h: Likewise.
42614         * lib/unictype/categ_Mn.h: Likewise.
42615         * lib/unictype/categ_N.h: Likewise.
42616         * lib/unictype/categ_Nd.h: Likewise.
42617         * lib/unictype/categ_No.h: Likewise.
42618         * lib/unictype/categ_P.h: Likewise.
42619         * lib/unictype/categ_Po.h: Likewise.
42620         * lib/unictype/categ_S.h: Likewise.
42621         * lib/unictype/categ_Sc.h: Likewise.
42622         * lib/unictype/categ_Sk.h: Likewise.
42623         * lib/unictype/categ_Sm.h: Likewise.
42624         * lib/unictype/categ_So.h: Likewise.
42625         * lib/unictype/categ_of.h: Likewise.
42626         * lib/unictype/combining.h: Likewise.
42627         * lib/unictype/ctype_alnum.h: Likewise.
42628         * lib/unictype/ctype_alpha.h: Likewise.
42629         * lib/unictype/ctype_graph.h: Likewise.
42630         * lib/unictype/ctype_lower.h: Likewise.
42631         * lib/unictype/ctype_print.h: Likewise.
42632         * lib/unictype/ctype_punct.h: Likewise.
42633         * lib/unictype/ctype_upper.h: Likewise.
42634         * lib/unictype/decdigit.h: Likewise.
42635         * lib/unictype/digit.h: Likewise.
42636         * lib/unictype/numeric.h: Likewise.
42637         * lib/unictype/pr_alphabetic.h: Likewise.
42638         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
42639         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
42640         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
42641         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
42642         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
42643         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
42644         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
42645         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
42646         * lib/unictype/pr_case_ignorable.h: Likewise.
42647         * lib/unictype/pr_cased.h: Likewise.
42648         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
42649         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
42650         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
42651         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
42652         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
42653         * lib/unictype/pr_combining.h: Likewise.
42654         * lib/unictype/pr_composite.h: Likewise.
42655         * lib/unictype/pr_currency_symbol.h: Likewise.
42656         * lib/unictype/pr_decimal_digit.h: Likewise.
42657         * lib/unictype/pr_deprecated.h: Likewise.
42658         * lib/unictype/pr_format_control.h: Likewise.
42659         * lib/unictype/pr_grapheme_base.h: Likewise.
42660         * lib/unictype/pr_grapheme_extend.h: Likewise.
42661         * lib/unictype/pr_grapheme_link.h: Likewise.
42662         * lib/unictype/pr_id_continue.h: Likewise.
42663         * lib/unictype/pr_id_start.h: Likewise.
42664         * lib/unictype/pr_ideographic.h: Likewise.
42665         * lib/unictype/pr_lowercase.h: Likewise.
42666         * lib/unictype/pr_math.h: Likewise.
42667         * lib/unictype/pr_numeric.h: Likewise.
42668         * lib/unictype/pr_other_alphabetic.h: Likewise.
42669         * lib/unictype/pr_other_id_continue.h: Likewise.
42670         * lib/unictype/pr_other_math.h: Likewise.
42671         * lib/unictype/pr_punctuation.h: Likewise.
42672         * lib/unictype/pr_sentence_terminal.h: Likewise.
42673         * lib/unictype/pr_terminal_punctuation.h: Likewise.
42674         * lib/unictype/pr_unassigned_code_value.h: Likewise.
42675         * lib/unictype/pr_unified_ideograph.h: Likewise.
42676         * lib/unictype/pr_uppercase.h: Likewise.
42677         * lib/unictype/pr_xid_continue.h: Likewise.
42678         * lib/unictype/pr_xid_start.h: Likewise.
42679         * lib/unictype/scripts.h: Likewise.
42680         * lib/unictype/scripts_byname.gperf: Likewise.
42681         * lib/unictype/sy_java_ident.h: Likewise.
42682         * lib/unigbrk/gbrkprop.h: Likewise.
42683         * lib/unilbrk/lbrkprop1.h: Likewise.
42684         * lib/unilbrk/lbrkprop2.h: Likewise.
42685         * lib/uninorm/decomposition-table2.h: Likewise.
42686         * lib/uniwbrk/wbrkprop.h: Likewise.
42687         * tests/unicase/test-cased.c: Likewise.
42688         * tests/unicase/test-ignorable.c: Likewise.
42689         * tests/unicase/test-uc_tolower.c: Likewise.
42690         * tests/unicase/test-uc_totitle.c: Likewise.
42691         * tests/unicase/test-uc_toupper.c: Likewise.
42692         * tests/unictype/test-categ_C.c: Likewise.
42693         * tests/unictype/test-categ_Cn.c: Likewise.
42694         * tests/unictype/test-categ_L.c: Likewise.
42695         * tests/unictype/test-categ_Ll.c: Likewise.
42696         * tests/unictype/test-categ_Lm.c: Likewise.
42697         * tests/unictype/test-categ_Lo.c: Likewise.
42698         * tests/unictype/test-categ_Lu.c: Likewise.
42699         * tests/unictype/test-categ_M.c: Likewise.
42700         * tests/unictype/test-categ_Mc.c: Likewise.
42701         * tests/unictype/test-categ_Me.c: Likewise.
42702         * tests/unictype/test-categ_Mn.c: Likewise.
42703         * tests/unictype/test-categ_N.c: Likewise.
42704         * tests/unictype/test-categ_Nd.c: Likewise.
42705         * tests/unictype/test-categ_No.c: Likewise.
42706         * tests/unictype/test-categ_P.c: Likewise.
42707         * tests/unictype/test-categ_Po.c: Likewise.
42708         * tests/unictype/test-categ_S.c: Likewise.
42709         * tests/unictype/test-categ_Sc.c: Likewise.
42710         * tests/unictype/test-categ_Sk.c: Likewise.
42711         * tests/unictype/test-categ_Sm.c: Likewise.
42712         * tests/unictype/test-categ_So.c: Likewise.
42713         * tests/unictype/test-ctype_alnum.c: Likewise.
42714         * tests/unictype/test-ctype_alpha.c: Likewise.
42715         * tests/unictype/test-ctype_graph.c: Likewise.
42716         * tests/unictype/test-ctype_lower.c: Likewise.
42717         * tests/unictype/test-ctype_print.c: Likewise.
42718         * tests/unictype/test-ctype_punct.c: Likewise.
42719         * tests/unictype/test-ctype_upper.c: Likewise.
42720         * tests/unictype/test-decdigit.h: Likewise.
42721         * tests/unictype/test-digit.h: Likewise.
42722         * tests/unictype/test-numeric.h: Likewise.
42723         * tests/unictype/test-pr_alphabetic.c: Likewise.
42724         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
42725         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
42726         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
42727         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
42728         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
42729         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
42730         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
42731         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
42732         * tests/unictype/test-pr_case_ignorable.c: Likewise.
42733         * tests/unictype/test-pr_cased.c: Likewise.
42734         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
42735         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
42736         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
42737         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
42738         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
42739         * tests/unictype/test-pr_combining.c: Likewise.
42740         * tests/unictype/test-pr_composite.c: Likewise.
42741         * tests/unictype/test-pr_currency_symbol.c: Likewise.
42742         * tests/unictype/test-pr_decimal_digit.c: Likewise.
42743         * tests/unictype/test-pr_deprecated.c: Likewise.
42744         * tests/unictype/test-pr_format_control.c: Likewise.
42745         * tests/unictype/test-pr_grapheme_base.c: Likewise.
42746         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
42747         * tests/unictype/test-pr_grapheme_link.c: Likewise.
42748         * tests/unictype/test-pr_id_continue.c: Likewise.
42749         * tests/unictype/test-pr_id_start.c: Likewise.
42750         * tests/unictype/test-pr_ideographic.c: Likewise.
42751         * tests/unictype/test-pr_lowercase.c: Likewise.
42752         * tests/unictype/test-pr_math.c: Likewise.
42753         * tests/unictype/test-pr_numeric.c: Likewise.
42754         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
42755         * tests/unictype/test-pr_other_id_continue.c: Likewise.
42756         * tests/unictype/test-pr_other_math.c: Likewise.
42757         * tests/unictype/test-pr_punctuation.c: Likewise.
42758         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
42759         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
42760         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
42761         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
42762         * tests/unictype/test-pr_uppercase.c: Likewise.
42763         * tests/unictype/test-pr_xid_continue.c: Likewise.
42764         * tests/unictype/test-pr_xid_start.c: Likewise.
42765         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
42766         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
42767         changes.
42768         * lib/unictype/categ_Cc.h: Likewise.
42769         * lib/unictype/categ_Cf.h: Likewise.
42770         * lib/unictype/categ_Co.h: Likewise.
42771         * lib/unictype/categ_Cs.h: Likewise.
42772         * lib/unictype/categ_Lt.h: Likewise.
42773         * lib/unictype/categ_Nl.h: Likewise.
42774         * lib/unictype/categ_Pc.h: Likewise.
42775         * lib/unictype/categ_Pd.h: Likewise.
42776         * lib/unictype/categ_Pe.h: Likewise.
42777         * lib/unictype/categ_Pf.h: Likewise.
42778         * lib/unictype/categ_Pi.h: Likewise.
42779         * lib/unictype/categ_Ps.h: Likewise.
42780         * lib/unictype/categ_Z.h: Likewise.
42781         * lib/unictype/categ_Zl.h: Likewise.
42782         * lib/unictype/categ_Zp.h: Likewise.
42783         * lib/unictype/categ_Zs.h: Likewise.
42784         * lib/unictype/ctype_blank.h: Likewise.
42785         * lib/unictype/ctype_cntrl.h: Likewise.
42786         * lib/unictype/ctype_digit.h: Likewise.
42787         * lib/unictype/ctype_space.h: Likewise.
42788         * lib/unictype/ctype_xdigit.h: Likewise.
42789         * lib/unictype/mirror.h: Likewise.
42790         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
42791         * lib/unictype/pr_bidi_block_separator.h: Likewise.
42792         * lib/unictype/pr_bidi_common_separator.h: Likewise.
42793         * lib/unictype/pr_bidi_control.h: Likewise.
42794         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
42795         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
42796         * lib/unictype/pr_bidi_european_digit.h: Likewise.
42797         * lib/unictype/pr_bidi_pdf.h: Likewise.
42798         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
42799         * lib/unictype/pr_bidi_whitespace.h: Likewise.
42800         * lib/unictype/pr_dash.h: Likewise.
42801         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
42802         * lib/unictype/pr_diacritic.h: Likewise.
42803         * lib/unictype/pr_extender.h: Likewise.
42804         * lib/unictype/pr_hex_digit.h: Likewise.
42805         * lib/unictype/pr_hyphen.h: Likewise.
42806         * lib/unictype/pr_ids_binary_operator.h: Likewise.
42807         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
42808         * lib/unictype/pr_ignorable_control.h: Likewise.
42809         * lib/unictype/pr_iso_control.h: Likewise.
42810         * lib/unictype/pr_join_control.h: Likewise.
42811         * lib/unictype/pr_left_of_pair.h: Likewise.
42812         * lib/unictype/pr_line_separator.h: Likewise.
42813         * lib/unictype/pr_logical_order_exception.h: Likewise.
42814         * lib/unictype/pr_non_break.h: Likewise.
42815         * lib/unictype/pr_not_a_character.h: Likewise.
42816         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
42817         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
42818         * lib/unictype/pr_other_id_start.h: Likewise.
42819         * lib/unictype/pr_other_lowercase.h: Likewise.
42820         * lib/unictype/pr_other_uppercase.h: Likewise.
42821         * lib/unictype/pr_paired_punctuation.h: Likewise.
42822         * lib/unictype/pr_paragraph_separator.h: Likewise.
42823         * lib/unictype/pr_pattern_syntax.h: Likewise.
42824         * lib/unictype/pr_pattern_white_space.h: Likewise.
42825         * lib/unictype/pr_private_use.h: Likewise.
42826         * lib/unictype/pr_quotation_mark.h: Likewise.
42827         * lib/unictype/pr_radical.h: Likewise.
42828         * lib/unictype/pr_soft_dotted.h: Likewise.
42829         * lib/unictype/pr_space.h: Likewise.
42830         * lib/unictype/pr_titlecase.h: Likewise.
42831         * lib/unictype/pr_variation_selector.h: Likewise.
42832         * lib/unictype/pr_white_space.h: Likewise.
42833         * lib/unictype/pr_zero_width.h: Likewise.
42834         * lib/unictype/sy_c_ident.h: Likewise.
42835         * lib/unictype/sy_c_whitespace.h: Likewise.
42836         * lib/unictype/sy_java_whitespace.h: Likewise.
42837         * lib/uninorm/composition-table.gperf: Likewise.
42838         * lib/uninorm/decomposition-table1.h: Likewise.
42839         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
42840         LB8.
42841         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
42842         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
42843         * modules/unictype/*: Bump version number of expected libunistring
42844         version.
42846 2011-01-09  Bruno Haible  <bruno@clisp.org>
42848         Update to Unicode 5.2.0.
42849         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
42850         trailing whitespace removed.
42852 2011-01-09  Bruno Haible  <bruno@clisp.org>
42854         New Unicode character properties, from Unicode 5.2.0.
42855         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
42856         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
42857         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
42858         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
42859         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
42860         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
42861         uc_is_property_cased, uc_is_property_case_ignorable,
42862         uc_is_property_changes_when_lowercased,
42863         uc_is_property_changes_when_uppercased,
42864         uc_is_property_changes_when_titlecased,
42865         uc_is_property_changes_when_casefolded,
42866         uc_is_property_changes_when_casemapped): New declarations.
42867         * lib/unictype/pr_byname.gperf: Add the new properties.
42868         * modules/unictype/property-byname (Depends-on): Depend on the new
42869         properties modules.
42870         * modules/unictype/property-all (Depends-on): Likewise.
42871         * MODULES.html.sh (Unicode string functions): Add
42872         unictype/property-case-ignorable, unictype/property-cased,
42873         unictype/property-changes-when-casefolded,
42874         unictype/property-changes-when-casemapped,
42875         unictype/property-changes-when-lowercased,
42876         unictype/property-changes-when-titlecased,
42877         unictype/property-changes-when-uppercased.
42879         New module 'unictype/property-changes-when-casemapped'.
42880         * modules/unictype/property-changes-when-casemapped: New file.
42881         * lib/unictype/pr_changes_when_casemapped.c: New file.
42882         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
42883         generated by gen-uni-tables.
42884         * modules/unictype/property-changes-when-casemapped-tests: New file.
42885         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
42886         automatically generated by gen-uni-tables.
42888         New module 'unictype/property-changes-when-casefolded'.
42889         * modules/unictype/property-changes-when-casefolded: New file.
42890         * lib/unictype/pr_changes_when_casefolded.c: New file.
42891         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
42892         generated by gen-uni-tables.
42893         * modules/unictype/property-changes-when-casefolded-tests: New file.
42894         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
42895         automatically generated by gen-uni-tables.
42897         New module 'unictype/property-changes-when-titlecased'.
42898         * modules/unictype/property-changes-when-titlecased: New file.
42899         * lib/unictype/pr_changes_when_titlecased.c: New file.
42900         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
42901         generated by gen-uni-tables.
42902         * modules/unictype/property-changes-when-titlecased-tests: New file.
42903         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
42904         automatically generated by gen-uni-tables.
42906         New module 'unictype/property-changes-when-uppercased'.
42907         * modules/unictype/property-changes-when-uppercased: New file.
42908         * lib/unictype/pr_changes_when_uppercased.c: New file.
42909         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
42910         generated by gen-uni-tables.
42911         * modules/unictype/property-changes-when-uppercased-tests: New file.
42912         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
42913         automatically generated by gen-uni-tables.
42915         New module 'unictype/property-changes-when-lowercased'.
42916         * modules/unictype/property-changes-when-lowercased: New file.
42917         * lib/unictype/pr_changes_when_lowercased.c: New file.
42918         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
42919         generated by gen-uni-tables.
42920         * modules/unictype/property-changes-when-lowercased-tests: New file.
42921         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
42922         automatically generated by gen-uni-tables.
42924         New module 'unictype/property-case-ignorable'.
42925         * modules/unictype/property-case-ignorable: New file.
42926         * lib/unictype/pr_case_ignorable.c: New file.
42927         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
42928         by gen-uni-tables.
42929         * modules/unictype/property-case-ignorable-tests: New file.
42930         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
42931         generated by gen-uni-tables.
42933         New module 'unictype/property-cased'.
42934         * modules/unictype/property-cased: New file.
42935         * lib/unictype/pr_cased.c: New file.
42936         * lib/unictype/pr_cased.h: New file, automatically generated by
42937         gen-uni-tables.
42938         * modules/unictype/property-cased-tests: New file.
42939         * tests/unictype/test-pr_cased.c: New file, automatically generated by
42940         gen-uni-tables.
42942 2011-01-09  Bruno Haible  <bruno@clisp.org>
42944         Update to Unicode 5.2.0.
42945         * lib/gen-uni-tables.c (output_predicate, output_category,
42946         output_combclass, output_bidi_category, output_decimal_digit_test,
42947         output_decimal_digit, output_digit_test, output_digit,
42948         output_numeric_test, output_numeric, output_mirror, output_scripts,
42949         output_scripts_byname, output_blocks, output_ident_category): Fix
42950         comment header.
42951         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
42952         get_wbp.
42953         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
42954         items.
42955         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
42956         Changes_When_Lowercased, Changes_When_Uppercased,
42957         Changes_When_Titlecased, Changes_When_Casefolded,
42958         Changes_When_Casemapped.
42959         (is_property_alphabetic, is_property_default_ignorable_code_point):
42960         Update for Unicode 5.2.0.
42961         (is_property_cased, is_property_case_ignorable,
42962         is_property_changes_when_lowercased,
42963         is_property_changes_when_uppercased,
42964         is_property_changes_when_titlecased,
42965         is_property_changes_when_casefolded,
42966         is_property_changes_when_casemapped): New functions.
42967         (output_properties): Output also the properties cased, case_ignorable,
42968         changes_when_lowercased, changes_when_uppercased,
42969         changes_when_titlecased, changes_when_casefolded,
42970         changes_when_casemapped.
42971         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
42972         Unicode TR#11 revision 17 -> 19.
42973         (LBP_CP): New enumeration value.
42974         (LBP_*): Adjust values accordingly.
42975         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
42976         TR#14 revision 22 -> 24.
42977         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
42978         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
42979         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
42980         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
42981         is_WBP_MIDLETTER.
42982         (output_composition_tables): Allow for 24 bits instead of 16 bits in
42983         the code1 and code2 of each composition rule.
42984         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
42985         * lib/unicase/ignorable.h: Likewise.
42986         * lib/unicase/tocasefold.h: Likewise.
42987         * lib/unicase/tolower.h: Likewise.
42988         * lib/unicase/totitle.h: Likewise.
42989         * lib/unicase/toupper.h: Likewise.
42990         * lib/unictype/bidi_of.h: Likewise.
42991         * lib/unictype/blocks.h: Likewise.
42992         * lib/unictype/categ_C.h: Likewise.
42993         * lib/unictype/categ_Cf.h: Likewise.
42994         * lib/unictype/categ_Cn.h: Likewise.
42995         * lib/unictype/categ_L.h: Likewise.
42996         * lib/unictype/categ_Ll.h: Likewise.
42997         * lib/unictype/categ_Lm.h: Likewise.
42998         * lib/unictype/categ_Lo.h: Likewise.
42999         * lib/unictype/categ_Lu.h: Likewise.
43000         * lib/unictype/categ_M.h: Likewise.
43001         * lib/unictype/categ_Mc.h: Likewise.
43002         * lib/unictype/categ_Mn.h: Likewise.
43003         * lib/unictype/categ_N.h: Likewise.
43004         * lib/unictype/categ_Nd.h: Likewise.
43005         * lib/unictype/categ_Nl.h: Likewise.
43006         * lib/unictype/categ_No.h: Likewise.
43007         * lib/unictype/categ_P.h: Likewise.
43008         * lib/unictype/categ_Pd.h: Likewise.
43009         * lib/unictype/categ_Po.h: Likewise.
43010         * lib/unictype/categ_S.h: Likewise.
43011         * lib/unictype/categ_Sc.h: Likewise.
43012         * lib/unictype/categ_So.h: Likewise.
43013         * lib/unictype/categ_of.h: Likewise.
43014         * lib/unictype/combining.h: Likewise.
43015         * lib/unictype/ctype_alnum.h: Likewise.
43016         * lib/unictype/ctype_alpha.h: Likewise.
43017         * lib/unictype/ctype_graph.h: Likewise.
43018         * lib/unictype/ctype_lower.h: Likewise.
43019         * lib/unictype/ctype_print.h: Likewise.
43020         * lib/unictype/ctype_punct.h: Likewise.
43021         * lib/unictype/ctype_upper.h: Likewise.
43022         * lib/unictype/decdigit.h: Likewise.
43023         * lib/unictype/digit.h: Likewise.
43024         * lib/unictype/numeric.h: Likewise.
43025         * lib/unictype/pr_alphabetic.h: Likewise.
43026         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
43027         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
43028         * lib/unictype/pr_bidi_european_digit.h: Likewise.
43029         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
43030         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
43031         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
43032         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
43033         * lib/unictype/pr_combining.h: Likewise.
43034         * lib/unictype/pr_composite.h: Likewise.
43035         * lib/unictype/pr_currency_symbol.h: Likewise.
43036         * lib/unictype/pr_dash.h: Likewise.
43037         * lib/unictype/pr_decimal_digit.h: Likewise.
43038         * lib/unictype/pr_deprecated.h: Likewise.
43039         * lib/unictype/pr_diacritic.h: Likewise.
43040         * lib/unictype/pr_extender.h: Likewise.
43041         * lib/unictype/pr_grapheme_base.h: Likewise.
43042         * lib/unictype/pr_grapheme_extend.h: Likewise.
43043         * lib/unictype/pr_grapheme_link.h: Likewise.
43044         * lib/unictype/pr_id_continue.h: Likewise.
43045         * lib/unictype/pr_id_start.h: Likewise.
43046         * lib/unictype/pr_ideographic.h: Likewise.
43047         * lib/unictype/pr_ignorable_control.h: Likewise.
43048         * lib/unictype/pr_logical_order_exception.h: Likewise.
43049         * lib/unictype/pr_lowercase.h: Likewise.
43050         * lib/unictype/pr_numeric.h: Likewise.
43051         * lib/unictype/pr_other_alphabetic.h: Likewise.
43052         * lib/unictype/pr_punctuation.h: Likewise.
43053         * lib/unictype/pr_sentence_terminal.h: Likewise.
43054         * lib/unictype/pr_terminal_punctuation.h: Likewise.
43055         * lib/unictype/pr_unassigned_code_value.h: Likewise.
43056         * lib/unictype/pr_unified_ideograph.h: Likewise.
43057         * lib/unictype/pr_uppercase.h: Likewise.
43058         * lib/unictype/pr_xid_continue.h: Likewise.
43059         * lib/unictype/pr_xid_start.h: Likewise.
43060         * lib/unictype/pr_zero_width.h: Likewise.
43061         * lib/unictype/scripts.h: Likewise.
43062         * lib/unictype/scripts_byname.gperf: Likewise.
43063         * lib/unictype/sy_java_ident.h: Likewise.
43064         * lib/unigbrk/gbrkprop.h: Likewise.
43065         * lib/unilbrk/lbrkprop1.h: Likewise.
43066         * lib/unilbrk/lbrkprop2.h: Likewise.
43067         * lib/unilbrk/lbrktables.h: Likewise.
43068         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
43069         LBP_CP. Implement rule LB30.
43070         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
43071         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
43072         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
43073         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
43074         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
43075         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
43076         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
43077         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
43078         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
43079         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
43080         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
43081         bits instead of 16 bits in the code1 and code2 of each composition
43082         rule.
43083         (uc_composition): Update for Unicode 5.2.0.
43084         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
43085         * lib/uninorm/decomposition-table2.h: Likewise.
43086         * lib/uniwbrk/wbrkprop.h: Likewise.
43087         * tests/unicase/test-cased.c: Likewise.
43088         * tests/unicase/test-ignorable.c: Likewise.
43089         * tests/unicase/test-uc_tolower.c: Likewise.
43090         * tests/unicase/test-uc_totitle.c: Likewise.
43091         * tests/unicase/test-uc_toupper.c: Likewise.
43092         * tests/unictype/test-categ_C.c: Likewise.
43093         * tests/unictype/test-categ_Cf.c: Likewise.
43094         * tests/unictype/test-categ_Cn.c: Likewise.
43095         * tests/unictype/test-categ_L.c: Likewise.
43096         * tests/unictype/test-categ_Ll.c: Likewise.
43097         * tests/unictype/test-categ_Lm.c: Likewise.
43098         * tests/unictype/test-categ_Lo.c: Likewise.
43099         * tests/unictype/test-categ_Lu.c: Likewise.
43100         * tests/unictype/test-categ_M.c: Likewise.
43101         * tests/unictype/test-categ_Mc.c: Likewise.
43102         * tests/unictype/test-categ_Mn.c: Likewise.
43103         * tests/unictype/test-categ_N.c: Likewise.
43104         * tests/unictype/test-categ_Nd.c: Likewise.
43105         * tests/unictype/test-categ_Nl.c: Likewise.
43106         * tests/unictype/test-categ_No.c: Likewise.
43107         * tests/unictype/test-categ_P.c: Likewise.
43108         * tests/unictype/test-categ_Pd.c: Likewise.
43109         * tests/unictype/test-categ_Po.c: Likewise.
43110         * tests/unictype/test-categ_S.c: Likewise.
43111         * tests/unictype/test-categ_Sc.c: Likewise.
43112         * tests/unictype/test-categ_So.c: Likewise.
43113         * tests/unictype/test-ctype_alnum.c: Likewise.
43114         * tests/unictype/test-ctype_alpha.c: Likewise.
43115         * tests/unictype/test-ctype_graph.c: Likewise.
43116         * tests/unictype/test-ctype_lower.c: Likewise.
43117         * tests/unictype/test-ctype_print.c: Likewise.
43118         * tests/unictype/test-ctype_punct.c: Likewise.
43119         * tests/unictype/test-ctype_upper.c: Likewise.
43120         * tests/unictype/test-decdigit.h: Likewise.
43121         * tests/unictype/test-digit.h: Likewise.
43122         * tests/unictype/test-numeric.h: Likewise.
43123         * tests/unictype/test-pr_alphabetic.c: Likewise.
43124         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
43125         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
43126         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
43127         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
43128         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
43129         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
43130         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
43131         * tests/unictype/test-pr_combining.c: Likewise.
43132         * tests/unictype/test-pr_composite.c: Likewise.
43133         * tests/unictype/test-pr_currency_symbol.c: Likewise.
43134         * tests/unictype/test-pr_dash.c: Likewise.
43135         * tests/unictype/test-pr_decimal_digit.c: Likewise.
43136         * tests/unictype/test-pr_deprecated.c: Likewise.
43137         * tests/unictype/test-pr_diacritic.c: Likewise.
43138         * tests/unictype/test-pr_extender.c: Likewise.
43139         * tests/unictype/test-pr_grapheme_base.c: Likewise.
43140         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
43141         * tests/unictype/test-pr_grapheme_link.c: Likewise.
43142         * tests/unictype/test-pr_id_continue.c: Likewise.
43143         * tests/unictype/test-pr_id_start.c: Likewise.
43144         * tests/unictype/test-pr_ideographic.c: Likewise.
43145         * tests/unictype/test-pr_ignorable_control.c: Likewise.
43146         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
43147         * tests/unictype/test-pr_lowercase.c: Likewise.
43148         * tests/unictype/test-pr_numeric.c: Likewise.
43149         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
43150         * tests/unictype/test-pr_punctuation.c: Likewise.
43151         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
43152         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
43153         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
43154         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
43155         * tests/unictype/test-pr_uppercase.c: Likewise.
43156         * tests/unictype/test-pr_xid_continue.c: Likewise.
43157         * tests/unictype/test-pr_xid_start.c: Likewise.
43158         * tests/unictype/test-pr_zero_width.c: Likewise.
43159         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
43160         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
43161         changed behaviour: line breaking is now disallowed between a letter
43162         or '=' and '('.
43163         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
43164         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
43165         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
43166         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
43167         * tests/uniwidth/test-uc_width2.sh: Same updates as in
43168         lib/uniwidth/width.c.
43169         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
43170         without comments, but with the original copyright notice.
43171         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
43172         changes.
43173         * lib/unictype/categ_Cc.h: Likewise.
43174         * lib/unictype/categ_Co.h: Likewise.
43175         * lib/unictype/categ_Cs.h: Likewise.
43176         * lib/unictype/categ_Lt.h: Likewise.
43177         * lib/unictype/categ_Me.h: Likewise.
43178         * lib/unictype/categ_Pc.h: Likewise.
43179         * lib/unictype/categ_Pe.h: Likewise.
43180         * lib/unictype/categ_Pf.h: Likewise.
43181         * lib/unictype/categ_Pi.h: Likewise.
43182         * lib/unictype/categ_Ps.h: Likewise.
43183         * lib/unictype/categ_Sk.h: Likewise.
43184         * lib/unictype/categ_Sm.h: Likewise.
43185         * lib/unictype/categ_Z.h: Likewise.
43186         * lib/unictype/categ_Zl.h: Likewise.
43187         * lib/unictype/categ_Zp.h: Likewise.
43188         * lib/unictype/categ_Zs.h: Likewise.
43189         * lib/unictype/ctype_blank.h: Likewise.
43190         * lib/unictype/ctype_cntrl.h: Likewise.
43191         * lib/unictype/ctype_digit.h: Likewise.
43192         * lib/unictype/ctype_space.h: Likewise.
43193         * lib/unictype/ctype_xdigit.h: Likewise.
43194         * lib/unictype/mirror.h: Likewise.
43195         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
43196         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
43197         * lib/unictype/pr_bidi_block_separator.h: Likewise.
43198         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
43199         * lib/unictype/pr_bidi_common_separator.h: Likewise.
43200         * lib/unictype/pr_bidi_control.h: Likewise.
43201         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
43202         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
43203         * lib/unictype/pr_bidi_pdf.h: Likewise.
43204         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
43205         * lib/unictype/pr_bidi_whitespace.h: Likewise.
43206         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
43207         * lib/unictype/pr_format_control.h: Likewise.
43208         * lib/unictype/pr_hex_digit.h: Likewise.
43209         * lib/unictype/pr_hyphen.h: Likewise.
43210         * lib/unictype/pr_ids_binary_operator.h: Likewise.
43211         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
43212         * lib/unictype/pr_iso_control.h: Likewise.
43213         * lib/unictype/pr_join_control.h: Likewise.
43214         * lib/unictype/pr_left_of_pair.h: Likewise.
43215         * lib/unictype/pr_line_separator.h: Likewise.
43216         * lib/unictype/pr_math.h: Likewise.
43217         * lib/unictype/pr_non_break.h: Likewise.
43218         * lib/unictype/pr_not_a_character.h: Likewise.
43219         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
43220         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
43221         * lib/unictype/pr_other_id_continue.h: Likewise.
43222         * lib/unictype/pr_other_id_start.h: Likewise.
43223         * lib/unictype/pr_other_lowercase.h: Likewise.
43224         * lib/unictype/pr_other_math.h: Likewise.
43225         * lib/unictype/pr_other_uppercase.h: Likewise.
43226         * lib/unictype/pr_paired_punctuation.h: Likewise.
43227         * lib/unictype/pr_paragraph_separator.h: Likewise.
43228         * lib/unictype/pr_pattern_syntax.h: Likewise.
43229         * lib/unictype/pr_pattern_white_space.h: Likewise.
43230         * lib/unictype/pr_private_use.h: Likewise.
43231         * lib/unictype/pr_quotation_mark.h: Likewise.
43232         * lib/unictype/pr_radical.h: Likewise.
43233         * lib/unictype/pr_soft_dotted.h: Likewise.
43234         * lib/unictype/pr_space.h: Likewise.
43235         * lib/unictype/pr_titlecase.h: Likewise.
43236         * lib/unictype/pr_variation_selector.h: Likewise.
43237         * lib/unictype/pr_white_space.h: Likewise.
43238         * lib/unictype/sy_c_ident.h: Likewise.
43239         * lib/unictype/sy_c_whitespace.h: Likewise.
43240         * lib/unictype/sy_java_whitespace.h: Likewise.
43241         * modules/uni*/*: Bump version number of expected libunistring version.
43242         Reported by Simon Josefsson.
43244 2011-01-09  Karl Heuer  <kwzh@gnu.org>
43246         useless-if-before-free: fix typo in --help and make the internal,
43247         automatic version date update process work once again.
43248         --help output contained a NUL character instead of the
43249         backslash-zero that was intended.  Also, the "must lie within
43250         the first 8 lines" line is on line 9, and hence not getting
43251         automatically updated.
43252         * build-aux/useless-if-before-free: Fix the former by adding a
43253         backslash, and the latter by condensing the three lines of what-it-does
43254         to a single line, leaving one line of slack for the future.
43256 2011-01-09  Bruno Haible  <bruno@clisp.org>
43258         uniwidth/width: Fix width of U+1D173..U+1D17A.
43259         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
43260         symbolic_width, output_width_property_test): New functions.
43261         (main): Invoke output_nonspacing_property, output_width_property_test.
43262         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
43263         U+1D173..U+1D17A.
43264         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
43265         1.
43266         * modules/uniwidth/*: Bump version number of expected libunistring
43267         version.
43268         * modules/unilbrk/*: Likewise.
43270 2011-01-08  Bruno Haible  <bruno@clisp.org>
43272         uninorm tests: Preserve copyright of Unicode data file.
43273         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
43274         Mention modifications.
43276 2011-01-08  Bruno Haible  <bruno@clisp.org>
43278         gen-uni-tables: Prepare for Unicode 5.2.0.
43279         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
43280         (debug_output_lbp, output_lbp): Update.
43282 2011-01-08  Bruno Haible  <bruno@clisp.org>
43284         unilbrk: Clarify gen-uni-tables.c code.
43285         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
43286         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
43287         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
43289 2011-01-07  Bruno Haible  <bruno@clisp.org>
43291         strtod: Restore errno when successfully parsing Infinity or NaN.
43292         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
43293         restore the original errno.
43295 2011-01-07  Bruno Haible  <bruno@clisp.org>
43297         remove test: Avoid failure on HP-UX 11.
43298         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
43300 2011-01-07  Bruno Haible  <bruno@clisp.org>
43302         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
43303         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
43304         error code.
43306 2011-01-07  Pádraig Brady  <P@draigBrady.com>
43308         ignore-value: fixup comments, and add Eric Blake
43309         as an author since he rewrote the macros.
43310         * lib/ignore-value.h (ignore_value):  State that
43311         we now support aggregates.  Also specify exactly
43312         when the GCC warn_unused_result feature was added.
43314 2011-01-06  Eric Blake  <eblake@redhat.com>
43316         ignore-value: support aggregate types
43317         * lib/ignore-value.h (ignore_value): Provide separate gcc
43318         definition.
43319         * modules/ignore-value-tests: New test module.
43320         * tests/test-ignore-value.c: New test.
43322         maint.mk: improve sc_prohibit_strcmp regex
43323         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
43324         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
43325         definition of STRNEQ.
43327         signal: work around Haiku issue with SIGBUS
43328         * lib/siglist.h: Add comment.
43329         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
43330         strsignal's favoring of SIGSEGV.
43331         * tests/test-signal.c (main): Avoid test failure.
43332         * doc/posix-headers/signal.texi (signal.h): Document the issue.
43333         Reported by Scott McCreary.
43335         maint.mk: add pre-release check to ensure submodule commits are public
43336         * top/maint.mk (public-submodule-commit): New rule.
43337         (submodule-checks): New variable.
43338         (alpha beta stable): Depend on the variable.
43340 2011-01-05  Pádraig Brady  <P@draigBrady.com>
43341         and Jim Meyering  <meyering@redhat.com>
43343         ignore-value: make ignore_value more generic; deprecate ignore_ptr
43344         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
43345         (ATTRIBUTE_DEPRECATED): Define.
43346         (_ignore_case): New function.
43347         (ignore_value): New macro, to replace the old function.
43348         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
43349         * modules/ignore-value (Depends-on): Add stdint.
43351 2011-01-04  Eric Blake  <eblake@redhat.com>
43353         doc: regenerate INSTALL
43354         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
43355         @firstparagraphindent support, now that autoconf dropped it.
43356         (INSTALL_PRELUDE): Reinstate old macro.
43357         * doc/install.texi: Resync from autoconf.
43358         * doc/INSTALL: Reflect recent autoconf update.
43359         * doc/INSTALL.ISO: Likewise.
43360         * doc/INSTALL.UTF-8: Likewise.
43361         Reported by Karl Berry.
43363 2011-01-04  Bruce Korb  <address@hidden>
43365         git-version-gen: avoid a sub-shell
43366         * build-aux/git-version-gen: Redirect stderr in `...` via
43367         "exec 2>...", rather than via an added sub-shell.
43369 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
43371         git-version-gen: use (...) rather than sh -c '...'
43372         * build-aux/git-version-gen: Rather than hard-coding a shell's name
43373         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
43375 2011-01-03  Jim Meyering  <meyering@redhat.com>
43377         git-version-gen: convert leading TABs to spaces
43378         * build-aux/git-version-gen: Expand leading TABs.
43380         git-version-gen: handle failed "git rev-list"
43381         * build-aux/git-version-gen: Rather than leaking a "fatal" error
43382         from git and proceeding as if it had succeeded but printed no SHA1
43383         checksums, suppress the diagnostic and handle the failure.
43384         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
43386         git-version-gen: include command name in one more diagnostic
43387         * build-aux/git-version-gen: When the required .tarball-version file
43388         was missing or unreadable, you might see the diagnostic from "cat",
43389         but no trace of the name of the invoking script.  Now, you still see
43390         the diagnostic from cat, but also get one from "git-version-gen: ".
43391         Inspired by a patch from Bruce Korb.
43393         update-copyright: adjust test to match changed code
43394         * tests/test-update-copyright.sh: Change test's expected output
43395         to match new actual output.
43397 2011-01-02  Bruno Haible  <bruno@clisp.org>
43399         getlogin_r: Avoid test failure on HP-UX 11.
43400         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
43401         ERANGE when the second argument is zero.
43402         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
43403         portability problem.
43405 2011-01-02  Bruce Korb  <bkorb@gnu.org>
43407         * build-aux/update-copyright: doc Simon's changes
43409 2011-01-02  Simon Josefsson  <simon@josefsson.org>
43411         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
43412         environment variable.
43414 2011-01-02  Bruno Haible  <bruno@clisp.org>
43416         unigbrk: Avoid gcc warnings.
43417         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
43418         unused variable.
43419         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
43420         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
43421         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
43422         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
43423         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
43424         Change type of first argument to 'const char *'.
43425         (main): Remove unused variable.
43426         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
43427         type of first argument to 'const char *'.
43428         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
43429         Likewise.
43430         (main): Change type of variable 's'.
43431         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
43432         to 'int'.
43434 2011-01-02  Bruno Haible  <bruno@clisp.org>
43436         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
43437         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
43438         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
43439         bug.
43440         * lib/pwrite.c: Undo 2010-12-31 patch.
43441         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
43443 2011-01-02  Bruno Haible  <bruno@clisp.org>
43445         pread: Fix test whether it works.
43446         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
43448 2011-01-02  Bruno Haible  <bruno@clisp.org>
43450         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
43451         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
43452         ends in "6". Don't require a specific month name. Try also the locale
43453         names found on HP-UX 11 and Solaris 7.
43455 2011-01-02  Bruno Haible  <bruno@clisp.org>
43457         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
43458         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
43459         C linkage.
43460         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
43462 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
43464         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
43465         for consistency, since the "cluster" term is not used elsewhere.
43466         * lib/unigbrk.in.h: Update name.
43467         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
43468         * lib/unigbrk/u16-grapheme-next.c: Update name.
43469         * lib/unigbrk/u16-grapheme-prev.c: Update name.
43470         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
43471         * lib/unigbrk/u32-grapheme-next.c: Update name.
43472         * lib/unigbrk/u32-grapheme-prev.c: Update name.
43473         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
43474         * lib/unigbrk/u8-grapheme-next.c: Update name.
43475         * lib/unigbrk/u8-grapheme-prev.c: Update name.
43476         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
43477         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
43478         Suggested by Bruno Haible.
43480 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
43482         Remove module 'u8-grapheme-len' as too redundant with
43483         'u8-grapheme-next'.
43484         * modules/unigbrk/u8-grapheme-len: Delete file.
43485         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
43486         * lib/unigbrk.in.h: Remove prototype for deleted function.
43487         * lib/unigbrk/u8-grapheme-len.c: Delete file.
43488         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
43490         Remove module 'u16-grapheme-len' as too redundant with
43491         'u16-grapheme-next'.
43492         * modules/unigbrk/u16-grapheme-len: Delete file.
43493         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
43494         * lib/unigbrk.in.h: Remove prototype for deleted function.
43495         * lib/unigbrk/u16-grapheme-len.c: Delete file.
43496         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
43498         Remove module 'u32-grapheme-len' as too redundant with
43499         'u32-grapheme-next'.
43500         * modules/unigbrk/u32-grapheme-len: Delete file.
43501         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
43502         * lib/unigbrk.in.h: Remove prototype for deleted function.
43503         * lib/unigbrk/u32-grapheme-len.c: Delete file.
43504         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
43506         Suggested by Bruno Haible.
43508 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
43510         * unigbrk.in.h: Fix typo: "ben" => "been".
43511         Reported by Bruno Haible.
43513 2011-01-01  Jim Meyering  <meyering@redhat.com>
43515         maint: update almost all copyright ranges to include 2011
43516         Run the new "make update-copyright" rule.
43518 2011-01-01  Jim Meyering  <meyering@redhat.com>
43520         maint: update-copyright: exempt doc/INSTALL*
43521         * Makefile (update-copyright): Also exclude doc/INSTALL*,
43522         since they are generated.  Suggested by Bruno Haible.
43524 2011-01-01  Jim Meyering  <meyering@redhat.com>
43526         maint: refine the update-copyright rule
43527         * Makefile (update-copyright): Also exclude any file that includes
43528         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
43529         code that merely generates the comment.
43531 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
43533         New module 'u8-grapheme-len'.
43534         * modules/unigbrk/u8-grapheme-len: New file.
43535         * modules/unigbrk/u8-grapheme-len-tests: New file.
43536         * lib/unigbrk.in.h: Add prototype for new function.
43537         * lib/unigbrk/u8-grapheme-len.c: New file.
43538         * tests/unigbrk/test-u8-grapheme-len.c: New file.
43540         New module 'u16-grapheme-len'.
43541         * modules/unigbrk/u16-grapheme-len: New file.
43542         * modules/unigbrk/u16-grapheme-len-tests: New file.
43543         * lib/unigbrk.in.h: Add prototype for new function.
43544         * lib/unigbrk/u16-grapheme-len.c: New file.
43545         * tests/unigbrk/test-u16-grapheme-len.c: New file.
43547         New module 'u32-grapheme-len'.
43548         * modules/unigbrk/u32-grapheme-len: New file.
43549         * modules/unigbrk/u32-grapheme-len-tests: New file.
43550         * lib/unigbrk.in.h: Add prototype for new function.
43551         * lib/unigbrk/u32-grapheme-len.c: New file.
43552         * tests/unigbrk/test-u32-grapheme-len.c: New file.
43554         New module 'u8-grapheme-next'.
43555         * modules/unigbrk/u8-grapheme-next: New file.
43556         * modules/unigbrk/u8-grapheme-next-tests: New file.
43557         * lib/unigbrk.in.h: Add prototype for new function.
43558         * lib/unigbrk/u8-grapheme-next.c: New file.
43559         * tests/unigbrk/test-u8-grapheme-next.c: New file.
43561         New module 'u16-grapheme-next'.
43562         * modules/unigbrk/u16-grapheme-next: New file.
43563         * modules/unigbrk/u16-grapheme-next-tests: New file.
43564         * lib/unigbrk.in.h: Add prototype for new function.
43565         * lib/unigbrk/u16-grapheme-next.c: New file.
43566         * tests/unigbrk/test-u16-grapheme-next.c: New file.
43568         New module 'u32-grapheme-next'.
43569         * modules/unigbrk/u32-grapheme-next: New file.
43570         * modules/unigbrk/u32-grapheme-next-tests: New file.
43571         * lib/unigbrk.in.h: Add prototype for new function.
43572         * lib/unigbrk/u32-grapheme-next.c: New file.
43573         * tests/unigbrk/test-u32-grapheme-next.c: New file.
43575         New module 'u8-grapheme-prev'.
43576         * modules/unigbrk/u8-grapheme-prev: New file.
43577         * modules/unigbrk/u8-grapheme-prev-tests: New file.
43578         * lib/unigbrk.in.h: Add prototype for new function.
43579         * lib/unigbrk/u8-grapheme-prev.c: New file.
43580         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
43582         New module 'u16-grapheme-prev'.
43583         * modules/unigbrk/u16-grapheme-prev: New file.
43584         * modules/unigbrk/u16-grapheme-prev-tests: New file.
43585         * lib/unigbrk.in.h: Add prototype for new function.
43586         * lib/unigbrk/u16-grapheme-prev.c: New file.
43587         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
43589         New module 'u32-grapheme-prev'.
43590         * modules/unigbrk/u32-grapheme-prev: New file.
43591         * modules/unigbrk/u32-grapheme-prev-tests: New file.
43592         * lib/unigbrk.in.h: Add prototype for new function.
43593         * lib/unigbrk/u32-grapheme-prev.c: New file.
43594         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
43596         New module 'u8-grapheme-breaks'.
43597         * modules/unigbrk/u8-grapheme-breaks: New file.
43598         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
43599         * lib/unigbrk.in.h: Add prototype for new function.
43600         * lib/unigbrk/u8-grapheme-breaks.c: New file.
43601         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
43603         New module 'u16-grapheme-breaks'.
43604         * modules/unigbrk/u16-grapheme-breaks: New file.
43605         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
43606         * lib/unigbrk.in.h: Add prototype for new function.
43607         * lib/unigbrk/u16-grapheme-breaks.c: New file.
43608         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
43610         New module 'u32-grapheme-breaks'.
43611         * modules/unigbrk/u32-grapheme-breaks: New file.
43612         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
43613         * lib/unigbrk.in.h: Add prototype for new function.
43614         * lib/unigbrk/u32-grapheme-breaks.c: New file.
43615         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
43617         New module 'ulc-grapheme-breaks'.
43618         * modules/unigbrk/ulc-grapheme-breaks: New file.
43619         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
43620         * m4/locale-ar.m4: New file.
43621         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
43622         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
43623         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
43625 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
43627         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
43628         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
43629         modified how this file was generated before I initially submitted
43630         the module, but failed to regenerate it.  This meant that several
43631         of the level2 entries were wrong.
43632         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
43633         Remove the division-by-2 that is folded into the table now that
43634         gbrkprop.h has been regenerated properly.  Now -1 entries are
43635         handled correctly.
43637         New module 'unigbrk/uc-gbrk-prop-tests'.
43638         * modules/unigbrk/uc-gbrk-prop-tests: New file.
43639         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
43640         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
43641         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
43643 2011-01-01  Bruno Haible  <bruno@clisp.org>
43645         Avoid use of hexadecimal escapes.
43646         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
43647         instead of hexadecimal escapes.
43649 2011-01-01  Jim Meyering  <meyering@redhat.com>
43651         maint: new rule to update copyright year ranges
43652         * Makefile (update-copyright): New rule.
43654         maint: indent with TABs in Makefile
43655         * Makefile: Expand leading sequences of spaces to TABs
43657         version-etc: update the copyright year it reports
43658         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
43660 2010-12-31  Bruno Haible  <bruno@clisp.org>
43662         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
43663         * lib/isfinite.c (zerof, zerod, zerol): New variables.
43664         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
43665         zero.
43667 2010-12-31  Bruno Haible  <bruno@clisp.org>
43669         pwrite: Work around HP-UX 11.11 bug.
43670         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
43671         works and set REPLACE_PWRITE if not.
43672         * lib/pwrite.c (pwrite): Add an implementation that uses the system
43673         function.
43674         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
43676 2010-12-31  Bruno Haible  <bruno@clisp.org>
43678         pread: Work around HP-UX 11 bugs.
43679         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
43680         and set REPLACE_PREAD if not.
43681         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
43683 2010-12-31  Eric Blake  <eblake@redhat.com>
43685         nl_langinfo: fix YESEXPR on Irix 6.5
43686         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
43687         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
43688         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
43689         it.
43691 2010-12-31  Bruno Haible  <bruno@clisp.org>
43693         iconv: Document HP-UX 11 bug.
43694         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
43696 2010-12-31  Bruno Haible  <bruno@clisp.org>
43698         ldexpl: Fix link error on HP-UX 11.
43699         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
43700         LDEXPL_LIBM, using $ISNANL_LIBM.
43702 2010-12-31  Eric Blake  <eblake@redhat.com>
43704         ftello: avoid compilation failure with SunStudio c89
43705         * lib/ftello.c (ftello): Use lseek, not llseek.
43707         tests: avoid failing coreutils tests on cygwin
43708         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
43709         (create_exe_shims_): Return 0 when skipping.
43711 2010-12-31  Bruno Haible  <bruno@clisp.org>
43713         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
43714         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
43716 2010-12-31  Bruno Haible  <bruno@clisp.org>
43718         waitpid: Fix link error in C++ mode.
43719         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
43721 2010-12-31  Bruno Haible  <bruno@clisp.org>
43723         isnan: Use GCC built-ins when possible.
43724         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
43725         __builtin_isnan.
43726         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
43727         (isnan): Define using GCC built-ins for GCC >= 4.0.
43729 2010-12-31  Bruno Haible  <bruno@clisp.org>
43731         isnand: Fix mistake.
43732         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
43733         __builtin_isnand.
43735 2010-12-31  Bruno Haible  <bruno@clisp.org>
43737         open: Avoid C++ error on HP-UX 11.
43738         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
43740 2010-12-31  Bruno Haible  <bruno@clisp.org>
43742         time_r: Add missing declarations on HP-UX 11.
43743         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
43744         instead of HAVE_LOCALTIME_R.
43745         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
43746         HAVE_LOCALTIME_R always.
43747         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
43748         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
43749         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
43750         HAVE_LOCALTIME_R.
43751         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
43752         * doc/posix-functions/localtime_r.texi: Likewise.
43754 2010-12-29  Eric Blake  <eblake@redhat.com>
43756         mountlist: tweak previous commit
43757         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
43758         Reported by Paul Eggert.
43760         mountlist: fix local drive detection on cygwin
43761         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
43762         that works for cygwin.
43764 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
43766         ftoastr, snprintf: ftoastr + snprintf module
43767         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
43768         since the snprintf module now should be good enough here.
43769         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
43770         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
43771         and gl_MODULE_INDICATOR([snprintf]), but the former enables
43772         GNULIB_SNPRINTF only for the test directory, and the latter
43773         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
43774         seems to suffice by itself.
43776 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
43778         alloca: one step towards thread-safety
43779         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
43780         need for a static variable.  All callers changed.  This does not
43781         make the alloca replacement thread-safe, but it's one step.
43783         tests: minor indenting change
43784         * tests/init.sh: Sync from coreutils housekeeping patch
43785         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
43786         to keep lines within 80 columns.
43788 2010-12-28  Jim Meyering  <meyering@redhat.com>
43790         regex: don't infloop on persistent failing calloc
43791         * lib/regexec.c (build_trtable): Return failure indication upon
43792         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
43793         In glibc, this was fixed for version 2.13:
43794         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
43796 2010-12-28  Bruno Haible  <bruno@clisp.org>
43797             Paul Eggert <eggert@cs.ucla.edu>
43799         linkat: Make implementation robust against system behaviour variations.
43800         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
43801         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
43802         way, and to -2 if it needs a generic runtime test.
43803         * lib/linkat.c (solaris_optimized_link_immediate,
43804         solaris_optimized_link_follow): New functions.
43805         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
43806         (check_same_link): Use it.
43808 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
43810         New module 'unigbrk/base'.
43811         * modules/unigbrk/base: New file.
43812         * lib/unigbrk.in.h: New file.
43814         New module 'unigbrk/uc-gbrk-prop'.
43815         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
43816         * modules/unigbrk/uc-gbrk-prop: New file.
43817         * lib/unigbrk/gbrkprop.h: New file.
43818         * lib/unigbrk/uc-gbrk-prop.c: New file.
43820         New module 'unigbrk/uc-is-grapheme-break'.
43821         * modules/unigbrk/uc-is-grapheme-break: New file.
43822         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
43823         * lib/unigbrk/uc-is-grapheme-break.c: New file.
43824         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
43825         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
43826         * tests/unigbrk/GraphemeBreakTest.txt: New file.
43828         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
43830 2010-12-27  Bruno Haible  <bruno@clisp.org>
43832         linkat test: Avoid failure on Solaris 11 2010-11.
43833         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
43835 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
43837         utimens: work around glibc rounding bug on more platforms
43838         * lib/utimens.c (fdutimens): Work around rounding bug even if
43839         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
43840         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
43842 2010-12-27  Bruno Haible  <bruno@clisp.org>
43844         select tests: Improve comments.
43845         * tests/test-select.c (do_select): Add comments.
43847 2010-12-27  Bruno Haible  <bruno@clisp.org>
43849         select tests: Safer way of handling timeout.
43850         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
43851         at every invocation.
43853 2010-12-27  Bruno Haible  <bruno@clisp.org>
43855         select tests: Use 'bool' where appropriate.
43856         * tests/test-select.c (connect_to_socket): Change argument type to
43857         'bool'.
43859 2010-12-27  Bruno Haible  <bruno@clisp.org>
43861         select tests: Use existing modules.
43862         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
43863         (configure.ac): Don't test for unistd.h.
43864         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
43865         declared in <unistd.h>.
43867 2010-12-27  Bruno Haible  <bruno@clisp.org>
43869         mbrtowc: Work around a Solaris 7 bug.
43870         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
43871         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
43872         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
43873         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
43874         MBRTOWC_NULL_ARG1_BUG.
43875         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
43876         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
43877         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
43878         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
43880 2010-12-27  Jim Meyering  <meyering@redhat.com>
43882         read-file.c: tweak syntax
43883         * lib/read-file.c (fread_file): Remove space after "*" in function
43884         definitions.
43886 2010-12-27  Bruno Haible  <bruno@clisp.org>
43888         times test: Avoid gcc warnings on OSF/1.
43889         * tests/test-times.c (main): Cast printf arguments from clock_t to
43890         'long int'.
43892 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
43894         utimens: work around glibc rounding bug on older Linux kernels
43895         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
43896         on Linux with a glibc whose utimes might not work, then work
43897         around a longstanding glibc bug involving rounding rather than
43898         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
43899         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
43901 2010-12-26  Bruno Haible  <bruno@clisp.org>
43903         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
43904         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
43905         _GL_CXXALIAS_SYS.
43906         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43908 2010-12-26  Bruno Haible  <bruno@clisp.org>
43910         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
43911         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
43912         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
43913         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
43914         looking for the declaration.
43915         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
43916         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
43917         problem.
43918         * doc/posix-functions/inet_pton.texi: Likewise.
43920 2010-12-26  Bruno Haible  <bruno@clisp.org>
43922         arpa_inet: Use the common idioms with C++ support.
43923         * lib/arpa_inet.in.h: Include c++defs.h.
43924         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
43925         support.
43926         * modules/arpa_inet (Depends-on): Add c++defs.
43927         (Makefile.am): Substitute the contents of c++defs.h.
43928         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
43929         * modules/arpa_inet-c++-tests: New file.
43930         * tests/test-arpa_inet-c++.cc: New file.
43932 2010-12-25  Bruno Haible  <bruno@clisp.org>
43934         Fix more C++ link errors on Solaris 8.
43935         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
43936         $(LIB_EACCESS).
43937         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
43938         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
43939         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
43940         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
43941         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
43943 2010-12-25  Bruno Haible  <bruno@clisp.org>
43945         printf-posix: Fix link error when a non-GCC compiler is used.
43946         * lib/stdio.in.h (printf): When not using GCC, override printf
43947         correctly.
43948         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
43950 2010-12-25  Bruno Haible  <bruno@clisp.org>
43952         strerror_r-posix: Update doc.
43953         * doc/posix-functions/strerror_r.texi: Update doc about the return
43954         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
43956 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
43958         utimens: simplify the logic of the previous change
43959         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
43960         This should not affect whether the test succeeds or fails.
43962         utimens: configure better on hosts with NFS clock skew
43963         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
43964         uses the clock of the local host.  It might use the clock of the
43965         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
43966         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
43968 2010-12-25  Bruno Haible  <bruno@clisp.org>
43970         ptsname test: Avoid failure on Solaris.
43971         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
43972         open a pseudo-terminal; don't use BSD-style ptys.
43973         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
43975 2010-12-25  Bruno Haible  <bruno@clisp.org>
43977         ptsname: Avoid ERANGE failure on some systems.
43978         * lib/ptsname.c (buffer): Increase size.
43980 2010-12-25  Bruno Haible  <bruno@clisp.org>
43982         rename, renameat: Avoid test failures at NFS mounted locations.
43983         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
43984         so that subsequent mkdir calls succeed.
43986 2010-12-25  Bruno Haible  <bruno@clisp.org>
43988         iswblank: Fix C++ link error on Solaris 8.
43989         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
43990         _GL_FUNCDECL_SYS.
43992 2010-12-25  Bruno Haible  <bruno@clisp.org>
43994         unistd: Fix C++ link error on Solaris 8.
43995         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
43997 2010-12-25  Bruno Haible  <bruno@clisp.org>
43999         readlink doc: Mention an old glibc bug.
44000         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
44002 2010-12-25  Bruno Haible  <bruno@clisp.org>
44004         fcntl-h: Fix for use of C++ on glibc systems.
44005         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
44006         also on glibc systems in C++ mode.
44007         Reported by Gary V. Vaughan <gary@gnu.org>.
44009 2010-12-25  Bruno Haible  <bruno@clisp.org>
44011         roundl-ieee: Make it work on OSF/1 5.1 with cc.
44012         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
44014 2010-12-25  Bruno Haible  <bruno@clisp.org>
44016         truncl-ieee: Make it work on OSF/1 5.1 with cc.
44017         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
44018         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
44019         test whether truncl works according to ISO C 99 with IEC 60559.
44020         * m4/truncl-ieee.m4: New file.
44021         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
44022         m4/signbit.m4.
44023         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
44025 2010-12-25  Bruno Haible  <bruno@clisp.org>
44027         ceill-ieee: Make it work on OSF/1 5.1 with cc.
44028         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
44029         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
44030         test whether ceill works according to ISO C 99 with IEC 60559.
44031         * m4/ceill-ieee.m4: New file.
44032         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
44033         m4/signbit.m4.
44034         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
44036 2010-12-25  Bruno Haible  <bruno@clisp.org>
44038         Ensure all prerequisites of <wchar.h> are included.
44039         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
44040         before <wchar.h>.
44041         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
44042         gl_MBRLEN_NUL_RETVAL): Likewise.
44043         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
44044         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
44045         AC_FUNC_MBRTOWC): Likewise.
44046         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44047         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
44048         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
44049         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
44050         Likewise.
44051         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44052         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
44053         (gl_WCHAR_H): Improve comments.
44054         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
44056 2010-12-25  Bruno Haible  <bruno@clisp.org>
44058         strtok_r: Fix C syntax error in autoconf macro.
44059         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
44060         characters in test program.
44062 2010-12-24  Bruno Haible  <bruno@clisp.org>
44064         ceil, trunc, round: Fix gcc warnings.
44065         * lib/ceil.c (MIN): Undefine before redefining.
44066         * lib/trunc.c (MIN): Likewise.
44067         * lib/round.c (MIN): Likewise.
44068         Include <math.h> first.
44070 2010-12-24  Bruno Haible  <bruno@clisp.org>
44072         select tests: Avoid failures on OSF/1 5.1.
44073         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
44074         failure of closing the last socket; it may fail with ECONNRESET.
44076 2010-12-24  Eric Blake  <eblake@redhat.com>
44078         stdint: avoid HP-UX 10.20 preprocessor bug
44079         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
44080         than #if.
44081         * tests/test-floor2.c (main): Likewise.
44082         Reported by Peter O'Gorman.
44084         pipe: make obsoletion transition easier
44085         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
44086         * modules/pipe (Files): Include revived file.
44087         (Include): Drop reference, to mirror getdate's behavior.
44089 2010-12-24  Bruno Haible  <bruno@clisp.org>
44091         sys_socket: Hide mismatch of declarations on NonStop Kernel.
44092         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
44093         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
44094         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
44096 2010-12-24  Bruno Haible  <bruno@clisp.org>
44098         gethostname: Ensure declaration on NonStop Kernel.
44099         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
44100         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
44102 2010-12-24  Bruno Haible  <bruno@clisp.org>
44104         sys_select: Ensure all necessary types on NonStop Kernel.
44105         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
44106         include <sys/time.h>.
44107         * doc/posix-headers/sys_select.texi: Mention that it's missing on
44108         NonStop Kernel.
44109         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
44111 2010-12-24  Bruno Haible  <bruno@clisp.org>
44113         sys_select: Remove unneeded include.
44114         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
44115         have <sys/select.h>.
44117 2010-12-24  Bruno Haible  <bruno@clisp.org>
44119         gethostname: Provide a fallback for HOST_NAME_MAX.
44120         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
44121         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
44122         instead.
44123         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
44125 2010-12-24  Bruno Haible  <bruno@clisp.org>
44127         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
44128         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
44129         (SA_RESTART): Likewise.
44130         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
44132 2010-12-24  Bruno Haible  <bruno@clisp.org>
44134         signal: Define NSIG.
44135         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
44136         * tests/test-signal.c (nsig): New variable.
44137         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
44139 2010-12-24  Bruno Haible  <bruno@clisp.org>
44141         rename, renameat: Avoid test failures on OSF/1 5.1.
44142         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
44143         alternative error codes.
44144         * tests/test-renameat.c (main): Likewise.
44146 2010-12-24  Bruno Haible  <bruno@clisp.org>
44148         *printf: Detect large precisions bug on Solaris 10/SPARC.
44149         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
44150         by Paul Eggert.
44151         * tests/test-snprintf-posix.h (test_function): Add this test code here
44152         too.
44153         * tests/test-sprintf-posix.h (test_function): Likewise.
44154         * tests/test-vasnprintf-posix.c (test_function): Likewise.
44155         * tests/test-vasprintf-posix.c (test_function): Likewise.
44156         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
44157         around by gnulib.
44158         * doc/posix-functions/printf.texi: Likewise.
44159         * doc/posix-functions/snprintf.texi: Likewise.
44160         * doc/posix-functions/sprintf.texi: Likewise.
44161         * doc/posix-functions/vfprintf.texi: Likewise.
44162         * doc/posix-functions/vprintf.texi: Likewise.
44163         * doc/posix-functions/vsnprintf.texi: Likewise.
44164         * doc/posix-functions/vsprintf.texi: Likewise.
44165         * doc/posix-functions/dprintf.texi: Undo last commit.
44166         * doc/posix-functions/vdprintf.texi: Likewise.
44168 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
44170         tests: port test-fdutimensat.c to Solaris 8
44171         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
44172         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
44173         On Solaris 8, it fails with errno == ENOSYS, because there is no
44174         futimens (so it can't use the fd), and there is no lutimens (so it
44175         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
44177         vsnprintf: make more consistent with snprintf; doc fixes
44179         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
44180         the byte count return problem was promoted from the snprintf-posix
44181         to the snprintf module.
44182         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
44183         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
44184         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
44185         * tests/test-snprintf.c (main): Check the byte count returned.
44186         * tests/test-vsnprintf.c (main): Likewise.
44188 2010-12-23  Eric Blake  <eblake@redhat.com>
44190         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
44191         * modules/sigpipe (License): Relax license.
44193 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
44195         doc: document Solaris printf bug with large float precisions
44196         * doc/posix-functions/dprintf.texi (dprintf):
44197         * doc/posix-functions/fprintf.texi (fprintf):
44198         * doc/posix-functions/printf.texi (printf):
44199         * doc/posix-functions/snprintf.texi (snprintf):
44200         * doc/posix-functions/sprintf.texi (sprintf):
44201         * doc/posix-functions/vdprintf.texi (vdprintf):
44202         * doc/posix-functions/vfprintf.texi (vfprintf):
44203         * doc/posix-functions/vprintf.texi (vprintf):
44204         * doc/posix-functions/vsnprintf.texi (vsnprintf):
44205         * doc/posix-functions/vsprintf.texi (vsprintf):
44206         Mention that these functions mishandle large floating point
44207         precisions on Solaris 10.  The same bug is also present in Solaris
44208         8, and I assume earlier.  This causes "cd gnulib-tests; make
44209         check" to fail on Solaris 8 (and I assume, later) when building
44210         the latest coreutils, in test-vasprintf-posix's call to
44211         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
44212         the wide flavors (e.g., wprintf) so this patch just updates the
44213         documentation for the narrow ones.
44215         test-posixtm.c: add two tests
44216         * tests/test-posixtm.c: Add two tests, to highlight the
44217         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
44218         around this bug; this is merely to document it.
44220 2010-12-22  Bruno Haible  <bruno@clisp.org>
44222         getlogin_r: Work around portability problem on OSF/1.
44223         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
44224         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
44225         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
44226         test for a truncated result.
44227         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
44228         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
44229         * modules/getlogin_r (Depends-on): Add memchr.
44230         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
44232 2010-12-22  Bruno Haible  <bruno@clisp.org>
44234         ptsname: Avoid test failure on OSF/1 5.1.
44235         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
44236         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
44237         (same_slave): New function.
44238         (main): Use it to compare ptsname's result with the expected file name.
44240 2010-12-22  Bruno Haible  <bruno@clisp.org>
44242         Port extended stdio modules to HP NonStop Kernel.
44243         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
44244         macros.
44245         * lib/fbufmode.c: Update comments.
44246         * lib/fflush.c: Likewise.
44247         * lib/fpurge.c: Likewise.
44248         * lib/freadable.c: Likewise.
44249         * lib/freadahead.c: Likewise.
44250         * lib/freading.c: Likewise.
44251         * lib/freadptr.c: Likewise.
44252         * lib/freadseek.c: Likewise.
44253         * lib/fseeko.c: Likewise.
44254         * lib/fseterr.c: Likewise.
44255         * lib/fwritable.c: Likewise.
44256         * lib/fwriting.c: Likewise.
44257         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
44259 2010-12-22  Bruno Haible  <bruno@clisp.org>
44261         ttyname_r: Work around bug on OSF/1 5.1.
44262         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
44263         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
44264         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
44265         present.
44266         * lib/ttyname_r.c (ttyname_r): Update comments.
44268 2010-12-22  Bruno Haible  <bruno@clisp.org>
44270         round: Implement result sign according to IEEE 754.
44271         * lib/round.c (MIN, MINUS_ZERO): New macros.
44272         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
44273         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
44274         * tests/test-round-ieee.c (main): Likewise.
44275         * tests/test-roundl-ieee.c (main): Likewise.
44277         trunc: Implement result sign according to IEEE 754.
44278         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
44279         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
44280         * tests/test-trunc2.c: Include minus-zero.h.
44281         (MINUS_ZERO): New macro.
44282         (trunc_reference): Keep in sync with lib/trunc.c.
44283         * tests/test-truncf2.c: Include minus-zero.h.
44284         (MINUS_ZERO): New macro.
44285         (truncf_reference): Keep in sync with lib/trunc.c.
44286         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
44287         * tests/test-trunc-ieee.c (main): Likewise.
44288         * tests/test-truncl-ieee.c (main): Likewise.
44290         ceil: Implement result sign according to IEEE 754.
44291         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
44292         (FUNC): Return -0.0 for -1 < x < 0.
44293         * tests/test-ceil2.c: Include minus-zero.h.
44294         (MINUS_ZERO): New macro.
44295         (ceil_reference): Keep in sync with lib/ceil.c.
44296         * tests/test-ceilf2.c: Include minus-zero.h.
44297         (MINUS_ZERO): New macro.
44298         (ceilf_reference): Keep in sync with lib/ceil.c.
44299         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
44300         * tests/test-ceil-ieee.c (main): Likewise.
44301         * tests/test-ceill-ieee.c (main): Likewise.
44303         floor: Implement result sign according to IEEE 754.
44304         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
44305         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
44306         * tests/test-floorf2.c (floorf_reference): Likewise.
44307         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
44308         * tests/test-floor-ieee.c (main): Likewise.
44309         * tests/test-floorl-ieee.c (main): Likewise.
44311 2010-12-22  Bruno Haible  <bruno@clisp.org>
44313         getaddrinfo: Update doc.
44314         * doc/posix-functions/gai_strerror.texi: Return type is also different
44315         on AIX and HP-UX.
44317 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
44319         getaddrinfo, inet_ntop: Update doc for Solaris.
44320         * doc/posix-functions/gai_strerror.texi: Return type is also an
44321         issue on Solaris 9 and earlier.
44322         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
44323         on Solaris 10 and earlier.
44325 2010-12-21  Bruno Haible  <bruno@clisp.org>
44327         New module 'roundl-ieee'.
44328         * modules/roundl-ieee: New file.
44329         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
44330         test whether roundl works according to ISO C 99 with IEC 60559.
44331         * m4/roundl-ieee.m4: New file.
44332         * modules/roundl-ieee-tests: New file.
44333         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
44334         * tests/test-roundl.c (main): Remove signbit tests.
44335         * modules/roundl-tests (Depends-on): Remove signbit.
44336         * doc/posix-functions/roundl.texi: Mention the new module.
44338 2010-12-21  Bruno Haible  <bruno@clisp.org>
44340         New module 'truncl-ieee'.
44341         * modules/truncl-ieee: New file.
44342         * modules/truncl-ieee-tests: New file.
44343         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
44344         * tests/test-truncl.c (main): Remove signbit tests.
44345         * modules/truncl-tests (Depends-on): Remove signbit.
44346         * doc/posix-functions/truncl.texi: Mention the new module.
44348 2010-12-21  Bruno Haible  <bruno@clisp.org>
44350         New module 'ceill-ieee'.
44351         * modules/ceill-ieee: New file.
44352         * modules/ceill-ieee-tests: New file.
44353         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
44354         * tests/test-ceill.c (main): Remove signbit tests.
44355         * modules/ceill-tests (Depends-on): Remove signbit.
44356         * doc/posix-functions/ceill.texi: Mention the new module.
44358 2010-12-21  Bruno Haible  <bruno@clisp.org>
44360         New module 'floorl-ieee'.
44361         * modules/floorl-ieee: New file.
44362         * modules/floorl-ieee-tests: New file.
44363         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
44364         * tests/test-floorl.c (main): Remove signbit tests.
44365         * modules/floorl-tests (Depends-on): Remove signbit.
44366         * doc/posix-functions/floorl.texi: Mention the new module.
44368 2010-12-21  Bruno Haible  <bruno@clisp.org>
44370         New module 'round-ieee'.
44371         * modules/round-ieee: New file.
44372         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
44373         whether round works according to ISO C 99 with IEC 60559.
44374         * m4/round-ieee.m4: New file.
44375         * modules/round-ieee-tests: New file.
44376         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
44377         * tests/test-round1.c (main): Remove signbit tests.
44378         * modules/round-tests (Depends-on): Remove 'signbit'.
44379         * doc/posix-functions/round.texi: Mention the new module.
44381 2010-12-21  Bruno Haible  <bruno@clisp.org>
44383         New module 'trunc-ieee'.
44384         * modules/trunc-ieee: New file.
44385         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
44386         whether trunc works according to ISO C 99 with IEC 60559.
44387         * m4/trunc-ieee.m4: New file.
44388         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
44389         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
44390         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
44391         * modules/trunc-ieee-tests: New file.
44392         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
44393         * tests/test-trunc1.c (main): Remove signbit tests.
44394         * modules/trunc-tests (Depends-on): Remove 'signbit'.
44395         * doc/posix-functions/trunc.texi: Mention the new module.
44397 2010-12-21  Bruno Haible  <bruno@clisp.org>
44399         New module 'ceil-ieee'.
44400         * modules/ceil-ieee: New file.
44401         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
44402         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
44403         ISO C 99 with IEC 60559.
44404         * m4/ceil-ieee.m4: New file.
44405         * modules/ceil (Files): Add lib/ceil.c.
44406         (Depends-on): Add 'float'.
44407         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44408         * lib/math.in.h (ceil): New declaration.
44409         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
44410         REPLACE_CEIL.
44411         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
44412         * modules/ceil-ieee-tests: New file.
44413         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
44414         * tests/test-math-c++.cc: Check the signature of 'ceil'.
44415         * doc/posix-functions/ceil.texi: Mention the new module.
44417 2010-12-21  Bruno Haible  <bruno@clisp.org>
44419         New module 'floor-ieee'.
44420         * modules/floor-ieee: New file.
44421         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
44422         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
44423         ISO C 99 with IEC 60559.
44424         * m4/floor-ieee.m4: New file.
44425         * modules/floor (Files): Add lib/floor.c.
44426         (Depends-on): Add 'float'.
44427         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
44428         * lib/math.in.h (floor): New declaration.
44429         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
44430         REPLACE_FLOOR.
44431         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
44432         * modules/floor-ieee-tests: New file.
44433         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
44434         * tests/test-math-c++.cc: Check the signature of 'floor'.
44435         * doc/posix-functions/floor.texi: Mention the new module.
44437 2010-12-21  Bruno Haible  <bruno@clisp.org>
44439         New module 'roundf-ieee'.
44440         * modules/roundf-ieee: New file.
44441         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
44442         test whether roundf works according to ISO C 99 with IEC 60559.
44443         * m4/roundf-ieee.m4: New file.
44444         * modules/roundf-ieee-tests: New file.
44445         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
44446         * tests/test-roundf1.c (main): Remove signbit tests.
44447         * modules/roundf-tests (Depends-on): Remove 'signbit'.
44448         * doc/posix-functions/roundf.texi: Mention the new module.
44450 2010-12-21  Bruno Haible  <bruno@clisp.org>
44452         New module 'truncf-ieee'.
44453         * modules/truncf-ieee: New file.
44454         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
44455         test whether truncf works according to ISO C 99 with IEC 60559.
44456         * m4/truncf-ieee.m4: New file.
44457         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
44458         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
44459         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
44460         * modules/truncf-ieee-tests: New file.
44461         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
44462         * tests/test-truncf1.c (main): Remove signbit tests.
44463         * modules/truncf-tests (Depends-on): Remove 'signbit'.
44464         * doc/posix-functions/truncf.texi: Mention the new module.
44466 2010-12-21  Bruno Haible  <bruno@clisp.org>
44468         New module 'ceilf-ieee'.
44469         * modules/ceilf-ieee: New file.
44470         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
44471         test whether ceilf works according to ISO C 99 with IEC 60559.
44472         * m4/ceilf-ieee.m4: New file.
44473         * modules/ceilf-ieee-tests: New file.
44474         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
44475         * tests/test-ceilf1.c (main): Remove signbit tests.
44476         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
44477         * doc/posix-functions/ceilf.texi: Mention the new module.
44479 2010-12-21  Bruno Haible  <bruno@clisp.org>
44481         New module 'floorf-ieee'.
44482         * modules/floorf-ieee: New file.
44483         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
44484         test whether floorf works according to ISO C 99 with IEC 60559.
44485         * m4/floorf-ieee.m4: New file.
44486         * modules/floorf-ieee-tests: New file.
44487         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
44488         * tests/test-floorf1.c (main): Remove signbit tests.
44489         * modules/floorf-tests (Depends-on): Remove 'signbit'.
44490         * doc/posix-functions/floorf.texi: Mention the new module.
44492 2010-12-21  Bruno Haible  <bruno@clisp.org>
44494         Support for minus zero in autoconf macros.
44495         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
44496         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
44497         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
44498         * tests/minus-zero.h: Update comments.
44500 2010-12-21  Bruno Haible  <bruno@clisp.org>
44502         Tests for module 'ceil'.
44503         * modules/ceil-tests: New file.
44504         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
44505         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
44507 2010-12-21  Bruno Haible  <bruno@clisp.org>
44509         Tests for module 'floor'.
44510         * modules/floor-tests: New file.
44511         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
44512         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
44514 2010-12-21  Bruno Haible  <bruno@clisp.org>
44516         math: Fix indentation.
44517         * lib/math.in.h (floorf): Fix indentation.
44519 2010-12-21  Bruno Haible  <bruno@clisp.org>
44521         Fix cross-compilation guesses on Solaris.
44522         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
44523         not match "solaris2.10".
44524         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
44525         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
44526         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
44528 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
44530         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
44531         This fixes a problem observed with the latest coreutils snapshot
44532         that caused a test to fail on Solaris 8.  src/csplit.c's call
44533         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
44534         earlier, instead of returning the number of bytes that would have
44535         been generated; this causes csplit to incorrectly report memory
44536         exhaustion.
44537         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
44538         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
44539         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
44540         comments to match.
44541         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
44542         Fix typo in matching older versions of Solaris: "solaris2.10"
44543         is matched by the shell pattern "solaris2.[0-9]*".  This matters
44544         only for guessing while cross-compiling.
44545         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
44547 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
44549         ftoastr: fix comment again
44550         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
44551         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
44552         Also, simplify example a bit by using flags = 0.
44554 2010-12-20  Bruno Haible  <bruno@clisp.org>
44556         round*, trunc*: Update documentation regarding glibc.
44557         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
44558         * doc/posix-functions/round.texi: Likewise.
44559         * doc/posix-functions/roundl.texi: Likewise.
44560         * doc/posix-functions/truncf.texi: Likewise.
44561         * doc/posix-functions/trunc.texi: Likewise.
44562         * doc/posix-functions/truncl.texi: Likewise.
44564 2010-12-20  Bruno Haible  <bruno@clisp.org>
44566         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
44567         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
44568         * doc/posix-functions/round.texi: Likewise.
44569         * doc/posix-functions/roundl.texi: Likewise.
44571 2010-12-20  Bruno Haible  <bruno@clisp.org>
44573         ttyname_r: Add missing declaration on HP-UX 11.
44574         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
44575         HAVE_TTYNAME_R.
44576         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
44577         declared. Set HAVE_TTYNAME_R always.
44578         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44579         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
44580         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
44581         HAVE_TTYNAME_R.
44582         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
44584 2010-12-20  Bruno Haible  <bruno@clisp.org>
44586         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
44587         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
44588         * doc/posix-functions/getlogin_r.texi: Likewise.
44589         * tests/test-getlogin.c: Include <errno.h>.
44590         (main): Avoid test failure on HP-UX 11.11.
44591         * tests/test-getlogin_r.c (main): Likewise.
44593 2010-12-20  Bruno Haible  <bruno@clisp.org>
44595         getlogin_r: Add missing declaration on HP-UX 11.
44596         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
44597         declared also when it exists as a function.
44598         * doc/posix-functions/getlogin_r.texi: Document this workaround.
44600 2010-12-20  Bruno Haible  <bruno@clisp.org>
44602         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
44603         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
44604         through wcrtomb.
44606 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
44608         ftoastr: fix comment
44609         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
44610         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
44612 2010-12-19  Bruno Haible  <bruno@clisp.org>
44614         isnan: Ensure it is a macro.
44615         * lib/math.in.h (isnan): Define as a macro if not already a macro.
44616         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
44617         Solaris.
44619 2010-12-19  Bruno Haible  <bruno@clisp.org>
44621         ldexpl test: Fix link error on OSF/1 5.1.
44622         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
44624 2010-12-19  Bruno Haible  <bruno@clisp.org>
44626         wctype: Make it work in C++ mode on OSF/1 5.1.
44627         * lib/wctype.in.h (iswblank): Declare but not define here.
44628         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
44629         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
44630         * modules/wctype (Files): Add lib/iswblank.c.
44632 2010-12-19  Bruno Haible  <bruno@clisp.org>
44634         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
44635         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
44636         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
44638 2010-12-19  Bruno Haible  <bruno@clisp.org>
44640         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
44641         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
44642         _POSIX_PII_SOCKET.
44643         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
44644         * doc/posix-functions/recvfrom.texi: Likewise.
44645         * doc/posix-functions/send.texi: Likewise.
44646         * doc/posix-functions/sendto.texi: Likewise.
44648 2010-12-19  Bruno Haible  <bruno@clisp.org>
44650         tcgetsid: Add missing declaration on OSF/1 5.1.
44651         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
44652         HAVE_TCGETSID.
44653         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
44654         Don't set HAVE_TCGETSID.
44655         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
44656         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
44657         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
44658         HAVE_TCGETSID.
44659         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
44661 2010-12-19  Bruno Haible  <bruno@clisp.org>
44663         stdio: Fix problem with popen() declaration on OSF/1 5.1.
44664         * lib/stdio.in.h: During the include_next statement, let recursive
44665         includes of this file include only the system header file.
44667 2010-12-19  Bruno Haible  <bruno@clisp.org>
44669         iconv_open: Fix regression from 2010-12-04.
44670         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
44671         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
44673 2010-12-19  Bruno Haible  <bruno@clisp.org>
44675         stdbool test: Avoid a gcc warning.
44676         * tests/test-stdbool.c (main): Fail if e1 is false.
44677         Reported by Jim Meyering.
44679 2010-12-19  Jim Meyering  <meyering@redhat.com>
44681         setenv: restore to working order
44682         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
44683         mistakenly removed.
44684         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
44685         HAVE_SETENV.
44686         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
44687         HAVE_SETENV.
44689 2010-12-19  Bruno Haible  <bruno@clisp.org>
44691         Document some different function declarations on OSF/1 5.1.
44692         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
44693         * doc/posix-functions/inet_ntop.texi: Likewise.
44694         * doc/posix-functions/gethostname.texi: Likewise.
44695         * lib/unistd.in.h (gethostname): Update comment.
44697 2010-12-19  Bruno Haible  <bruno@clisp.org>
44699         doc: Mention vasprintf-posix module.
44700         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
44701         the 'vasprintf-posix' module.
44702         * doc/glibc-functions/vasprintf.texi: Likewise.
44704 2010-12-19  Bruno Haible  <bruno@clisp.org>
44706         unsetenv: Add missing declaration on OSF/1 5.1.
44707         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
44708         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
44709         Don't set HAVE_UNSETENV. In the test program, set _BSD.
44710         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
44711         not HAVE_UNSETENV.
44712         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
44713         HAVE_UNSETENV.
44714         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
44716 2010-12-19  Bruno Haible  <bruno@clisp.org>
44718         setenv: Add missing declaration on OSF/1 5.1.
44719         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
44720         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
44721         declared. Don't set HAVE_SETENV.
44722         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
44723         not HAVE_SETENV.
44724         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
44725         HAVE_SETENV.
44726         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
44728 2010-12-19  Bruno Haible  <bruno@clisp.org>
44730         nl_langinfo tests: Avoid gcc warning.
44731         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
44733 2010-12-19  Bruno Haible  <bruno@clisp.org>
44735         mknod: Avoid error in C++ mode on OSF/1 with GCC.
44736         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
44737         _GL_CXXALIAS_SYS.
44739 2010-12-19  Bruno Haible  <bruno@clisp.org>
44741         stdbool: Relax test.
44742         * tests/test-stdbool.c (e): Don't require that casts from a variable's
44743         address to 'bool' work in static initializer, for compilers other than
44744         GCC.
44746 2010-12-19  Bruno Haible  <bruno@clisp.org>
44748         ftello: Add missing declaration on OSF/1 5.1.
44749         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
44750         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
44751         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
44752         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
44753         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
44755 2010-12-19  Bruno Haible  <bruno@clisp.org>
44757         fseeko: Add missing declaration on OSF/1 5.1.
44758         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
44759         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
44760         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
44761         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
44762         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
44764 2010-12-19  Bruno Haible  <bruno@clisp.org>
44766         fchdir: Add missing declaration on OSF/1 5.1.
44767         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
44768         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
44769         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
44770         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
44771         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
44773 2010-12-19  Bruno Haible  <bruno@clisp.org>
44775         relocatable-prog-wrapper: Separate from relocatable-prog.
44776         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
44777         uninstall-relocwrapper rule here.
44778         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
44779         Reported by Ian Beckwith <ianb@erislabs.net>.
44781 2010-12-19  Bruno Haible  <bruno@clisp.org>
44783         unistr/u8-mbsnlen: Add missing dependency.
44784         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
44785         Reported by Ian Beckwith <ianb@erislabs.net>.
44787 2010-12-19  Bruno Haible  <bruno@clisp.org>
44789         iconv: Make it possible again to use this module without 'iconv-h'.
44790         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
44791         if it is not defined.
44792         Reported by Ian Beckwith <ianb@erislabs.net>.
44794 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44796         acl: port to Solaris 8 when copying from tmpfs to ufs
44797         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
44798         error number.  Problem observed on Solaris 8 with latest
44799         coreutils, with "mv A B", where A is on a tmpfs file system and B
44800         is on a ufs file system.  This caused coreutils' mv/part-symlink
44801         test to fail.
44803         tests: set fail=0 at start
44804         * tests/init.sh (setup_): Move fail=0 initialization here ...
44805         (mktempd_): ... from here, so that tests can rely on fail being
44806         set to 0 initially.  This fixes a problem in coreutils; see:
44807         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
44809 2010-12-18  Bruno Haible  <bruno@clisp.org>
44811         memmem-simple: Stylistic changes.
44812         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
44813         Fix preprocessor directive indentation.
44815 2010-12-15  Pádraig Brady  <P@draigBrady.com>
44817         memmem, memmem-simple: reorganize and expand empty needle check
44818         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
44819         functional checks to memmem-simple so that one has a fully functional
44820         memmem by using just this module.
44821         Restrict the performance only check to the memmem module.
44822         Also expand the empty needle check to ensure the correct
44823         pointer is returned, not just a non NULL pointer.
44824         * doc/glibc-functions/memmem.texi: Rearrange the portability
44825         documentation to correlate with the rearranged checks.
44826         Clarify exactly how the memmem and memmem-simple modules
44827         relate to each other.
44829 2010-12-15  Pádraig Brady  <P@draigBrady.com>
44830             Bruno Haible  <bruno@clisp.org>
44832         Improve cross-compilation guesses for uClibc.
44833         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
44834         that uClibc does not have the glibc bug.
44835         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
44836         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
44838 2010-12-14  Eric Blake  <eblake@redhat.com>
44840         configmake: provide fallbacks for oldest supported autotools
44841         * m4/configmake.m4: New file.
44842         * modules/configmake (Files): Ship it.
44843         (configure.ac): Use it to guarantee fallbacks.
44845 2010-12-13  Pádraig Brady  <P@draigBrady.com>
44847         read-file: Improve handling of large files
44848         * lib/read-file.c (fread_file): Minimize realloc()s
44849         for regular files, and better manage sizes around SIZE_MAX.
44851 2010-12-13  Eric Blake  <eblake@redhat.com>
44853         cloexec, fcntl: relax license
44854         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
44855         consent from all contributors.
44856         * modules/fcntl (License): Likewise.
44858 2010-12-10  Bruno Haible  <bruno@clisp.org>
44860         Tests for module 'pipe-posix'.
44861         * modules/pipe-posix-tests: New file.
44862         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
44864 2010-12-10  Bruno Haible  <bruno@clisp.org>
44866         pipe-posix: Make it work in C++ mode.
44867         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
44868         (pipe): Use common idiom, not a macro definition.
44869         * lib/pipe.c: New file.
44870         * m4/pipe.m4: New file.
44871         * modules/pipe-posix (Description): Enhance.
44872         (Files): Add lib/pipe.c, m4/pipe.m4.
44873         (configure.ac): Invoke gl_FUNC_PIPE.
44874         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
44875         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
44876         * tests/test-unistd-c++.cc: Check the signature of pipe.
44878 2010-12-10  Bruno Haible  <bruno@clisp.org>
44880         Rename module 'pipe' to 'spawn-pipe'.
44881         * modules/spawn-pipe: New file, renamed from modules/pipe.
44882         (Files, configure.ac, Makefile.am): Update.
44883         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
44884         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
44885         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
44886         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
44887         "spawn-pipe.h" instead of "pipe.h".
44888         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
44889         to gl_SPAWN_PIPE.
44890         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
44891         (Files, Makefile.am): Update.
44892         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
44893         Update.
44894         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
44895         Include "spawn-pipe.h" instead of "pipe.h".
44896         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
44897         * lib/javacomp.c: Likewise.
44898         * lib/javaversion.c: Likewise.
44899         * lib/pipe-filter-gi.c: Likewise.
44900         * lib/pipe-filter-ii.c: Likewise.
44901         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
44902         * modules/javacomp (Depends-on): Likewise.
44903         * modules/javaversion (Depends-on): Likewise.
44904         * modules/pipe-filter-gi (Depends-on): Likewise.
44905         * modules/pipe-filter-ii (Depends-on): Likewise.
44906         * MODULES.html.sh (Executing programs): Update.
44907         * NEWS: Mention the change.
44909 2010-12-10  Eric Blake  <eblake@redhat.com>
44911         pipe-posix: new module
44912         * modules/pipe-posix: New file.
44913         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
44914         (gl_UNISTD_H): Check for declaration.
44915         * modules/unistd (Makefile.am): Substitute it.
44916         * lib/unistd.in.h (pipe): Provide it for mingw.
44917         * doc/posix-functions/pipe.texi (pipe): Update documentation.
44918         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
44920 2010-12-07  Bruno Haible  <bruno@clisp.org>
44922         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
44923         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
44924         u8_strcmp_gnu.
44925         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
44927 2010-12-06  Bruno Haible  <bruno@clisp.org>
44929         Update internal documentation.
44930         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
44932 2010-12-04  Bruno Haible  <bruno@clisp.org>
44934         Put more information about failed tests into the test return codes.
44935         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
44936         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
44937         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
44938         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
44939         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
44940         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
44941         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44942         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
44943         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
44944         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44945         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
44946         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
44947         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
44948         * m4/stdint.m4 (gl_STDINT_H): Likewise.
44949         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
44950         returns a bit mask.
44951         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
44952         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
44953         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
44954         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
44955         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
44956         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
44957         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
44958         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
44959         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
44960         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
44961         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
44962         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
44963         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
44964         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
44965         * m4/link.m4 (gl_FUNC_LINK): Likewise.
44966         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
44967         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
44968         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
44969         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44970         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
44971         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44972         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
44973         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
44974         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
44975         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
44976         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
44977         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
44978         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
44979         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
44980         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
44981         gl_PRINTF_PRECISION): Likewise.
44982         * m4/regex.m4 (gl_REGEX): Likewise.
44983         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
44984         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
44985         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
44986         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
44987         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44988         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44989         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
44990         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
44991         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44992         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
44993         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
44994         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
44995         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
44996         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
44997         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
44998         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
44999         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
45000         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
45001         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45002         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
45003         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
45004         enumerated value.
45005         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
45007 2010-12-04  Bruno Haible  <bruno@clisp.org>
45009         Update for Solaris 11 2010-11.
45010         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
45011         Express, released in November 2010.
45013 2010-12-04  Bruno Haible  <bruno@clisp.org>
45015         nproc: Relax license.
45016         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
45017         and Paul Eggert.
45018         Requested by Ludovic Courtès <ludo@gnu.org>.
45020 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
45022         utimecmp: fine-grained src to nearby coarse-grained dest
45024         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
45025         and the source is on a file system with higher-resolution time
45026         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
45027         not work, and the time stamps are close together, the algorithm to
45028         determine the exact resolution from the read-back mtime was buggy:
45029         it had a "!=" where it should have had an "==".  This bug has been
45030         in the code ever since it was introduced to gnulib.
45031         Problem reported by Dan Jacobson in
45032         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
45034 2010-11-30  Bruno Haible  <bruno@clisp.org>
45036         strerror_r-posix: Fix autoconf test.
45037         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
45039 2010-11-28  Bruno Haible  <bruno@clisp.org>
45040             Paul Eggert  <eggert@cs.ucla.edu>
45042         Tests for module 'getdomainname'.
45043         * modules/getdomainname-tests: New file.
45044         * tests/test-getdomainname.c: New file, based on
45045         tests/test-gethostname.c.
45047 2010-11-28  Bruno Haible  <bruno@clisp.org>
45048             Paul Eggert  <eggert@cs.ucla.edu>
45050         getdomainname: Use the system function when possible.
45051         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
45052         (getdomainname): Replace if needed. Provide the declaration if it is
45053         missing. Don't use _GL_CXXALIAS_SYS_CAST.
45054         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
45055         (getdomainname): When the system has getdomainname, call the system
45056         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
45057         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
45058         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
45059         found in libnsl. Look for the declaration also in <netdb.h>. Replace
45060         the function if its second argument is of type 'int' or if it is found
45061         in libnsl.
45062         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
45063         <sys/systeminfo.h> and sysinfo().
45064         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
45065         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45066         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
45067         HAVE_GETDOMAINNAME.
45068         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
45069         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
45070         * doc/glibc-functions/getdomainname.texi: Document the problems with
45071         the getdomainname declaration.
45073 2010-11-28  Bruno Haible  <bruno@clisp.org>
45075         sys_socket: Ensure ss_family field on AIX.
45076         * lib/sys_socket.in.h (ss_family): New macro definition.
45077         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
45078         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
45079         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45080         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
45081         * modules/sys_socket (Makefile.am): Substitute
45082         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
45083         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
45085 2010-11-27  Bruno Haible  <bruno@clisp.org>
45087         readline: Improve configure output.
45088         * m4/readline.m4 (gl_FUNC_READLINE): Make the
45089         "checking for readline..." result understandable.
45091 2010-11-27  Bruno Haible  <bruno@clisp.org>
45093         *printf-posix: Detect a bug on Solaris 10/x86.
45094         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
45095         for floating-point output.
45096         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
45097         directive.
45098         * tests/test-snprintf-posix.h (test_function): Likewise.
45099         * tests/test-sprintf-posix.h (test_function): Likewise.
45100         * tests/test-vasprintf-posix.c (test_function): Likewise.
45101         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
45102         * doc/posix-functions/printf.texi: Likewise.
45103         * doc/posix-functions/snprintf.texi: Likewise.
45104         * doc/posix-functions/sprintf.texi: Likewise.
45105         * doc/posix-functions/vfprintf.texi: Likewise.
45106         * doc/posix-functions/vprintf.texi: Likewise.
45107         * doc/posix-functions/vsnprintf.texi: Likewise.
45108         * doc/posix-functions/vsprintf.texi: Likewise.
45109         * doc/glibc-functions/obstack_printf.texi: Likewise.
45110         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
45112 2010-11-27  Bruno Haible  <bruno@clisp.org>
45114         Fix link error when module libunistring-optional is in use.
45115         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
45116         * modules/striconveha-tests (Makefile.am): Likewise.
45118 2010-11-27  Bruno Haible  <bruno@clisp.org>
45120         regex: Mention link dependencies.
45121         * modules/regex (Link): New section.
45122         * modules/rpmatch (Link): Likewise.
45123         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
45125 2010-11-27  Bruno Haible  <bruno@clisp.org>
45127         ftoastr: Fix compilation error on Solaris.
45128         * lib/ftoastr.c: Include <config.h>.
45130 2010-11-27  Bruno Haible  <bruno@clisp.org>
45132         getloadavg: Update documentation.
45133         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
45135 2010-11-27  Bruno Haible  <bruno@clisp.org>
45137         sys_socket: Fix test whether the functions are declared.
45138         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
45139         not <sys/select.h>.
45141 2010-11-27  Bruno Haible  <bruno@clisp.org>
45143         getpass: Make sure to get system declaration on some platforms.
45144         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
45145         gl_USE_SYSTEM_EXTENSIONS.
45146         * modules/getpass (Depends-on): Add extensions.
45148 2010-11-26  Bruno Haible  <bruno@clisp.org>
45150         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
45151         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
45152         'iconv' module is present.
45153         (ICONV_CONST): New macro.
45154         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
45155         ICONV_CONST.
45156         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
45157         set ICONV_CONST.
45158         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
45159         here.
45160         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
45161         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
45162         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
45163         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
45164         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
45165         present.
45167 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
45169         ftoastr: comment fix
45170         * lib/ftoastr.c: "little" -> "little or no" in comment
45172 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
45174         stdint: port to GCC 4.3 + OSX + Octave
45175         On this platform, stdint.h is buggy and defines int64_t to long
45176         long int.  The replacement defined it to long int, causing
45177         problems with C++ style name mangling.  Instead, trust the system
45178         definition if INT64_MAX is defined, and likewise for the unsigned
45179         variant.   Problem reported by Jarno Rajahalme in
45180         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
45181         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
45182         and don't mess with int64_t and INT64_MAX in this case.
45183         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
45185 2010-11-24  Bruno Haible  <bruno@clisp.org>
45187         doc: Corrections regarding MacOS X 10.4 and 10.5.
45188         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
45189         MacOS X.
45190         Reported by Simon Josefsson.
45192 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
45194         Uninstall ".bin" files installed by relocwrapper.
45195         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
45196         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
45197         unless it is already there.
45199 2010-11-21  Bruno Haible  <bruno@clisp.org>
45201         Update for NetBSD 5.0.
45202         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
45203         NetBSD; the test fails on NetBSD 5.0.
45204         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
45205         about NetBSD.
45207 2010-11-21  Bruno Haible  <bruno@clisp.org>
45209         Update for HP-UX 11.23 and HP-UX 11.31.
45210         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
45211         HP-UX.
45213 2010-11-21  Bruno Haible  <bruno@clisp.org>
45215         Update for MacOS X 10.5.
45216         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
45217         MacOS X; the test fails on MacOS X 10.5.8.
45218         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
45219         about MacOS X.
45221 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
45223         bootstrap: add bootstrap_sync option.
45224         See discussion at
45225         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
45226         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
45227         * build-aux/bootstrap: Accept --bootstrap-sync to update
45228         bootstrap if it is not identical to the local gnulib's
45229         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
45230         enable this by default.  Accept --no-bootstrap-sync to disable
45231         it.
45233 2010-11-20  Bruno Haible  <bruno@clisp.org>
45235         Ensure that <features.h> is included before __GLIBC__ is tested.
45236         * lib/printf-parse.h: Include <features.h>.
45237         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
45238         Reported by Mike Frysinger <vapier@gentoo.org>.
45240         Ensure that <features.h> is included before __GLIBC__ is tested.
45241         * lib/wchar.in.h: Include <features.h>.
45242         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
45243         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
45244         Reported by Mike Frysinger <vapier@gentoo.org>.
45246         Ensure that <features.h> is included before __GLIBC__ is tested.
45247         * lib/arpa_inet.in.h: Include <features.h>.
45248         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
45249         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
45250         Reported by Mike Frysinger <vapier@gentoo.org>.
45252         Ensure that <features.h> is included before __GLIBC__ is tested.
45253         * build-aux/link-warning.h: Include <features.h>.
45254         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
45255         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
45256         Reported by Mike Frysinger <vapier@gentoo.org>.
45258         Ensure that <features.h> is included before __GLIBC__ is tested.
45259         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
45260         Reported by Mike Frysinger <vapier@gentoo.org>.
45262 2010-11-20  Bruno Haible  <bruno@clisp.org>
45264         memmem: Fix autoconf test.
45265         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
45267 2010-11-20  Bruno Haible  <bruno@clisp.org>
45269         Port to uClibc.
45270         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
45271         * lib/fcntl.in.h: Likewise.
45272         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
45273         * lib/mbrtowc.c (mbrtowc): Likewise.
45274         * lib/relocatable.c (find_shared_library_fullname): Likewise.
45275         * lib/strerror_r.c: Likewise.
45276         * lib/unistr/u8-strnlen.c: Likewise.
45277         * lib/vasnprintf.c (decimal_point_char): Likewise.
45278         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
45279         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
45280         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
45281         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
45282         * tests/test-sigaction.c (handler, main): Likewise.
45283         * lib/freading.h: Treat uClibc like a non-glibc platform.
45284         * lib/freading.c: Likewise.
45285         * lib/gettext.h: Likewise.
45286         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
45287         Likewise.
45288         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
45289         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
45290         * lib/propername.c (proper_name_utf8): Likewise.
45291         * lib/spawn.in.h: Likewise.
45292         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
45293         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
45294         mem_cd_iconveh_internal): Likewise.
45295         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
45296         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
45297         strstr, strcasestr): Likewise.
45298         * lib/unicodeio.c (unicode_to_mb): Likewise.
45299         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
45300         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
45301         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
45302         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
45303         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
45304         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
45305         * lib/unistr/u8-stpncpy.c: Likewise.
45306         * lib/vasnprintf.c (VASNPRINTF): Likewise.
45307         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
45308         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
45309         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
45310         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
45311         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
45312         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
45313         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
45314         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
45315         Likewise.
45316         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
45317         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
45318         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
45319         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
45320         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
45321         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
45322         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
45323         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
45324         * tests/test-getopt.h (OPTIND_MIN): Likewise.
45325         * tests/test-striconveha.c (main): Likewise.
45326         * tests/test-vasnprintf-posix.c (test_function): Likewise.
45327         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
45328         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
45329         * doc/posix-functions/getline.texi: Likewise.
45330         Reported by Mike Frysinger <vapier@gentoo.org>.
45332 2010-11-20  Bruno Haible  <bruno@clisp.org>
45334         nproc: Fix condition.
45335         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
45336         HAVE_PTHREAD_AFFINITY_NP.
45338 2010-11-20  Bruno Haible  <bruno@clisp.org>
45340         Fix a comment.
45341         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
45343 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
45345         ftoastr: don't assume snprintf
45346         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
45347         Implement a subset of snprintf here, by using sprintf safely.
45348         * modules/ftoastr (Depends-on): Remove snprintf.
45350 2010-11-19  Jim Meyering  <meyering@redhat.com>
45352         test-rename.h: fix compilation failure
45353         * tests/test-rename.h (test_rename): Add omitted "}".
45355 2010-11-17  Jim Meyering  <meyering@redhat.com>
45357         maint.mk: add a URL discussing the no-@acronym policy
45358         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
45360 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
45362         ftoastr: depend on snprintf, improve comments
45363         * lib/ftoastr.c: Also mention Loitsch's draft.
45364         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
45365         needed in the current implementation, but it might simplify
45366         speeding up the code later.
45367         * modules/ftoastr: Depend on snprintf; this improves portability.
45368         Suggested by Bruno Haible in the same email.
45370         ftoastr: port to hosts lacking strtof and strtold
45371         Problem reported by Bruno Haible in
45372         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
45373         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
45374         environment and strtold (and presumably strtof) are not available.
45375         * modules/ftoastr (Files): Add m4/c-strtod.m4.
45376         (configure.ac): Require gl_C99_STRTOLD.
45378 2010-11-18  Bruno Haible  <bruno@clisp.org>
45380         c-strtold: Avoid link error on AIX 7.
45381         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
45382         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
45383         (gl_C_STRTOLD): Test whether strtold_l exists.
45384         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45386 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
45388         intprops: new macro INT_BITS_STRLEN_BOUND
45389         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
45390         ftoastr.h.  This exposes an internal of intprops.h that was formerly
45391         not exposed.  Also, it uses a slightly tighter bound than before;
45392         though this makes no practical difference, we might as well be as
45393         tight as we easily can.
45395         ftoastr: new module, for lossless conversion of floats to short strings
45396         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
45397         * modules/ftoastr: New files.
45399 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
45401         bootstrap: port to Solaris sed
45402         * build-aux/bootstrap (get_version): Port to Solaris sed.
45403         See Ralf Wildenhues's note in
45404         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
45406 2010-11-14  Jim Meyering  <meyering@redhat.com>
45408         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
45409         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
45410         and move definition closer to sole use.
45412 2010-11-13  Jim Meyering  <meyering@redhat.com>
45414         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
45415         Now we require at least autoconf-2.59, which means the work-around
45416         is no longer needed.
45417         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
45418         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45419         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
45420         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
45421         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
45423 2010-11-13  Bruno Haible  <bruno@clisp.org>
45425         rename, renameat: Avoid test failures at NFS mounted locations.
45426         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
45427         functions.
45428         (test_rename): Use assert_nonexistent.
45429         * tests/test-rename.c: Include <dirent.h>.
45430         * tests/test-renameat.c: Likewise.
45431         Reported by Gary V. Vaughan <gary@gnu.org>.
45433         rename, renameat: Document Linux bug with NFS
45434         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
45435         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
45436         * doc/posix-functions/renameat.texi: Likewise.
45437         Suggested by Eric Blake.
45439 2010-11-13  Bruno Haible  <bruno@clisp.org>
45441         rename test: Add comments.
45442         * tests/test-rename.h (test_rename): Add structure and comments.
45444 2010-11-13  Eric Blake  <eblake@redhat.com>
45446         maintainer-makefile: cover a few more files
45447         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
45448         scripts generated within C files, for libvirt.
45450 2010-11-13  Bruno Haible  <bruno@clisp.org>
45452         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
45453         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
45454         character, return the number of bytes that belong together, not always
45455         1.
45456         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
45457         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
45458         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
45459         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
45460         number of bytes of an invalid character.
45461         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
45462         (main): Invoke it.
45463         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
45464         results.
45465         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
45466         malformed byte sequences.
45467         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
45468         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
45469         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
45470         Reported by Ben Pfaff and Paolo Bonzini.
45472 2010-11-13  Bruno Haible  <bruno@clisp.org>
45474         openat: Work around glibc bug with fchownat() and empty file names.
45475         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
45476         (gl_FUNC_FCHOWNAT): Invoke it.
45477         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
45478         * doc/posix-functions/fchownat.texi: Document the glibc bug.
45479         Reported by Gary V. Vaughan <gary@gnu.org>.
45481 2010-11-13  Bruno Haible  <bruno@clisp.org>
45483         openat: Ensure autoconf macro ordering.
45484         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
45485         gl_USE_SYSTEM_EXTENSIONS.
45486         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
45488 2010-11-13  Bruno Haible  <bruno@clisp.org>
45490         Update comments.
45491         * lib/unistr/u8-check.c: Update file name in comments.
45492         * lib/unistr/u8-mblen.c: Likewise.
45493         * lib/unistr/u8-prev.c: Likewise.
45494         * lib/unistr/u8-strmblen.c: Likewise.
45495         * lib/unistr/u8-strmbtouc.c: Likewise.
45497 2010-11-13  Jim Meyering  <meyering@redhat.com>
45499         tests: avoid test failure on Solaris 10 due to lack of PATH export
45500         * tests/test-update-copyright.sh: Don't forget to export PATH.
45502         init.sh: ensure that IFS is defined, just in case...
45503         * tests/init.sh (setup_): Ensure that IFS is defined,
45504         so that saving and restoring it works as expected.  This
45505         appears to be useful at least for an old version of dash
45506         from a long time ago (RH 6).  See here for details:
45507         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
45509         maint.mk: tighten "test a == b" check
45510         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
45511         test to files that contain something like #!/bin/sh.
45512         Without this, coreutils would get two false positives in
45513         the comments of C source files.
45515 2010-11-12  Eric Blake  <eblake@redhat.com>
45517         bootstrap: fix typo in previous attempt
45518         * build-aux/bootstrap (buildreq): Correct the grouping.
45519         Reported by Paul Eggert.
45521         maintainer-makefile: prohibit test x == x
45522         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
45523         Based on a report by Matthias Bolte.
45525         bootstrap: allow FreeBSD gzip
45526         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
45527         which has no '.' and goes to stderr.
45528         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
45529         Reported by Matthias Bolte.
45531         maintainer-makefile: check for i18n setup
45532         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
45533         will likely work.
45535 2010-11-12  Bruno Haible  <bruno@clisp.org>
45537         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
45538         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
45539         * lib/nanosleep.c (nanosleep): Likewise.
45541 2010-11-11  Bruno Haible  <bruno@clisp.org>
45543         fcntl-h: Fix for use of C++ on glibc systems.
45544         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
45545         also on glibc systems in C++ mode.
45546         Reported by Gary V. Vaughan <gary@gnu.org>.
45548 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
45550         mknod: avoid false failure with dash
45551         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
45553 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
45555         unlink: Fix "is it should" typo in diagnostic.
45556         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
45557         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
45559 2010-11-11  Bruno Haible  <bruno@clisp.org>
45561         Tests for module 'strerror_r-posix'.
45562         * modules/strerror_r-posix-tests: New file.
45563         * tests/test-strerror_r.c: New file.
45564         * tests/test-string-c++.cc: Check the signature of strerror_r.
45566         New module 'strerror_r-posix'.
45567         * lib/string.in.h (strerror_r): New declaration.
45568         * lib/strerror_r.c: New file.
45569         * m4/strerror_r.m4: New file.
45570         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
45571         of strerror_r.
45572         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
45573         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
45574         * modules/strerror_r-posix: New file.
45575         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
45576         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
45577         * doc/posix-functions/strerror_r.texi: Mention the new module and the
45578         portability problems.
45580 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
45582         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
45583         line is also considered for output. Quoted function name in shell
45584         command, so temporary files for functions like MyClass::operator()
45585         are removed correctly without errors.
45587 2010-11-09  Bruno Haible  <bruno@clisp.org>
45589         * doc/posix-functions/strerror.texi: List more failing platforms.
45591         * doc/posix-functions/strerror.texi: Add a comment.
45593 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
45595         fdopendir: fix bug on MacOS X when low on file descriptors
45597         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
45598         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
45599         All callers changed.
45600         (fdopendir): Invoke save_cwd at the top level, not after using
45601         multiple dup() calls to use up file descriptors.  Then retry
45602         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
45603         less than the maximum number of open file descriptors, because
45604         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
45605         on Mac OS X 10.6.4 for tar 1.24
45606         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
45607         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
45608         and for tar 1.25
45609         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
45611 2010-11-07  Bruno Haible  <bruno@clisp.org>
45613         vasnprintf: Support I flag on glibc systems.
45614         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
45615         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
45616         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
45617         snprintf function.
45618         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
45619         glibc systems.
45620         * tests/test-vasnprintf-posix3.c: New file.
45621         * modules/vasnprintf-posix-tests (Files): Add it.
45622         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
45624 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
45626         [html] Fix copy/paste bug: Use unique name for compiler warnings.
45627         * MODULES.html.sh: For compiler warnings, use name
45628         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
45630 2010-11-05  Eric Blake  <eblake@redhat.com>
45632         ceil, floor: avoid spurious failure with icc
45633         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
45634         [denormals-as-zero] when optimizing without -mieee-fp option.
45635         * tests/test-floorf2.c (floorf_reference): Likewise.
45636         * tests/test-ceilf1.c (dummy): New function.
45637         (main): Use it to outsmart icc's optimization.
45638         * tests/test-floorf1.c (dummy, main): Likewise.
45640         tests: require working signbit
45641         * modules/ceilf-tests (Depends-on): Add signbit.
45642         * modules/ceill-tests (Depends-on): Likewise.
45643         * modules/floorf-tests (Depends-on): Likewise.
45644         * modules/floorl-tests (Depends-on): Likewise.
45645         * modules/round-tests (Depends-on): Likewise.
45646         * modules/roundf-tests (Depends-on): Likewise.
45647         * modules/roundl-tests (Depends-on): Likewise.
45648         * modules/trunc-tests (Depends-on): Likewise.
45649         * modules/truncf-tests (Depends-on): Likewise.
45650         * modules/truncl-tests (Depends-on): Likewise.
45652         strtod: work around icc bug
45653         * lib/strtod.c (minus_zero): Define to working value.
45654         (strtod): Use it to avoid icc bug.
45656         copysign: enhance tests
45657         * modules/copysign-tests (Files): Add minus-zero.h.
45658         * tests/test-copysign.c (main): Also test zeros.
45660 2010-11-04  Eric Blake  <eblake@redhat.com>
45662         ceil, floor, round, trunc: enhance tests of -0
45663         * tests/test-ceilf1.c (main): Ensure correct sign of result.
45664         * tests/test-ceill.c (main): Likewise.
45665         * tests/test-floorf1.c (main): Likewise.
45666         * tests/test-floorl.c (main): Likewise.
45667         * tests/test-round1.c (main): Likewise.
45668         * tests/test-roundf1.c (main): Likewise.
45669         * tests/test-roundl.c (main): Likewise.
45670         * tests/test-trunc1.c (main): Likewise.
45671         * tests/test-truncf1.c (main): Likewise.
45672         * tests/test-truncl.c (main): Likewise.
45674 2010-11-04  Eric Blake  <eblake@redhat.com>
45676         frexp, tests: work around ICC bug with -zero
45677         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
45678         works with more compilers.
45679         * tests/minus-zero.h: New file.
45680         * modules/ceilf-tests (Files): Include it.
45681         * modules/ceill-tests (Files): Likewise.
45682         * modules/floorf-tests (Files): Likewise.
45683         * modules/floorl-tests (Files): Likewise.
45684         * modules/frexp-nolibm-tests (Files): Likewise.
45685         * modules/frexp-tests (Files): Likewise.
45686         * modules/frexpl-nolibm-tests (Files): Likewise.
45687         * modules/frexpl-tests (Files): Likewise.
45688         * modules/isnan-tests (Files): Likewise.
45689         * modules/isnand-nolibm-tests (Files): Likewise.
45690         * modules/isnand-tests (Files): Likewise.
45691         * modules/isnanf-nolibm-tests (Files): Likewise.
45692         * modules/isnanf-tests (Files): Likewise.
45693         * modules/isnanl-nolibm-tests (Files): Likewise.
45694         * modules/isnanl-tests (Files): Likewise.
45695         * modules/round-tests (Files): Likewise.
45696         * modules/roundf-tests (Files): Likewise.
45697         * modules/roundl-tests (Files): Likewise.
45698         * modules/ldexpl-tests (Files): Likewise.
45699         * modules/signbit-tests (Files): Likewise.
45700         * modules/snprintf-posix-tests (Files): Likewise.
45701         * modules/sprintf-posix-tests (Files): Likewise.
45702         * modules/strtod-tests (Files): Likewise.
45703         * modules/trunc-tests (Files): Likewise.
45704         * modules/truncf-tests (Files): Likewise.
45705         * modules/truncl-tests (Files): Likewise.
45706         * modules/vsnprintf-posix-tests (Files): Likewise.
45707         * modules/vsprintf-posix-tests (Files): Likewise.
45708         * modules/vasnprintf-posix-tests (Files): Likewise.
45709         * modules/vasprintf-posix-tests (Files): Likewise.
45710         * tests/test-ceilf1.c (main): Use it.
45711         * tests/test-ceill.c (main): Likewise.
45712         * tests/test-floorf1.c (main): Likewise.
45713         * tests/test-floorl.c (main): Likewise.
45714         * tests/test-frexp.c (main): Likewise.
45715         * tests/test-frexpl.c (main): Likewise.
45716         * tests/test-isnan.c (main): Likewise.
45717         * tests/test-isnand.h (main): Likewise.
45718         * tests/test-isnanf.h (main): Likewise.
45719         * tests/test-isnanl.h (main): Likewise.
45720         * tests/test-ldexpl.c (main): Likewise.
45721         * tests/test-round.c (main): Likewise.
45722         * tests/test-roundf.c (main): Likewise.
45723         * tests/test-roundl.c (main): Likewise.
45724         * tests/test-signbit.c (test_signbitf, test_signbitd)
45725         (test_signbitl): Likewise.
45726         * tests/test-snprintf-posix.h (test_function): Likewise.
45727         * tests/test-sprintf-posix.h (test_function): Likewise.
45728         * tests/test-strtod.c (main): Likewise.
45729         * tests/test-trunc1.c (main): Likewise.
45730         * tests/test-truncf1.c (main): Likewise.
45731         * tests/test-truncl.c (main): Likewise.
45733         isnanl: work around icc bug
45734         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
45736 2010-11-03  Eric Blake  <eblake@redhat.com>
45738         tests: fix compiler warnings
45739         * tests/test-getopt.h (test_getopt): Fix condition.
45740         * tests/test-getopt_long.h (test_getopt_long): Likewise.
45741         * tests/test-pipe2.c (main): Likewise.
45742         * tests/test-quotearg-simple.c (main): Avoid icc warning.
45744         utimens: fix broken m4 test
45745         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
45747 2010-10-28  Bruno Haible  <bruno@clisp.org>
45749         posix_spawn*, getdtablesize: Relax license.
45750         * modules/posix_spawn (License): Change to LGPLv2+.
45751         * modules/posix_spawnp (License): Likewise.
45752         * modules/posix_spawn-internal (License): Likewise.
45753         * modules/posix_spawnattr_init (License): Likewise.
45754         * modules/posix_spawnattr_getflags (License): Likewise.
45755         * modules/posix_spawnattr_setflags (License): Likewise.
45756         * modules/posix_spawnattr_getpgroup (License): Likewise.
45757         * modules/posix_spawnattr_setpgroup (License): Likewise.
45758         * modules/posix_spawnattr_getschedparam (License): Likewise.
45759         * modules/posix_spawnattr_setschedparam (License): Likewise.
45760         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
45761         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
45762         * modules/posix_spawnattr_getsigdefault (License): Likewise.
45763         * modules/posix_spawnattr_setsigdefault (License): Likewise.
45764         * modules/posix_spawnattr_getsigmask (License): Likewise.
45765         * modules/posix_spawnattr_setsigmask (License): Likewise.
45766         * modules/posix_spawnattr_destroy (License): Likewise.
45767         * modules/posix_spawn_file_actions_init (License): Likewise.
45768         * modules/posix_spawn_file_actions_addclose (License): Likewise.
45769         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
45770         * modules/posix_spawn_file_actions_addopen (License): Likewise.
45771         * modules/posix_spawn_file_actions_destroy (License): Likewise.
45772         * modules/getdtablesize (License): Likewise.
45773         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
45775 2010-10-26  Bruno Haible  <bruno@clisp.org>
45777         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
45778         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
45779         Cygwin and mingw.
45780         Suggested by Eric Blake.
45782 2010-10-26  Bruno Haible  <bruno@clisp.org>
45784         stdio: Work around compilation error due to renameat() on Solaris 10.
45785         * lib/stdio.in.h: Include <unistd.h> on Solaris.
45786         * lib/renameat.c: Don't include <unistd.h> here.
45787         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
45788         Reported by Paul Eggert and Eric Blake.
45790 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
45792         renameat: port to Solaris 10, which declares renameat in unistd.h
45794         * lib/renameat.c: Include unistd.h before stdio.h, because
45795         Solaris 10 declares renameat in unistd.h.  Problem encountered
45796         when building GNU tar 1.24 on Solaris 10.
45798 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
45800         fdopendir: fix C89 compilation
45801         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
45802         compilers.
45804 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
45806         inttostr: simplify by removing unnecessary redundancy
45807         * lib/anytostr.c: Don't include verify.h.
45808         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
45809         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
45810         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
45811         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
45812         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
45813         Likewise.
45814         * modules/inttostr (Depends-on): Remove 'verify'.
45816 2010-10-23  Bruno Haible  <bruno@clisp.org>
45818         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
45819         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
45820         Reported by Eric Blake.
45822 2010-10-23  Bruno Haible  <bruno@clisp.org>
45824         Tests: Fix LOCALE_JA on MirBSD 10.
45825         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
45826         to an UTF-8 locale.
45827         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
45828         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
45829         Reported by Eric Blake.
45831 2010-10-21  Bruno Haible  <bruno@clisp.org>
45833         nl_langinfo test: Avoid test failure on NetBSD 5.
45834         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
45835         Reported by Eric Blake.
45837 2010-10-21  Eric Blake  <eblake@redhat.com>
45839         c-stack: work around libsigsegv 2.8 bug
45840         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
45841         overflow on at least PowerPC64.
45843 2010-10-17  Bruno Haible  <bruno@clisp.org>
45845         userspec: Drop redundant file.
45846         * modules/userspec (Files): Remove lib/inttostr.h.
45848 2010-10-17  Bruno Haible  <bruno@clisp.org>
45850         nl_langinfo tests: Silence some warnings.
45851         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
45852         Reported by Jim Meyering.
45854 2010-10-17  Bruno Haible  <bruno@clisp.org>
45856         Make use of GCC's attribute __alloc_size__.
45857         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
45858         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
45859         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
45860         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
45861         __alloc_size__.
45862         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
45863         Suggested by Jim Meyering.
45865 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
45867         bootstrap: anchor .gitignore entries.
45868         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
45869         with...
45870         (insert_vc_ignore): ... this new function, which prepends `/' to
45871         all .gitignore entries before passing them to
45872         insert_sorted_if_absent.
45874 2010-10-16  Bruno Haible  <bruno@clisp.org>
45876         nextafter: Fix configure check.
45877         * modules/nextafter (configure.ac): Correct expected prototype.
45879 2010-10-16  Bruno Haible  <bruno@clisp.org>
45881         termios: Update documentation.
45882         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
45884 2010-10-16  Bruno Haible  <bruno@clisp.org>
45886         tests: Make them compile with TinyCC.
45887         * tests/test-strstr.c (main): Remove parentheses around array
45888         initializer.
45890 2010-10-15  Eric Blake  <eblake@redhat.com>
45892         ignore-value: make header idempotent
45893         * lib/ignore-value.h: Add double-inclusion guards.
45894         Reported by Stefan Berger.
45896 2010-10-15  Jim Meyering  <meyering@redhat.com>
45898         GNUmakefile: handle "stable" target, not "major"
45899         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
45900         lists in maint.mk and announce-gen.  Without this, "make stable"
45901         would fail to ensure that $(VERSION) is up to date.
45903 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
45905         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
45906         & co.
45908 2010-10-14  Bruno Haible  <bruno@clisp.org>
45910         vasnprintf: Don't set errno to 0.
45911         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
45912         block that sets it to 0.
45913         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
45915 2010-10-14  Bruno Haible  <bruno@clisp.org>
45917         socketlib: Fix.
45918         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
45919         gl_PREREQ_SYS_H_WINSOCK2.
45920         Reported by Ian Beckwith <ianb@erislabs.net>.
45922 2010-10-13  Jim Meyering  <meyering@redhat.com>
45924         test-select-stdin.c: avoid warn_unused_result warnings
45925         * tests/test-select-stdin.c: Include "macros.h".
45926         ASSERT that read and fflush succeed.
45928 2010-10-13  Jim Meyering  <meyering@redhat.com>
45930         git-version-gen: do require git-VC'd files in cwd
45931         * build-aux/git-version-gen: Reject a git version string
45932         if there are no commits associated with the current directory.
45933         This avoids an unlikely false-positive (unrelated dir whose parent
45934         repository also contains a tag matching v*), as pointed out
45935         by Giuseppe Scrivano in
45936         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
45938 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
45940         argv-iter: omit nonconforming declaration
45941         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
45942         enum arg_iter_err declaration, which doesn't conform to C99.
45943         Solaris 10 cc warns about this.
45945 2010-10-13  Eric Blake  <eblake@redhat.com>
45947         termios: fix compilation on mingw
45948         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
45949         (gl_TERMIOS_H): Adjust it on mingw.
45950         * modules/termios (Makefile.am): Substitute new key.
45951         * lib/termios.in.h (includes): Make include_next conditional.
45952         * doc/posix-headers/termios.texi (termios.h): Update
45953         documentation.
45954         Reported by Daniel P. Berrange.
45956 2010-10-13  Jim Meyering  <meyering@redhat.com>
45958         git-version-gen: don't require that .git/ be in the current dir
45959         * build-aux/git-version-gen: Adjust this script so that it works
45960         when run from any working directory beneath the top-level .git/-
45961         containing directory.  Inspired by a patch from Giuseppe Scrivano,
45962         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
45964         test-select: avoid warn_unused_result warnings
45965         * tests/test-select.c: Include "macros.h".
45966         ASSERT that each call to read, write, and pipe succeeds.
45967         While not technically required, also check each "close".
45968         * modules/select-tests (Files): Add tests/macros.h.
45970         test-symlinkat: remove declaration of unused local
45971         * tests/test-symlinkat.c (main): Remove unused local, "buf".
45973         test-inttostr: avoid shadowing warnings
45974         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
45975         and use malloc rather than the stack for the same reason as
45976         mentioned in the comment justifying the other allocation.
45978 2010-10-11  Bruno Haible  <bruno@clisp.org>
45980         stdlib: Allow multiple gnulib generated replacements to coexist.
45981         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
45982         Reported by Sam Steingold <sds@gnu.org>.
45984 2010-10-11  Jim Meyering  <meyering@redhat.com>
45986         fix a documentation typo
45987         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
45989 2010-10-11  Eric Blake  <eblake@redhat.com>
45991         futimens: work around Solaris 11 bug
45992         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
45993         * tests/test-futimens.h (test_futimens): Enhance, rather than
45994         weaken test.
45995         * doc/posix-functions/futimens.texi (futimens): Document the bug.
45997 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
45999         Indentation.
46000         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
46001         higher-level operators more to the left.
46003 2010-10-11  Jim Meyering  <meyering@redhat.com>
46005         test-futimens: avoid unwarranted test failure on Solaris 5.11
46006         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
46007         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
46008         because it tries to dereference the NULL name argument.
46010 2010-10-11  Bruno Haible  <bruno@clisp.org>
46012         Indentation.
46013         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
46014         indentation.
46016 2010-10-11  Jim Meyering  <meyering@redhat.com>
46018         spawn.in.h: make indentation consistent with parentheses
46019         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
46020         Make indentation consistent with parentheses.
46022 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
46024         Fix mismatched parens in previous commit
46025         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
46026         parens.
46028 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
46030         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
46032         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
46033         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
46034         * lib/malloca.c: Include "verify.h".
46035         (verify1): Remove, replacing with a verify call.
46036         * lib/relocwrapper.c (verify1): Likewise.
46037         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
46038         Likewise.
46039         * modules/malloca (Depends-on): Add 'verify'.
46040         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
46041         * modules/vasnprintf (Depends-on): Add 'verify'.
46042         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
46043         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46044         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46045         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46046         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46047         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46048         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46050         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
46052         Formerly the style was sometimes 2*X - 1, because the C standard
46053         was wrongly thought to disallow ?: in integral constant expressions.
46054         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
46055         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
46056         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
46057         * lib/stdint.in.h (_verify_intmax_size): Likewise.
46058         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
46059         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
46060         verify that time_t cannot be floating.
46062 2010-10-08  Eric Blake  <eblake@redhat.com>
46064         time: enforce recent POSIX ruling that time_t is integral
46065         * lib/time.in.h (__time_t_must_be_integral): Detect any
46066         problematic systems, allowing the rest of gnulib to assume POSIX.
46068 2010-10-08  Jim Meyering  <meyering@redhat.com>
46070         fdopendir: fix a bug on systems lacking openat and /proc support
46071         OpenBSD 4.7 is one such system.  The most noticeable effect was
46072         failure of any application making nontrivial use of fts: rm, du,
46073         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
46074           ./rm: traversal failed: `a': Bad file descriptor
46075         Debugging that, you see that even though FD 6 was closed just
46076         prior to the opendir call in fd_clone_opendir, its resulting
46077         dir->dd_fd was 8, rather than the expected value of 6:
46079         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
46080         93                close (fd);
46081         (gdb) n
46082         94                dir = fd_clone_opendir (dupfd);
46083         (gdb) n
46084         95                saved_errno = errno;
46085         (gdb) p dir->dd_fd
46086         $11 = 8
46088         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
46089         The problem is that on OpenBSD, fd_clone_opendir has to resort
46090         to using the old-style save/restore CWD mechanism, due to its
46091         lack of openat/proc support, and *that* would steal the FD (6)
46092         that opendir was supposed to use.
46094         The fix is to squirrel away the desired FD so that save_cwd uses a
46095         different one, and then free the dest FD right before calling opendir.
46096         That guarantees opendir will use the required file descriptor.
46098         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
46100 2010-10-08  Bruno Haible  <bruno@clisp.org>
46102         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
46103         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
46105 2010-10-08  Bruno Haible  <bruno@clisp.org>
46107         nanosleep: Make replacement POSIX compliant.
46108         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
46109         is out of range.
46110         Reported by Jim Meyering.
46112 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46114         bootstrap: add hook for altering gnulib.mk, for Bison
46115         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
46116         the Bison bootstrapping process can rewrite file names and variables
46117         in this file before later parts of 'bootstrap' use the file.
46118         Bison wants to include lib/gnulib.mk from the top-level makefile,
46119         so it needs the file names in this file to be relative to the top
46120         level, not relative to lib; plus it needs variable names to be
46121         rewritten.
46122         (slurp): Use the new function.
46124         bootstrap: reformat for readability
46125         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
46127 2010-10-08  Eric Blake  <eblake@redhat.com>
46129         docs: update cygwin progress
46130         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
46131         1.7.7.
46132         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
46133         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
46134         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
46135         * doc/posix-functions/carg.texi (carg): Likewise.
46136         * doc/posix-functions/cargf.texi (cargf): Likewise.
46137         * doc/posix-functions/casin.texi (casin): Likewise.
46138         * doc/posix-functions/casinf.texi (casinf): Likewise.
46139         * doc/posix-functions/casinh.texi (casinh): Likewise.
46140         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
46141         * doc/posix-functions/catan.texi (catan): Likewise.
46142         * doc/posix-functions/catanf.texi (catanf): Likewise.
46143         * doc/posix-functions/catanh.texi (catanh): Likewise.
46144         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
46145         * doc/posix-functions/ccos.texi (ccos): Likewise.
46146         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
46147         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
46148         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
46149         * doc/posix-functions/cexp.texi (cexp): Likewise.
46150         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
46151         * doc/posix-functions/cimag.texi (cimag): Likewise.
46152         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
46153         * doc/posix-functions/clog.texi (clog): Likewise.
46154         * doc/posix-functions/clogf.texi (clogf): Likewise.
46155         * doc/posix-functions/conj.texi (conj): Likewise.
46156         * doc/posix-functions/conjf.texi (conjf): Likewise.
46157         * doc/posix-functions/cpow.texi (cpow): Likewise.
46158         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
46159         * doc/posix-functions/cproj.texi (cproj): Likewise.
46160         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
46161         * doc/posix-functions/creal.texi (creal): Likewise.
46162         * doc/posix-functions/crealf.texi (crealf): Likewise.
46163         * doc/posix-functions/csin.texi (csin): Likewise.
46164         * doc/posix-functions/csinf.texi (csinf): Likewise.
46165         * doc/posix-functions/csinh.texi (csinh): Likewise.
46166         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
46167         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
46168         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
46169         * doc/posix-functions/ctan.texi (ctan): Likewise.
46170         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
46171         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
46172         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
46173         * doc/posix-headers/complex.texi (complex.h): Likewise.
46175 2010-10-07  Jim Meyering  <meyering@redhat.com>
46177         parse-datetime: avoid compilation failure on OpenBSD 4.7
46178         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
46179         This works around a compilation failure on OpenBSD 4.7:
46180         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
46182 2010-10-07  Eric Blake  <eblake@redhat.com>
46184         docs: update cygwin progress
46185         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
46186         1.7.6.
46187         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
46188         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
46189         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
46190         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
46191         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
46192         Likewise.
46193         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
46194         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
46195         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
46196         Likewise.
46197         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
46198         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
46199         Likewise.
46200         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
46201         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
46202         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
46203         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
46204         Likewise.
46205         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
46206         Likewise.
46207         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
46209         docs: update parse-datetime history
46210         * doc/parse-datetime.texi (Authors of parse_datetime): Better
46211         documentation of this function's history and alternatives.
46213         cygwin: use more robust version check
46214         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
46215         exclude an eventual cygwin 1.9.1.
46216         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
46217         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
46218         (gl_FUNC_STRCASESTR): Likewise.
46219         Reported by Bruno Haible.
46221 2010-10-06  Bruno Haible  <bruno@clisp.org>
46223         string, sys_select: Avoid #including large headers unless necessary.
46224         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
46225         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
46226         OSF/1, BeOS, Haiku.
46227         Reported by Jim Meyering.
46229 2010-10-05  Eric Blake  <eblake@redhat.com>
46231         memmem, strstr, strcasestr: fix bug with long periodic needle
46232         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
46233         periodic needle having false positive.
46234         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
46235         and cygwin 1.7.7.
46236         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
46237         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
46238         (gl_FUNC_STRCASESTR): Likewise.
46239         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
46240         * tests/test-memmem.c (main): Expose the bug.
46241         * tests/test-strcasestr.c (main): Likewise.
46242         * tests/test-strstr.c (main): Likewise.
46243         * tests/test-c-strcasestr.c (main): Likewise.
46244         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
46245         * doc/posix-functions/strstr.texi (strstr): Likewise.
46246         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
46247         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
46249 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
46251         parse-datetime: do some more renaming
46252         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
46253         parse_datetime, not get_date.  Mention the renaming.
46254         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
46255         in comments.
46256         * m4/bison.m4: Likewise.
46258 2010-10-05  Eric Blake  <eblake@redhat.com>
46260         parse-datetime: better name than get_date
46261         * NEWS: Reword the deprecation notice.
46262         * modules/get_date: Rename to modules/parse-datetime.
46263         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
46264         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
46265         * lib/get_date.y: Rename to lib/parse-datetime.y.
46266         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
46267         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
46268         * doc/getdate.texi: Provide fallback wrapper.
46269         * lib/getdate.h: Move guts, and wrap...
46270         * lib/parse-datetime.h: ...new file.
46271         * lib/parse-datetime.y (get_date): Rename...
46272         (parse_datetime): ...to this.
46273         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
46274         (gl_PARSE_DATETIME): ...to this.
46275         * doc/posix-functions/getdate.texi (get_date): Provide fallback
46276         documentation.
46277         * modules/getdate (Files): Provide fallback docs and header.
46278         (Notice, Depends-on): Update references.
46279         * tests/test-parse-datetime.c: Likewise.
46280         * DEPENDENCIES: Likewise.
46281         * MODULES.html.sh (Date and time <time.h>): Likewise.
46282         * doc/parse-datetime.texi (Date input formats)
46283         (Authors of parse_datetime): Likewise.
46284         * modules/parse-datetime (Files, configure.ac, Makefile.am)
46285         (Include): Likewise.
46286         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
46287         * gnulib-tool: Likewise.
46288         * m4/bison.m4 (gl_BISON): Likewise.
46289         Suggested by Bruno Haible.
46291 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
46293         more ports to Solaris tr, which needs [] around ranges
46294         * gnulib-tool: Solaris tr needs [] around ranges.
46295         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
46296         * tests/test-pipe-filter-gi1.c (main): Likewise.
46297         * tests/test-pipe-filter-ii1.c (main): Likewise.
46299 2010-10-05  Eric Blake  <eblake@redhat.com>
46301         bootstrap: fix Solaris regression
46302         * build-aux/bootstrap (check_versions): Solaris tr still needs []
46303         around ranges.
46304         Reported by Pádraig Brady.
46306         bootstrap: work with pkg-config
46307         * build-aux/bootstrap (check_versions): Also transliterate - in
46308         prerequisite name.
46309         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
46310         prerequisites that were already found, to avoid confusion.
46311         Reported by Justin Clift.
46313         faccessat: remove unused wrappers
46314         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
46315         presence of these wrappers dragged in -lgen on Solaris.
46316         Reported by Clemens Brogi; fix suggested by Paul Eggert.
46318 2010-10-05  Jim Meyering  <meyering@redhat.com>
46320         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
46321         * Makefile (sc_pragma_columns): New syntax-check rule.
46323 2010-10-04  Bruno Haible  <bruno@clisp.org>
46325         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
46326         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
46327         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
46328         Reported by Bruce Korb and Eric Blake.
46330 2010-10-04  Bruno Haible  <bruno@clisp.org>
46332         threadlib: Make option --with-libpth-prefix work.
46333         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
46334         use $LIBPTH, not just -lpth.
46336 2010-10-04  Bruno Haible  <bruno@clisp.org>
46338         Avoid line length limitation from HP NonStop system header files.
46339         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
46340         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
46341         * lib/ctype.in.h: Likewise.
46342         * lib/dirent.in.h: Likewise.
46343         * lib/errno.in.h: Likewise.
46344         * lib/fcntl.in.h: Likewise.
46345         * lib/float.in.h: Likewise.
46346         * lib/getopt.in.h: Likewise.
46347         * lib/iconv.in.h: Likewise.
46348         * lib/inttypes.in.h: Likewise.
46349         * lib/langinfo.in.h: Likewise.
46350         * lib/locale.in.h: Likewise.
46351         * lib/math.in.h: Likewise.
46352         * lib/netdb.in.h: Likewise.
46353         * lib/netinet_in.in.h: Likewise.
46354         * lib/poll.in.h: Likewise.
46355         * lib/pthread.in.h: Likewise.
46356         * lib/pty.in.h: Likewise.
46357         * lib/sched.in.h: Likewise.
46358         * lib/se-selinux.in.h: Likewise.
46359         * lib/search.in.h: Likewise.
46360         * lib/signal.in.h: Likewise.
46361         * lib/spawn.in.h: Likewise.
46362         * lib/stdarg.in.h: Likewise.
46363         * lib/stddef.in.h: Likewise.
46364         * lib/stdint.in.h: Likewise.
46365         * lib/stdio.in.h: Likewise.
46366         * lib/stdlib.in.h: Likewise.
46367         * lib/string.in.h: Likewise.
46368         * lib/strings.in.h: Likewise.
46369         * lib/sys_file.in.h: Likewise.
46370         * lib/sys_ioctl.in.h: Likewise.
46371         * lib/sys_select.in.h: Likewise.
46372         * lib/sys_socket.in.h: Likewise.
46373         * lib/sys_stat.in.h: Likewise.
46374         * lib/sys_time.in.h: Likewise.
46375         * lib/sys_times.in.h: Likewise.
46376         * lib/sys_utsname.in.h: Likewise.
46377         * lib/sys_wait.in.h: Likewise.
46378         * lib/sysexits.in.h: Likewise.
46379         * lib/termios.in.h: Likewise.
46380         * lib/time.in.h: Likewise.
46381         * lib/unistd.in.h: Likewise.
46382         * lib/wchar.in.h: Likewise.
46383         * lib/wctype.in.h: Likewise.
46384         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
46385         * modules/ctype (Makefile.am): Likewise.
46386         * modules/dirent (Makefile.am): Likewise.
46387         * modules/errno (Makefile.am): Likewise.
46388         * modules/fcntl-h (Makefile.am): Likewise.
46389         * modules/float (Makefile.am): Likewise.
46390         * modules/getopt-posix (Makefile.am): Likewise.
46391         * modules/iconv-h (Makefile.am): Likewise.
46392         * modules/inttypes (Makefile.am): Likewise.
46393         * modules/langinfo (Makefile.am): Likewise.
46394         * modules/locale (Makefile.am): Likewise.
46395         * modules/math (Makefile.am): Likewise.
46396         * modules/netdb (Makefile.am): Likewise.
46397         * modules/netinet_in (Makefile.am): Likewise.
46398         * modules/poll-h (Makefile.am): Likewise.
46399         * modules/pthread (Makefile.am): Likewise.
46400         * modules/pty (Makefile.am): Likewise.
46401         * modules/sched (Makefile.am): Likewise.
46402         * modules/search (Makefile.am): Likewise.
46403         * modules/selinux-h (Makefile.am): Likewise.
46404         * modules/signal (Makefile.am): Likewise.
46405         * modules/spawn (Makefile.am): Likewise.
46406         * modules/stdarg (Makefile.am): Likewise.
46407         * modules/stddef (Makefile.am): Likewise.
46408         * modules/stdint (Makefile.am): Likewise.
46409         * modules/stdio (Makefile.am): Likewise.
46410         * modules/stdlib (Makefile.am): Likewise.
46411         * modules/string (Makefile.am): Likewise.
46412         * modules/strings (Makefile.am): Likewise.
46413         * modules/sys_file (Makefile.am): Likewise.
46414         * modules/sys_ioctl (Makefile.am): Likewise.
46415         * modules/sys_select (Makefile.am): Likewise.
46416         * modules/sys_socket (Makefile.am): Likewise.
46417         * modules/sys_stat (Makefile.am): Likewise.
46418         * modules/sys_time (Makefile.am): Likewise.
46419         * modules/sys_times (Makefile.am): Likewise.
46420         * modules/sys_utsname (Makefile.am): Likewise.
46421         * modules/sys_wait (Makefile.am): Likewise.
46422         * modules/sysexits (Makefile.am): Likewise.
46423         * modules/termios (Makefile.am): Likewise.
46424         * modules/time (Makefile.am): Likewise.
46425         * modules/unistd (Makefile.am): Likewise.
46426         * modules/wchar (Makefile.am): Likewise.
46427         * modules/wctype (Makefile.am): Likewise.
46429 2010-10-04  Bruno Haible  <bruno@clisp.org>
46431         read-file tests: Avoid a test failure on NonStop Kernel.
46432         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
46433         a regular file.
46434         Reported by Joachim Schmitz <schmitz@hp.com>.
46436 2010-10-03  Bruno Haible  <bruno@clisp.org>
46438         gnulib-tool: Fixes for --create-testdir with --libtool.
46439         * gnulib-tool (func_get_automake_snippet): Don't augment
46440         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
46441         an executable.
46442         (func_create_testdir): Handle module 'alloca' like func_import.
46443         Reported by Bruce Korb <bruce.korb@gmail.com>.
46445 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
46447         Avoid some lines longer than 80 characters.
46448         * lib/stdint.in.h: Break long comment lines.
46449         * lib/math.in.h: Likewise.
46450         (_GL_NUM_UINT_WORDS): New macro, for readability.
46451         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
46452         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
46453         * lib/stdlib.in.h: Likewise.
46454         * lib/spawn.in.h: Likewise.
46455         * lib/sys_socket.in.h: Update an URL.
46456         * lib/sys_stat.in.h: Break long line.
46458 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
46460         Improve pmccabe2html.
46461         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
46462         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
46463         when the sources change. Remove the line in the HTML about "Used
46464         ranges" (which implied that there might be other unused ranges),
46465         rename "Resume" to "Summary" (easier to understand for more users).
46466         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
46467         styles, and some unnecessary blank lines.
46469 2010-10-03  Bruno Haible  <bruno@clisp.org>
46470             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
46472         acl: Add support for ACLs on NonStop Kernel.
46473         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
46474         Check whether the function aclsort() exists.
46475         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
46476         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
46477         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
46478         (acl_nontrivial [HAVE_ACLSORT]: New function.
46479         (file_has_acl): Implement for NonStop Kernel.
46480         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
46481         (qset_acl): Implement for NonStop Kernel.
46482         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
46483         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
46484         (main): Implement for NonStop Kernel.
46485         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
46486         Kernel. Handle this flavor.
46487         * tests/test-set-mode-acl.sh: Likewise.
46488         * tests/test-copy-acl.sh: Likewise.
46489         * tests/test-copy-file.sh: Likewise.
46491 2010-10-03  Bruno Haible  <bruno@clisp.org>
46493         Info about ACLs on NonStop Kernel.
46494         * doc/acl-resources.txt: Add info about NonStop Kernel.
46495         References by Joachim Schmitz <schmitz@hp.com>.
46497 2010-10-02  Bruno Haible  <bruno@clisp.org>
46499         Define missing EDQUOT on NonStop Kernel.
46500         * lib/errno.in.h (EDQUOT): Assign a value if missing.
46501         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
46502         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
46503         missing.
46504         * doc/posix-headers/errno.texi: Mention the NSK bug.
46505         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
46506         Reported by Joachim Schmitz <schmitz@hp.com>.
46508 2010-10-02  Bruno Haible  <bruno@clisp.org>
46510         Update doc for POSIX:2008.
46511         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
46512         Update URL of POSIX specification.
46514 2010-10-02  Bruno Haible  <bruno@clisp.org>
46516         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
46517         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
46518         from gnulib, not from Automake.
46520 2010-10-02  Bruno Haible  <bruno@clisp.org>
46522         New module 'system-posix'.
46523         * modules/system-posix: New file.
46524         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
46525         module is present.
46526         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46527         GNULIB_SYSTEM_POSIX.
46528         * modules/stdlib (Depends-on): Remove sys_wait.
46529         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
46530         * doc/posix-functions/system.texi: Mention the new module.
46531         * doc/posix-headers/stdlib.texi: Likewise.
46532         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
46533         define test_sys_wait_macros to a no-op.
46534         Reported by Sam Steingold <sds@gnu.org>.
46536 2010-09-30  Bruno Haible  <bruno@clisp.org>
46538         More renaming from 'getdate' to 'get_date'.
46539         * doc/get_date.texi: Renamed from doc/getdate.texi.
46540         * modules/get_date (Files): Update.
46541         * MODULES.html.sh (Date and time <time.h>): Update.
46542         * DEPENDENCIES: Update.
46543         * gnulib-tool: Update comment.
46544         * m4/bison.m4 (gl_BISON): Likewise.
46545         * m4/get_date.m4 (gl_GET_DATE): Likewise.
46547 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
46549         bootstrap: support ACLOCAL_FLAGS during aclocal
46550         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
46551         can add additional -I dir for third-party .m4 files.
46553 2010-09-30  Eric Blake  <eblake@redhat.com>
46555         bootstrap: use glibtoolize on MacOS
46556         * build-aux/bootstrap (check_versions): Convert libtool into
46557         libtoolize.
46558         (tool search): Move libtool check earlier, and look for
46559         glibtoolize for MacOS.
46560         (gnulib_tool_options): Auto-add --libtool when appropriate.
46561         Reported by Justin Clift.
46563         poll: fix typo that broke test on MacOS
46564         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
46565         Reported by Justin Clift.
46567         getdate: rename to get_date
46568         Note: getdate.h is not renamed, to minimize client impact.
46569         * modules/getdate: Mark obsolete.  Move old contents...
46570         * modules/get_date: ...to new module name.
46571         * modules/getdate-tests: Move...
46572         * modules/get_date-tests: ...here.
46573         * m4/getdate.m4: Move...
46574         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
46575         * lib/getdate.y: Move...
46576         * lib/get_date.y: ...here.
46577         * tests/test-getdate.c: Move...
46578         * tests/test-get_date.c: ...here.
46579         * doc/posix-functions/getdate.texi (getdate): Update name.
46580         * NEWS: Mention the change.
46582 2010-09-29  Bruno Haible  <bruno@clisp.org>
46584         Separate the module 'waitpid' from the module 'sys_wait'.
46585         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
46586         present.
46587         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
46588         gl_MODULE_INDICATOR_FOR_TESTS.
46589         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
46590         * modules/sys_wait (Depends-on): Remove waitpid.
46591         (Makefile.am): Substitute GNULIB_WAITPID.
46592         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
46593         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
46594         signature only if the 'waitpid' module is present.
46595         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
46596         * NEWS: Mention the change.
46597         * modules/grantpt (Depends-on): Add waitpid.
46598         * modules/wait-process (Depends-on): Likewise.
46600 2010-09-29  Bruno Haible  <bruno@clisp.org>
46602         More tests for module 'sys_wait'.
46603         * modules/sys_wait-c++-tests: New file.
46604         * tests/test-sys_wait-c++.cc: New file.
46605         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
46606         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
46608 2010-09-29  Bruno Haible  <bruno@clisp.org>
46610         New module 'waitpid'.
46611         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
46612         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
46613         Don't include <process.h>.
46614         (waitpid): Declare only, using modern idiom.
46615         * m4/waitpid.m4: New file.
46616         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
46617         * modules/waitpid: New file.
46618         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
46619         (Makefile.am): Update.
46620         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
46622 2010-09-28  Bruno Haible  <bruno@clisp.org>
46624         poll: Assume ANSI C.
46625         * lib/poll.c (poll): Use an ANSI C declaration.
46627 2010-09-28  Bruno Haible  <bruno@clisp.org>
46629         poll-h: Create poll.h on all platforms.
46630         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
46631         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
46632         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
46633         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
46634         (gl_REPLACE_POLL_H): Don't set POLL_H.
46635         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
46636         * modules/poll-h (Depends-on): Add include_next.
46637         (Makefile.am): Create poll.h unconditionally. Substitute also
46638         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
46640 2010-09-28  Bruno Haible  <bruno@clisp.org>
46642         Tests for module 'poll-h'.
46643         * modules/poll-h-c++-tests: New file.
46644         * tests/test-poll-h-c++.cc: New file.
46646         Tests for module 'poll-h'.
46647         * modules/poll-h-tests: New file.
46648         * tests/test-poll-h.c: New file.
46650 2010-09-28  Bruno Haible  <bruno@clisp.org>
46652         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
46653         * modules/poll-h (Depends-on): Add 'extensions'.
46655 2010-09-28  Bruno Haible  <bruno@clisp.org>
46657         New module 'poll-h'.
46658         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
46659         (poll): Use modern idiom.
46660         * modules/poll-h: New file.
46661         * modules/poll (Files): Remove lib/poll.in.h.
46662         (Depends-on): Add poll-h.
46663         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
46664         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
46665         * m4/poll_h.m4: New file.
46666         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
46667         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
46668         and invoke gl_REPLACE_POLL_H.
46669         * lib/poll.c: Use common idiom.
46670         * tests/test-poll.c: Likewise.
46671         * doc/posix-headers/poll.texi: Mention the poll-h module.
46672         Suggested by Eric Blake.
46674 2010-09-26  Bruno Haible  <bruno@clisp.org>
46676         sys_wait: Implement WSTOPSIG.
46677         * lib/sys_wait.in.h (WSTOPSIG): New macro.
46678         Reported by Simon Josefsson.
46680 2010-09-26  Simon Josefsson  <simon@josefsson.org>
46682         stdlib, sys_wait: Avoid compilation error on mingw.
46683         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
46685 2010-09-26  Bruno Haible  <bruno@clisp.org>
46687         stdlib tests: Avoid code duplication.
46688         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
46689         * modules/sys_wait-tests (Files): Likewise.
46690         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
46691         * tests/test-stdlib.c: Include test-sys_wait.h.
46692         (main): Invoke test_sys_wait_macros.
46693         * tests/test-sys_wait.c: Include test-sys_wait.h.
46694         (main): Invoke test_sys_wait_macros.
46696 2010-09-25  Simon Josefsson  <simon@josefsson.org>
46698         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
46699         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
46700         sure Windows sockets are working before calling getaddrinfo.
46701         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
46702         * doc/gnulib.texi (Windows sockets): Fix typo.
46704 2010-09-25  Bruno Haible  <bruno@clisp.org>
46706         Tests for module 'regex-quote'.
46707         * modules/regex-quote-tests: New file.
46708         * tests/test-regex-quote.c: New file.
46710         New module 'regex-quote'.
46711         * lib/regex-quote.h: New file.
46712         * lib/regex-quote.c: New file.
46713         * modules/regex-quote: New file.
46714         Suggested by Reuben Thomas <rrt@sc3d.org>.
46716 2010-09-24  Bruno Haible  <bruno@clisp.org>
46718         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
46719         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
46721 2010-09-23  Bruno Haible  <bruno@clisp.org>
46723         setenv: Relax license.
46724         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
46725         Blake.
46726         Requested by Eric Blake.
46728 2010-09-22  Bruno Haible  <bruno@clisp.org>
46730         termios: Relax license.
46731         * modules/termios (License): Change to LGPLv2+.
46732         Requested by Eric Blake.
46734 2010-09-22  Bruno Haible  <bruno@clisp.org>
46736         threadlib: Allow the package to change the default to 'no'.
46737         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
46738         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
46739         Reported by Paul Eggert.
46741 2010-09-22  Pádraig Brady  <P@draigbrady.com>
46742             Bruno Haible  <bruno@clisp.org>
46744         Fix endless loop in mbmemcasecoll.
46745         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
46746         byte.
46747         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
46749 2010-09-22  Bruno Haible  <bruno@clisp.org>
46751         Tests for module 'memcoll'.
46752         * modules/memcoll-tests: New file.
46753         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
46755         memcoll, xmemcoll: Clarify size vs. length.
46756         * modules/memcoll.c (memcoll0): Clarify specification.
46757         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
46758         passed to collate_error.
46760 2010-09-22  Bruno Haible  <bruno@clisp.org>
46762         Tests for module 'memcasecmp'.
46763         * modules/memcasecmp-tests: New file.
46764         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
46766 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
46768         * lib/pthread.in.h: Add split double-inclusion guard, and include
46769         system <pthread.h> if there is one.  Use @@-style as in other
46770         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
46771         pthread.h doesn't.
46772         (pthread_mutexattr_destroy, pthread_mutexattr_init):
46773         (pthread_mutexattr_settype, pthread_mutex_trylock):
46774         New static inline functions, if there's no system <pthread.h>.
46775         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
46776         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
46777         Approximate with mutexes if the system lacks spinlocks, as in
46778         MacOS.
46779         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
46780         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
46781         @@-style.  Check for spinlocks separately.
46782         (gl_PTHREAD_DEFAULTS): New macro.
46783         * modules/pthread: Redo to use a more typical style for in.h files.
46785 2010-09-21  Eric Blake  <eblake@redhat.com>
46787         net_if: enhance tests
46788         * tests/test-net_if.c (main): Move signature checks earlier.
46789         Print failures to stderr.
46790         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
46791         Document the bug that we do not yet fix.
46793 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
46795         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
46796         about gnulib, not GSS.
46798 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
46800         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
46801         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
46802         for Emacs.
46803         * build-aux/pmccabe2html: Make Makefile.am example code more
46804         cut-and-paste friendly.
46806 2010-09-21  Simon Josefsson  <simon@josefsson.org>
46808         * tests/test-net_if.c: New file.
46809         * modules/net_if-tests: New file.
46811 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
46813         pthread: add pthread_spin_destroy
46814         * lib/pthread.in.h (pthread_spin_destroy): New function.
46816 2010-09-19  Bruno Haible  <bruno@clisp.org>
46818         gnulib-tool: Fix --help output.
46819         * gnulib-tool (func_usage): Fix help message.
46820         Reported by Reuben Thomas <rrt@sc3d.org>.
46822 2010-09-18  Jim Meyering  <meyering@redhat.com>
46824         maint.mk: avoid unexpanded \n in two diagnostics
46825         * top/maint.mk (sc_prohibit_always_true_header_tests):
46826         Don't use a literal \n in a halt=... assignment.  It would not be
46827         expanded, and the two \n bytes would appear in the diagnostic output
46828         rather than the desired newline.  Use halt=$$(printf ... instead.
46829         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
46831 2010-09-18  Bruno Haible  <bruno@clisp.org>
46833         netinet_in: Doc tweak.
46834         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
46835         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
46837 2010-09-18  Jim Meyering  <meyering@redhat.com>
46839         init.sh: correct an outdated comment
46840         * tests/init.sh (create_exe_shims_):  s/function/alias/
46842         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
46843         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
46844         a file named "*.exe" is removed between the glob expansion and the
46845         processing of that oddly named file.
46847 2010-09-17  Eric Blake  <eblake@redhat.com>
46849         mirbsd: add some more support
46850         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
46851         in BSD family.
46852         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
46853         devices as OpenBSD.
46854         * m4/host-os.m4 (mirbsd): Add MirBSD.
46856         tests: fix unportable assumption on sys/wait.h
46857         * tests/test-sys_wait.c (main): Relax test.
46858         * tests/test-stdlib.c (main): Likewise.
46860         init.sh: accommodate directory with no .exes
46861         * tests/init.sh: Accomodate directory containing only scripts.
46863         tests: avoid compiler warning
46864         * tests/test-stdlib.c (main): Use the variable.
46866         fdutimens, fdutimensat: update signature, again
46867         * lib/utimens.h (gl_futimens): Delete, and move signature...
46868         (fdutimens): ...here.
46869         (fdutimensat): Rearrange signature.
46870         (lutimensat): Rename variable for clarity.
46871         * lib/fdutimensat.c (fdutimensat): Update signature.
46872         * lib/utimens.c (fdutimens): Likewise.
46873         (gl_futimens): Delete.
46874         (utimens, lutimens): Update callers.
46875         * lib/futimens.c (futimens): Likewise.
46876         * tests/test-fdutimensat.c: Likewise.
46877         * tests/test-utimens.c: Likewise.
46878         * tests/test-futimens.h: Update comment.
46879         * NEWS: Mention this.
46880         Suggested by Paul Eggert.
46882 2010-09-17  Bruno Haible  <bruno@clisp.org>
46884         Take over the maintenance of some older macros from Autoconf.
46885         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
46886         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
46887         GNU Autoconf.
46888         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
46889         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
46891 2010-09-17  Eric Blake  <eblake@redhat.com>
46893         fdutimensat: drop atflag validation
46894         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
46895         with valid fd, to close a race scenario where futimens is
46896         unsupported and FILE was replaced by a symlink.
46897         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
46898         accordingly.
46899         Suggested by Paul Eggert.
46901 2010-09-16  Bruno Haible  <bruno@clisp.org>
46903         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
46904         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
46906 2010-09-16  Bruno Haible  <bruno@clisp.org>
46908         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
46909         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
46910         login_tty exists.
46911         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
46913 2010-09-16  Bruno Haible  <bruno@clisp.org>
46915         login_tty: Make the replacement code work on BSD systems.
46916         * lib/login_tty.c: Include <sys/ioctl.h>.
46917         (login_tty): Use ioctl TIOCSCTTY when available.
46918         * modules/login_tty (Depends-on): Add sys_ioctl.
46919         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
46921 2010-09-16  Bruno Haible  <bruno@clisp.org>
46923         login_tty: Stricter unit test.
46924         * modules/login_tty-tests (Depends-on): Add tcgetsid.
46925         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
46926         and tcgetsid() after login_tty.
46927         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
46929 2010-09-16  Bruno Haible  <bruno@clisp.org>
46931         New module 'tcgetsid'.
46932         * lib/tcgetsid.c: New file.
46933         * m4/tcgetsid.m4: New file.
46934         * modules/tcgetsid: New file.
46935         * modules/termios (Depends-on): Add c++defs, warn-on-use.
46936         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
46937         GNULIB_TCGETSID, HAVE_TCGETSID.
46938         * lib/termios.in.h: Include <sys/types.h>.
46939         (tcgetsid): New declaration.
46940         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
46941         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
46942         * doc/posix-functions/tcgetsid.texi: Mention the new module.
46943         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
46945 2010-09-16  Bruno Haible  <bruno@clisp.org>
46947         Tests for module 'termios'.
46948         * modules/termios-c++-tests: New file.
46949         * modules/termios-tests: New file.
46950         * tests/test-termios-c++.cc: New file.
46951         * tests/test-termios.c: New file.
46953         New module 'termios'.
46954         * modules/termios: New file.
46955         * lib/termios.in.h: New file.
46956         * m4/termios_h.m4: New file.
46957         * doc/posix-headers/termios.texi: Mention the new module.
46959 2010-09-16  Eric Blake  <eblake@redhat.com>
46961         fdutimensat: add an atflag parameter
46962         * lib/fdutimensat.c (fdutimensat): Add new parameter.
46963         * lib/utimens.h (fdutimensat): Update prototype.
46964         * tests/test-fdutimensat.c: Adjust test to match.
46965         * NEWS: Document the change.
46966         Suggested by Paul Eggert.
46968 2010-09-16  Bruno Haible  <bruno@clisp.org>
46970         Fix typos in comments.
46971         * lib/striconveh.h: Fix typo in comment.
46972         * lib/login_tty.c (login_tty): Likewise.
46974 2010-09-15  Bruno Haible  <bruno@clisp.org>
46976         stdlib: clarify MirBSD WEXITSTATUS bug
46977         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
46978         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
46980 2010-09-15  Eric Blake  <eblake@redhat.com>
46982         stdlib: work around MirBSD WEXITSTATUS bug
46983         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
46984         * modules/stdlib (Depends-on): Add sys_wait.
46985         * tests/test-sys_wait.c (main): Enhance test.
46986         * tests/test-stdlib.c (main): Likewise.
46987         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
46989         docs: mention MacOS issue with WEXITSTATUS(constant)
46990         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
46991         issue.
46992         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
46994         strnlen: add tests
46995         * modules/strnlen-tests: New file.
46996         * tests/test-strnlen.c: Likewise.
46998 2010-09-14  Bruno Haible  <bruno@clisp.org>
47000         unistr/base: Avoid link errors when module 'libunistring' is also used.
47001         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
47002         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
47003         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
47004         Declare also when HAVE_LIBUNISTRING is set.
47005         Reported by Pádraig Brady <P@draigbrady.com>.
47007 2010-09-14  Eric Blake  <eblake@redhat.com>
47009         test-rawmemchr: make more robust
47010         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
47011         (Depends-on, configure.ac): Add needed prerequisites to use it.
47012         * modules/memchr-tests (Files, Depends-on, configure.ac):
47013         Likewise, to avoid implicit reliance on memchr module prereqs.
47014         * tests/test-memchr.c (main): Ensure proper masking.
47015         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
47016         reads.
47018         memchr: detect glibc Alpha bug
47019         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
47020         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
47021         Alpha.
47022         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
47023         * tests/test-memchr.c (main): Enhance test.
47024         Reported by Nelson H. F. Beebe.
47026 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
47028         fts, getcwd, glob: audit for dirfd returning -1
47029         * lib/fts.c (opendir): Remove #define; no longer used.
47030         (opendirat): New arg PDIR_FD.  All callers changed.
47031         (fts_build, _opendir2): Use new opendirat to avoid the need for
47032         dirfd, or for checking whether dirfd returns a negative value.
47033         Don't use opendir; always use openat followed by fdopendir.
47034         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
47035         it.
47036         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
47037         returns -1 here.
47038         * modules/fts (Depends-on): Remove dirfd.
47039         * modules/getcwd (Depends-on): Likewise.
47041 2010-09-13  Eric Blake  <eblake@redhat.com>
47043         float: fix broken MirBSD header
47044         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
47045         * doc/posix-headers/float.texi (float.h): Document it.
47047 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
47049         fts: use O_NOFOLLOW to avoid race condition when opening a directory
47050         * lib/fts.c (opendirat): New arg extra_flags.
47051         (__opendir2): Use it to avoid following symlinks when opening
47052         a directory, if symlinks are not supposed to be followed.  See
47053         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
47055         fdopendir: preserve argument fd before returning
47056         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
47057         (fdopendir_with_dup, fd_clone_opendir): New static functions.
47058         (fdopendir): Use them, arranging for FD to be open to the same
47059         directory that it was when it started.  (It might be temporarily
47060         closed while fdopendir is running, so this not thread- or
47061         signal-safe.)  Be careful to do the right thing even when file
47062         descriptors are scarce and dup fails with errno == EMFILE.  See
47063         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
47065 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
47067         regex: Pass the system regex if its only problem is 32-bit regoff_t.
47068         * NEWS: Document change.
47069         * m4/regex.m4: Disable test for regoff_t size.
47071 2010-09-13  Jim Meyering  <meyering@redhat.com>
47073         fts: don't operate on an invalid file descriptor after failed dup
47074         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
47075         negative file descriptor.
47077 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
47079         savedir: add streamsavedir, deprecate fdsavedir
47080         * NEWS: Mention deprecation of fdsavedir.
47081         * lib/savedir.c (streamsavedir): New extern function, whose name
47082         ends in "savedir" to be consistent with the others.  This differs
47083         from savedirstream in that it doesn't close its argument.  The
47084         next version of GNU tar will use this instead of fdsavedir, to
47085         avoid some race conditions and conserve file descriptors.
47086         (savedirstream): Reimplement as a wrapper around streamsavedir.
47087         (fdsavedir): Add a comment deprecating this function.  As far as
47088         I know, only GNU tar used it, and GNU tar doesn't need it any more.
47089         * lib/savedir.h (streamsavedir): New decl.
47090         (fdsavedir): Add a comment deprecating this.
47092 2010-09-10  Bruno Haible  <bruno@clisp.org>
47094         langinfo: Fix last commit.
47095         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
47096         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
47097         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47099 2010-09-10  Bruno Haible  <bruno@clisp.org>
47101         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
47102         * lib/progreloc.c (O_EXEC): Define fallback.
47104 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
47106         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
47107         * NEWS: Document recent changes to fcntl-h.
47108         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
47109         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
47110         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
47111         Similarly for O_SEARCH; this last was already true, but not documented.
47112         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
47113         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
47114         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
47115         Likewise.
47116         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
47117         is zero, not whether it is defined.
47118         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
47119         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
47120         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
47122 2010-09-10  Bruno Haible  <bruno@clisp.org>
47124         langinfo, nl_langinfo: Fix for IRIX 5.3.
47125         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
47126         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
47127         HAVE_LANGINFO_YESEXPR.
47128         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
47129         HAVE_LANGINFO_YESEXPR.
47130         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
47131         HAVE_LANGINFO_T_FMT_AMPM is 0.
47132         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
47133         HAVE_LANGINFO_YESEXPR is 0.
47134         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
47135         NOEXPR.
47136         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
47137         * doc/posix-functions/nl_langinfo.texi: Likewise.
47138         Reported by Eric Blake.
47140 2010-09-10  Bruno Haible  <bruno@clisp.org>
47142         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
47143         * doc/glibc-functions/login_tty.texi: Mention the include file problem
47144         on FreeBSD 8.0 and OpenBSD 4.6.
47145         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
47146         * m4/pty_h.m4 (gl_PTY_H): Likewise.
47147         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
47148         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
47149         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
47150         ac_includes_default.
47151         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
47153 2010-09-09  Eric Blake  <eblake@redhat.com>
47155         strsignal: work around NetBSD bug
47156         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
47157         * lib/string.in.h (includes): Likewise.
47158         * doc/posix-functions/strsignal.texi (strsignal): Document the
47159         bug.
47160         Reported by Nelson H. F. Beebe.
47162         gnulib-tool: work with NetBSD /bin/sh
47163         * gnulib-tool (func_cache_var, func_cache_lookup_module)
47164         (func_get_description, func_get_comment, func_get_status)
47165         (func_get_notice, func_get_applicability, func_get_filelist)
47166         (func_get_dependencies, func_get_autoconf_early_snippet)
47167         (func_get_autoconf_snippet, func_get_automake_snippet)
47168         (func_get_include_directive, func_get_link_directive)
47169         (func_get_license, func_get_maintainer, func_import): Avoid
47170         shell syntax errors from parsing syntax extensions.
47172 2010-09-09  Bruno Haible  <bruno@clisp.org>
47174         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
47175         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
47176         a reliable way to determine whether the 'alias' command works.
47178 2010-09-08  Jim Meyering  <meyering@redhat.com>
47180         init.sh: penalize a set-x-impaired shell; don't disqualify it
47181         * tests/init.sh: Too many shells corrupt application stderr when
47182         you set -x, so we can't afford to disqualify them, since at least
47183         on Irix-6.5, that would disqualify all bourne shells.
47184         Instead, use a two-pass approach.
47185         On the first pass, try to find a shell that meets the stricter
47186         condition that set -x does not corrupt stderr.
47187         If no shell meets the stricter condition, retest each candidate
47188         shell, but without that extra condition.  Finally, when
47189         VERBOSE=yes is requested and set -x might cause trouble, simply
47190         issue a warning and refrain from enabling debug output.
47192 2010-09-08  Eric Blake  <eblake@redhat.com>
47194         unsetenv: fix OpenBSD bug
47195         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
47196         * doc/posix-functions/unsetenv.texi (unsetenv): Update
47197         documentation.
47198         Reported by Jim Meyering.
47200         strtod: work around IRIX 6.5 bug
47201         * lib/strtod.c (strtod): Reparse number on shorter string if
47202         exponent parse was invalid.
47203         * tests/test-strtod.c (main): Add check for "0x1p 2".
47204         Reported by Tom G. Christensen.
47206         getopt: optimize previous patch
47207         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
47208         empty variable.  Speed up awk script.
47209         Reported by Paolo Bonzini.
47211 2010-09-08  Jim Meyering  <meyering@redhat.com>
47213         test.sh: disqualify shells for which set -x corrupts stderr
47214         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
47215         and OpenBSD 4.7.  They make it so with "set -x", environment settings
47216         appear in stderr output.  For example, this command:
47217             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
47218         prints "P=1" on those two systems:
47220 2010-09-08  Bruno Haible  <bruno@clisp.org>
47222         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
47223         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
47224         commands, because some shells ignore redirections when there is an
47225         error in the command lookup.
47226         Reported by Eric Blake.
47228 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
47230         * lib/regex.h: Fix a mention of `regex_compile' (should be
47231         `re_compile_pattern').
47232         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
47233         (re_set_registers): Correct name of parameter in comment.
47235         * doc/regex.texi: Add documentation for missing syntax flags.
47236         Remove commented-out documentation of defunct syntax option
47237         RE_NO_EMPTY_ALTS.
47238         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
47239         Add documentation of re_set_registers.
47240         Document trick to re-use a pattern buffer by setting fastmap manually.
47241         Update documentation of struct re_pattern_buffer per public members.
47242         Uncomment documentation of equivalence class operators and
47243         collating symbol operators, since they are now implemented,
47244         Explain leftmost-longest matching in relation to alternatives.
47245         Tidy documentation of substring matching.
47246         Remove POSIX documentation, which is done better in
47247         glibc, and refer the reader there. Keep BSD API documentation, as
47248         that is not readily available elsewhere.
47250 2010-09-07  Eric Blake  <eblake@redhat.com>
47252         getopt: handle POSIXLY_CORRECT set but not exported
47253         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
47254         export state of POSIXLY_CORRECT, due to bash set -o posix.
47255         Reported by Dustin J. Mitchell.
47257 2010-09-05  Bruno Haible  <bruno@clisp.org>
47259         gnulib-tool: Highlight the changed options.
47260         * gnulib-tool (func_usage): Display the --import, --add-import,
47261         --remove-import explanations in bold font.
47263 2010-09-06  Karl Berry  <karl@gnu.org>
47265         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
47267 2010-09-05  Bruno Haible  <bruno@clisp.org>
47269         uniwidth/width: Update comment.
47270         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
47271         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
47273 2010-09-05  Bruno Haible  <bruno@clisp.org>
47275         isinf, isnan: Relax license.
47276         * modules/isinf (License): Change from GPL to LGPL, with consent from
47277         Ben Pfaff.
47278         * modules/isnan (License): Likewise.
47279         Requested by Ludovic Courtès.
47281 2010-09-04  Bruno Haible  <bruno@clisp.org>
47283         gnulib-tool: Help migration from --import to --add-import or --update.
47284         * gnulib-tool: Emit a verbose error message when --import is used
47285         without any module name.
47287 2010-09-04  Bruno Haible  <bruno@clisp.org>
47289         Update doc about gnulib-tool.
47290         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
47291         'gnulib-tool --update' in more detail.
47292         Reported by Eric Blake.
47294 2010-09-04  Bruno Haible  <bruno@clisp.org>
47296         gnulib-tool: Change --import. New options --add/remove-import.
47297         * gnulib-tool: New options --add-import, --remove-import.
47298         (func_usage): Document them.
47299         (have_associative): Define always.
47300         (func_import): In import mode, don't merge the specified settings with
47301         the cached settings. Implement remove-import mode.
47302         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
47303         Explain when to use them versus --import.
47304         (Simple update): Use --add-import instead of --import.
47305         * NEWS: Mention the change.
47307 2010-09-04  Bruno Haible  <bruno@clisp.org>
47309         * doc/gnulib-tool.texi (Initial import): Update paragraph about
47310         separate gnulib.mk.
47312 2010-09-04  Bruno Haible  <bruno@clisp.org>
47314         gnulib-tool: Don't talk about CVS any more.
47315         * gnulib-tool (func_usage, func_import): Write "version control"
47316         instead of CVS.
47318 2010-09-04  Jim Meyering  <meyering@redhat.com>
47320         maint.mk: avoid obscure sc_copyright_check failure in coreutils
47321         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
47322         false positives (whose names may be ill-chosen) when searching
47323         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
47324         would cause a false-positive.
47326         avoid coreutils "make distcheck" failure
47327         Coreutils tests with an absolute build directory name that contains
47328         a space.  Not quoting this directory name caused a failure.
47329         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
47330         * tests/test-vc-list-files-cvs.sh: Likewise.
47332 2010-09-04  Bruno Haible  <bruno@clisp.org>
47334         gnulib-tool: Avoid error when run in a package without Makefile.am.
47335         * gnulib-tool: When collecting the m4dirs in a package that does not
47336         have a Makefile.am, eliminate those directories that contain no
47337         gnulib-cache.m4. Fix expression that counts these directories.
47339 2010-09-04  Bruno Haible  <bruno@clisp.org>
47341         update-copyright test: Improve output when perl is missing or too old.
47342         * tests/test-update-copyright.sh: Move test of Perl version down after
47343         the test whether Perl exists. Provide an explanation relating Perl's
47344         error message to Automake's SKIP: message.
47346 2010-09-04  Bruno Haible  <bruno@clisp.org>
47348         Don't augment PATH in TESTS_ENVIRONMENT.
47349         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
47350         set abs_aux_dir instead of augmenting PATH.
47351         * modules/vc-list-files-tests (Makefile.am): Likewise.
47352         * tests/test-update-copyright.sh: Augment PATH here.
47353         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
47354         path_prepend_.
47355         * tests/test-vc-list-files-git.sh: Likewise.
47357 2010-09-04  Jim Meyering  <meyering@redhat.com>
47359         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
47360         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
47362 2010-09-04  Bruno Haible  <bruno@clisp.org>
47364         strdup: Fix compilation error in C++ mode.
47365         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
47366         the macro.
47368 2010-09-04  Bruno Haible  <bruno@clisp.org>
47370         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
47371         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
47372         macro into a function.
47373         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
47375 2010-09-04  Bruno Haible  <bruno@clisp.org>
47377         Set PATH_SEPARATOR the same way autoconf does.
47378         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
47379         the value of PATH_SEPARATOR the same way autoconf-generated configure
47380         scripts do.
47381         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
47382         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
47384 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
47386         Set PATH_SEPARATOR the same way autoconf does.
47387         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
47388         the same way autoconf-generated configure scripts do.
47389         * posix-modules: Likewise.
47391 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
47393         hash: fix safe_hasher const typo
47394         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
47395         const; otherwise, there is a type error later.
47397 2010-09-02  Jim Meyering  <meyering@redhat.com>
47399         test-update-copyright.sh: require perl 5.8.0
47400         * tests/test-update-copyright.sh: Require 5.8.0,
47401         which Tom G. Christensen has confirmed is adequate,
47402         while 5.6.1 is not.
47404 2010-09-02  Eric Blake  <eblake@redhat.com>
47406         tests: init.sh improvements for re-exec'ing with zsh
47407         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
47408         -vx through shell re-exec.
47409         Reported by Tom G. Christensen.
47411         wctype: fix typo in previous commit
47412         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
47413         Reported by Ludovic Courtès.
47415 2010-09-02  Jim Meyering  <meyering@redhat.com>
47417         test-update-copyright.sh: skip test if Perl is too old
47418         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
47419         Reported by Tom G. Christensen.
47421 2010-09-02  Bruno Haible  <bruno@clisp.org>
47423         wctype: Avoid compilation error on IRIX 6.5.30.
47424         * lib/wctype.in.h (iswblank): Declare with a replacement if
47425         REPLACE_ISWBLANK is set.
47426         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
47427         declared. Set REPLACE_ISWBLANK.
47428         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
47429         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
47430         * doc/posix-headers/wctype.texi: Likewise.
47431         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47433 2010-09-01  Bruno Haible  <bruno@clisp.org>
47435         New module 'socketlib'.
47436         * modules/socketlib: New file.
47437         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
47438         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
47439         * modules/sockets (Depends-on): Add socketlib.
47440         Suggested by Sam Steingold <sds@gnu.org>.
47442 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
47444         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
47446         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
47447         when one needs search access to a directory but not read access.
47448         On systems where it is available, it works in some cases where
47449         O_RDONLY does not, namely on directories that are searchable but
47450         not readable, and which need only to be searchable.  If O_SEARCH
47451         is not available, fall back to the traditional method of using
47452         O_RDONLY.
47454         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
47455         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
47456         when opening a directory that needs only to be searchable.
47457         * lib/chdir-safer.c (chdir_no_follow): Likewise.
47458         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
47459         * lib/openat-proc.c (openat_proc_name): Likewise.
47460         * lib/openat.c (openat_needs_fchdir): Likewise.
47461         * lib/save-cwd.c (save_cwd): Likewise.
47462         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
47464 2010-08-28  Bruno Haible  <bruno@clisp.org>
47466         New module 'host-cpu-c-abi'.
47467         * modules/host-cpu-c-abi: New file.
47468         * m4/host-cpu-c-abi.m4: New file, based on part of
47469         clisp/src/m4/general.m4.
47470         Requested by Sam Steingold <sds@gnu.org>.
47472 2010-08-31  Eric Blake  <eblake@redhat.com>
47473         and Jim Meyering  <meyering@redhat.com>
47475         hash: factor, and guard against misbehaving hasher function
47476         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
47477         of table->hasher's return value.  Also protect against a hash value
47478         so large that adding it to table->bucket results in a NULL pointer.
47479         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
47480         Use it in place of open-coded check-and-abort.
47482 2010-08-30  Bruno Haible  <bruno@clisp.org>
47484         hash: silence spurious clang warning
47485         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
47486         Reported by Eric Blake.
47488 2010-08-30  Eric Blake  <eblake@redhat.com>
47490         strstr, memmem, strcasestr: avoid leaked shell message
47491         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
47492         FreeBSD.
47493         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47494         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47496         tests: silence clang warning
47497         * tests/test-malloca.c (do_allocation): Avoid dead store.
47499 2010-08-29  Bruno Haible  <bruno@clisp.org>
47501         gettext: Fix recent mistake.
47502         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
47504 2010-08-29  Bruno Haible  <bruno@clisp.org>
47506         selinux-h: Offer a --without-selinux option.
47507         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
47508         --without-selinux was specified, skip all tests and define
47509         HAVE_SELINUX_SELINUX_H to 0.
47510         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
47511         set LIB_SELINUX to empty.
47512         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
47513         gl_LIBSELINUX. If --without-selinux was specified, replace
47514         selinux/context.h.
47515         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
47517 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47518             Bruno Haible  <bruno@clisp.org>
47520         Make the module 'realloc-gnu' work again on AIX and OSF/1.
47521         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
47522         of HAVE_REALLOC.
47523         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
47524         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
47525         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
47526         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
47528 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47529             Bruno Haible  <bruno@clisp.org>
47531         Make the module 'calloc-gnu' work again on AIX and OSF/1.
47532         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
47533         HAVE_CALLOC.
47534         * lib/xmalloc.c: Update accordingly.
47535         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
47536         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
47537         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
47539 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47540             Bruno Haible  <bruno@clisp.org>
47542         Make the module 'malloc-gnu' work again on AIX and OSF/1.
47543         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
47544         HAVE_MALLOC.
47545         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
47546         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
47547         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
47549 2010-08-29  Bruno Haible  <bruno@clisp.org>
47551         Update modules list.
47552         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
47553         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
47554         (String handling <string.h>): Add astrxfrm.
47555         (File system functions): Add readlinkat.
47557 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47559         Tests for module 'realloc-gnu'.
47560         * modules/realloc-gnu-tests: New file.
47561         * tests/test-realloc-gnu.c: New file.
47563         Tests for module 'calloc-gnu'.
47564         * modules/calloc-gnu-tests: New file.
47565         * tests/test-calloc-gnu.c: New file.
47567         Tests for module 'malloc-gnu'.
47568         * modules/malloc-gnu-tests: New file.
47569         * tests/test-malloc-gnu.c: New file.
47571 2010-08-28  Bruno Haible  <bruno@clisp.org>
47573         Rename module 'realloc' -> 'realloc-gnu'.
47574         * modules/realloc-gnu: New file, copied from modules/realloc.
47575         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
47576         obsolete.
47577         * modules/mgetgroups (Depends-on): Update.
47578         * doc/posix-functions/realloc.texi: Update.
47579         * NEWS: Mention the change.
47581         Rename module 'calloc' -> 'calloc-gnu'.
47582         * modules/calloc-gnu: New file, copied from modules/calloc.
47583         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
47584         obsolete.
47585         * doc/posix-functions/calloc.texi: Update.
47586         * NEWS: Mention the change.
47588         Rename module 'malloc' -> 'malloc-gnu'.
47589         * modules/malloc-gnu: New file, copied from modules/malloc.
47590         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
47591         obsolete.
47592         * modules/argp (Depends-on): Update.
47593         * modules/regex (Depends-on): Update.
47594         * doc/posix-functions/malloc.texi: Update.
47595         * NEWS: Mention the change.
47597 2010-08-28  Eric Blake  <eblake@redhat.com>
47599         pread, pwrite: add missing dependency
47600         * modules/pread (Depends-on): Add extensions.
47601         * modules/pwrite (Depends-on): Likewise.
47603 2010-08-28  Bruno Haible  <bruno@clisp.org>
47605         unistr/u*-strchr: Fix tests dependencies.
47606         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
47607         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
47608         Reported by Ian Beckwith <ianb@erislabs.net>.
47610 2010-08-28  Bruno Haible  <bruno@clisp.org>
47612         read-file: Don't occupy too much unused memory.
47613         * lib/read-file.c (fread_file): Shrink the buffer at the end.
47615 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
47616             Eric Blake  <eblake@redhat.com>
47617             Bruno Haible  <bruno@clisp.org>
47619         read-file: Avoid memory reallocations with regular files.
47620         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
47621         (fread_file): With regular files, use the remaining length as the
47622         initial buffer size.  Check against overflow.
47623         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
47624         sys_stat.
47626 2010-08-28  Bruno Haible  <bruno@clisp.org>
47628         ftello: Relax license.
47629         * modules/ftello (License): Relax to LGPLv2+.
47630         Reported by Eric Blake.
47632 2010-08-28  Bruno Haible  <bruno@clisp.org>
47634         Avoid relocwrapper link errors due to gnulib replacement functions.
47635         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
47636         function.
47637         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47639 2010-08-28  Bruno Haible  <bruno@clisp.org>
47641         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
47642         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
47643         defined.
47644         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
47645         Suggested by Eric Blake.
47647 2010-08-28  Bruno Haible  <bruno@clisp.org>
47649         sys_socket, netdb: Ensure socklen_t gets defined.
47650         * modules/sys_socket (Depends-on): Add socklen.
47651         * modules/netdb (Depends-on): Likewise.
47652         * modules/getaddrinfo (Depends-on): Remove socklen.
47653         * modules/getsockopt (Depends-on): Likewise.
47654         * modules/setsockopt (Depends-on): Likewise.
47655         * tests/test-sys_socket.c: Check that socklen_t is defined.
47656         * tests/test-netdb.c: Likewise.
47657         * m4/socklen.m4: Update comments.
47658         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47660 2010-08-27  Eric Blake  <eblake@redhat.com>
47662         login_tty: add missing dependency
47663         * modules/login_tty (Depends-on): Add pty.
47665 2010-08-26  Eric Blake  <eblake@redhat.com>
47667         lib-symbol-versions: fix m4 quoting
47668         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
47669         format for AC_LINK_IFELSE.
47671         glob: fix compile test
47672         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
47674         btowc: fix missing file
47675         * modules/btowc (Files): Also ship locale-fr.m4.
47677         lseek: fix link test
47678         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
47679         AC_LINK_IFELSE.
47681         include_next: silence autoconf 2.68 warning
47682         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
47683         AC_COMPILE_IFELSE as special.
47684         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
47685         autoconf < 2.68.
47687         acl: fix compilation test
47688         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
47689         AC_COMPILE_IFELSE.
47691 2010-08-26  Bruno Haible  <bruno@clisp.org>
47693         Modernize AC_TRY_RUN invocations.
47694         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
47695         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
47696         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
47697         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
47698         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
47699         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
47700         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
47701         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
47702         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
47703         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
47704         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
47705         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
47706         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
47707         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47708         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
47709         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
47710         gl_MBRLEN_NUL_RETVAL): Likewise.
47711         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
47712         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
47713         Likewise.
47714         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
47715         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
47716         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
47717         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
47718         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
47719         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
47720         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
47721         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
47722         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
47723         Likewise.
47724         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
47725         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
47726         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
47727         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
47728         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
47729         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
47730         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
47731         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
47732         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
47733         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47735 2010-08-26  Bruno Haible  <bruno@clisp.org>
47737         Modernize AC_TRY_LINK invocations.
47738         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
47739         AC_TRY_LINK.
47740         * m4/argp.m4 (gl_ARGP): Likewise.
47741         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
47742         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
47743         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
47744         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
47745         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
47746         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
47747         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
47748         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
47749         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
47750         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
47751         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
47752         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
47753         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
47754         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
47755         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
47756         * m4/hostent.m4 (gl_HOSTENT): Likewise.
47757         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
47758         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
47759         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
47760         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
47761         Likewise.
47762         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
47763         Likewise.
47764         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
47765         Likewise.
47766         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
47767         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
47768         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
47769         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
47770         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
47771         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
47772         * m4/servent.m4 (gl_SERVENT): Likewise.
47773         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
47774         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
47775         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
47776         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
47777         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
47778         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
47779         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
47780         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
47781         * modules/tsearch-tests (configure.ac): Likewise.
47783 2010-08-26  Bruno Haible  <bruno@clisp.org>
47785         Modernize AC_TRY_COMPILE invocations.
47786         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
47787         AC_TRY_COMPILE.
47788         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
47789         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
47790         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
47791         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
47792         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
47793         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
47794         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
47795         * m4/lock.m4 (gl_LOCK): Likewise.
47796         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
47797         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
47798         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
47799         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
47800         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
47801         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
47802         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
47803         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
47804         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
47805         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
47806         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
47807         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
47808         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
47809         extraneous semicolon.
47811 2010-08-26  Jim Meyering  <meyering@redhat.com>
47813         stat-time: relax license LGPL
47814         * modules/stat-time (License): Change from GPL to LGPL,
47815         with consent from all contributors, for use in libguile.
47816         Requested by Ludovic Courtès.
47818 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
47820         poll: return immediately on POLLHUP.
47821         * lib/poll.c (poll): Always set timeout before wait_timeout is
47822         computed.
47824 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47826         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
47827         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
47828         rmdir ("dir/.//"), unlinkat.
47830 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47832         stdbool: avoid spurious failure with modern xlc
47833         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
47835 2010-08-24  Bruno Haible  <bruno@clisp.org>
47837         getloadavg: simplify code
47838         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
47839         gl_have_func. Update comments.
47841 2010-08-24  Eric Blake  <eblake@redhat.com>
47843         getloadavg: don't define SVR4 on cygwin
47844         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
47845         only define SVR4 when -lkvm is required.
47846         Reported by Yaakov Selkowitz.
47848 2010-08-24  Bruno Haible  <bruno@clisp.org>
47850         priv-set: fix comment
47851         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
47853 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
47855         priv-set: fix comments
47856         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
47857         to match code, as suggested by David Bartley in:
47858         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
47860 2010-08-23  Eric Blake  <eblake@redhat.com>
47862         stdbool: avoid rejecting clang
47863         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
47864         * tests/test-stdbool.c: Enable more tests if using the system
47865         <stdbool.h> instead of the gnulib replacement.
47866         (main): Move xlc bug test to a runtime test for all compilers.
47867         Reported by Anders Kaseorg.
47869         argz: fix shell quoting issue
47870         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
47871         Reported by Charles Wilson.
47873 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
47874             Erik Faye-Lund <kusmabite@gmail.com>
47876         poll, select: handle ERROR_BROKEN_PIPE.
47877         * lib/poll.c (win32_compute_revents): Return POLLHUP when
47878         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
47879         * lib/select.c (win32_compute_revents): Do not mark a pipe
47880         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
47882 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
47884         fts: allow compilation with C++
47885         * lib/fts_.h: Specify extern "C" linkage with C++.
47887 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47889         Fix gnulib-tool sed script de-commentation for AIX sed.
47890         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
47891         sed.
47893 2010-08-17  Eric Blake  <eblake@redhat.com>
47895         test-stddef: test for (some) offsetof bugs
47896         * tests/test-stddef.c: Enhance test to ensure correct type of
47897         offsetof.
47898         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
47899         that we are not fixing at this time.
47901 2010-08-15  Bruno Haible  <bruno@clisp.org>
47903         stpncpy: Allow stpncpy to be defined as a macro.
47904         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
47905         if it's already correctly declared.
47906         * lib/string.in.h (stpncpy): Undefine before redefining.
47907         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
47909 2010-08-14  Bruno Haible  <bruno@clisp.org>
47911         Rename module 'memxfrm' to 'amemxfrm'.
47912         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
47913         (amemxfrm): Renamed from memxfrm.
47914         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
47915         (amemxfrm): Renamed from memxfrm.
47916         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
47917         * NEWS: Mention the change.
47918         * MODULES.html.sh (String handling <string.h>): Update.
47919         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
47920         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
47921         * lib/unicase/u16-casexfrm.c: Likewise.
47922         * lib/unicase/u32-casexfrm.c: Likewise.
47923         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
47924         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
47925         * lib/uninorm/u16-normxfrm.c: Likewise.
47926         * lib/uninorm/u32-normxfrm.c: Likewise.
47927         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
47928         memxfrm.
47929         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
47930         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
47931         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
47932         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
47933         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
47934         Suggested by Paul Eggert.
47936 2010-08-14  Bruno Haible  <bruno@clisp.org>
47938         Tests for module 'astrxfrm'.
47939         * modules/astrxfrm-tests: New file.
47940         * tests/test-astrxfrm.c: New file.
47942         New module 'astrxfrm'.
47943         * lib/astrxfrm.h: New file.
47944         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
47945         * modules/astrxfrm: New file.
47947 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
47949         regex: Tweak doc.
47950         * doc/regex.texi (Overview): Don't mention regex.c.
47951         (GNU Regular Expression Compiling): Likewise.
47952         (Match-end-of-line Operator): Mention 'not_eol'.
47954 2010-08-14  Brian Gough  <bjg@gnu.org>
47955             Bruno Haible  <bruno@clisp.org>
47957         git-merge-changelog: add doc relating to use with bzr and hg.
47958         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
47960 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
47962         pthread: fix pthread.h creation for srcdir != builddir
47963         * modules/pthread (Makefile.am): Fix the rule to work also in a
47964         non-srcdir build.
47966 2010-08-13  Karl Berry  <karl@gnu.org>
47968         * doc/regex.texi (Predefined Syntaxes): @smallexample.
47969         * doc/posix-*/*: force line break before @url of POSIX
47970         specifications.
47971         Suggested by Werner Lemberg.
47973 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
47975         strtod: fix const diagnostic
47976         * lib/strtod.c (strtod): Don't assign const char * to char *,
47977         as this elicits a warning from GCC when warnings are enabled.
47979 2010-08-10  Pádraig Brady  <P@draigbrady.com>
47980         and Eric Blake  <eblake@redhat.com>
47982         copy-acl: ignore ENOTSUP on HP-UX
47983         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
47984         so that it is available for HP-UX.
47985         * lib/copy-acl.c (qcopy_acl): Use it.
47986         Reported by Patrick M. Callahan.
47988 2010-08-10  Eric Blake  <eblake@redhat.com>
47990         open, chown: relax license
47991         * modules/open (License): Change to LGPLv2+, with consent by all
47992         authors, for use in augeas.
47993         * modules/chown (License): Likewise.
47994         * modules/lchown (Likewise): Likewise.
47995         Requested by Adam Stokes.
47997 2010-08-09  Karl Berry  <karl@gnu.org>
47999         * build-aux/ar-lib: new file, import from Automake.
48000         * config/srclist.txt: autocheck for updates.
48002 2010-08-09  Eric Blake  <eblake@redhat.com>
48004         readlinkat: adjust client modules
48005         * modules/areadlinkat (Depends-on): Use readlinkat, not
48006         symlinkat.
48007         * modules/areadlinkat-with-size (Depends-on): Likewise.
48009         mknod: be more vocal about danger of running tests as root
48010         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
48011         root, since that is just asking for problems.
48012         Suggested by Bruno Haible, based on a report by Rainer Tammer.
48014         readlinkat: split into its own module
48015         * modules/symlinkat: Split readlinkat...
48016         * modules/readlinkat: ...into separate module.
48017         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
48018         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
48019         * lib/symlinkat.c (readlinkat): Move...
48020         * lib/readlinkat.c: ...into new file.
48021         * modules/symlinkat-tests: Split readlinkat test...
48022         * modules/readlinkat-tests: ...into separate module.
48023         * tests/test-symlinkat.c: Split...
48024         * tests/test-readlinkat.c: ...into new file.
48025         * NEWS: Document the split.
48026         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
48027         * lib/unistd.in.h (readlinkat): Likewise.
48028         Suggested by Bruno Haible.
48030 2010-08-08  Bruno Haible  <bruno@clisp.org>
48032         memxfrm: Speed up.
48033         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
48034         that usually only one call to strxfrm is necessary for each string
48035         part.
48036         Reported by Paul Eggert <eggert@cs.ucla.edu>.
48038 2010-08-07  Karl Berry  <karl@gnu.org>
48040         * doc/posix-headers/limits.texi,
48041         * doc/posix-functions/malloc.texi,
48042         * doc/posix-functions/strsignal.texi: missing @item.
48043         * doc/ld-version-script.texi: spurious leading i.
48044         * doc/regex.texi (Interval Operators): no commas inside @var.
48046 2010-08-01  Bruno Haible  <bruno@clisp.org>
48048         Integrate the regex documentation.
48049         * doc/gnulib.texi: Define 'cn' index.
48050         (Regular expressions): New a chapter that includes regex.texi and
48051         regexprops-generic.texi.
48052         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
48053         syntax.
48055         Whitespace cleanup.
48056         * doc/regex.texi: Remove trailing spaces.
48058         Add regex documentation.
48059         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
48060         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
48061         Written by Kathy A. Hargreaves and Karl Berry.
48063 2010-08-01  Bruno Haible  <bruno@clisp.org>
48065         link: Update documentation.
48066         * doc/posix-functions/link.texi: Update regarding Solaris.
48068 2010-07-31  Bruno Haible  <bruno@clisp.org>
48070         Update modules list.
48071         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
48072         (String handling <string.h>): Add memcmp2, memxfrm.
48073         (Container data structures): Add xlist, xsublist, xoset.
48074         (Core language properties): Add alignof, unused-parameter.
48075         (Process control, Numeric conversion functions <stdlib.h>): Renamed
48076         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
48077         (Unibyte characters <ctype.h>): New section.
48078         (String handling <string.h>): New section.
48079         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
48080         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
48081         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
48082         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
48083         tan, tanh, tanl, y0, y1, yn.
48084         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
48085         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
48086         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
48087         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
48088         unlockpt, vdprintf, vdprintf-posix.
48089         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
48090         (File system functions): Add concat-filename, sys_file, sys_ioctl,
48091         xconcat-filename.
48092         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
48093         getdtablesize, pipe2, pipe2-safer.
48094         (Security): New section.
48095         (Networking functions): Add accept4.
48096         (Signal handling): Add sigpipe.
48097         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
48098         mbmemcasecoll.
48099         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
48100         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
48101         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
48102         pipe-filter-ii.
48103         (Misc): Add argp-version-etc, login_tty, parse-duration.
48105 2010-07-31  Bruno Haible  <bruno@clisp.org>
48107         Improve doc in MODULES.html.
48108         * modules/linkat (Description): Add the word "function".
48109         * modules/mkfifo (Description): Likewise.
48110         * modules/mknod (Description): Likewise.
48111         * modules/remove (Description): Likewise.
48112         * modules/renameat (Description): Likewise.
48113         * modules/stat (Description): Likewise.
48114         * modules/symlink (Description): Likewise.
48115         * modules/unlink (Description): Likewise.
48117 2010-07-31  Bruno Haible  <bruno@clisp.org>
48119         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
48120         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
48121         option --enable/disable-c++ instead of --enable/disable-cxx.
48122         * NEWS: Mention the change.
48124 2010-07-31  Bruno Haible  <bruno@clisp.org>
48126         readlink, areadlink: Relax test a bit.
48127         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
48128         alternative to ENOTDIR.
48129         * tests/test-areadlink.h (test_areadlink): Likewise.
48130         Reported by Rainer Tammer.
48132 2010-07-31  Bruno Haible  <bruno@clisp.org>
48134         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
48135         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
48136         character, perform the search using U_STRCHR.
48137         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
48138         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
48139         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
48140         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
48141         Suggested by Paolo Bonzini.
48143 2010-07-31  Bruno Haible  <bruno@clisp.org>
48145         unistr/u*-strstr: Fix dependencies.
48146         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
48147         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
48148         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
48150 2010-07-31  Bruno Haible  <bruno@clisp.org>
48152         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
48153         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
48154         the beginning of the loop.
48155         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
48156         cases in 'switch' statement.
48158         unistr/u8-strchr: Fix several bugs.
48159         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
48160         the string. When not found, return NULL, not a pointer near the end.
48162         More tests for unistr/u8-strchr.
48163         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
48164         that the function does not read past the first occurrence of the byte
48165         being searched.
48166         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
48167         * tests/unistr/test-u16-strchr.c (main): New function.
48168         * tests/unistr/test-u32-strchr.c (main): New function.
48170 2010-07-31  Bruno Haible  <bruno@clisp.org>
48172         posix-modules: Ignore backup files of documentation files.
48173         * posix-modules: grep only through files named *.texi.
48175 2010-07-31  Bruno Haible  <bruno@clisp.org>
48177         symlinkat: Fix documentation.
48178         * doc/posix-functions/readlinkat.texi: Fix module name.
48180 2010-07-31  Bruno Haible  <bruno@clisp.org>
48182         fchownat: Replace also when chown has the trailing slash bug.
48183         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
48184         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
48185         introduced on 2010-04-10.
48186         Reported by Rainer Tammer.
48188 2010-07-31  Bruno Haible  <bruno@clisp.org>
48190         linkat: Work around AIX 7.1 bug.
48191         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
48192         whether linkat handles trailing slash correctly. If not, replace linkat
48193         and define LINKAT_TRAILING_SLASH_BUG.
48194         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
48195         check whether (fd1,file1) points to a directory if file1 or file2 ends
48196         in a slash. Code taken from lib/link.c.
48197         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
48198         Reported by Rainer Tammer.
48200 2010-07-31  Bruno Haible  <bruno@clisp.org>
48202         Correctly determine whether pow is available in libc on AIX 7 with xlc.
48203         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
48204         This disables an xlc optimization that was causing wrong test results.
48205         Reported by Rainer Tammer.
48207 2010-07-31  Bruno Haible  <bruno@clisp.org>
48209         iconv: Work around AIX 6.1..7.1 bug.
48210         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
48211         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
48212         cross-compiling, guess no on all versions of AIX.
48213         Reported by Rainer Tammer.
48215 2010-07-31  Bruno Haible  <bruno@clisp.org>
48217         readlink: Relax test a bit.
48218         * tests/test-readlink.h (test_readlink): Allow different errno value
48219         when readlink is called with a file name that ends in / and refers to
48220         a file.
48221         Suggested by Eric Blake.
48222         Reported by Rainer Tammer.
48224 2010-07-31  Bruno Haible  <bruno@clisp.org>
48226         copysign: Does not require -lm on glibc systems.
48227         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
48228         gl_COMMON_DOUBLE_MATHFUNC.
48229         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
48231 2010-07-31  Bruno Haible  <bruno@clisp.org>
48233         duplocale: Work around AIX 7.1 bug.
48234         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
48235         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
48236         * lib/duplocale.c (rpl_duplocale): Update comment.
48237         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
48238         Reported by Rainer Tammer.
48240 2010-07-30  Bruno Haible  <bruno@clisp.org>
48242         dirfd: Avoid link error on AIX 7.1.
48243         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
48244         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
48245         exist, set REPLACE_DIRFD.
48246         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
48247         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
48248         * doc/posix-functions/dirfd.texi: Update.
48249         Reported by Rainer Tammer.
48251 2010-07-30  Eric Blake  <eblake@redhat.com>
48253         strtod: next round of AIX fixes
48254         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
48255         exponent.
48256         * tests/test-strtod.c (main): Enhance tests.
48257         * doc/posix-functions/strtod.texi (strtod): Document next bug.
48258         Reported by Rainer Tammer.
48260         futimens: fix configure check
48261         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
48262         Reported by Bruno Haible.
48264 2010-07-30  Bruno Haible  <bruno@clisp.org>
48266         getline: Update regarding AIX.
48267         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
48268         Reported by Rainer Tammer.
48270 2010-07-30  Bruno Haible  <bruno@clisp.org>
48272         wcwidth: Drop replacement on AIX 7.
48273         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
48274         AIX 7.
48275         Reported by Rainer Tammer.
48277 2010-07-30  Bruno Haible  <bruno@clisp.org>
48279         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
48280         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
48281         a 'char *'.
48282         Reported by Rainer Tammer.
48284 2010-07-30  Bruno Haible  <bruno@clisp.org>
48286         unlink: Update regarding AIX.
48287         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
48288         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
48289         Reported by Rainer Tammer.
48291 2010-07-30  Bruno Haible  <bruno@clisp.org>
48293         symlink: Update regarding AIX.
48294         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
48295         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
48296         Reported by Rainer Tammer.
48298 2010-07-30  Bruno Haible  <bruno@clisp.org>
48300         strndup: Update regarding AIX.
48301         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
48302         AIX 7.
48303         Reported by Rainer Tammer.
48305 2010-07-30  Bruno Haible  <bruno@clisp.org>
48307         stat: Update regarding AIX.
48308         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
48309         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
48310         Reported by Rainer Tammer.
48312 2010-07-30  Bruno Haible  <bruno@clisp.org>
48314         truncl: Fix autoconf test.
48315         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
48316         whether truncl works.
48317         Reported by Rainer Tammer.
48319 2010-07-30  Bruno Haible  <bruno@clisp.org>
48321         round: Update regarding AIX.
48322         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
48323         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
48324         Reported by Rainer Tammer.
48326 2010-07-30  Bruno Haible  <bruno@clisp.org>
48328         rename: Update regarding AIX.
48329         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
48330         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
48331         Reported by Rainer Tammer.
48333 2010-07-30  Bruno Haible  <bruno@clisp.org>
48335         printf.m4: Update regarding AIX.
48336         * m4/printf.m4: Update comments regarding AIX.
48337         Reported by Rainer Tammer.
48339 2010-07-30  Bruno Haible  <bruno@clisp.org>
48341         iconv: Update regarding AIX.
48342         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
48343         AIX 7.
48344         Reported by Rainer Tammer.
48346 2010-07-30  Bruno Haible  <bruno@clisp.org>
48348         getopt: Update regarding AIX.
48349         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
48350         no on AIX.
48351         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
48352         Reported by Rainer Tammer.
48354 2010-07-30  Bruno Haible  <bruno@clisp.org>
48356         ldexpl; Update regarding AIX.
48357         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
48358         on AIX 7.
48359         Reported by Rainer Tammer.
48361 2010-07-30  Bruno Haible  <bruno@clisp.org>
48363         frexpl: Update regarding AIX.
48364         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
48365         on AIX 7.
48366         Reported by Rainer Tammer.
48368 2010-07-30  Bruno Haible  <bruno@clisp.org>
48370         open, fopen: Update regarding AIX.
48371         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
48372         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
48373         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
48374         * doc/posix-functions/fopen.texi: Likewise.
48375         Reported by Rainer Tammer.
48377 2010-07-30  Bruno Haible  <bruno@clisp.org>
48379         chown: Update doc regarding AIX.
48380         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
48381         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
48382         Reported by Rainer Tammer.
48384 2010-07-30  Eric Blake  <eblake@redhat.com>
48386         strtod: fix bug in replacement function on AIX
48387         * lib/strtod.c (strtod): Special case broken "0x" parse in
48388         underlying strtod.
48389         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
48390         * doc/posix-functions/strtod.texi (strtod): Likewise.
48391         Reported by Rainer Tammer.
48393 2010-07-30  Bruno Haible  <bruno@clisp.org>
48395         mbrlen: Fix cross-compilation guess for AIX.
48396         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
48397         guess. Leftover from 2008-12-22.
48399 2010-07-30  Bruno Haible  <bruno@clisp.org>
48401         mbrtowc: Fix cross-compilation guess for AIX.
48402         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
48403         guess. Leftover from 2008-12-21.
48405 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
48407         init.sh: work around trap limitation of some shells
48408         * tests/init.sh (setup_): Move exit trap outside of shell function.
48410 2010-07-29  Eric Blake  <eblake@redhat.com>
48412         strtod: aid debugging
48413         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
48414         understanding why strtod is rejected.
48416 2010-07-28  Bruno Haible  <bruno@clisp.org>
48418         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
48419         * lib/unistr/u8-chr.c: Include <string.h>.
48420         * tests/unistr/test-u8-chr.c: Likewise.
48421         * tests/unistr/test-u16-chr.c: Likewise.
48422         * tests/unistr/test-u32-chr.c: Likewise.
48423         * tests/unistr/test-u8-strchr.c: Likewise.
48424         * tests/unistr/test-u16-strchr.c: Likewise.
48425         * tests/unistr/test-u32-strchr.c: Likewise.
48426         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
48427         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
48428         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
48429         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
48431 2010-07-28  Bruno Haible  <bruno@clisp.org>
48433         Use spaces for indentation, not tabs.
48434         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
48436 2010-07-27  Bruno Haible  <bruno@clisp.org>
48438         mbspcasecmp: Fix function specification.
48439         * lib/string.in.h (mbspcasecmp): Fix specification comment.
48440         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
48441         Reported by Eric Blake <eblake@redhat.com>.
48443 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
48445         timespec: use cast and not conditional, as truncation isn't possible
48446         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
48447         instead of a conditional.  Comment about the situation in more detail.
48448         This undoes most of the 2009-10-29 patch.
48450 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
48452         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
48453         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
48454         * lib/unistr/u8-strchr.c: Likewise.
48455         * modules/unistr/u8-chr: Depend on memchr.
48457         unistr/u*-strchr: add tests
48458         * modules/unistr/u8-strchr-tests: New file.
48459         * modules/unistr/u16-strchr-tests: New file.
48460         * modules/unistr/u32-strchr-tests: New file.
48461         * tests/unistr/test-strchr.h: New file.
48462         * tests/unistr/test-u8-strchr.c: New file.
48463         * tests/unistr/test-u16-strchr.c: New file.
48464         * tests/unistr/test-u32-strchr.c: New file.
48466         unistr/u*-chr: test multibyte sequences more
48467         * tests/unistr/test-chr.h: Do complete testing of the characters in the
48468         test vector.
48469         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
48470         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
48471         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
48473         unistr/u*-chr: test multibyte sequences
48474         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
48476         unistr/u*-chr: prepare for multibyte tests
48477         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
48478         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
48479         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
48480         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
48481         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
48482         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
48484 2010-07-18  Bruno Haible  <bruno@clisp.org>
48486         unistr/u8-strchr: Optimize non-ASCII argument case.
48487         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
48488         because the first byte often matches anyway.
48489         Reported by Pádraig Brady <P@draigbrady.com>.
48491 2010-07-15  Karl Berry  <karl@gnu.org>
48493         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
48495 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
48497         getcwd: on Solaris, work better if ancestors are inaccessible
48498         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
48499         buffer and size, try again with a large buffer.  This works better
48500         on Solaris, since its getcwd succeeds even if the path to the root
48501         is inaccessible, and this is helpful in common cases such as .zfs
48502         hidden directories.  Problem reported by J Chapman Flack in
48503         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
48504         Use system getcwd if it's declared, not merely if it's partly
48505         working; use the partly-working test only to avoid needless effort
48506         if the system getcwd fails.
48507         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
48508         comment that was already obsolete and is now even more obsolete.
48509         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
48510         now might call strdup.
48512 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
48514         pthread: Add enough so that coreutils/src/sort.c compiles.
48515         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
48516         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
48517         gnulib. Include <sched.h> and <time.h>, as per POSIX.
48518         Include <sys/types.h>, in case it defines pthread_t.
48519         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
48520         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
48521         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
48522         (pthread_rwlockattr_t, pthread_spinlock_t):
48523         New typedefs, if HAVE_PTHREAD_T is not defined.
48524         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
48525         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
48526         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
48527         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
48528         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
48529         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
48530         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
48531         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
48532         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
48533         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
48534         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
48535         New macros.
48536         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
48537         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
48538         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
48539         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
48540         (pthread_spin_unlock): New dummy functions.
48541         (pthread_create): Return EAGAIN; don't set errno.
48542         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
48543         require AC_C_INLINE.
48544         * modules/pthread (Depends-on): Add sched, time.
48545         (pthread.h): Use AM_V_GEN.
48547 2010-07-13  Bruno Haible  <bruno@clisp.org>
48549         striconveh: Don't malloc memory if the result buffer is sufficient.
48550         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
48551         buffer if its size is sufficient.
48552         Reported by Ludovic Courtès <ludo@gnu.org>.
48554 2010-07-13  Bruno Haible  <bruno@clisp.org>
48556         strtod: Add safety check.
48557         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
48559 2010-07-12  Bruno Haible  <bruno@clisp.org>
48561         Unify tests that set gl_cv_func_ldexpl_no_libm.
48562         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
48563         gl_FUNC_LDEXPL.
48564         (gl_FUNC_LDEXPL): Invoke it.
48565         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
48567 2010-07-12  Bruno Haible  <bruno@clisp.org>
48569         Unify tests that set gl_cv_func_ldexp_no_libm.
48570         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
48571         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
48572         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
48573         (configure.ac): Simply invoke gl_FUNC_LDEXP.
48574         * modules/strtod (Files): Add m4/ldexp.m4.
48576 2010-07-12  Bruno Haible  <bruno@clisp.org>
48578         Unify tests that set gl_cv_func_frexpl_no_libm.
48579         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
48580         gl_FUNC_FREXPL_NO_LIBM.
48581         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
48582         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
48584 2010-07-12  Bruno Haible  <bruno@clisp.org>
48586         Unify tests that set gl_cv_func_frexp_no_libm.
48587         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
48588         gl_FUNC_FREXP_NO_LIBM.
48589         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
48590         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
48592 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
48594         memcoll: clarify sizes versus lengths, document better, and tweak perf
48595         * lib/memcoll.c (strcoll_loop, memcoll0):
48596         Improve quality of descriptive comments.  Name variables
48597         consistently as to whether they are lengths (which do not include
48598         terminating null) versus sizes (which do).
48599         * lib/xmemcoll.c (xmemcoll0): Likewise.
48600         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
48601         returned when s1size == 0; this is easier to compile and saves
48602         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
48604 2010-07-12  Bruno Haible  <bruno@clisp.org>
48606         Tests for module '_Exit'.
48607         * modules/_Exit-tests: New file.
48608         * tests/test-_Exit.sh: New file.
48609         * tests/test-_Exit.c: New file.
48611         New module '_Exit'.
48612         * lib/stdlib.in.h (__attribute__): New macro.
48613         (_Exit): New declaration.
48614         * lib/_Exit.c: New file.
48615         * m4/_Exit.m4: New file.
48616         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
48617         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
48618         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
48619         * modules/_Exit: New file.
48620         * tests/test-stdlib-c++.cc (_Exit): Check signature.
48621         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
48623 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
48625         strtod: make it more-accurate typically, and don't require libm
48626         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
48627         Include limits.h.  Don't include string.h.
48628         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
48629         (locale_isspace): New function, so that no casts are needed to
48630         check whether *s is a space.
48631         (ldexp): Provide an unused dummy if not available.
48632         (scale_radix_exp, parse_number, underlying_strtod): New functions.
48633         (strtod): Use them.  This implementation prefers to use the
48634         underlying strtod if available, falling back on our own code
48635         only to fix known bugs.  This is more likely to produce an
48636         accurate result.  Also, it avoids the use of libm functions.
48637         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
48638         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
48639         was absent, but it caused a test failure with coreutils.
48640         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
48641         with libm.
48642         * modules/strtod (Makefile.am, Link): libm is no longer needed.
48643         * modules/strtod-tests (Makefile.am): Likewise.
48645 2010-07-11  Pádraig Brady  <P@draigBrady.com>
48646             Bruno Haible  <bruno@clisp.org>
48648         unistr/u8-strchr: Optimize ASCII argument case.
48649         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
48651 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
48653         (x)memcoll: minor tweaks
48654         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
48655         is after the type that it qualifies.
48656         (memcoll0): Likewise.
48657         * lib/memcoll.h (memcoll0): Likewise.
48658         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
48659         * lib/xmemcoll.h (xmemcoll0): Likewise.
48660         * lib/memcoll.c (memcoll0): Correct the comment.  This function
48661         differs from memcoll in that the NUL byte is part of the argument.
48662         Omit the abort-checks, as performance is a real issue here.  Plus,
48663         the checks were wrong anyway (an off-by-one error).  Omit local
48664         variable 'diff', as it's a bit clearer that way.
48665         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
48666         no longer needed.
48668 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
48670         (x)memcoll: speedup when input is known to be NUL delimited
48671         * lib/memcoll.c: Include stdlib.
48672         (memcoll0): New function.
48673         (strcoll_loop): New function, refactored for use in both memcoll
48674         and memcoll0.
48675         * lib/memcoll.h (memcoll0): Add prototype.
48676         * lib/xmemcoll.c (xmemcoll0): New function.
48677         (collate_error): New function, refactored for use in both xmemcoll
48678         and xmemcoll0.
48679         * lib/xmemcoll.h (xmemcoll0): Add prototype.
48680         * m4/memcoll.m4: add inline invocation.
48682 2010-07-06  Pádraig Brady  <P@draigBrady.com>
48684         * build-aux/bootstrap: Remove any local translations
48685         from the translation project synchronization directory,
48686         so that local only translations are not distributed.
48688 2010-07-04  Bruno Haible  <bruno@clisp.org>
48690         fsusage: Clarify which code applies to which platforms.
48691         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
48692         platform.
48693         * lib/fsusage.c (get_fs_usage): Likewise.
48695 2010-07-04  Bruno Haible  <bruno@clisp.org>
48697         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
48698         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
48699         Reported by Martin Lambers <marlam@marlam.de>.
48701 2010-07-04  Jim Meyering  <meyering@redhat.com>
48703         hash: once again explicitly disallow insertion of NULL
48704         * lib/hash.c (hash_insert0): Reinstate just-removed test:
48705         inserting a NULL pointer cannot work with these functions.
48706         Add a comment with details.
48707         This reverts part of the 2010-07-01 commit, 5bef1a35
48708         "hash: extend module to deal with non-pointer keys".
48710 2010-07-01  Bruno Haible  <bruno@clisp.org>
48712         stdbool: Update doc.
48713         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
48714         Info from Christian Weisgerber <naddy@mips.inka.de>.
48716 2010-07-01  Jim Meyering  <meyering@redhat.com>
48718         hash: extend module to deal with non-pointer keys
48719         * lib/hash.c (hash_insert0): New interface, much like hash_insert
48720         but that allows insertion of non-pointer entries.
48721         Do not disallow an ENTRY value of NULL.
48722         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
48723         * lib/hash.h (hash_insert0): Declare.
48725 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
48727         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
48728         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
48729         not present (i.e. with autoconf 2.59 and when using gettextize, not
48730         gnulib), require AC_GNU_SOURCE instead.
48732 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
48734         idpriv-drop: Fix tests.
48735         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
48736         not to the test-idpriv-droptemp program.
48738 2010-06-29  Bruno Haible  <bruno@clisp.org>
48740         string: Fix syntax error with g++ 2.96.
48741         * lib/string.in.h (__pure__): Remove definition.
48742         (_GL_ATTRIBUTE_PURE): New macro.
48743         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
48744         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
48745         Reported by Christian Weisgerber <naddy@mips.inka.de>.
48747 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
48749         unitypes: Fix bug introduced on 2010-05-18.
48750         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
48752 2010-06-22  Eric Blake  <eblake@redhat.com>
48754         memmem: slight optimization
48755         * lib/str-two-way.h (critical_factorization): Update comments.
48756         Reduce work during factorization phase.
48757         Reported by Carlos Bueno <carlos@bueno.org>.
48759 2010-06-21  Bruno Haible  <bruno@clisp.org>
48761         Fix HAVE_CALLOC_POSIX misnomer.
48762         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
48763         !HAVE_CALLOC_POSIX.
48764         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
48765         HAVE_CALLOC_POSIX.
48766         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
48767         instead of HAVE_CALLOC_POSIX.
48768         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
48769         HAVE_CALLOC_POSIX.
48771         Use modern idiom for calloc() replacement.
48772         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
48773         AC_FUNC_CALLOC.
48774         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
48775         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
48776         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
48777         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
48778         (gl_REPLACE_CALLOC): New macro.
48780 2010-06-21  Bruno Haible  <bruno@clisp.org>
48782         Fix HAVE_REALLOC_POSIX misnomer.
48783         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
48784         !HAVE_REALLOC_POSIX.
48785         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
48786         HAVE_REALLOC_POSIX.
48787         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
48788         instead of HAVE_REALLOC_POSIX.
48789         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
48790         HAVE_REALLOC_POSIX.
48792         Use modern idiom for realloc() replacement.
48793         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
48794         AC_FUNC_REALLOC.
48795         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
48796         Autoconf's AC_FUNC_REALLOC.
48797         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
48798         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
48799         (gl_REPLACE_REALLOC): New macro.
48800         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
48802 2010-06-21  Bruno Haible  <bruno@clisp.org>
48804         Fix HAVE_MALLOC_POSIX misnomer.
48805         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
48806         !HAVE_MALLOC_POSIX.
48807         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
48808         HAVE_MALLOC_POSIX.
48809         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
48810         instead of HAVE_MALLOC_POSIX.
48811         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
48812         HAVE_MALLOC_POSIX.
48814         Use modern idiom for malloc() replacement.
48815         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
48816         AC_FUNC_MALLOC.
48817         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
48818         Autoconf's AC_FUNC_MALLOC.
48819         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
48820         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
48821         (gl_REPLACE_MALLOC): New macro.
48822         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
48824 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
48826         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
48827         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
48828         This macro takes 3 arguments, not 4.
48830 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
48832         ipv6: fix detection under mingw
48833         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
48834         in6_addr.
48836 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
48838         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
48839         that strtod() works when cross-compiling to a glibc version known
48840         to work.
48842 2010-06-15  Bruno Haible  <bruno@clisp.org>
48844         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
48846 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
48848         select: Correct timeout.
48849         * lib/select.c (rpl_select): Compute wait_timeout correctly.
48851 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
48853         git-version-gen: init shell var to avoid env var influence
48854         * build-aux/git-version-gen (v): Init shell var to empty.
48856 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
48858         priv-set: Don't assume that priv.h exists merely because getppriv does.
48859         See Jan Andersen's bug report about AIX 5L in
48860         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
48861         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
48862         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
48863         * lib/priv-set.h: Likewise.
48864         * tests/test-priv-set.c: Likewise.
48866 2010-06-13  Bruno Haible  <bruno@clisp.org>
48868         relocatable: Make it easier to test whether to install wrappers.
48869         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
48870         RELOCATABLE_VIA_WRAPPER.
48872 2010-06-13  Bruno Haible  <bruno@clisp.org>
48874         gnulib-tool: Display specified modules and dependencies differently.
48875         * gnulib-tool (func_show_module_list): New function.
48876         (func_import, func_create_testdir): Invoke it.
48877         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48879 2010-06-13  Bruno Haible  <bruno@clisp.org>
48881         gnulib-tool: Align code of func_import and func_create_testdir.
48882         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
48883         specified_modules.
48885 2010-06-12  Jim Meyering  <meyering@redhat.com>
48887         test-inttostr: avoid spurious failure on Solaris 9
48888         * tests/test-inttostr.c (main): Skip the test when snprintf fails
48889         to accept "%ju".  Reported by Bruno Haible.
48891 2010-06-11  Jim Meyering  <meyering@redhat.com>
48893         test-sys_socket: mark variables as used more readably
48894         * tests/test-sys_socket.c (main): Mark otherwise unused variables
48895         as "used" explicitly via (void) statement casts.  This is more
48896         readable than using them in an artificial return expression.
48897         Suggestion from Bruno Haible.
48899 2010-06-11  Bruno Haible  <bruno@clisp.org>
48901         Avoid some more warnings from "gcc -Wwrite-strings".
48902         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
48903         to 'const char *'.
48904         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
48905         * tests/test-c-strcasestr.c (main): Likewise.
48906         * tests/test-mbscasestr1.c (main): Likewise.
48907         * tests/test-mbscasestr2.c (main): Likewise.
48908         * tests/test-memmem.c (main): Likewise.
48909         * tests/test-strstr.c (main): Likewise.
48910         * tests/test-strcasestr.c (main): Likewise.
48912 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48914         init.sh: change framework_failure_ to fail with status 99, not 1
48915         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
48916         automake's parallel-tests rule that this is an unexpected failure,
48917         even if the test is listed in XFAIL_TESTS.
48919 2010-06-11  Jim Meyering  <meyering@redhat.com>
48921         test-inttostr: avoid warnings about 4-6KB literal strings
48922         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
48923         Include "macros.h", for its definition of ASSERT.
48924         (CK): s/assert/ASSERT/
48925         * modules/inttostr-tests (Files): Add macros.h.
48927         init.sh: don't use $ME_ or skip_ before they are defined
48928         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
48929         their first uses.  Also hoist their companions: warn_, fail_,
48930         framework_failure_, $stderr_fileno.  Prompted by a patch from
48931         Stefano Lattarini.
48933         test-sys_socket: avoid set-but-not-used warnings from gcc
48934         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
48935         avoid warning about set-but-not-used variables.
48937         test-xvasprintf: avoid 'const' discard warnings
48938         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
48939         "const" when assigning from literal strings.
48940         (test_xasprintf): Add "void" in function argument list to placate
48941         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
48943         tests: avoid compilation warnings in argmatch and exclude tests...
48944         in packages that define ARGMATCH_DIE_DECL, like coreutils.
48945         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
48946         Since it always exits, declare with the "noreturn" attribute.
48947         * tests/test-argmatch.c: Likewise.
48949         tests: avoid 'const' discard warnings in mbsstr tests
48950         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
48951         * tests/test-mbsstr2.c (main): Likewise.
48953         test-verify: avoid warning from gcc's -Wmissing-declarations
48954         * tests/test-verify.c (function): Declare to be static.
48956         test-inttostr.c: include <string.h> for use of strcmp
48957         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
48959         test-linkat: avoid failed assertion on "other" architectures
48960         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
48961         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
48962         sparc: https://bugs.launchpad.net/bugs/591968
48964 2010-06-11  Jim Meyering  <meyering@redhat.com>
48966         printf.m4: avoid autoconf's "Expanded Before Required" warning
48967         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
48968         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
48969         autoconf warning.
48971 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
48973         Replacement header templates are now named with ".in", not "_".
48974         * doc/gnulib-intro.texi: Correct.
48976 2010-06-10  Jim Meyering  <meyering@redhat.com>
48978         inttostr-tests: depend on snprintf, not snprintf-posix
48979         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
48980         snprintf-posix, to avoid this aclocal failure:
48981           missing file gnulib-tests/vasnprintf.c
48982           configure.ac:45: error: expected source file, required through \
48983           AC_LIBSOURCES, not found
48985 2010-06-10  Jim Meyering  <meyering@redhat.com>
48987         inttostr: add a new function, inttostr, and tests
48988         The namesake function was not available.  The existence of the
48989         template file, inttostr.c makes its addition nontrivial.
48990         * lib/anytostr.c: Rename from inttostr.c.
48991         (anytostr): Rename from inttostr.
48992         * lib/inttostr.c: New file.
48993         * modules/inttostr (Files): Add anytostr.c.
48994         (Makefile.am): Set lib_SOURCES instead of ...
48995         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
48996         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
48997         * lib/offtostr.c: Likewise.
48998         * lib/uinttostr.c: Likewise.
48999         * lib/umaxtostr.c: Likewise.
49000         * modules/inttostr-tests: New file.
49001         * tests/test-inttostr.c: New file.  Test these functions.
49003 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
49004             Bruno Haible  <bruno@clisp.org>
49006         Add "Extending Gnulib" chapter to manual.
49007         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
49008         chapter.
49009         (Extending Gnulib): New chapter.
49010         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
49011         chapter.
49013 2010-06-09  Bruno Haible  <bruno@clisp.org>
49015         Avoid relocwrapper link errors due to gnulib replacement functions.
49016         * lib/areadlink.c: Use the system's malloc, realloc functions.
49017         (areadlink): Set errno to ENOMEM explicitly.
49018         * modules/areadlink (Depends-on): Remove malloc-posix.
49019         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49021 2010-06-09  Bruno Haible  <bruno@clisp.org>
49023         Avoid relocwrapper link errors due to gnulib replacement functions.
49024         * lib/canonicalize-lgpl.c: Use the system's malloc function.
49025         * lib/malloca.c: Likewise.
49026         * lib/relocatable.c: Likewise.
49027         * lib/progreloc.c: Use the system's malloc, sprintf functions.
49028         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
49029         * lib/setenv.c: Use the system's malloc, realloc functions.
49030         * lib/strerror.c: Use the system's sprintf function.
49031         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49033 2010-06-04  Bruno Haible  <bruno@clisp.org>
49035         Prefer documented low-level autoconf macro names.
49036         * m4/lib-link.m4: Use m4_translit instead of translit.
49037         * m4/environ.m4: Likewise.
49038         * m4/mathfunc.m4: Likewise.
49039         * m4/onceonly.m4: Likewise.
49040         * m4/stdint.m4: Likewise.
49041         Suggested by Eric Blake.
49043 2010-06-04  Martin Lambers  <marlam@marlam.de>
49044             Bruno Haible  <bruno@clisp.org>
49046         havelib: Allow library names with '+' characters.
49047         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
49048         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
49050 2010-06-09  Bruno Haible  <bruno@clisp.org>
49052         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
49053         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
49054         realloc failed.
49056 2010-06-08  Peter Simons  <simons@cryp.to>
49058         maint.mk: make the news-check rule more configurable
49059         * top/maint.mk (news-check-lines-spec): New variable.
49060         (news-check): Use "sed -n 1,10p" in place of "head".
49062 2010-06-07  Jim Meyering  <meyering@redhat.com>
49064         do-release-commit-and-tag: fix typo in --help
49065         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
49067         regex: avoid new dead-code warning with gcc-4.6.0
49068         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
49069         if-block containing a while-loop.  It's been unused for at least
49070         5 years.
49072 2010-06-05  Bruno Haible  <bruno@clisp.org>
49074         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
49075         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
49077 2010-06-04  Bruno Haible  <bruno@clisp.org>
49079         Update to GNU gettext 0.18.1.
49080         * modules/gettext (configure.ac): Require gettext infrastructure from
49081         version 0.18.1.
49083 2010-06-03  Bruno Haible  <bruno@clisp.org>
49085         Don't use AC_LIBOBJ with file names in subdirectories.
49086         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
49087         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
49088         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
49089         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
49090         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
49091         gl_LIBUNISTRING_LIBSOURCE.
49092         (Makefile.am): Augment lib_SOURCES here, conditionally.
49093         * NEWS: Drop requirement for Automake option 'subdir-objects'.
49095 2010-06-03  Bruno Haible  <bruno@clisp.org>
49097         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
49098         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
49099         expansion does not end with a newline.
49100         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
49101         unnecessary newline.
49103 2010-06-03  Bruno Haible  <bruno@clisp.org>
49105         Reduce dependencies.
49106         * tests/test-quotearg.h: New file, extracted from
49107         tests/test-quotearg.c.
49108         * tests/test-quotearg-simple.c: New file, extracted from
49109         tests/test-quotearg.c.
49110         * tests/test-quotearg.c: Don't include <ctype.h>.
49111         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
49112         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
49113         use_quote_double_quotes, use_quotearg_colon): Moved to
49114         tests/test-quotearg.h.
49115         (results_g, flag_results, custom_quotes, custom_results): Moved
49116         to tests/test-quotearg-simple.c.
49117         (main): Moved the part that does not depend on gettext to
49118         tests/test-quotearg-simple.c. Return 77 if the test cannot be
49119         performed.
49120         * modules/quotearg-simple: New file.
49121         * modules/quotearg-simple-tests: New file.
49122         * modules/quotearg (Depends-on): Add quotearg-simple.
49123         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
49124         (Files): Add tests/test-quotearg.h.
49125         Reported by Paolo Bonzini.
49127 2010-06-03  Bruno Haible  <bruno@clisp.org>
49129         Reduce dependencies.
49130         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
49132 2010-06-03  Bruno Haible  <bruno@clisp.org>
49134         time: Undefine more broken macros.
49135         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
49136         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
49137         Reported by Eric Blake.
49139 2010-06-03  Bruno Haible  <bruno@clisp.org>
49141         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
49142         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
49143         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
49144         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
49145         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
49146         Reported by Ludovic Courtès <ludo@gnu.org>.
49148 2010-06-02  Eric Blake  <eblake@redhat.com>
49150         time: work with mingw + pthreads-win32 library
49151         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
49152         if timespec is defined only in pthread.h.
49153         * modules/time (Makefile.am): Substitute it.
49154         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
49155         <pthread.h>, when needed.
49156         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
49157         from the library.
49159 2010-05-31  Bruno Haible  <bruno@clisp.org>
49161         Avoid expanding two macros in the wrong order.
49162         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
49163         gl_LIBUNISTRING if it is defined.
49164         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
49165         autoconf >= 2.64.
49166         Reported by Ludovic Courtès <ludo@gnu.org>.
49168 2010-05-27  Jim Meyering  <meyering@redhat.com>
49170         maint.mk: also prohibit "#undef" of always-defined symbols
49171         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
49172         Allow more than one space before the symbol name.
49173         (sc_prohibit_always-defined_macros): Use grep's -E, now that
49174         the regexp uses alternation.
49176 2010-05-26  Eric Blake  <eblake@redhat.com>
49178         maint.mk: avoid echo -e
49179         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
49180         Convert all uses of echo -* to printf.
49181         Reported by Matthias Bolte.
49183 2010-05-25  Bruno Haible  <bruno@clisp.org>
49185         Update to GNU gettext 0.18, part 2.
49186         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
49187         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
49189 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49191         Add missing include in test-pwrite.c.
49192         * tests/test-pwrite.c: Include string.h, for strcmp.
49194 2010-05-24  Bruno Haible  <bruno@clisp.org>
49196         * NEWS: Mention requirement for Automake option 'subdir-objects'.
49198 2010-05-24  Bruno Haible  <bruno@clisp.org>
49200         Don't use conversion with transliteration in u{8,16,32}_strcoll.
49201         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
49202         iconveh_error argument.
49203         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
49204         U_STRCONV_TO_LOCALE.
49205         * lib/unistr/u16-strcoll.c: Likewise.
49206         * lib/unistr/u32-strcoll.c: Likewise.
49207         * modules/unistr/u8-strcoll (Depends-on): Add
49208         uniconv/u8-strconv-to-enc, localcharset. Remove
49209         uniconv/u8-strconv-to-locale.
49210         (configure.ac): Bump version number.
49211         * modules/unistr/u16-strcoll (Depends-on): Add
49212         uniconv/u16-strconv-to-enc, localcharset. Remove
49213         uniconv/u16-strconv-to-locale.
49214         (configure.ac): Bump version number.
49215         * modules/unistr/u32-strcoll (Depends-on): Add
49216         uniconv/u32-strconv-to-enc, localcharset. Remove
49217         uniconv/u32-strconv-to-locale.
49218         (configure.ac): Bump version number.
49220 2010-05-24  Bruno Haible  <bruno@clisp.org>
49222         Avoid a test failure on NetBSD 5.0.
49223         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
49224         an iconv() bug.
49226 2010-05-24  Bruno Haible  <bruno@clisp.org>
49228         Adjust #include directive style.
49229         * modules/regex (Includes): Recommend to write <regex.h>.
49231 2010-05-24  Bruno Haible  <bruno@clisp.org>
49233         regex: Don't require alloca.
49234         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
49235         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
49236         only inside if (0).
49238 2010-05-23  Jim Meyering  <meyering@redhat.com>
49240         test-renameat.c: include <sys/stat.h>
49241         * tests/test-renameat.c: Include <sys/stat.h>; required for
49242         definition of S_IS* macros.
49244 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
49246         Update maintainer documentation for 'relocatable-prog' module.
49247         * doc/relocatable-maint.texi: Update.
49248         Comments by Bruno Haible.
49250 2010-05-23  Bruno Haible  <bruno@clisp.org>
49252         git-merge-changelog: Enable --split-merged-entry by default.
49253         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
49254         (usage): Don't mention this option any more.
49255         Reported by Ralf Wildenhues.
49257 2010-05-23  Jim Meyering  <meyering@redhat.com>
49259         test-pwrite: do not leave behind a test file named "out"
49260         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
49261         The trivial-looking use of init.sh is really necessary.
49262         It ensures that the temporary file, "out", is created in
49263         a temporary directory, and removed upon termination.
49264         * tests/test-pwrite.sh: Re-add file.
49265         * modules/pwrite-tests: Reference it.
49267 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49269         Fix output redirection buglet in init.sh.
49270         * tests/init.sh: Fix redirection of stderr.
49272 2010-05-20  Simon Josefsson  <simon@josefsson.org>
49274         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
49276 2010-05-17  Simon Josefsson  <simon@josefsson.org>
49278         * modules/valgrind-tests: New file.
49279         * m4/valgrind-tests.m4: New file.
49280         * doc/valgrind-tests.texi: New file.
49281         * doc/gnulib.texi (Running self-tests under valgrind): New
49282         section.
49284 2010-05-19  Bruno Haible  <bruno@clisp.org>
49286         Clean up dead code in recent commit.
49287         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
49288         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
49289         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
49290         Suggested by Paolo Bonzini.
49292 2010-05-19  Bruno Haible  <bruno@clisp.org>
49294         Avoid valgrind error reports from libunistring.
49295         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
49296         * modules/libunistring (Files): Add it.
49297         * modules/libunistring-optional (Files): Likewise.
49299 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
49300             Bruno Haible  <bruno@clisp.org>
49302         New module 'libunistring-optional'.
49303         * modules/libunistring-optional: New file.
49304         * m4/libunistring-base.m4: New file.
49305         * m4/libunistring-optional.m4: New file.
49306         * lib/unicase.in.h: Renamed from lib/unicase.h.
49307         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
49308         * lib/unictype.in.h: Renamed from lib/unictype.h.
49309         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
49310         * lib/uniname.in.h: Renamed from lib/uniname.h.
49311         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
49312         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
49313         * lib/unistr.in.h: Renamed from lib/unistr.h.
49314         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
49315         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
49316         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
49317         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
49318         gl_LIBUNISTRING. If the library was found, determine the installed
49319         version and set LIBUNISTRING_VERSION.
49320         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
49321         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
49322         handle a configuration option --with-included-libunistring.
49323         * modules/libunistring (Files): Add m4/absolute-header.m4.
49324         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
49325         Add m4/libunistring-base.m4.
49326         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49327         (Makefile.am): Build unicase.h from unicase.in.h.
49328         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
49329         Add m4/libunistring-base.m4.
49330         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49331         (Makefile.am): Build uniconv.h from uniconv.in.h.
49332         * modules/unictype/base (Files): Use unictype.in.h instead of
49333         unictype.h. Add m4/libunistring-base.m4.
49334         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49335         (Makefile.am): Build unictype.h from unictype.in.h.
49336         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
49337         Add m4/libunistring-base.m4.
49338         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49339         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
49340         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
49341         Add m4/libunistring-base.m4.
49342         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49343         (Makefile.am): Build uniname.h from uniname.in.h.
49344         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
49345         Add m4/libunistring-base.m4.
49346         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49347         (Makefile.am): Build uninorm.h from uninorm.in.h.
49348         * modules/unistdio/base (Files): Use unistdio.in.h instead of
49349         unistdio.h. Add m4/libunistring-base.m4.
49350         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49351         (Makefile.am): Build unistdio.h from unistdio.in.h.
49352         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
49353         Add m4/libunistring-base.m4.
49354         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49355         (Makefile.am): Build unistr.h from unistr.in.h.
49356         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
49357         Add m4/libunistring-base.m4.
49358         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49359         (Makefile.am): Build unitypes.h from unitypes.in.h.
49360         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
49361         Add m4/libunistring-base.m4.
49362         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49363         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
49364         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
49365         uniwidth.h. Add m4/libunistring-base.m4.
49366         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
49367         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
49368         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
49369         instead of augmenting lib_SOURCES.
49370         * modules/unicase/empty-suffix-context: Likewise.
49371         * modules/unicase/locale-language: Likewise.
49372         * modules/unicase/tolower: Likewise.
49373         * modules/unicase/totitle: Likewise.
49374         * modules/unicase/toupper: Likewise.
49375         * modules/unicase/u8-casecmp: Likewise.
49376         * modules/unicase/u8-casecoll: Likewise.
49377         * modules/unicase/u8-casefold: Likewise.
49378         * modules/unicase/u8-casexfrm: Likewise.
49379         * modules/unicase/u8-ct-casefold: Likewise.
49380         * modules/unicase/u8-ct-tolower: Likewise.
49381         * modules/unicase/u8-ct-totitle: Likewise.
49382         * modules/unicase/u8-ct-toupper: Likewise.
49383         * modules/unicase/u8-is-cased: Likewise.
49384         * modules/unicase/u8-is-casefolded: Likewise.
49385         * modules/unicase/u8-is-lowercase: Likewise.
49386         * modules/unicase/u8-is-titlecase: Likewise.
49387         * modules/unicase/u8-is-uppercase: Likewise.
49388         * modules/unicase/u8-prefix-context: Likewise.
49389         * modules/unicase/u8-suffix-context: Likewise.
49390         * modules/unicase/u8-tolower: Likewise.
49391         * modules/unicase/u8-totitle: Likewise.
49392         * modules/unicase/u8-toupper: Likewise.
49393         * modules/unicase/u16-casecmp: Likewise.
49394         * modules/unicase/u16-casecoll: Likewise.
49395         * modules/unicase/u16-casefold: Likewise.
49396         * modules/unicase/u16-casexfrm: Likewise.
49397         * modules/unicase/u16-ct-casefold: Likewise.
49398         * modules/unicase/u16-ct-tolower: Likewise.
49399         * modules/unicase/u16-ct-totitle: Likewise.
49400         * modules/unicase/u16-ct-toupper: Likewise.
49401         * modules/unicase/u16-is-cased: Likewise.
49402         * modules/unicase/u16-is-casefolded: Likewise.
49403         * modules/unicase/u16-is-lowercase: Likewise.
49404         * modules/unicase/u16-is-titlecase: Likewise.
49405         * modules/unicase/u16-is-uppercase: Likewise.
49406         * modules/unicase/u16-prefix-context: Likewise.
49407         * modules/unicase/u16-suffix-context: Likewise.
49408         * modules/unicase/u16-tolower: Likewise.
49409         * modules/unicase/u16-totitle: Likewise.
49410         * modules/unicase/u16-toupper: Likewise.
49411         * modules/unicase/u32-casecmp: Likewise.
49412         * modules/unicase/u32-casecoll: Likewise.
49413         * modules/unicase/u32-casefold: Likewise.
49414         * modules/unicase/u32-casexfrm: Likewise.
49415         * modules/unicase/u32-ct-casefold: Likewise.
49416         * modules/unicase/u32-ct-tolower: Likewise.
49417         * modules/unicase/u32-ct-totitle: Likewise.
49418         * modules/unicase/u32-ct-toupper: Likewise.
49419         * modules/unicase/u32-is-cased: Likewise.
49420         * modules/unicase/u32-is-casefolded: Likewise.
49421         * modules/unicase/u32-is-lowercase: Likewise.
49422         * modules/unicase/u32-is-titlecase: Likewise.
49423         * modules/unicase/u32-is-uppercase: Likewise.
49424         * modules/unicase/u32-prefix-context: Likewise.
49425         * modules/unicase/u32-suffix-context: Likewise.
49426         * modules/unicase/u32-tolower: Likewise.
49427         * modules/unicase/u32-totitle: Likewise.
49428         * modules/unicase/u32-toupper: Likewise.
49429         * modules/unicase/ulc-casecmp: Likewise.
49430         * modules/unicase/ulc-casecoll: Likewise.
49431         * modules/unicase/ulc-casexfrm: Likewise.
49432         * modules/uniconv/u8-conv-from-enc: Likewise.
49433         * modules/uniconv/u8-conv-to-enc: Likewise.
49434         * modules/uniconv/u8-strconv-from-enc: Likewise.
49435         * modules/uniconv/u8-strconv-from-locale: Likewise.
49436         * modules/uniconv/u8-strconv-to-enc: Likewise.
49437         * modules/uniconv/u8-strconv-to-locale: Likewise.
49438         * modules/uniconv/u16-conv-from-enc: Likewise.
49439         * modules/uniconv/u16-conv-to-enc: Likewise.
49440         * modules/uniconv/u16-strconv-from-enc: Likewise.
49441         * modules/uniconv/u16-strconv-from-locale: Likewise.
49442         * modules/uniconv/u16-strconv-to-enc: Likewise.
49443         * modules/uniconv/u16-strconv-to-locale: Likewise.
49444         * modules/uniconv/u32-conv-from-enc: Likewise.
49445         * modules/uniconv/u32-conv-to-enc: Likewise.
49446         * modules/uniconv/u32-strconv-from-enc: Likewise.
49447         * modules/uniconv/u32-strconv-from-locale: Likewise.
49448         * modules/uniconv/u32-strconv-to-enc: Likewise.
49449         * modules/uniconv/u32-strconv-to-locale: Likewise.
49450         * modules/unictype/bidicategory-byname: Likewise.
49451         * modules/unictype/bidicategory-name: Likewise.
49452         * modules/unictype/bidicategory-of: Likewise.
49453         * modules/unictype/bidicategory-test: Likewise.
49454         * modules/unictype/block-list: Likewise.
49455         * modules/unictype/block-test: Likewise.
49456         * modules/unictype/category-C: Likewise.
49457         * modules/unictype/category-Cc: Likewise.
49458         * modules/unictype/category-Cf: Likewise.
49459         * modules/unictype/category-Cn: Likewise.
49460         * modules/unictype/category-Co: Likewise.
49461         * modules/unictype/category-Cs: Likewise.
49462         * modules/unictype/category-L: Likewise.
49463         * modules/unictype/category-Ll: Likewise.
49464         * modules/unictype/category-Lm: Likewise.
49465         * modules/unictype/category-Lo: Likewise.
49466         * modules/unictype/category-Lt: Likewise.
49467         * modules/unictype/category-Lu: Likewise.
49468         * modules/unictype/category-M: Likewise.
49469         * modules/unictype/category-Mc: Likewise.
49470         * modules/unictype/category-Me: Likewise.
49471         * modules/unictype/category-Mn: Likewise.
49472         * modules/unictype/category-N: Likewise.
49473         * modules/unictype/category-Nd: Likewise.
49474         * modules/unictype/category-Nl: Likewise.
49475         * modules/unictype/category-No: Likewise.
49476         * modules/unictype/category-P: Likewise.
49477         * modules/unictype/category-Pc: Likewise.
49478         * modules/unictype/category-Pd: Likewise.
49479         * modules/unictype/category-Pe: Likewise.
49480         * modules/unictype/category-Pf: Likewise.
49481         * modules/unictype/category-Pi: Likewise.
49482         * modules/unictype/category-Po: Likewise.
49483         * modules/unictype/category-Ps: Likewise.
49484         * modules/unictype/category-S: Likewise.
49485         * modules/unictype/category-Sc: Likewise.
49486         * modules/unictype/category-Sk: Likewise.
49487         * modules/unictype/category-Sm: Likewise.
49488         * modules/unictype/category-So: Likewise.
49489         * modules/unictype/category-Z: Likewise.
49490         * modules/unictype/category-Zl: Likewise.
49491         * modules/unictype/category-Zp: Likewise.
49492         * modules/unictype/category-Zs: Likewise.
49493         * modules/unictype/category-and: Likewise.
49494         * modules/unictype/category-and-not: Likewise.
49495         * modules/unictype/category-byname: Likewise.
49496         * modules/unictype/category-name: Likewise.
49497         * modules/unictype/category-none: Likewise.
49498         * modules/unictype/category-of: Likewise.
49499         * modules/unictype/category-or: Likewise.
49500         * modules/unictype/category-test: Likewise.
49501         * modules/unictype/combining-class: Likewise.
49502         * modules/unictype/ctype-alnum: Likewise.
49503         * modules/unictype/ctype-alpha: Likewise.
49504         * modules/unictype/ctype-blank: Likewise.
49505         * modules/unictype/ctype-cntrl: Likewise.
49506         * modules/unictype/ctype-digit: Likewise.
49507         * modules/unictype/ctype-graph: Likewise.
49508         * modules/unictype/ctype-lower: Likewise.
49509         * modules/unictype/ctype-print: Likewise.
49510         * modules/unictype/ctype-punct: Likewise.
49511         * modules/unictype/ctype-space: Likewise.
49512         * modules/unictype/ctype-upper: Likewise.
49513         * modules/unictype/ctype-xdigit: Likewise.
49514         * modules/unictype/decimal-digit: Likewise.
49515         * modules/unictype/digit: Likewise.
49516         * modules/unictype/mirror: Likewise.
49517         * modules/unictype/numeric: Likewise.
49518         * modules/unictype/property-alphabetic: Likewise.
49519         * modules/unictype/property-ascii-hex-digit: Likewise.
49520         * modules/unictype/property-bidi-arabic-digit: Likewise.
49521         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
49522         * modules/unictype/property-bidi-block-separator: Likewise.
49523         * modules/unictype/property-bidi-boundary-neutral: Likewise.
49524         * modules/unictype/property-bidi-common-separator: Likewise.
49525         * modules/unictype/property-bidi-control: Likewise.
49526         * modules/unictype/property-bidi-embedding-or-override: Likewise.
49527         * modules/unictype/property-bidi-eur-num-separator: Likewise.
49528         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
49529         * modules/unictype/property-bidi-european-digit: Likewise.
49530         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
49531         * modules/unictype/property-bidi-left-to-right: Likewise.
49532         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
49533         * modules/unictype/property-bidi-other-neutral: Likewise.
49534         * modules/unictype/property-bidi-pdf: Likewise.
49535         * modules/unictype/property-bidi-segment-separator: Likewise.
49536         * modules/unictype/property-bidi-whitespace: Likewise.
49537         * modules/unictype/property-byname: Likewise.
49538         * modules/unictype/property-combining: Likewise.
49539         * modules/unictype/property-composite: Likewise.
49540         * modules/unictype/property-currency-symbol: Likewise.
49541         * modules/unictype/property-dash: Likewise.
49542         * modules/unictype/property-decimal-digit: Likewise.
49543         * modules/unictype/property-default-ignorable-code-point: Likewise.
49544         * modules/unictype/property-deprecated: Likewise.
49545         * modules/unictype/property-diacritic: Likewise.
49546         * modules/unictype/property-extender: Likewise.
49547         * modules/unictype/property-format-control: Likewise.
49548         * modules/unictype/property-grapheme-base: Likewise.
49549         * modules/unictype/property-grapheme-extend: Likewise.
49550         * modules/unictype/property-grapheme-link: Likewise.
49551         * modules/unictype/property-hex-digit: Likewise.
49552         * modules/unictype/property-hyphen: Likewise.
49553         * modules/unictype/property-id-continue: Likewise.
49554         * modules/unictype/property-id-start: Likewise.
49555         * modules/unictype/property-ideographic: Likewise.
49556         * modules/unictype/property-ids-binary-operator: Likewise.
49557         * modules/unictype/property-ids-trinary-operator: Likewise.
49558         * modules/unictype/property-ignorable-control: Likewise.
49559         * modules/unictype/property-iso-control: Likewise.
49560         * modules/unictype/property-join-control: Likewise.
49561         * modules/unictype/property-left-of-pair: Likewise.
49562         * modules/unictype/property-line-separator: Likewise.
49563         * modules/unictype/property-logical-order-exception: Likewise.
49564         * modules/unictype/property-lowercase: Likewise.
49565         * modules/unictype/property-math: Likewise.
49566         * modules/unictype/property-non-break: Likewise.
49567         * modules/unictype/property-not-a-character: Likewise.
49568         * modules/unictype/property-numeric: Likewise.
49569         * modules/unictype/property-other-alphabetic: Likewise.
49570         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
49571         * modules/unictype/property-other-grapheme-extend: Likewise.
49572         * modules/unictype/property-other-id-continue: Likewise.
49573         * modules/unictype/property-other-id-start: Likewise.
49574         * modules/unictype/property-other-lowercase: Likewise.
49575         * modules/unictype/property-other-math: Likewise.
49576         * modules/unictype/property-other-uppercase: Likewise.
49577         * modules/unictype/property-paired-punctuation: Likewise.
49578         * modules/unictype/property-paragraph-separator: Likewise.
49579         * modules/unictype/property-pattern-syntax: Likewise.
49580         * modules/unictype/property-pattern-white-space: Likewise.
49581         * modules/unictype/property-private-use: Likewise.
49582         * modules/unictype/property-punctuation: Likewise.
49583         * modules/unictype/property-quotation-mark: Likewise.
49584         * modules/unictype/property-radical: Likewise.
49585         * modules/unictype/property-sentence-terminal: Likewise.
49586         * modules/unictype/property-soft-dotted: Likewise.
49587         * modules/unictype/property-space: Likewise.
49588         * modules/unictype/property-terminal-punctuation: Likewise.
49589         * modules/unictype/property-test: Likewise.
49590         * modules/unictype/property-titlecase: Likewise.
49591         * modules/unictype/property-unassigned-code-value: Likewise.
49592         * modules/unictype/property-unified-ideograph: Likewise.
49593         * modules/unictype/property-uppercase: Likewise.
49594         * modules/unictype/property-variation-selector: Likewise.
49595         * modules/unictype/property-white-space: Likewise.
49596         * modules/unictype/property-xid-continue: Likewise.
49597         * modules/unictype/property-xid-start: Likewise.
49598         * modules/unictype/property-zero-width: Likewise.
49599         * modules/unictype/scripts: Likewise.
49600         * modules/unictype/syntax-c-ident: Likewise.
49601         * modules/unictype/syntax-c-whitespace: Likewise.
49602         * modules/unictype/syntax-java-ident: Likewise.
49603         * modules/unictype/syntax-java-whitespace: Likewise.
49604         * modules/unilbrk/u8-possible-linebreaks: Likewise.
49605         * modules/unilbrk/u8-width-linebreaks: Likewise.
49606         * modules/unilbrk/u16-possible-linebreaks: Likewise.
49607         * modules/unilbrk/u16-width-linebreaks: Likewise.
49608         * modules/unilbrk/u32-possible-linebreaks: Likewise.
49609         * modules/unilbrk/u32-width-linebreaks: Likewise.
49610         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
49611         * modules/unilbrk/ulc-width-linebreaks: Likewise.
49612         * modules/uniname/uniname: Likewise.
49613         * modules/uninorm/canonical-decomposition: Likewise.
49614         * modules/uninorm/composition: Likewise.
49615         * modules/uninorm/decomposing-form: Likewise.
49616         * modules/uninorm/decomposition: Likewise.
49617         * modules/uninorm/filter: Likewise.
49618         * modules/uninorm/nfc: Likewise.
49619         * modules/uninorm/nfd: Likewise.
49620         * modules/uninorm/nfkc: Likewise.
49621         * modules/uninorm/nfkd: Likewise.
49622         * modules/uninorm/u8-normalize: Likewise.
49623         * modules/uninorm/u8-normcmp: Likewise.
49624         * modules/uninorm/u8-normcoll: Likewise.
49625         * modules/uninorm/u8-normxfrm: Likewise.
49626         * modules/uninorm/u16-normalize: Likewise.
49627         * modules/uninorm/u16-normcmp: Likewise.
49628         * modules/uninorm/u16-normcoll: Likewise.
49629         * modules/uninorm/u16-normxfrm: Likewise.
49630         * modules/uninorm/u32-normalize: Likewise.
49631         * modules/uninorm/u32-normcmp: Likewise.
49632         * modules/uninorm/u32-normcoll: Likewise.
49633         * modules/uninorm/u32-normxfrm: Likewise.
49634         * modules/unistdio/u8-asnprintf: Likewise.
49635         * modules/unistdio/u8-asprintf: Likewise.
49636         * modules/unistdio/u8-snprintf: Likewise.
49637         * modules/unistdio/u8-sprintf: Likewise.
49638         * modules/unistdio/u8-u8-asnprintf: Likewise.
49639         * modules/unistdio/u8-u8-asprintf: Likewise.
49640         * modules/unistdio/u8-u8-snprintf: Likewise.
49641         * modules/unistdio/u8-u8-sprintf: Likewise.
49642         * modules/unistdio/u8-u8-vasnprintf: Likewise.
49643         * modules/unistdio/u8-u8-vasprintf: Likewise.
49644         * modules/unistdio/u8-u8-vsnprintf: Likewise.
49645         * modules/unistdio/u8-u8-vsprintf: Likewise.
49646         * modules/unistdio/u8-vasnprintf: Likewise.
49647         * modules/unistdio/u8-vasprintf: Likewise.
49648         * modules/unistdio/u8-vsnprintf: Likewise.
49649         * modules/unistdio/u8-vsprintf: Likewise.
49650         * modules/unistdio/u16-asnprintf: Likewise.
49651         * modules/unistdio/u16-asprintf: Likewise.
49652         * modules/unistdio/u16-snprintf: Likewise.
49653         * modules/unistdio/u16-sprintf: Likewise.
49654         * modules/unistdio/u16-u16-asnprintf: Likewise.
49655         * modules/unistdio/u16-u16-asprintf: Likewise.
49656         * modules/unistdio/u16-u16-snprintf: Likewise.
49657         * modules/unistdio/u16-u16-sprintf: Likewise.
49658         * modules/unistdio/u16-u16-vasnprintf: Likewise.
49659         * modules/unistdio/u16-u16-vasprintf: Likewise.
49660         * modules/unistdio/u16-u16-vsnprintf: Likewise.
49661         * modules/unistdio/u16-u16-vsprintf: Likewise.
49662         * modules/unistdio/u16-vasnprintf: Likewise.
49663         * modules/unistdio/u16-vasprintf: Likewise.
49664         * modules/unistdio/u16-vsnprintf: Likewise.
49665         * modules/unistdio/u16-vsprintf: Likewise.
49666         * modules/unistdio/u32-asnprintf: Likewise.
49667         * modules/unistdio/u32-asprintf: Likewise.
49668         * modules/unistdio/u32-snprintf: Likewise.
49669         * modules/unistdio/u32-sprintf: Likewise.
49670         * modules/unistdio/u32-u32-asnprintf: Likewise.
49671         * modules/unistdio/u32-u32-asprintf: Likewise.
49672         * modules/unistdio/u32-u32-snprintf: Likewise.
49673         * modules/unistdio/u32-u32-sprintf: Likewise.
49674         * modules/unistdio/u32-u32-vasnprintf: Likewise.
49675         * modules/unistdio/u32-u32-vasprintf: Likewise.
49676         * modules/unistdio/u32-u32-vsnprintf: Likewise.
49677         * modules/unistdio/u32-u32-vsprintf: Likewise.
49678         * modules/unistdio/u32-vasnprintf: Likewise.
49679         * modules/unistdio/u32-vasprintf: Likewise.
49680         * modules/unistdio/u32-vsnprintf: Likewise.
49681         * modules/unistdio/u32-vsprintf: Likewise.
49682         * modules/unistdio/ulc-asnprintf: Likewise.
49683         * modules/unistdio/ulc-asprintf: Likewise.
49684         * modules/unistdio/ulc-fprintf: Likewise.
49685         * modules/unistdio/ulc-snprintf: Likewise.
49686         * modules/unistdio/ulc-sprintf: Likewise.
49687         * modules/unistdio/ulc-vasnprintf: Likewise.
49688         * modules/unistdio/ulc-vasprintf: Likewise.
49689         * modules/unistdio/ulc-vfprintf: Likewise.
49690         * modules/unistdio/ulc-vsnprintf: Likewise.
49691         * modules/unistdio/ulc-vsprintf: Likewise.
49692         * modules/unistr/u8-check: Likewise.
49693         * modules/unistr/u8-chr: Likewise.
49694         * modules/unistr/u8-cmp: Likewise.
49695         * modules/unistr/u8-cmp2: Likewise.
49696         * modules/unistr/u8-cpy: Likewise.
49697         * modules/unistr/u8-cpy-alloc: Likewise.
49698         * modules/unistr/u8-endswith: Likewise.
49699         * modules/unistr/u8-mblen: Likewise.
49700         * modules/unistr/u8-mbsnlen: Likewise.
49701         * modules/unistr/u8-mbtouc: Likewise.
49702         * modules/unistr/u8-mbtouc-unsafe: Likewise.
49703         * modules/unistr/u8-mbtoucr: Likewise.
49704         * modules/unistr/u8-move: Likewise.
49705         * modules/unistr/u8-next: Likewise.
49706         * modules/unistr/u8-prev: Likewise.
49707         * modules/unistr/u8-set: Likewise.
49708         * modules/unistr/u8-startswith: Likewise.
49709         * modules/unistr/u8-stpcpy: Likewise.
49710         * modules/unistr/u8-stpncpy: Likewise.
49711         * modules/unistr/u8-strcat: Likewise.
49712         * modules/unistr/u8-strchr: Likewise.
49713         * modules/unistr/u8-strcmp: Likewise.
49714         * modules/unistr/u8-strcoll: Likewise.
49715         * modules/unistr/u8-strcpy: Likewise.
49716         * modules/unistr/u8-strcspn: Likewise.
49717         * modules/unistr/u8-strdup: Likewise.
49718         * modules/unistr/u8-strlen: Likewise.
49719         * modules/unistr/u8-strmblen: Likewise.
49720         * modules/unistr/u8-strmbtouc: Likewise.
49721         * modules/unistr/u8-strncat: Likewise.
49722         * modules/unistr/u8-strncmp: Likewise.
49723         * modules/unistr/u8-strncpy: Likewise.
49724         * modules/unistr/u8-strnlen: Likewise.
49725         * modules/unistr/u8-strpbrk: Likewise.
49726         * modules/unistr/u8-strrchr: Likewise.
49727         * modules/unistr/u8-strspn: Likewise.
49728         * modules/unistr/u8-strstr: Likewise.
49729         * modules/unistr/u8-strtok: Likewise.
49730         * modules/unistr/u8-to-u16: Likewise.
49731         * modules/unistr/u8-to-u32: Likewise.
49732         * modules/unistr/u8-uctomb: Likewise.
49733         * modules/unistr/u16-check: Likewise.
49734         * modules/unistr/u16-chr: Likewise.
49735         * modules/unistr/u16-cmp: Likewise.
49736         * modules/unistr/u16-cmp2: Likewise.
49737         * modules/unistr/u16-cpy: Likewise.
49738         * modules/unistr/u16-cpy-alloc: Likewise.
49739         * modules/unistr/u16-endswith: Likewise.
49740         * modules/unistr/u16-mblen: Likewise.
49741         * modules/unistr/u16-mbsnlen: Likewise.
49742         * modules/unistr/u16-mbtouc: Likewise.
49743         * modules/unistr/u16-mbtouc-unsafe: Likewise.
49744         * modules/unistr/u16-mbtoucr: Likewise.
49745         * modules/unistr/u16-move: Likewise.
49746         * modules/unistr/u16-next: Likewise.
49747         * modules/unistr/u16-prev: Likewise.
49748         * modules/unistr/u16-set: Likewise.
49749         * modules/unistr/u16-startswith: Likewise.
49750         * modules/unistr/u16-stpcpy: Likewise.
49751         * modules/unistr/u16-stpncpy: Likewise.
49752         * modules/unistr/u16-strcat: Likewise.
49753         * modules/unistr/u16-strchr: Likewise.
49754         * modules/unistr/u16-strcmp: Likewise.
49755         * modules/unistr/u16-strcoll: Likewise.
49756         * modules/unistr/u16-strcpy: Likewise.
49757         * modules/unistr/u16-strcspn: Likewise.
49758         * modules/unistr/u16-strdup: Likewise.
49759         * modules/unistr/u16-strlen: Likewise.
49760         * modules/unistr/u16-strmblen: Likewise.
49761         * modules/unistr/u16-strmbtouc: Likewise.
49762         * modules/unistr/u16-strncat: Likewise.
49763         * modules/unistr/u16-strncmp: Likewise.
49764         * modules/unistr/u16-strncpy: Likewise.
49765         * modules/unistr/u16-strnlen: Likewise.
49766         * modules/unistr/u16-strpbrk: Likewise.
49767         * modules/unistr/u16-strrchr: Likewise.
49768         * modules/unistr/u16-strspn: Likewise.
49769         * modules/unistr/u16-strstr: Likewise.
49770         * modules/unistr/u16-strtok: Likewise.
49771         * modules/unistr/u16-to-u32: Likewise.
49772         * modules/unistr/u16-to-u8: Likewise.
49773         * modules/unistr/u16-uctomb: Likewise.
49774         * modules/unistr/u32-check: Likewise.
49775         * modules/unistr/u32-chr: Likewise.
49776         * modules/unistr/u32-cmp: Likewise.
49777         * modules/unistr/u32-cmp2: Likewise.
49778         * modules/unistr/u32-cpy: Likewise.
49779         * modules/unistr/u32-cpy-alloc: Likewise.
49780         * modules/unistr/u32-endswith: Likewise.
49781         * modules/unistr/u32-mblen: Likewise.
49782         * modules/unistr/u32-mbsnlen: Likewise.
49783         * modules/unistr/u32-mbtouc: Likewise.
49784         * modules/unistr/u32-mbtouc-unsafe: Likewise.
49785         * modules/unistr/u32-mbtoucr: Likewise.
49786         * modules/unistr/u32-move: Likewise.
49787         * modules/unistr/u32-next: Likewise.
49788         * modules/unistr/u32-prev: Likewise.
49789         * modules/unistr/u32-set: Likewise.
49790         * modules/unistr/u32-startswith: Likewise.
49791         * modules/unistr/u32-stpcpy: Likewise.
49792         * modules/unistr/u32-stpncpy: Likewise.
49793         * modules/unistr/u32-strcat: Likewise.
49794         * modules/unistr/u32-strchr: Likewise.
49795         * modules/unistr/u32-strcmp: Likewise.
49796         * modules/unistr/u32-strcoll: Likewise.
49797         * modules/unistr/u32-strcpy: Likewise.
49798         * modules/unistr/u32-strcspn: Likewise.
49799         * modules/unistr/u32-strdup: Likewise.
49800         * modules/unistr/u32-strlen: Likewise.
49801         * modules/unistr/u32-strmblen: Likewise.
49802         * modules/unistr/u32-strmbtouc: Likewise.
49803         * modules/unistr/u32-strncat: Likewise.
49804         * modules/unistr/u32-strncmp: Likewise.
49805         * modules/unistr/u32-strncpy: Likewise.
49806         * modules/unistr/u32-strnlen: Likewise.
49807         * modules/unistr/u32-strpbrk: Likewise.
49808         * modules/unistr/u32-strrchr: Likewise.
49809         * modules/unistr/u32-strspn: Likewise.
49810         * modules/unistr/u32-strstr: Likewise.
49811         * modules/unistr/u32-strtok: Likewise.
49812         * modules/unistr/u32-to-u16: Likewise.
49813         * modules/unistr/u32-to-u8: Likewise.
49814         * modules/unistr/u32-uctomb: Likewise.
49815         * modules/uniwbrk/u8-wordbreaks: Likewise.
49816         * modules/uniwbrk/u16-wordbreaks: Likewise.
49817         * modules/uniwbrk/u32-wordbreaks: Likewise.
49818         * modules/uniwbrk/ulc-wordbreaks: Likewise.
49819         * modules/uniwbrk/wordbreak-property: Likewise.
49820         * modules/uniwidth/u8-strwidth: Likewise.
49821         * modules/uniwidth/u8-width: Likewise.
49822         * modules/uniwidth/u16-strwidth: Likewise.
49823         * modules/uniwidth/u16-width: Likewise.
49824         * modules/uniwidth/u32-strwidth: Likewise.
49825         * modules/uniwidth/u32-width: Likewise.
49826         * modules/uniwidth/width: Likewise.
49827         * modules/unicase/cased-tests (Makefile.am): Link all test programs
49828         with $(LIBUNISTRING).
49829         * modules/unicase/ignorable-tests: Likewise.
49830         * modules/unicase/locale-language-tests: Likewise.
49831         * modules/unicase/tolower-tests: Likewise.
49832         * modules/unicase/totitle-tests: Likewise.
49833         * modules/unicase/toupper-tests: Likewise.
49834         * modules/unicase/u8-casecmp-tests: Likewise.
49835         * modules/unicase/u8-casecoll-tests: Likewise.
49836         * modules/unicase/u8-casefold-tests: Likewise.
49837         * modules/unicase/u8-is-cased-tests: Likewise.
49838         * modules/unicase/u8-is-casefolded-tests: Likewise.
49839         * modules/unicase/u8-is-lowercase-tests: Likewise.
49840         * modules/unicase/u8-is-titlecase-tests: Likewise.
49841         * modules/unicase/u8-is-uppercase-tests: Likewise.
49842         * modules/unicase/u8-tolower-tests: Likewise.
49843         * modules/unicase/u8-totitle-tests: Likewise.
49844         * modules/unicase/u8-toupper-tests: Likewise.
49845         * modules/unicase/u16-casecmp-tests: Likewise.
49846         * modules/unicase/u16-casecoll-tests: Likewise.
49847         * modules/unicase/u16-casefold-tests: Likewise.
49848         * modules/unicase/u16-is-cased-tests: Likewise.
49849         * modules/unicase/u16-is-casefolded-tests: Likewise.
49850         * modules/unicase/u16-is-lowercase-tests: Likewise.
49851         * modules/unicase/u16-is-titlecase-tests: Likewise.
49852         * modules/unicase/u16-is-uppercase-tests: Likewise.
49853         * modules/unicase/u16-tolower-tests: Likewise.
49854         * modules/unicase/u16-totitle-tests: Likewise.
49855         * modules/unicase/u16-toupper-tests: Likewise.
49856         * modules/unicase/u32-casecmp-tests: Likewise.
49857         * modules/unicase/u32-casecoll-tests: Likewise.
49858         * modules/unicase/u32-casefold-tests: Likewise.
49859         * modules/unicase/u32-is-cased-tests: Likewise.
49860         * modules/unicase/u32-is-casefolded-tests: Likewise.
49861         * modules/unicase/u32-is-lowercase-tests: Likewise.
49862         * modules/unicase/u32-is-titlecase-tests: Likewise.
49863         * modules/unicase/u32-is-uppercase-tests: Likewise.
49864         * modules/unicase/u32-tolower-tests: Likewise.
49865         * modules/unicase/u32-totitle-tests: Likewise.
49866         * modules/unicase/u32-toupper-tests: Likewise.
49867         * modules/unicase/ulc-casecmp-tests: Likewise.
49868         * modules/unicase/ulc-casecoll-tests: Likewise.
49869         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
49870         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
49871         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
49872         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
49873         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
49874         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
49875         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
49876         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
49877         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
49878         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
49879         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
49880         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
49881         * modules/unictype/bidicategory-byname-tests: Likewise.
49882         * modules/unictype/bidicategory-name-tests: Likewise.
49883         * modules/unictype/bidicategory-of-tests: Likewise.
49884         * modules/unictype/bidicategory-test-tests: Likewise.
49885         * modules/unictype/block-list-tests: Likewise.
49886         * modules/unictype/block-of-tests: Likewise.
49887         * modules/unictype/block-test-tests: Likewise.
49888         * modules/unictype/category-C-tests: Likewise.
49889         * modules/unictype/category-Cc-tests: Likewise.
49890         * modules/unictype/category-Cf-tests: Likewise.
49891         * modules/unictype/category-Cn-tests: Likewise.
49892         * modules/unictype/category-Co-tests: Likewise.
49893         * modules/unictype/category-Cs-tests: Likewise.
49894         * modules/unictype/category-L-tests: Likewise.
49895         * modules/unictype/category-Ll-tests: Likewise.
49896         * modules/unictype/category-Lm-tests: Likewise.
49897         * modules/unictype/category-Lo-tests: Likewise.
49898         * modules/unictype/category-Lt-tests: Likewise.
49899         * modules/unictype/category-Lu-tests: Likewise.
49900         * modules/unictype/category-M-tests: Likewise.
49901         * modules/unictype/category-Mc-tests: Likewise.
49902         * modules/unictype/category-Me-tests: Likewise.
49903         * modules/unictype/category-Mn-tests: Likewise.
49904         * modules/unictype/category-N-tests: Likewise.
49905         * modules/unictype/category-Nd-tests: Likewise.
49906         * modules/unictype/category-Nl-tests: Likewise.
49907         * modules/unictype/category-No-tests: Likewise.
49908         * modules/unictype/category-P-tests: Likewise.
49909         * modules/unictype/category-Pc-tests: Likewise.
49910         * modules/unictype/category-Pd-tests: Likewise.
49911         * modules/unictype/category-Pe-tests: Likewise.
49912         * modules/unictype/category-Pf-tests: Likewise.
49913         * modules/unictype/category-Pi-tests: Likewise.
49914         * modules/unictype/category-Po-tests: Likewise.
49915         * modules/unictype/category-Ps-tests: Likewise.
49916         * modules/unictype/category-S-tests: Likewise.
49917         * modules/unictype/category-Sc-tests: Likewise.
49918         * modules/unictype/category-Sk-tests: Likewise.
49919         * modules/unictype/category-Sm-tests: Likewise.
49920         * modules/unictype/category-So-tests: Likewise.
49921         * modules/unictype/category-Z-tests: Likewise.
49922         * modules/unictype/category-Zl-tests: Likewise.
49923         * modules/unictype/category-Zp-tests: Likewise.
49924         * modules/unictype/category-Zs-tests: Likewise.
49925         * modules/unictype/category-and-not-tests: Likewise.
49926         * modules/unictype/category-and-tests: Likewise.
49927         * modules/unictype/category-byname-tests: Likewise.
49928         * modules/unictype/category-name-tests: Likewise.
49929         * modules/unictype/category-none-tests: Likewise.
49930         * modules/unictype/category-of-tests: Likewise.
49931         * modules/unictype/category-or-tests: Likewise.
49932         * modules/unictype/category-test-withtable-tests: Likewise.
49933         * modules/unictype/combining-class-tests: Likewise.
49934         * modules/unictype/ctype-alnum-tests: Likewise.
49935         * modules/unictype/ctype-alpha-tests: Likewise.
49936         * modules/unictype/ctype-blank-tests: Likewise.
49937         * modules/unictype/ctype-cntrl-tests: Likewise.
49938         * modules/unictype/ctype-digit-tests: Likewise.
49939         * modules/unictype/ctype-graph-tests: Likewise.
49940         * modules/unictype/ctype-lower-tests: Likewise.
49941         * modules/unictype/ctype-print-tests: Likewise.
49942         * modules/unictype/ctype-punct-tests: Likewise.
49943         * modules/unictype/ctype-space-tests: Likewise.
49944         * modules/unictype/ctype-upper-tests: Likewise.
49945         * modules/unictype/ctype-xdigit-tests: Likewise.
49946         * modules/unictype/decimal-digit-tests: Likewise.
49947         * modules/unictype/digit-tests: Likewise.
49948         * modules/unictype/mirror-tests: Likewise.
49949         * modules/unictype/numeric-tests: Likewise.
49950         * modules/unictype/property-alphabetic-tests: Likewise.
49951         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
49952         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
49953         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
49954         * modules/unictype/property-bidi-block-separator-tests: Likewise.
49955         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
49956         * modules/unictype/property-bidi-common-separator-tests: Likewise.
49957         * modules/unictype/property-bidi-control-tests: Likewise.
49958         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
49959         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
49960         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
49961         * modules/unictype/property-bidi-european-digit-tests: Likewise.
49962         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
49963         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
49964         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
49965         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
49966         * modules/unictype/property-bidi-pdf-tests: Likewise.
49967         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
49968         * modules/unictype/property-bidi-whitespace-tests: Likewise.
49969         * modules/unictype/property-byname-tests: Likewise.
49970         * modules/unictype/property-combining-tests: Likewise.
49971         * modules/unictype/property-composite-tests: Likewise.
49972         * modules/unictype/property-currency-symbol-tests: Likewise.
49973         * modules/unictype/property-dash-tests: Likewise.
49974         * modules/unictype/property-decimal-digit-tests: Likewise.
49975         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
49976         * modules/unictype/property-deprecated-tests: Likewise.
49977         * modules/unictype/property-diacritic-tests: Likewise.
49978         * modules/unictype/property-extender-tests: Likewise.
49979         * modules/unictype/property-format-control-tests: Likewise.
49980         * modules/unictype/property-grapheme-base-tests: Likewise.
49981         * modules/unictype/property-grapheme-extend-tests: Likewise.
49982         * modules/unictype/property-grapheme-link-tests: Likewise.
49983         * modules/unictype/property-hex-digit-tests: Likewise.
49984         * modules/unictype/property-hyphen-tests: Likewise.
49985         * modules/unictype/property-id-continue-tests: Likewise.
49986         * modules/unictype/property-id-start-tests: Likewise.
49987         * modules/unictype/property-ideographic-tests: Likewise.
49988         * modules/unictype/property-ids-binary-operator-tests: Likewise.
49989         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
49990         * modules/unictype/property-ignorable-control-tests: Likewise.
49991         * modules/unictype/property-iso-control-tests: Likewise.
49992         * modules/unictype/property-join-control-tests: Likewise.
49993         * modules/unictype/property-left-of-pair-tests: Likewise.
49994         * modules/unictype/property-line-separator-tests: Likewise.
49995         * modules/unictype/property-logical-order-exception-tests: Likewise.
49996         * modules/unictype/property-lowercase-tests: Likewise.
49997         * modules/unictype/property-math-tests: Likewise.
49998         * modules/unictype/property-non-break-tests: Likewise.
49999         * modules/unictype/property-not-a-character-tests: Likewise.
50000         * modules/unictype/property-numeric-tests: Likewise.
50001         * modules/unictype/property-other-alphabetic-tests: Likewise.
50002         * modules/unictype/property-other-default-ignorable-code-point-tests:
50003         Likewise.
50004         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
50005         * modules/unictype/property-other-id-continue-tests: Likewise.
50006         * modules/unictype/property-other-id-start-tests: Likewise.
50007         * modules/unictype/property-other-lowercase-tests: Likewise.
50008         * modules/unictype/property-other-math-tests: Likewise.
50009         * modules/unictype/property-other-uppercase-tests: Likewise.
50010         * modules/unictype/property-paired-punctuation-tests: Likewise.
50011         * modules/unictype/property-paragraph-separator-tests: Likewise.
50012         * modules/unictype/property-pattern-syntax-tests: Likewise.
50013         * modules/unictype/property-pattern-white-space-tests: Likewise.
50014         * modules/unictype/property-private-use-tests: Likewise.
50015         * modules/unictype/property-punctuation-tests: Likewise.
50016         * modules/unictype/property-quotation-mark-tests: Likewise.
50017         * modules/unictype/property-radical-tests: Likewise.
50018         * modules/unictype/property-sentence-terminal-tests: Likewise.
50019         * modules/unictype/property-soft-dotted-tests: Likewise.
50020         * modules/unictype/property-space-tests: Likewise.
50021         * modules/unictype/property-terminal-punctuation-tests: Likewise.
50022         * modules/unictype/property-test-tests: Likewise.
50023         * modules/unictype/property-titlecase-tests: Likewise.
50024         * modules/unictype/property-unassigned-code-value-tests: Likewise.
50025         * modules/unictype/property-unified-ideograph-tests: Likewise.
50026         * modules/unictype/property-uppercase-tests: Likewise.
50027         * modules/unictype/property-variation-selector-tests: Likewise.
50028         * modules/unictype/property-white-space-tests: Likewise.
50029         * modules/unictype/property-xid-continue-tests: Likewise.
50030         * modules/unictype/property-xid-start-tests: Likewise.
50031         * modules/unictype/property-zero-width-tests: Likewise.
50032         * modules/unictype/scripts-tests: Likewise.
50033         * modules/unictype/syntax-c-ident-tests: Likewise.
50034         * modules/unictype/syntax-c-whitespace-tests: Likewise.
50035         * modules/unictype/syntax-java-ident-tests: Likewise.
50036         * modules/unictype/syntax-java-whitespace-tests: Likewise.
50037         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
50038         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
50039         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
50040         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
50041         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
50042         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
50043         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
50044         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
50045         * modules/uniname/uniname-tests: Likewise.
50046         * modules/uninorm/canonical-decomposition-tests: Likewise.
50047         * modules/uninorm/compat-decomposition-tests: Likewise.
50048         * modules/uninorm/composition-tests: Likewise.
50049         * modules/uninorm/decomposing-form-tests: Likewise.
50050         * modules/uninorm/decomposition-tests: Likewise.
50051         * modules/uninorm/filter-tests: Likewise.
50052         * modules/uninorm/nfc-tests: Likewise.
50053         * modules/uninorm/nfd-tests: Likewise.
50054         * modules/uninorm/nfkc-tests: Likewise.
50055         * modules/uninorm/nfkd-tests: Likewise.
50056         * modules/uninorm/u8-normcmp-tests: Likewise.
50057         * modules/uninorm/u8-normcoll-tests: Likewise.
50058         * modules/uninorm/u16-normcmp-tests: Likewise.
50059         * modules/uninorm/u16-normcoll-tests: Likewise.
50060         * modules/uninorm/u32-normcmp-tests: Likewise.
50061         * modules/uninorm/u32-normcoll-tests: Likewise.
50062         * modules/unistdio/u8-asnprintf-tests: Likewise.
50063         * modules/unistdio/u8-vasnprintf-tests: Likewise.
50064         * modules/unistdio/u8-vasprintf-tests: Likewise.
50065         * modules/unistdio/u8-vsnprintf-tests: Likewise.
50066         * modules/unistdio/u8-vsprintf-tests: Likewise.
50067         * modules/unistdio/u16-asnprintf-tests: Likewise.
50068         * modules/unistdio/u16-vasnprintf-tests: Likewise.
50069         * modules/unistdio/u16-vasprintf-tests: Likewise.
50070         * modules/unistdio/u16-vsnprintf-tests: Likewise.
50071         * modules/unistdio/u16-vsprintf-tests: Likewise.
50072         * modules/unistdio/u32-asnprintf-tests: Likewise.
50073         * modules/unistdio/u32-vasnprintf-tests: Likewise.
50074         * modules/unistdio/u32-vasprintf-tests: Likewise.
50075         * modules/unistdio/u32-vsnprintf-tests: Likewise.
50076         * modules/unistdio/u32-vsprintf-tests: Likewise.
50077         * modules/unistdio/ulc-asnprintf-tests: Likewise.
50078         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
50079         * modules/unistdio/ulc-vasprintf-tests: Likewise.
50080         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
50081         * modules/unistdio/ulc-vsprintf-tests: Likewise.
50082         * modules/unistr/u8-check-tests: Likewise.
50083         * modules/unistr/u8-chr-tests: Likewise.
50084         * modules/unistr/u8-cmp-tests: Likewise.
50085         * modules/unistr/u8-cmp2-tests: Likewise.
50086         * modules/unistr/u8-cpy-alloc-tests: Likewise.
50087         * modules/unistr/u8-cpy-tests: Likewise.
50088         * modules/unistr/u8-mblen-tests: Likewise.
50089         * modules/unistr/u8-mbsnlen-tests: Likewise.
50090         * modules/unistr/u8-mbtouc-tests: Likewise.
50091         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
50092         * modules/unistr/u8-mbtoucr-tests: Likewise.
50093         * modules/unistr/u8-move-tests: Likewise.
50094         * modules/unistr/u8-next-tests: Likewise.
50095         * modules/unistr/u8-prev-tests: Likewise.
50096         * modules/unistr/u8-set-tests: Likewise.
50097         * modules/unistr/u8-stpcpy-tests: Likewise.
50098         * modules/unistr/u8-stpncpy-tests: Likewise.
50099         * modules/unistr/u8-strcat-tests: Likewise.
50100         * modules/unistr/u8-strcmp-tests: Likewise.
50101         * modules/unistr/u8-strcoll-tests: Likewise.
50102         * modules/unistr/u8-strcpy-tests: Likewise.
50103         * modules/unistr/u8-strdup-tests: Likewise.
50104         * modules/unistr/u8-strlen-tests: Likewise.
50105         * modules/unistr/u8-strmblen-tests: Likewise.
50106         * modules/unistr/u8-strmbtouc-tests: Likewise.
50107         * modules/unistr/u8-strncat-tests: Likewise.
50108         * modules/unistr/u8-strncmp-tests: Likewise.
50109         * modules/unistr/u8-strncpy-tests: Likewise.
50110         * modules/unistr/u8-strnlen-tests: Likewise.
50111         * modules/unistr/u8-to-u16-tests: Likewise.
50112         * modules/unistr/u8-to-u32-tests: Likewise.
50113         * modules/unistr/u8-uctomb-tests: Likewise.
50114         * modules/unistr/u16-check-tests: Likewise.
50115         * modules/unistr/u16-chr-tests: Likewise.
50116         * modules/unistr/u16-cmp-tests: Likewise.
50117         * modules/unistr/u16-cmp2-tests: Likewise.
50118         * modules/unistr/u16-cpy-alloc-tests: Likewise.
50119         * modules/unistr/u16-cpy-tests: Likewise.
50120         * modules/unistr/u16-mblen-tests: Likewise.
50121         * modules/unistr/u16-mbsnlen-tests: Likewise.
50122         * modules/unistr/u16-mbtouc-tests: Likewise.
50123         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
50124         * modules/unistr/u16-mbtoucr-tests: Likewise.
50125         * modules/unistr/u16-move-tests: Likewise.
50126         * modules/unistr/u16-next-tests: Likewise.
50127         * modules/unistr/u16-prev-tests: Likewise.
50128         * modules/unistr/u16-set-tests: Likewise.
50129         * modules/unistr/u16-stpcpy-tests: Likewise.
50130         * modules/unistr/u16-stpncpy-tests: Likewise.
50131         * modules/unistr/u16-strcat-tests: Likewise.
50132         * modules/unistr/u16-strcmp-tests: Likewise.
50133         * modules/unistr/u16-strcoll-tests: Likewise.
50134         * modules/unistr/u16-strcpy-tests: Likewise.
50135         * modules/unistr/u16-strdup-tests: Likewise.
50136         * modules/unistr/u16-strlen-tests: Likewise.
50137         * modules/unistr/u16-strmblen-tests: Likewise.
50138         * modules/unistr/u16-strmbtouc-tests: Likewise.
50139         * modules/unistr/u16-strncat-tests: Likewise.
50140         * modules/unistr/u16-strncmp-tests: Likewise.
50141         * modules/unistr/u16-strncpy-tests: Likewise.
50142         * modules/unistr/u16-strnlen-tests: Likewise.
50143         * modules/unistr/u16-to-u32-tests: Likewise.
50144         * modules/unistr/u16-to-u8-tests: Likewise.
50145         * modules/unistr/u16-uctomb-tests: Likewise.
50146         * modules/unistr/u32-check-tests: Likewise.
50147         * modules/unistr/u32-chr-tests: Likewise.
50148         * modules/unistr/u32-cmp-tests: Likewise.
50149         * modules/unistr/u32-cmp2-tests: Likewise.
50150         * modules/unistr/u32-cpy-alloc-tests: Likewise.
50151         * modules/unistr/u32-cpy-tests: Likewise.
50152         * modules/unistr/u32-mblen-tests: Likewise.
50153         * modules/unistr/u32-mbsnlen-tests: Likewise.
50154         * modules/unistr/u32-mbtouc-tests: Likewise.
50155         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
50156         * modules/unistr/u32-mbtoucr-tests: Likewise.
50157         * modules/unistr/u32-move-tests: Likewise.
50158         * modules/unistr/u32-next-tests: Likewise.
50159         * modules/unistr/u32-prev-tests: Likewise.
50160         * modules/unistr/u32-set-tests: Likewise.
50161         * modules/unistr/u32-stpcpy-tests: Likewise.
50162         * modules/unistr/u32-stpncpy-tests: Likewise.
50163         * modules/unistr/u32-strcat-tests: Likewise.
50164         * modules/unistr/u32-strcmp-tests: Likewise.
50165         * modules/unistr/u32-strcoll-tests: Likewise.
50166         * modules/unistr/u32-strcpy-tests: Likewise.
50167         * modules/unistr/u32-strdup-tests: Likewise.
50168         * modules/unistr/u32-strlen-tests: Likewise.
50169         * modules/unistr/u32-strmblen-tests: Likewise.
50170         * modules/unistr/u32-strmbtouc-tests: Likewise.
50171         * modules/unistr/u32-strncat-tests: Likewise.
50172         * modules/unistr/u32-strncmp-tests: Likewise.
50173         * modules/unistr/u32-strncpy-tests: Likewise.
50174         * modules/unistr/u32-strnlen-tests: Likewise.
50175         * modules/unistr/u32-to-u16-tests: Likewise.
50176         * modules/unistr/u32-to-u8-tests: Likewise.
50177         * modules/unistr/u32-uctomb-tests: Likewise.
50178         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
50179         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
50180         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
50181         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
50182         * modules/uniwidth/u8-strwidth-tests: Likewise.
50183         * modules/uniwidth/u8-width-tests: Likewise.
50184         * modules/uniwidth/u16-strwidth-tests: Likewise.
50185         * modules/uniwidth/u16-width-tests: Likewise.
50186         * modules/uniwidth/u32-strwidth-tests: Likewise.
50187         * modules/uniwidth/u32-width-tests: Likewise.
50188         * modules/uniwidth/width-tests: Likewise.
50190 2010-05-18  Richard Jones  <rjones@redhat.com>
50192         doc: users.txt: list hivex
50193         * users.txt: Add hivex.
50195 2010-05-18  Richard Jones  <rjones@redhat.com>
50197         doc: users.txt: list febootstrap
50198         * users.txt: Add febootstrap.
50200 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
50202         bootstrap: fix an error when gnulib is not used as a git submodule
50203         * build-aux/bootstrap (gnulib_path): If its length is zero then
50204         assign "gnulib" to it.
50205         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
50207 2010-05-16  Bruno Haible  <bruno@clisp.org>
50209         Avoid autoconf warnings about AM_ICONV.
50210         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
50211         2.64.
50213 2010-05-16  Bruno Haible  <bruno@clisp.org>
50215         absolute-header: Make the macro usable in more situations.
50216         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
50217         from gl_ABSOLUTE_HEADER.
50218         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
50220 2010-05-16  James Youngman  <jay@gnu.org>
50222         doc: update users.txt
50223         * users.txt: Add CSSC.
50225 2010-05-16  Jim Meyering  <meyering@redhat.com>
50227         init.sh: fix an error in the previous change; add more comments
50228         * tests/init.sh: Compare exit code in loop against 9, not 2.
50229         Patch by Bruno Haible.
50230         Make the two tests more similar by adding an empty "then" clause.
50231         Add comments.
50233         init.sh: avoid unnecessary shell re-exec
50234         * tests/init.sh: Improve the re-exec-required check to first test the
50235         current shell.  If it passes the test, do not search for a shell that
50236         does pass, and do not re-exec.  This test is particularly contorted to
50237         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
50238         of $(...) evokes a syntax error and causes immediate shell exit with
50239         status 2.  Bruno Haible reported that the re-exec made it impossible
50240         to single-step through any init.sh-using script.
50242 2010-05-16  Bruno Haible  <bruno@clisp.org>
50244         Fix collision between gnulib's and libintl's printf replacements.
50245         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
50246         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
50247         (printf): When using GNU C, map the __printf__ function to rpl_printf
50248         via __asm__. When not using GNU C, define rpl_printf instead of
50249         __printf__.
50250         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
50251         commit.
50252         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
50253         commit.
50254         * m4/asm-underscore.m4: New file.
50255         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
50256         * modules/stdio (Files): Add m4/asm-underscore.m4.
50257         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
50258         Reported by Ben Pfaff.
50260 2010-05-16  Bruno Haible  <bruno@clisp.org>
50262         verify: Avoid skipping the test on openSUSE 11.0.
50263         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
50265 2010-05-13  Bruno Haible  <bruno@clisp.org>
50267         Avoid useless warnings from G++.
50268         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
50269         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
50270         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
50272 2010-05-11  Jim Meyering  <meyering@redhat.com>
50274         maint.mk: tweak preceding change
50275         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
50276         regexps tighter by anchoring at EOL, and make the new group "shy"
50277         for slightly decreased overhead.
50279 2010-05-11  Eric Blake  <eblake@redhat.com>
50281         maint.mk: gnulib doesn't guarantee NSIG
50282         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
50284 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
50286         test-pwrite.c: Remove unused variable declaration.
50287         * tests/test-pwrite.c (main): Remove read_buf declaration.
50289         Remove useless test-pwrite.sh file.
50290         * tests/test-pwrite.sh: Delete file.
50291         * modules/pwrite-tests: Remove references.
50292         Reported by Bruno Haible.
50294 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
50296         init.sh: fix a typo
50297         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
50299 2010-05-10  Jim Meyering  <meyering@redhat.com>
50301         maint.mk: avoid using a temporary file in the always-defined-macros check
50302         * top/maint.mk (.re-defmac): Remove rule.
50303         (gl_trap_): Remove definition.
50304         (sc_prohibit_always-defined_macros): Rewrite not to create and
50305         depend on a temporary file.  Instead, depend on GNU grep's ability
50306         to read a list of regular expressions from stdin when given "-f -".
50308 2010-05-09  Bruno Haible  <bruno@clisp.org>
50310         Update to GNU gettext 0.18, part 1.
50311         * m4/gettext.m4: Update to GNU gettext 0.18.
50312         * m4/intl.m4: Likewise.
50313         * m4/po.m4: Likewise.
50314         * modules/gettext (Files): Add m4/fcntl-o.m4.
50315         (configure.ac): Require gettext infrastructure from version 0.18.
50317 2010-05-09  Jim Meyering  <meyering@redhat.com>
50319         init.sh: enable MALLOC_PERTURB_
50320         * tests/init.sh: Enable glibc's malloc-perturbing option.
50322         maint.mk: improve sc_cross_check_PATH_usage_in_tests
50323         With my recent change in init.sh from the two-line form:
50324             -#   : ${srcdir=.}
50325             -#   . "$srcdir/init.sh"; path_prepend_ .
50326             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
50327         I noticed that using the one-line form would cause this test
50328         to fail with a false-positive, or to stop working altogether,
50329         depending on whether help-version changed or all the tests did.
50330         * top/maint.mk (_hv_regex): Remove this definition.
50331         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
50332         (_hv_regex_strong): Use a stronger regex to check for conformance.
50333         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
50334         Give a separate diagnostic for lack of conforming use.
50336         maint.mk: prohibit definition of symbols defined by gnulib
50337         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
50338         definition of symbols defined by gnulib.
50340 2010-05-09  Bruno Haible  <bruno@clisp.org>
50342         acl: Avoid test failure on Cygwin-hosted mingw.
50343         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
50345 2010-05-09  Bruno Haible  <bruno@clisp.org>
50347         error: Use system's fcntl function.
50348         * lib/error.c (fcntl): Undefine.
50350 2010-05-09  Jim Meyering  <meyering@redhat.com>
50352         verify: adjust formatting to be more consistent
50353         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
50354         argument-list '('s, and after one comma.
50356 2010-05-09  Bruno Haible  <bruno@clisp.org>
50358         error: More reliable output on mingw.
50359         * lib/error.c: Include <windows.h>.
50360         (is_open): New function.
50361         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
50362         defined.
50364 2010-05-09  Bruno Haible  <bruno@clisp.org>
50366         vasnprintf: Fix syntax errors in libintl build on mingw.
50367         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
50368         pad_ourselves and prec_ourselves after use.
50370 2010-05-08  Bruno Haible  <bruno@clisp.org>
50372         * lib/config.charset: Update comments for Cygwin 1.7.
50373         * lib/localcharset.c: Likewise.
50375 2010-05-07  Jim Meyering  <meyering@redhat.com>
50377         init.sh: improve comments
50378         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
50379         . "${srcdir=.}/init.sh"; path_prepend_ .
50380         Add a note about path_prepend_ and the alternative of using
50381         TESTS_ENVIRONMENT.
50383 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
50385         exclude: Unescape hashed patterns in wildcard mode.
50386         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
50387         to the hash list.
50388         * tests/test-exclude8.sh: New test case.
50389         * modules/exclude-tests: Add new test.
50391 2010-05-05  Eric Blake  <eblake@redhat.com>
50393         verify: automate tests
50394         * modules/verify-tests: New module.
50395         * tests/test-verify.sh: New file.
50396         * tests/test-verify.c: Guard each negative test with a unique id.
50397         Also avoid warning about unused left hand of comma expressions.
50399 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
50401         Further improvements to verify.h, suggested by Eric Blake.
50402         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
50403         the GL_* versions, to avoid collision with OpenGL.
50404         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
50405         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
50406         than testing merely whether it's defined.
50408         Modify verify.h to pacify gcc -Wredundant_decls.
50409         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
50410         These use the prefix "GL_" since they're likely to be useful elsewhere.
50411         We may need to break them out into a different .h file.
50412         (__COUNTER__): Define to 0 if the compiler doesn't support it.
50413         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
50414         of verify_function__.
50416 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
50418         Tests for module pwrite.
50419         * modules/pwrite-tests: New file.
50420         * tests/test-pwrite.sh: New file.
50421         * tests/test-pwrite.c: New file.
50423         New module pwrite.
50424         * lib/unistd.in.h (pwrite): New declaration.
50425         * lib/pwrite.c: New file, from glibc with modifications.
50426         * m4/pwrite.m4: New file.
50427         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
50428         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
50429         REPLACE_PWRITE.
50430         * modules/pwrite: New file.
50431         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
50432         REPLACE_PWRITE.
50433         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
50434         * doc/posix-functions/pwrite.texi: Mention the new module.
50436 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
50438         pread: Update documentation.
50439         * doc/posix-functions/pread.texi: Mention the 'pread' module.
50441 2010-05-04  Eric Blake  <eblake@redhat.com>
50443         docs: update cygwin progress
50444         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
50445         this bug.
50446         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
50447         Added in cygwin 1.7.2.
50448         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
50449         Likewise.
50450         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
50451         Likewise.
50452         * doc/glibc-functions/dup3.texi (dup3): Likewise.
50453         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
50454         * doc/glibc-functions/accept4.texi (accept4): Likewise.
50455         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
50456         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
50457         Mention nproc module.
50458         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
50459         bug in cygwin 1.7.5 addition.
50460         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
50461         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
50462         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
50463         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
50464         1.7.5.
50465         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
50466         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
50467         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
50468         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
50469         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
50470         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
50471         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
50472         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
50473         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
50474         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
50475         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
50476         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
50477         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
50478         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
50479         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
50480         Likewise.
50481         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
50482         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
50483         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
50484         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
50485         Likewise.
50486         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
50487         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
50488         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
50489         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
50490         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
50491         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
50492         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
50493         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
50494         Likewise.
50495         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
50496         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
50497         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
50498         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
50499         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
50500         Likewise.
50501         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
50502         Likewise.
50503         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
50504         Likewise.
50505         * doc/glibc-functions/xdrrec_endofrecord.texi
50506         (xdrrec_endofrecord): Likewise.
50507         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
50508         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
50509         Likewise.
50510         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
50511         Likewise.
50513 2010-05-04  Jim Meyering  <meyering@redhat.com>
50515         gendocs.sh: make its "-s FILE" option more useful
50516         * build-aux/gendocs.sh: When honoring the -s FILE option, update
50517         $PACKAGE to reflect the probably-different basename of "FILE".
50519 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
50521         bootstrap: don't ignore download_po_files failure
50522         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
50523         failure.
50525 2010-05-03  Jim Meyering  <meyering@redhat.com>
50527         maint.mk: allow to pass options to gendocs.sh
50528         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
50529         (gendocs_options_): New overridable variable.
50531         gnu-web-doc-update: don't ignore configure or build failure
50532         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
50534         announce-gen: backslash-escape '@'s in --help output
50535         * build-aux/announce-gen: Fix syntax errors.
50537         maint.mk, announce-gen: allow project-specific announcement mail headers
50538         * top/maint.mk (translation_project_): Define default.
50539         (announcement_Cc_, announcement_mail_headers_): Likewise.
50540         (announcement): Invoke announce-gen with new --mail-headers option.
50541         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
50543         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
50544         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
50545         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
50546         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
50547         line in the "err2" output file when running "make check" in verbose
50548         mode (i.e., with set -x enabled).
50550 2010-05-03  Bruno Haible  <bruno@clisp.org>
50552         wctob: Fix for weird platforms.
50553         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
50554         argument value.
50556 2010-05-03  Jim Meyering  <meyering@redhat.com>
50558         maint.mk: prohibit unwarranted use of <strings.h>
50559         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
50560         strings.h in a file that does not also use strcasecmp, strncasecmp,
50561         ffs or ffsll.
50563         maint.mk: remove obsolete comments
50564         * top/maint.mk: Remove stale, commented-out rules.
50566 2010-05-02  Bruno Haible  <bruno@clisp.org>
50568         wcwidth: Declare also when it's aliased.
50569         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
50570         macro.
50572 2010-05-02  Bruno Haible  <bruno@clisp.org>
50574         Fix regression from 2010-04-25.
50575         * gnulib-tool (func_modules_transitive_closure): Check the status of
50576         all modules, not only of the tests that are of the form foo-tests where
50577         foo is a module.
50579 2010-05-02  Bruno Haible  <bruno@clisp.org>
50581         wctob: Work around nasty Cygwin 1.7.2 bug.
50582         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
50583         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
50585 2010-05-01  Bruno Haible  <bruno@clisp.org>
50587         fpurge: Sharper test.
50588         * tests/test-fpurge.c (main): Add one more ftell check.
50589         * modules/fpurge-tests (Depends-on): Add ftell.
50590         Suggested by Eric Blake.
50592 2010-05-01  Bruno Haible  <bruno@clisp.org>
50594         ftello: Another test.
50595         * tests/test-ftello3.c: New file.
50596         * modules/ftello-tests (Files): Add it.
50597         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
50598         MOSTLYCLEANFILES.
50600         ftell: Another test.
50601         * tests/test-ftell3.c: New file.
50602         * modules/ftell-tests (Files): Add it.
50603         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
50604         MOSTLYCLEANFILES.
50606 2010-05-01  Bruno Haible  <bruno@clisp.org>
50608         ftell, ftello: Work around Solaris bug.
50609         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
50610         * lib/ftello.c: Include stdio-impl.h.
50611         (ftello): On Solaris, when _IOWRT is set, compute the result without
50612         looking at _IOREAD.
50613         * modules/ftello (Files): Add lib/stdio-impl.h.
50614         * doc/posix-functions/ftell.texi: Mention Solaris bug.
50615         * doc/posix-functions/ftello.texi: Likewise.
50616         Reported by Eric Blake.
50618 2010-05-01  Bruno Haible  <bruno@clisp.org>
50620         freading: Adapt to special meaning of _IOREAD flag on Solaris.
50621         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
50622         the _IOWRT flag is also set.
50624 2010-05-01  Bruno Haible  <bruno@clisp.org>
50626         Fix doc about a HP-UX stdio bug.
50627         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
50628         * doc/posix-functions/ftello.texi: Likewise.
50630 2010-05-01  Bruno Haible  <bruno@clisp.org>
50632         lseek test: Fix failure on Solaris.
50633         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
50634         output.
50636 2010-04-30  Jim Meyering  <meyering@redhat.com>
50638         bootstrap: don't ignore failure to generate po*/Makevars
50639         * build-aux/bootstrap (with_gettext): Don't ignore failure
50640         to create po/Makevars or runtime-po/Makevars.
50642 2010-04-29  Eric Blake  <eblake@redhat.com>
50644         headers: relax license to LGPLv2+
50645         * modules/fcntl-h (License): Relax license.
50646         * modules/getopt-posix (License): Likewise.
50647         * modules/locale (License): Likewise.
50648         * modules/math (License): Likewise.
50649         * modules/pty (License): Likewise.
50650         * modules/sched (License): Likewise.
50651         * modules/search (License): Likewise.
50652         * modules/spawn (License): Likewise.
50653         * modules/stdarg (License): Likewise.
50654         * modules/sysexits (License): Likewise.
50656 2010-04-29  Jim Meyering  <meyering@redhat.com>
50658         inttypes: relax license to LGPLv2+
50659         * modules/inttypes (License): Relax license.
50661 2010-04-29  Simon Josefsson  <simon@josefsson.org>
50663         * top/maint.mk (indent): Run twice to produce idempotent results.
50665 2010-04-28  Bruno Haible  <bruno@clisp.org>
50667         getdate: Generate getdate.c in the source directory.
50668         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
50669         MOSTLYCLEANFILES.
50670         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
50672 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
50674         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
50675         is not declared as a const *; avoid warnings in that case.
50677 2010-04-28  Eric Blake  <eblake@redhat.com>
50679         canonicalize-lgpl: avoid compiler warning
50680         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
50681         declaration' / 'extraneous semicolon' warning with some compilers.
50682         Reported by Andreas Gruenbacher.
50684 2010-04-28  Jim Meyering  <meyering@redhat.com>
50686         init.sh: ensure a more reliable exit status when exiting via trap
50687         * tests/init.sh (setup_): Don't rely on $? in signal handler.
50688         Inspired by patches from Dmitry V. Levin.
50689         Also trap on signal 3 (SIGQUIT).
50691 2010-04-27  Bruno Haible  <bruno@clisp.org>
50693         Update doc about utimes().
50694         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
50695         'utimens' module.
50696         Reported by Andreas Gruenbacher <agruen@suse.de>.
50698 2010-04-27  Eric Blake  <eblake@redhat.com>
50700         full-read, full-write: relax license
50701         * modules/full-read (License): Drop to LGPLv2+.
50702         * modules/full-write (License): Likewise.
50703         * modules/safe-read (License): Likewise.
50704         * modules/safe-write (License): Likewise.
50706         pthread: mention library for linking
50707         * modules/pthread (Link): Mention $(LIB_PTHREAD).
50709 2010-04-27  Jim Meyering  <meyering@redhat.com>
50711         maint.mk: fix a bug introduced in last change
50712         * top/maint.mk (gl_assured_headers_): Now that all names are on
50713         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
50714         is not anchored to end of word, it should be adequate.
50716         maint.mk: avoid side-effect in latest syntax-check
50717         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
50718         to run commands via $(shell...), and hence to incur cost only when
50719         the new rule is actually run.
50721         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
50722         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
50723         and use that to create a regexp used to detect all #if HAVE_..._H uses.
50724         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
50725         (gl_assured_headers_, az_, AZ_): Define.
50726         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
50728 2010-04-26  Jim Meyering  <jim@meyering.net>
50729             Bruno Haible  <bruno@clisp.org>
50731         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
50732         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
50733         Prompted by an exchange with Gilles Espinasse.
50735 2010-04-26  Jim Meyering  <meyering@redhat.com>
50737         git-version-gen: aesthetic tweak
50738         * build-aux/git-version-gen: Use "$nl" rather than a literal,
50739         so that the command remains on a single line.
50741 2010-04-26  Eric Blake  <eblake@redhat.com>
50743         git-version-gen: allow use on EBCDIC hosts
50744         * build-aux/git-version-gen (dirty): Use literal rather than tying
50745         ourselves to ascii.
50746         Reported by Steve Goetze.
50748 2010-04-25  Bruno Haible  <bruno@clisp.org>
50750         netdb: Add support for GNULIB_POSIXCHECK.
50751         * lib/netdb.in.h: Include warn-on-use.h.
50752         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
50753         functions are used when GNULIB_POSIXCHECK is defined and the
50754         getaddrinfo module is not in use.
50755         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
50756         freeaddrinfo, gai_strerror, getnameinfo are declared.
50757         * modules/netdb (Depends-on): Add warn-on-use.
50758         (Makefile.am): Include warn-on-use.h in netdb.h.
50760 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
50762         build: avoid "make check" failure without .git/ directory
50763         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
50764         there is no .git/ directory.
50766 2010-04-25  Bruno Haible  <bruno@clisp.org>
50768         ptsname: Fix misuse of ttyname_r.
50769         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
50770         of errno.
50772 2010-04-25  Bruno Haible  <bruno@clisp.org>
50774         ttyname_r: Make it work on Solaris 10.
50775         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
50776         if the system function has the POSIX declaration. Test whether the
50777         function fails if the buffer is less than 128 bytes large.
50778         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
50779         system's ttyname_r function. Provide a reasonably large buffer.
50780         * modules/ttyname_r (Depends-on): Add extensions.
50781         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
50783 2010-04-25  Bruno Haible  <bruno@clisp.org>
50785         Use the 'extensions' module for some more functions on Solaris.
50786         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
50787         module.
50788         * doc/posix-functions/ctime_r.texi: Likewise.
50789         * doc/posix-functions/getgrgid_r.texi: Likewise.
50790         * doc/posix-functions/getgrnam_r.texi: Likewise.
50791         * doc/posix-functions/getpwnam_r.texi: Likewise.
50792         * doc/posix-functions/getpwuid_r.texi: Likewise.
50793         * doc/posix-functions/readdir_r.texi: Likewise.
50794         * doc/posix-functions/sigwait.texi: Likewise.
50795         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
50796         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
50798 2010-04-25  Bruno Haible  <bruno@clisp.org>
50800         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
50801         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
50802         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
50803         * lib/ttyname_r.c: Include <limits.h>.
50804         (ttyname_r): Define using the system's ttyname_r function, if it exists
50805         and not on Solaris.
50806         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
50807         set.
50808         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
50809         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
50810         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
50811         Reported by Simon Josefsson.
50813 2010-04-25  Bruno Haible  <bruno@clisp.org>
50815         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
50816         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
50817         * doc/posix-functions/ctime_r.texi: Likewise.
50818         * doc/posix-functions/getgrgid_r.texi: Likewise.
50819         * doc/posix-functions/getgrnam_r.texi: Likewise.
50820         * doc/posix-functions/getlogin_r.texi: Likewise.
50821         * doc/posix-functions/getpwnam_r.texi: Likewise.
50822         * doc/posix-functions/getpwuid_r.texi: Likewise.
50823         * doc/posix-functions/readdir_r.texi: Likewise.
50824         * doc/posix-functions/sigwait.texi: Likewise.
50825         * doc/posix-functions/ttyname_r.texi: Likewise.
50826         Reported by Simon Josefsson.
50828 2010-04-25  Bruno Haible  <bruno@clisp.org>
50830         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
50831         * gnulib-tool (func_usage): Document that --with-*-tests options apply
50832         also to --create-testdir.
50833         (func_acceptable): Don't consider the status of *-tests modules here.
50834         (func_modules_transitive_closure): Consider it here, before including a
50835         test module.
50836         (func_import, func_create_testdir): Set inc_all_direct_tests,
50837         inc_all_indirect_tests.
50838         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
50839         --create-testdir and --create-megatestdir.
50841 2010-04-25  Bruno Haible  <bruno@clisp.org>
50843         gnulib-tool: Add --without-*-tests options.
50844         * gnulib-tool (func_usage): Document the --without-*-tests options.
50845         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
50846         excl_unportable_tests): New variables.
50847         Fail if they are specified with --import or --update.
50848         (func_acceptable): Respect the excl_*_tests variables.
50849         (func_import): Set the excl_*_tests variables to empty.
50851 2010-04-25  Simon Josefsson  <simon@josefsson.org>
50852             Bruno Haible  <bruno@clisp.org>
50854         Work around a MacOS X 10.4 bug with openpty.
50855         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
50856         * tests/test-openpty.c (main): Close the master side explicitly.
50858 2010-04-25  Bruno Haible  <bruno@clisp.org>
50860         strnlen: Fix a C++ test error on MacOS X and Solaris.
50861         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
50862         the function is not declared.
50863         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
50864         Simon Josefsson.
50866 2010-04-24  Bruno Haible  <bruno@clisp.org>
50868         Avoid a gcc warning.
50869         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
50870         of correct type for %08lx directive.
50871         Reported by Eric Blake.
50873 2010-04-24  Bruno Haible  <bruno@clisp.org>
50875         vasnprintf: Correct errno value in case of out-of-memory.
50876         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
50877         or sprintf. Use the errno value from SNPRINTF or sprintf.
50878         Reported by Ian Beckwith <ianb@erislabs.net>.
50880 2010-04-24  Bruno Haible  <bruno@clisp.org>
50882         ansi-c++-opt: Find correct compiler when cross-compiling.
50883         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
50884         AC_CHECK_PROGS.
50885         Reported by Simon Josefsson.
50887 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
50889         vc-list-files: Add support for subversion
50890         * build-aux/vc-list-files: Use "svn list" to generate the list of
50891         files controlled by subversion.
50893 2010-04-23  Jim Meyering  <meyering@redhat.com>
50895         vc-list-files tests: convert to use init.sh
50896         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
50897         path_prepend_.
50898         Use Exit, not exit.
50899         Use skip_ rather than open coding it.
50900         Remove trap set-up and compare definitions.
50901         * tests/test-vc-list-files-git.sh: Likewise.
50902         * modules/vc-list-files-tests (Files): Add tests/init.sh.
50904 2010-04-22  Simon Josefsson  <simon@josefsson.org>
50906         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
50907         backup files.
50909 2010-04-21  Simon Josefsson  <simon@josefsson.org>
50911         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
50913 2010-04-20  Eric Blake  <eblake@redhat.com>
50915         tests: be robust to ignored SIGPIPE
50916         * tests/test-select-in.sh: Consume all output.
50917         * tests/test-lseek.sh: Check correct exit status, while avoiding
50918         EPIPE.
50920 2010-04-20  Simon Josefsson  <simon@josefsson.org>
50921             Bruno Haible  <bruno@clisp.org>
50923         visibility: Don't use -fvisibility if it leads to a warning.
50924         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
50925         yes, don't pretend that visibility works if it leads to a warning.
50926         Reported by Mike Gran <spk121@yahoo.com>.
50928 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
50930         * build-aux/bootstrap: Use "git -h" for testing for supported options
50931         instead of "git --help".  The short-form option only shows a summary,
50932         and doesn't layout the full man page.  Grep for the full option name
50933         in the summary, too.
50935 2010-04-19  Bruno Haible  <bruno@clisp.org>
50937         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
50938         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
50939         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
50940         mention of RELOCATABLE_STRIP.
50941         Reported by Sylvain Beucler <beuc@beuc.net>.
50943 2010-04-19  Bruno Haible  <bruno@clisp.org>
50945         * lib/diffseq.h: Fix typo in comment.
50946         Reported by Eric Blake.
50948 2010-04-19  Bruno Haible  <bruno@clisp.org>
50950         ioctl: Move autoconf macro to a .m4 file.
50951         * m4/ioctl.m4: New file, extracted from modules/ioctl.
50952         * modules/ioctl (Files): Add it.
50953         (configure.ac): Simply invoke gl_FUNC_IOCTL.
50954         Reported by Ian Beckwith <ianb@erislabs.net>.
50956 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
50957             Bruno Haible  <bruno@clisp.org>
50959         diffseq: Accommodate use-case with abstract arrays.
50960         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
50961         is not defined.
50962         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
50963         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
50965 2010-04-18  Bruno Haible  <bruno@clisp.org>
50967         * doc/posix-headers/stdbool.texi: More precise wording.
50969 2010-04-17  Jim Meyering  <meyering@redhat.com>
50971         maint.mk: use gnu-style indentation in an embedded perl script
50972         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
50973         Rename variable: s/two/last_two_bytes/
50975 2010-04-16  Eric Blake  <eblake@redhat.com>
50977         test-stdbool: skip test that fails with Solaris CC
50978         * tests/test-stdbool.c (f): Skip test that causes compilation
50979         error under buggy C++ compiler.
50980         * lib/stdbool.in.h: Document the limitation.
50981         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
50983         setenv: allow compilation with C++
50984         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
50985         register keyword.
50987         stdint: allow test to pass with C++
50988         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
50990         getopt: allow compilation with C++
50991         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
50992         struct.
50993         * lib/getopt.c (_getopt_internal_r): Use correct type.
50994         Reported by Dagobert Michelson, via Joel E. Denny.
50996 2010-04-16  Bruno Haible  <bruno@clisp.org>
50998         Override netdb.h always.
50999         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
51000         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
51001         Reported by Ludovic Courtès <ludo@gnu.org>.
51003 2010-04-15  Bruno Haible  <bruno@clisp.org>
51005         openpty: Fix mistake from 2010-03-21.
51006         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
51007         Reported by Simon Josefsson.
51009 2010-04-15  Eric Blake  <eblake@redhat.com>
51011         test-forkpty: fix expected signature
51012         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
51013         Reported by Simon Josefsson.
51015 2010-04-15  Jim Meyering  <meyering@redhat.com>
51017         maint.mk: texinfo_suffix_re_: correct the default regexp
51018         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
51020         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
51021         make it configurable via texinfo_suffix_re_.
51023 2010-04-14  Eric Blake  <eblake@redhat.com>
51025         strtok_r: relax license to LGPLv2+
51026         * modules/strtok_r (License): Relax license.
51027         Reported by Matthias Bolte.
51029 2010-04-14  Simon Josefsson  <simon@josefsson.org>
51031         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
51032         version 1.4.4 by default instead of requiring the libgcrypt
51033         version used during build.  This makes it possible to use the
51034         application with older but still binary compatible libgcrypt
51035         versions.
51037 2010-04-13  Eric Blake  <eblake@redhat.com>
51039         getopt-gnu: match recent glibc fixes and posix ruling
51040         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
51041         '+' handling, when requesting extensions.
51042         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
51043         'W;' handling.
51044         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
51045         * doc/posix-functions/getopt.texi (getopt): Document this.
51046         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
51047         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
51048         Likewise.
51050         getopt: merge bug fixes from glibc
51051         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
51052         diagnostics.  Honor '+:' correctly.  Reject ';'.
51054         getopt-posix: detect MacOS bug
51055         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
51056         optind when missing a required argument.
51057         * doc/posix-functions/getopt.texi (getopt): Document the bug.
51058         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
51059         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
51060         Likewise.
51062         getopt-posix: avoid spurious failure on Solaris
51063         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
51064         an indicator that setting optind=1 is sufficient for reset.
51066         getopt-posix: avoid spurious failure on FreeBSD
51067         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
51068         in POSIX mode, since the m4 test uses it.
51070         gnulib-tool: silence warning on BSD sh
51071         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
51073 2010-04-13  Jim Meyering  <meyering@redhat.com>
51075         doc: users.txt: GNU patch now uses gnulib
51076         * users.txt: Add patch.
51078 2010-04-12  Jim Meyering  <meyering@redhat.com>
51080         maint.mk: generate more concise timing data for syntax-check rules
51081         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
51082         " done" from each line that reports a syntax-check test duration.
51084 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
51086         git-version-gen: use "git update-index..." rather than "git status"
51087         * build-aux/git-version-gen: Use git update-index --refresh, not
51088         "git status".  With some versions of git, "git status" would fail
51089         to update the index and result in an unwarranted "-dirty" suffix.
51091 2010-04-11  Jim Meyering  <meyering@redhat.com>
51093         openat: correct formatting (no semantic change)
51094         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
51095         Suggested by Bruno Haible.
51097 2010-04-11  Bruno Haible  <bruno@clisp.org>
51099         Stricter declaration checking in testdirs.
51100         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51101         If for_tests is true, augment AM_CPPFLAGS to define
51102         GNULIB_STRICT_CHECKING.
51103         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
51104         GNULIB_STRICT_CHECKING is defined, verify that the function is
51105         declared.
51107 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
51108             Bruno Haible  <bruno@clisp.org>
51110         libunistring: Improve configure output.
51111         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
51112         Don't say "consider installing GNU libunistring" when checking again
51113         with libiconv.
51115 2010-04-11  Bruno Haible  <bruno@clisp.org>
51117         libunistring: Correct value of $LTLIBUNISTRING.
51118         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
51119         correct the value of $LTLIBUNISTRING.
51121 2010-04-11  Bruno Haible  <bruno@clisp.org>
51123         havelib: Add static libraries to LIBS in the right order.
51124         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
51125         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
51127 2010-04-11  Bruno Haible  <bruno@clisp.org>
51129         libunistring: Detect libunistring also when it depends on libiconv.
51130         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
51131         the second AC_LIB_HAVE_LINKFLAGS invocation.
51133 2010-04-11  James Youngman  <jay@gnu.org>
51135         close-stream: declare local scalars to be "const"
51136         * lib/close-stream.c (close_stream): Make boolean variables const
51137         to document the fact that we set but do not change them.
51139 2010-04-11  Bruno Haible  <bruno@clisp.org>
51141         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
51143 2010-04-11  Jim Meyering  <meyering@redhat.com>
51145         maint.mk: don't include dist-check.mk
51146         * top/maint.mk: Remove bogus include directive.
51148         maint.mk: improve empty-line-at-EOF check
51149         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
51150         solution, rather than tail+Perl-based one.  The latter would read
51151         a few kilobytes from the end of each file, and did not handle empty
51152         files properly.
51154         maint.mk: print the elapsed time for each syntax-check rule
51155         * top/maint.mk (sc_m_rules_): Save start time in a file.
51156         (sc_z_rules_): New rules: remove temp file and print elapsed time.
51157         (local-check): Interpose the .z rules
51159 2010-04-11  Jim Meyering  <meyering@redhat.com>
51161         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
51162         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
51163         empty file with one that ends in an empty line.
51165 2010-04-10  Bruno Haible  <bruno@clisp.org>
51167         mkdir: Make it work on mingw64.
51168         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
51169         * lib/mkdir.c: Update comment.
51170         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
51172 2010-04-10  Bruno Haible  <bruno@clisp.org>
51174         Don't override improved macro from newer autoconf.
51175         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
51176         autoconf >= 2.62.
51177         Reported by Joel E. Denny <jdenny@clemson.edu>.
51179 2010-04-10  Jim Meyering  <meyering@redhat.com>
51181         maint.mk: new syntax-check rule: prohibit empty lines at end of file
51182         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
51184         maint.mk: correct a diagnostic
51185         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
51186         in diagnostic; now use $prohibit.
51188 2010-04-10  Bruno Haible  <address@hidden>
51190         fchownat: Fix a C++ test error on Solaris 8.
51191         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
51192         the function does not exist.
51194 2010-04-10  Bruno Haible  <bruno@clisp.org>
51196         vasnprintf: Add more tests.
51197         * tests/test-vasnprintf-posix.c: Include <errno.h>.
51198         (test_function): Test converting an invalid wide string.
51200         vasnprintf: Correct handling of unconvertible wide string arguments.
51201         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
51202         VASNPRINTF.
51203         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
51204         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
51205         smaller than the expected maximum need for the directive. Set errno to
51206         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
51207         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
51208         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
51209         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
51210         * modules/vasnprintf (Files): Add m4/printf.m4.
51211         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
51213 2010-04-10  Bruno Haible  <bruno@clisp.org>
51215         vasnprintf: Fix crash in %ls directive.
51216         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
51217         string is passed as argument to %ls, with no precision and no width.
51218         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
51220 2010-04-10  Bruno Haible  <bruno@clisp.org>
51222         vasnprintf: Fix multiple test failures on mingw.
51223         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
51224         _snprintf, or snwprintf, not _snwprintf.
51226 2010-04-10  Bruno Haible  <bruno@clisp.org>
51228         write: Fix a C++ test error on mingw.
51229         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
51231 2010-04-10  Bruno Haible  <bruno@clisp.org>
51233         vasnprintf test: Reduce code duplication.
51234         * tests/test-vasnprintf.c (test_function): New function, extracted from
51235         test_vasnprintf.
51236         (test_vasnprintf, test_asnprintf): Invoke it.
51238 2010-04-10  Bruno Haible  <bruno@clisp.org>
51240         strnlen: Fix warning in C++ mode on MacOS X.
51241         * lib/string.in.h (strnlen): Use the modern idiom.
51242         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
51243         defining strnlen as a macro already in <config.h>.
51244         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51245         REPLACE_STRNLEN.
51246         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
51247         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
51249 2010-04-08  James Youngman  <jay@gnu.org>
51251         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
51252         the example.
51254 2010-04-09  Jim Meyering  <meyering@redhat.com>
51256         maint.mk: print better diagnostic when there is no $(_hv_file)
51257         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
51258         announce that when $(_hv_file) (aka help-version) does not exist.
51260         init.sh: run tr in the "C" locale to avoid multibyte interpretation
51261         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
51262         not try to interpret its random input bytes.  Jarno Rajahalme reported
51263         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
51264         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
51265         (mktempd_): Likewise, just in case.
51267         ftruncate: add two years to projected module removal date: 2012
51268         * m4/ftruncate.m4: Adjust comments.
51270         ftruncate: mark module as obsolete; even MinGW provides it, now
51271         * modules/ftruncate (Status): Obsolete.
51272         (Notice): Say that.
51273         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
51274         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
51276 2010-04-08  Bruno Haible  <bruno@clisp.org>
51278         Fix side effects from tests-related modules.
51279         * modules/dprintf-posix (Comment): New section.
51280         * modules/fprintf-posix (Comment): Likewise.
51281         * modules/obstack-printf-posix (Comment): Likewise.
51282         * modules/printf-posix (Comment): Likewise.
51283         * modules/snprintf-posix (Comment): Likewise.
51284         * modules/sprintf-posix (Comment): Likewise.
51285         * modules/vasnprintf-posix (Comment): Likewise.
51286         * modules/vasprintf-posix (Comment): Likewise.
51287         * modules/vdprintf-posix (Comment): Likewise.
51288         * modules/vfprintf-posix (Comment): Likewise.
51289         * modules/vprintf-posix (Comment): Likewise.
51290         * modules/vsnprintf-posix (Comment): Likewise.
51291         * modules/vsprintf-posix (Comment): Likewise.
51292         * modules/xprintf-posix (Comment): Likewise.
51293         * modules/xvasprintf-posix (Comment): Likewise.
51294         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
51295         * modules/floorf-tests (Depends-on): Likewise.
51296         * modules/round-tests (Depends-on): Likewise.
51297         * modules/roundf-tests (Depends-on): Likewise.
51298         * modules/trunc-tests (Depends-on): Likewise.
51299         * modules/truncf-tests (Depends-on): Likewise.
51300         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
51301         'fprintf-posix' module is not present.
51302         * tests/test-floorf2.c (check): Likewise.
51303         * tests/test-trunc2.c (check): Likewise.
51304         * tests/test-truncf2.c (check): Likewise.
51305         * tests/test-round2.c (equal): Likewise.
51306         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
51308 2010-04-07  Karl Berry  <karl@gnu.org>
51310         * config/srclist.txt,
51311         * config/srclistvars.sh,
51312         * config/srclist-update: doc fixes.
51314 2010-04-07  Jim Meyering  <meyering@redhat.com>
51316         maint.mk: add a PATH crosschecking syntax-check rule
51317         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
51318         Useful if you use a test like the one in help-version (coreutils,
51319         diffutils, grep, gzip) that ensures $(VERSION) matches what is
51320         printed by prog --version.
51322 2010-04-06  Bruno Haible  <bruno@clisp.org>
51324         Fix link error on mingw.
51325         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
51326         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
51328 2010-04-06  Bruno Haible  <bruno@clisp.org>
51330         Assume rmdir exists.
51331         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
51333 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
51335         doc: update users.txt
51336         * users.txt: Add gcal.
51338 2010-04-06  Jim Meyering  <meyering@redhat.com>
51340         init.sh: simply unset TMPDIR rather than risking env -i
51341         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
51342         although it probably works fine on all Unix-based systems, some
51343         systems (Cygwin?) cannot tolerate a totally cleared environment.
51344         Suggestion from Eric Blake.
51346 2010-04-06  Jim Meyering  <meyering@redhat.com>
51348         init.sh: portability fix: use env's POSIX-specified -i option not -u
51349         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
51350         than unportable env -u.  Solaris 5.11's env lacks support for -u.
51352 2010-04-05  Bruno Haible  <bruno@clisp.org>
51354         btowc: Work around Cygwin 1.7.2 bug.
51355         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
51356         does not map NUL to 0.
51357         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
51359 2010-04-05  Bruno Haible  <bruno@clisp.org>
51361         Make the multithread modules work on Cygwin 1.7.2.
51362         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
51363         imported symbols can be declared weak, so that it returns "no" on
51364         Cygwin 1.7.2.
51366 2010-04-05  Bruno Haible  <bruno@clisp.org>
51368         Use the module 'strncat'.
51369         * modules/unistr/u8-strncat (Depends-on): Add strncat.
51371         Tests for module 'strncat'.
51372         * modules/strncat-tests: New file.
51373         * tests/test-strncat.c: New file.
51375         New module 'strncat'.
51376         * lib/string.in.h (strncat): New declaration.
51377         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
51378         * m4/strncat.m4: New file, based on m4/memchr.m4.
51379         * modules/strncat: New file.
51380         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
51381         is declared.
51382         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
51383         REPLACE_STRNCAT.
51384         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
51385         REPLACE_STRNCAT.
51386         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
51387         module.
51388         * tests/test-string-c++.cc: Check signature of strncat.
51390 2010-04-05  Jim Meyering  <meyering@redhat.com>
51392         xstrtoumax-tests: convert to use init.sh
51393         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
51394         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
51395         Use Exit, not exit.
51396         Remove uses of $EXEEXT and "./" to run a program in the current dir.
51398         xstrtoimax-tests: convert to use init.sh
51399         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
51400         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
51401         Use Exit, not exit.
51402         Remove uses of $EXEEXT and "./" to run a program in the current dir.
51404 2010-04-05  Bruno Haible  <bruno@clisp.org>
51406         sys_socket: Avoid #define replacements in C++ mode.
51407         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
51408         warning to the function if possible, rather than #defining the symbol
51409         to a dysfunctional alias.
51411 2010-04-05  Bruno Haible  <bruno@clisp.org>
51413         fseeko: Fix C++ test error on mingw.
51414         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
51415         gl_FUNC_FSEEKO.
51416         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
51417         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
51418         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
51419         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
51421 2010-04-05  Bruno Haible  <bruno@clisp.org>
51423         duplocale: Improve test output.
51424         * tests/test-duplocale.c (main): Print reason for skipped test.
51426 2010-04-05  Bruno Haible  <bruno@clisp.org>
51428         Assume rmdir exists.
51429         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
51430         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
51432 2010-04-05  Bruno Haible  <bruno@clisp.org>
51434         Fix link error on Solaris 8 with cc.
51435         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
51437 2010-04-05  Bruno Haible  <bruno@clisp.org>
51439         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
51440         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
51442 2010-04-05  Bruno Haible  <bruno@clisp.org>
51444         vasprintf: Update documentation.
51445         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
51447 2010-04-05  Bruno Haible  <bruno@clisp.org>
51449         ptsname: Improve test.
51450         * tests/test-ptsname.c (main): Also try the various master names of BSD
51451         systems.
51453 2010-04-05  Bruno Haible  <bruno@clisp.org>
51455         memchr: Avoid a possible C++ test error.
51456         * lib/string.in.h (memchr): Provide declaration if function is missing.
51457         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
51458         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
51459         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
51460         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
51462 2010-04-05  Bruno Haible  <bruno@clisp.org>
51464         strtok_r: Improve idiom.
51465         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
51466         AC_LIBOBJ is used.
51468 2010-04-05  Bruno Haible  <bruno@clisp.org>
51470         strdup: Improve idiom.
51471         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
51472         AC_LIBOBJ is used.
51473         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
51474         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
51475         when AC_LIBOBJ is used.
51477 2010-04-05  Bruno Haible  <bruno@clisp.org>
51479         mbsinit, mbrtowc, wcrtomb: Improve idioms.
51480         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
51481         don't set REPLACE_MBSINIT to 1.
51482         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
51483         don't set REPLACE_MBRTOWC to 1.
51484         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
51485         exist, don't set REPLACE_MBSRTOWCS to 1.
51486         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
51487         exist, don't set REPLACE_MBSNRTOWCS to 1.
51488         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
51489         don't set REPLACE_WCRTOMB to 1.
51490         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
51491         exist, don't set REPLACE_WCSRTOMBS to 1.
51492         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
51493         exist, don't set REPLACE_WCSNRTOMBS to 1.
51495 2010-04-05  Bruno Haible  <bruno@clisp.org>
51497         ldexpl: Improve idiom.
51498         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
51499         make sure to set HAVE_DECL_LDEXPL to 0.
51501 2010-04-05  Jim Meyering  <meyering@redhat.com>
51503         xstrtol-tests: convert to use init.sh
51504         * modules/xstrtol-tests (Files): Add tests/init.sh.
51505         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
51506         Use Exit, not exit.
51507         Remove uses of $EXEEXT and "./" to run a program in the current dir.
51509         atexit-tests: convert to use init.sh
51510         * modules/atexit-tests (Files): Add tests/init.sh.
51511         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
51512         Use Exit, not exit.
51513         Remove uses of $EXEEXT and "./" to run a program in the current dir.
51515         init.sh: fix typo
51516         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
51518         init.sh: make it easier for a test script to write to the tty, ...
51519         when using automake's parallel-tests mode.
51520         * tests/init.sh (stderr_fileno_): Define overridable variable.
51521         (warn_): New function, to use it.
51522         (fail_, skip_, framework_failure_): Use warn_.
51524 2010-04-04  Bruno Haible  <bruno@clisp.org>
51526         btowc: Avoid warning.
51527         * lib/btowc.c: Include <stdlib.h>.
51528         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
51530 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
51531             Bruno Haible  <bruno@clisp.org>
51533         wchar: Port to NetBSD 1.5.
51534         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
51535         * lib/wctype.in.h (WEOF): Likewise.
51537 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
51538             Bruno Haible  <bruno@clisp.org>
51540         Port extended stdio to NetBSD 1.5.
51541         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
51542         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
51543         older.
51545 2010-04-04  Bruno Haible  <bruno@clisp.org>
51547         string: Remove unused substitution.
51548         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
51549         HAVE_DECL_STRERROR.
51550         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
51552 2010-04-04  Bruno Haible  <bruno@clisp.org>
51554         strtod: Avoid a possible C++ test error.
51555         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
51556         set REPLACE_STRTOD.
51558 2010-04-04  Bruno Haible  <bruno@clisp.org>
51560         strerror: Update documentation.
51561         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
51563 2010-04-04  Bruno Haible  <bruno@clisp.org>
51565         stdio: Fix some C++ test errors on Solaris 8 with GCC.
51566         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
51567         _GL_CXXALIAS_SYS_CAST.
51569 2010-04-04  Bruno Haible  <bruno@clisp.org>
51571         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
51572         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
51573         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
51574         REPLACE_FREXPL to 1.
51575         * doc/posix-functions/frexpl.texi: Update documentation.
51577 2010-04-04  Bruno Haible  <bruno@clisp.org>
51579         math: Fix some C++ test errors on Solaris 8 and Cygwin.
51580         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
51582 2010-04-04  Bruno Haible  <bruno@clisp.org>
51584         Implement nanosleep for native Windows.
51585         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
51587 2010-04-04  Bruno Haible  <bruno@clisp.org>
51589         math: Fix some C++ test errors on Solaris 8.
51590         * lib/math.in.h (truncf, trunc): Use simpler idiom.
51592 2010-04-04  Bruno Haible  <bruno@clisp.org>
51594         math: Fix some C++ test errors on Cygwin.
51595         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
51596         truncl): Provide declaration if the system does not have it.
51597         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
51598         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
51599         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
51600         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
51601         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
51602         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
51603         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
51604         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
51605         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
51606         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
51607         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
51608         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
51609         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
51610         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
51611         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
51612         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
51613         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
51614         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
51615         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
51616         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
51617         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
51618         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
51620 2010-04-04  Bruno Haible  <bruno@clisp.org>
51622         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
51623         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
51624         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
51625         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
51626         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
51627         * m4/isinf.m4 (gl_ISINF): Likewise.
51628         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
51630 2010-04-04  Bruno Haible  <bruno@clisp.org>
51632         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
51633         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
51635 2010-04-04  Bruno Haible  <bruno@clisp.org>
51637         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
51638         * modules/tmpfile (configure.ac): Update.
51640         tmpfile: Fix C++ test error on mingw.
51641         * lib/stdio.in.h (tmpfile): New declaration.
51642         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
51643         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
51644         * modules/tmpfile (Depends-on): Add stdio.
51645         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
51646         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
51647         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
51648         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
51649         REPLACE_TMPFILE.
51650         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
51652 2010-04-04  Bruno Haible  <bruno@clisp.org>
51654         ioctl: Fix C++ test error on mingw.
51655         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
51656         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
51657         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
51659 2010-04-03  Bruno Haible  <bruno@clisp.org>
51661         wcwidth: Fix C++ test error on mingw.
51662         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
51663         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
51664         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
51666 2010-04-03  Bruno Haible  <bruno@clisp.org>
51668         nanosleep: Fix C++ test error on mingw.
51669         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
51670         * lib/time.in.h (nanosleep): Use modern idiom.
51671         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
51672         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
51673         REPLACE_NANOSLEEP to 1.
51674         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
51675         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
51677 2010-04-03  Bruno Haible  <bruno@clisp.org>
51679         strptime: Fix C++ test error on mingw.
51680         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
51681         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
51682         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
51683         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
51684         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
51685         not REPLACE_STRPTIME.
51686         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
51687         REPLACE_STRPTIME.
51689 2010-04-03  Bruno Haible  <bruno@clisp.org>
51691         timegm: Fix C++ test error on mingw.
51692         * lib/time.in.h (timegm): Use modern idiom.
51693         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
51694         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
51695         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
51696         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
51698 2010-04-03  Bruno Haible  <bruno@clisp.org>
51700         timegm: Assume declaration if function exists.
51701         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
51702         if it exists. Don't clobber ac_cv_func_timegm.
51704 2010-04-03  Bruno Haible  <bruno@clisp.org>
51706         time_r: Fix C++ test error on mingw.
51707         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
51708         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
51709         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
51710         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
51711         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
51713 2010-04-03  Bruno Haible  <bruno@clisp.org>
51715         time_r: Minor updates.
51716         * modules/time_r (Description): Mention the provided functions.
51717         * lib/time_r.c: Don't include <string.h>.
51718         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
51719         * doc/posix-functions/localtime_r.texi: Likewise.
51721 2010-04-03  Bruno Haible  <bruno@clisp.org>
51723         time: Fix regression introduced on 2010-03-08.
51724         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
51725         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
51727 2010-04-03  Jim Meyering  <meyering@redhat.com>
51729         maint.mk: don't silently disable project-specific syntax-check rules
51730         * top/maint.mk (_prohibit_regexp): Define, to help people realize
51731         that they need to convert their project-specific syntax-check rules
51732         to use the new _sc_search_regexp.
51734 2010-04-03  Bruno Haible  <bruno@clisp.org>
51736         fchdir: Fix regression introduced on 2010-03-08.
51737         * lib/unistd.in.h (fchdir): Fix declaration.
51738         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
51739         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
51740         REPLACE_FCHDIR.
51741         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
51742         REPLACE_FCHDIR.
51744 2010-04-03  Bruno Haible  <bruno@clisp.org>
51746         getpagesize: Fix C++ test error on mingw.
51747         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
51748         system does not declare the function.
51749         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
51750         declared.
51751         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51752         HAVE_DECL_GETPAGESIZE.
51753         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
51755 2010-04-03  Bruno Haible  <bruno@clisp.org>
51757         stdio: Make C++ tests work on mingw.
51758         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
51759         does not declare the function.
51761 2010-04-03  Bruno Haible  <bruno@clisp.org>
51763         ftello: Fix C++ test error on mingw.
51764         * lib/stdio.in.h (ftello): Use modern idiom.
51765         * lib/ftello.c (ftello): Renamed from rpl_ftello.
51766         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
51767         is missing and that it needs to be replaced.
51768         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
51769         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
51770         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
51772 2010-04-03  Bruno Haible  <bruno@clisp.org>
51774         fseeko: Fix C++ test error on mingw.
51775         * lib/stdio.in.h (fseeko): Use modern idiom.
51776         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
51777         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
51778         is missing and that it needs to be replaced.
51779         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
51780         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
51781         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
51783 2010-04-03  Bruno Haible  <bruno@clisp.org>
51785         mkstemp: Fix C++ test error on mingw.
51786         * lib/stdlib.in.h (mkstemp): Use modern idiom.
51787         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
51788         function is missing and that it needs to be replaced.
51789         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
51790         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
51792 2010-04-03  Bruno Haible  <bruno@clisp.org>
51794         stpncpy: Fix C++ test error on mingw.
51795         * lib/string.in.h (stpncpy): Use modern idiom.
51796         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
51797         function is missing and that it needs to be replaced.
51798         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51799         REPLACE_STPNCPY.
51800         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
51802 2010-04-03  Bruno Haible  <bruno@clisp.org>
51804         sys_stat: Fix C++ test error on mingw.
51805         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
51806         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
51808 2010-04-03  Bruno Haible  <bruno@clisp.org>
51810         pty: Update doc.
51811         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
51813 2010-04-03  Bruno Haible  <bruno@clisp.org>
51815         unistd: Fix C++ test error on mingw.
51816         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
51818 2010-04-03  Bruno Haible  <bruno@clisp.org>
51820         Update doc regarding mingw.
51821         * doc/glibc-functions/openpty.texi: Update regarding mingw.
51822         * doc/glibc-functions/login_tty.texi: Likewise.
51823         * doc/glibc-functions/forkpty.texi: Likewise.
51825 2010-04-03  Bruno Haible  <bruno@clisp.org>
51827         stdlib: Avoid compilation failure of c-strtold on mingw.
51828         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
51830 2010-04-03  Bruno Haible  <bruno@clisp.org>
51832         locale: Make C++ tests work on Cygwin and mingw.
51833         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
51834         cannot provide the function.
51835         Reported by Simon Josefsson.
51837 2010-04-03  Bruno Haible  <bruno@clisp.org>
51839         localename: Port to MacOS X 10.6.
51840         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
51841         memory layout of the locales in MacOS X 10.6 as well.
51842         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
51844 2010-04-02  Bruno Haible  <bruno@clisp.org>
51846         gnulib-tool: Ensure that long-running tests are executed last.
51847         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
51848         running tests after the one for the other tests.
51850 2010-04-02  Bruno Haible  <bruno@clisp.org>
51852         gnulib-tool: Ensure the tests in the main directory are executed first.
51853         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
51854         start with the current directory.
51856 2010-04-02  Bruno Haible  <bruno@clisp.org>
51858         Tests for module 'havelib', moved here from GNU gettext.
51859         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
51860         modifications.
51861         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
51862         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
51863         with modifications.
51864         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
51865         modifications.
51866         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
51867         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
51868         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
51869         with modifications.
51870         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
51871         with modifications.
51872         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
51873         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
51874         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
51875         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
51876         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
51877         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
51878         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
51879         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
51880         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
51881         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
51882         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
51883         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
51884         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
51885         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
51886         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
51887         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
51888         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
51889         with modifications.
51890         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
51891         with modifications.
51892         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
51893         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
51894         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
51895         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
51896         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
51897         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
51898         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
51899         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
51900         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
51901         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
51902         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
51903         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
51904         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
51905         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
51906         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
51907         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
51908         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
51909         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
51910         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
51911         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
51912         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
51913         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
51914         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
51915         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
51916         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
51917         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
51918         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
51919         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
51920         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
51921         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
51922         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
51923         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
51924         * tests/havelib/rpathx/rpathx.c: New file, from
51925         gettext/autoconf-lib-link.
51926         * tests/havelib/rpathx/Makefile.am: New file, from
51927         gettext/autoconf-lib-link.
51928         * tests/havelib/rpathx/configure.ac: New file, from
51929         gettext/autoconf-lib-link with modifications.
51930         * tests/havelib/rpathy/rpathy.c: New file, from
51931         gettext/autoconf-lib-link.
51932         * tests/havelib/rpathy/Makefile.am: New file, from
51933         gettext/autoconf-lib-link.
51934         * tests/havelib/rpathy/configure.ac: New file, from
51935         gettext/autoconf-lib-link with modifications.
51936         * tests/havelib/rpathz/rpathz.c: New file, from
51937         gettext/autoconf-lib-link.
51938         * tests/havelib/rpathz/Makefile.am: New file, from
51939         gettext/autoconf-lib-link.
51940         * tests/havelib/rpathz/configure.ac: New file, from
51941         gettext/autoconf-lib-link with modifications.
51942         * tests/havelib/rpathlx/usex.c: New file, from
51943         gettext/autoconf-lib-link.
51944         * tests/havelib/rpathlx/Makefile.am: New file, from
51945         gettext/autoconf-lib-link.
51946         * tests/havelib/rpathlx/configure.ac: New file, from
51947         gettext/autoconf-lib-link with modifications.
51948         * tests/havelib/rpathly/usey.c: New file, from
51949         gettext/autoconf-lib-link.
51950         * tests/havelib/rpathly/Makefile.am: New file, from
51951         gettext/autoconf-lib-link.
51952         * tests/havelib/rpathly/configure.ac: New file, from
51953         gettext/autoconf-lib-link with modifications.
51954         * tests/havelib/rpathlz/usez.c: New file, from
51955         gettext/autoconf-lib-link.
51956         * tests/havelib/rpathlz/Makefile.am: New file, from
51957         gettext/autoconf-lib-link.
51958         * tests/havelib/rpathlz/configure.ac: New file, from
51959         gettext/autoconf-lib-link with modifications.
51960         * tests/havelib/rpathlyx/usey.c: New file, from
51961         gettext/autoconf-lib-link.
51962         * tests/havelib/rpathlyx/Makefile.am: New file, from
51963         gettext/autoconf-lib-link.
51964         * tests/havelib/rpathlyx/configure.ac: New file, from
51965         gettext/autoconf-lib-link with modifications.
51966         * tests/havelib/rpathlzyx/usez.c: New file, from
51967         gettext/autoconf-lib-link.
51968         * tests/havelib/rpathlzyx/Makefile.am: New file, from
51969         gettext/autoconf-lib-link.
51970         * tests/havelib/rpathlzyx/configure.ac: New file, from
51971         gettext/autoconf-lib-link with modifications.
51972         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
51973         with modifications.
51975 2010-04-02  Bruno Haible  <bruno@clisp.org>
51977         gnulib-tool: Create distributed built sources also for the tests.
51978         * gnulib-tool (func_create_testdir): Also generate distributed built
51979         sources in the tests directory.
51981 2010-04-02  Bruno Haible  <bruno@clisp.org>
51983         gnulib-tool: Obey user's environment variables.
51984         * gnulib-tool (func_create_testdir): When creating built sources,
51985         respect the environment variables for autoconf, automake, etc. given by
51986         the user.
51988 2010-04-02  Bruno Haible  <bruno@clisp.org>
51990         gnulib-tool: Provide the value of --m4-base to modules.
51991         * gnulib-tool (func_import, func_create_testdir): Emit a definition
51992         of gl_m4_base.
51994 2010-04-02  Eric Blake  <eblake@redhat.com>
51996         maint.mk: fix some fallout
51997         * NEWS: Document the incompatible change, and its effect on cfg.mk.
51998         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
52000 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
52002         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
52003         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
52004         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
52005         (sc_cast_of_x_alloc_return_value): Likewise.
52006         (sc_cast_of_alloca_return_value): Likewise.
52007         (sc_space_tab): Likewise.
52008         (sc_prohibit_atoi_atof): Likewise.
52009         (sc_prohibit_magic_number_exit): Likewise.
52010         (sc_error_exit_success): Likewise.
52011         (sc_file_system): Likewise.
52012         (sc_prohibit_have_config_h): Likewise.
52013         (sc_require_config_h): Likewise.
52014         (sc_prohibit_HAVE_MBRTOWC): Likewise.
52015         (sc_obsolete_symbols): Likewise.
52016         (sc_changelog): Likewise.
52017         (sc_program_name): Likewise.
52018         (sc_the_the): Likewise.
52019         (sc_trailing_blank): Likewise.
52020         (sc_two_space_separator_in_usage): Likewise.
52021         (sc_useless_cpp_parens): Likewise.
52022         (sc_GPL_version): Likewise.
52023         (sc_GFDL_version): Likewise.
52024         (sc_texinfo_acronym): Likewise.
52025         (sc_prohibit_cvs_keyword): Likewise.
52026         (sc_prohibit_stat_st_blocks): Likewise.
52027         (sc_prohibit_S_IS_definition): Likewise.
52028         (sc_redundant_const): Likewise.
52029         (sc_makefile_TAB_only_indentation): Likewise.
52030         (sc_m4_quote_check): Likewise.
52031         (sc_makefile_path_separator_check): Likewise.
52032         (sc_copyright_check): Likewise.
52033         (sc_Wundef_boolean): Likewise.
52034         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
52036         maint.mk: match 0 or more whitespace-before-function-call '('
52037         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
52038         that have zero or two-and-more spaces between the function name
52039         and the open parenthesis.
52040         (sc_error_message_warn_fatal): Likewise.
52041         (sc_error_message_uppercase): Likewise.
52042         (sc_error_message_period): Likewise.
52044 2010-03-31  Eric Blake  <eblake@redhat.com>
52046         maint.mk: check for [ as well as test
52047         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
52048         Based on a libvirt report by Matthias Bolte.
52050         gnumakefile: don't squelch _version output
52051         * top/GNUmakefile (_version): Create one-shot dependency rather
52052         than using $(shell) when version must be regenerated.
52053         (_autoreconf): Run verbosely, by default.
52055         sys_time: avoid compiler warnings
52056         * lib/sys_time.in.h (includes): Ensure gcc pragma is
52057         unconditional, fixing regression from 2010-03-29.
52058         Reported by Simon Josefsson.
52060 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
52062         maint.mk: s/_header_without_use/_sc_header_without_use/
52063         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
52064         (sc_prohibit_assert_without_use): Use the new name.
52065         (sc_prohibit_close_stream_without_use): Likewise.
52066         (sc_prohibit_getopt_without_use): Likewise.
52067         (sc_prohibit_quotearg_without_use): Likewise.
52068         (sc_prohibit_quote_without_use): Likewise.
52069         (sc_prohibit_long_options_without_use): Likewise.
52070         (sc_prohibit_inttostr_without_use): Likewise.
52071         (sc_prohibit_ignore_value_without_use): Likewise.
52072         (sc_prohibit_error_without_use): Likewise.
52073         (sc_prohibit_xalloc_without_use): Likewise.
52074         (sc_prohibit_hash_without_use): Likewise.
52075         (sc_prohibit_hash_pjw_without_use): Likewise.
52076         (sc_prohibit_safe_read_without_use): Likewise.
52077         (sc_prohibit_argmatch_without_use): Likewise.
52078         (sc_prohibit_canonicalize_without_use): Likewise.
52079         (sc_prohibit_root_dev_ino_without_use): Likewise.
52080         (sc_prohibit_openat_without_use): Likewise.
52081         (sc_prohibit_c_ctype_without_use): Likewise.
52082         (sc_prohibit_signal_without_use): Likewise.
52083         (sc_prohibit_intprops_without_use): Likewise.
52085 2010-03-30  Eric Blake  <eblake@redhat.com>
52087         maint: improve module indicators
52088         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
52089         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
52090         columns, and avoid extra macro expansion.
52092         fdopendir: work around FreeBSD bug
52093         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
52094         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
52095         * modules/dirent (Makefile.am): Substitute it.
52096         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
52097         declaration.
52098         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
52099         fix.
52100         Reported by Christian Weisgerber <naddy@mips.inka.de>.
52102 2010-03-29  Bruno Haible  <bruno@clisp.org>
52104         Emit #pragma system_header after the inclusion guard, not before.
52105         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
52106         guard that spans the entire file, not before. This enables an
52107         optimization in GCC's preprocessor.
52108         * lib/ctype.in.h: Likewise.
52109         * lib/dirent.in.h: Likewise.
52110         * lib/errno.in.h: Likewise.
52111         * lib/float.in.h: Likewise.
52112         * lib/getopt.in.h: Likewise.
52113         * lib/iconv.in.h: Likewise.
52114         * lib/langinfo.in.h: Likewise.
52115         * lib/locale.in.h: Likewise.
52116         * lib/math.in.h: Likewise.
52117         * lib/netdb.in.h: Likewise.
52118         * lib/netinet_in.in.h: Likewise.
52119         * lib/pty.in.h: Likewise.
52120         * lib/sched.in.h: Likewise.
52121         * lib/se-selinux.in.h: Likewise.
52122         * lib/search.in.h: Likewise.
52123         * lib/spawn.in.h: Likewise.
52124         * lib/stdarg.in.h: Likewise.
52125         * lib/stdint.in.h: Likewise.
52126         * lib/string.in.h: Likewise.
52127         * lib/strings.in.h: Likewise.
52128         * lib/sys_file.in.h: Likewise.
52129         * lib/sys_ioctl.in.h: Likewise.
52130         * lib/sys_time.in.h: Likewise.
52131         * lib/sys_times.in.h: Likewise.
52132         * lib/sys_utsname.in.h: Likewise.
52133         * lib/sys_wait.in.h: Likewise.
52134         * lib/sysexits.in.h: Likewise.
52135         * lib/wctype.in.h: Likewise.
52137 2010-03-28  James Youngman  <jay@gnu.org>
52139         save-cwd: don't leak a file descriptor when the caller execs.
52140         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
52141         saved file descriptor.
52142         * modules/save-cwd (Depends-on): Depend on cloexec.
52144 2010-03-29  Bruno Haible  <bruno@clisp.org>
52146         Remove vestiges of fts-lgpl module.
52147         * lib/fts_.h: Assume GNULIB_FTS is 1.
52148         * lib/fts.c: Likewise.
52149         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
52151 2010-03-28  Bruno Haible  <bruno@clisp.org>
52153         Fix definition of tests witness macro.
52154         * gnulib-tool (func_import): Fix definition of witness macro.
52156 2010-03-28  Bruno Haible  <bruno@clisp.org>
52158         Fix ioctl's protoype on glibc systems.
52159         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
52160         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
52161         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
52162         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
52163         signature. If not, arrange to replace the ioctl function.
52164         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
52165         REPLACE_IOCTL.
52166         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
52167         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
52168         Reported by Ludovic Courtès <ludo@gnu.org>.
52170 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
52172         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
52173         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
52174         made it so grep -r --include=GLOB* ... did not work.
52176 2010-03-26  Jim Meyering  <meyering@redhat.com>
52177             Eric Blake  <eblake@redhat.com>
52179         maint.mk: prohibit use of test's -o and -a operators
52180         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
52182 2010-03-28  Bruno Haible  <bruno@clisp.org>
52184         Remove unused GNULIB_XYZ macro definitions.
52185         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
52186         invocation.
52188 2010-03-28  Bruno Haible  <bruno@clisp.org>
52190         Mark privileged tests modules.
52191         * modules/idpriv-drop-tests (Status): New section.
52192         * modules/idpriv-droptemp-tests (Status): New section.
52194 2010-03-28  Bruno Haible  <bruno@clisp.org>
52196         Split C++ tests into separate tests modules.
52197         * modules/dirent-c++-tests: New file, extracted from
52198         modules/dirent-tests.
52199         * modules/dirent-tests: Depend on it.
52200         * modules/fcntl-h-c++-tests: New file, extracted from
52201         modules/fcntl-h-tests.
52202         * modules/fcntl-h-tests: Depend on it.
52203         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
52204         * modules/glob-tests: Depend on it.
52205         * modules/iconv-h-c++-tests: New file, extracted from
52206         modules/iconv-h-tests.
52207         * modules/iconv-h-tests: Depend on it.
52208         * modules/langinfo-c++-tests: New file, extracted from
52209         modules/langinfo-tests.
52210         * modules/langinfo-tests: Depend on it.
52211         * modules/locale-c++-tests: New file, extracted from
52212         modules/locale-tests.
52213         * modules/locale-tests: Depend on it.
52214         * modules/math-c++-tests: New file, extracted from modules/math-tests.
52215         * modules/math-tests: Depend on it.
52216         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
52217         * modules/pty-tests: Depend on it.
52218         * modules/search-c++-tests: New file, extracted from
52219         modules/search-tests.
52220         * modules/search-tests: Depend on it.
52221         * modules/signal-c++-tests: New file, extracted from
52222         modules/signal-tests.
52223         * modules/signal-tests: Depend on it.
52224         * modules/spawn-c++-tests: New file, extracted from
52225         modules/spawn-tests.
52226         * modules/spawn-tests: Depend on it.
52227         * modules/stdio-c++-tests: New file, extracted from
52228         modules/stdio-tests.
52229         * modules/stdio-tests: Depend on it.
52230         * modules/stdlib-c++-tests: New file, extracted from
52231         modules/stdlib-tests.
52232         * modules/stdlib-tests: Depend on it.
52233         * modules/string-c++-tests: New file, extracted from
52234         modules/string-tests.
52235         * modules/string-tests: Depend on it.
52236         * modules/sys_ioctl-c++-tests: New file, extracted from
52237         modules/sys_ioctl-tests.
52238         * modules/sys_ioctl-tests: Depend on it.
52239         * modules/sys_select-c++-tests: New file, extracted from
52240         modules/sys_select-tests.
52241         * modules/sys_select-tests: Depend on it.
52242         * modules/sys_socket-c++-tests: New file, extracted from
52243         modules/sys_socket-tests.
52244         * modules/sys_socket-tests: Depend on it.
52245         * modules/sys_stat-c++-tests: New file, extracted from
52246         modules/sys_stat-tests.
52247         * modules/sys_stat-tests: Depend on it.
52248         * modules/sys_time-c++-tests: New file, extracted from
52249         modules/sys_time-tests.
52250         * modules/sys_time-tests: Depend on it.
52251         * modules/time-c++-tests: New file, extracted from modules/time-tests.
52252         * modules/time-tests: Depend on it.
52253         * modules/unistd-c++-tests: New file, extracted from
52254         modules/unistd-tests.
52255         * modules/unistd-tests: Depend on it.
52256         * modules/wchar-c++-tests: New file, extracted from
52257         modules/wchar-tests.
52258         * modules/wchar-tests: Depend on it.
52259         * modules/wctype-c++-tests: New file, extracted from
52260         modules/wctype-tests.
52261         * modules/wctype-tests: Depend on it.
52262         Reported by Simon Josefsson.
52264 2010-03-28  Bruno Haible  <bruno@clisp.org>
52266         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
52267         * gnulib-tool (func_exists_module): New function, extracted from
52268         func_verify_module.
52269         (func_verify_module): Use it.
52270         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
52271         'foo' only if 'foo' exists.
52272         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
52273         module.
52275 2010-03-28  Bruno Haible  <bruno@clisp.org>
52277         gnulib-tool: Add support for special categories of tests.
52278         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
52279         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
52280         (func_usage): Document them.
52281         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
52282         inc_unportable_tests, inc_all_tests): New variables.
52283         (func_acceptable): Consider these variables.
52284         (func_modules_transitive_closure): Make it work when the 'Status' field
52285         consists of multiple words.
52286         (func_import): Store and restore the values of inc_cxx_tests,
52287         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
52288         inc_all_tests in gnulib-comp.m4.
52289         (func_create_testdir): Set inc_all_tests to true.
52290         * doc/gnulib.texi (Extra tests modules): New section.
52291         Suggested by Jim Meyering.
52293 2010-03-28  Bruno Haible  <bruno@clisp.org>
52295         ansi-c++-opt: Allow turning off the C++ build by default.
52296         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
52297         gl_CXX_CHOICE_DEFAULT_NO is defined.
52298         Requested by Eric Blake.
52300 2010-03-28  Bruno Haible  <bruno@clisp.org>
52302         unistd: Avoid #define replacements in C++ mode.
52303         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
52304         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
52305         setsockopt, shutdown, select): In C++, attach a warning to the function
52306         if possible, rather than #defining the symbol to a dysfunctional alias.
52307         Reported by John W. Eaton <jwe@gnu.org>.
52309 2010-03-28  Bruno Haible  <bruno@clisp.org>
52311         Fix link errors on mingw.
52312         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
52313         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
52314         $(LIBSOCKET).
52315         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
52316         $(LIBSOCKET).
52318 2010-03-28  Bruno Haible  <bruno@clisp.org>
52319             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52321         lib-ignore: Determine different options for different compilers.
52322         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
52323         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
52324         Add comments.
52325         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
52326         * NEWS: Mention the change.
52328 2010-03-27  Bruno Haible  <bruno@clisp.org>
52330         Remove unused GNULIB_XYZ macro definitions.
52331         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
52332         * modules/fseek (configure.ac): Likewise.
52333         * modules/ioctl (configure.ac): Likewise.
52334         * modules/open (configure.ac): Likewise.
52335         * modules/stdlib-safer (configure.ac): Likewise.
52337 2010-03-27  Bruno Haible  <bruno@clisp.org>
52339         Add a remark about certain modules.
52340         * modules/malloc (Comment): New section.
52341         * modules/realloc (Comment): Likewise.
52342         * modules/sigpipe (Comment): Likewise.
52344 2010-03-27  Bruno Haible  <bruno@clisp.org>
52346         Resolve conflict between the two kinds of module indicators.
52347         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
52348         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
52349         * modules/canonicalize (configure.ac): Invoke
52350         gl_MODULE_INDICATOR_FOR_TESTS.
52351         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
52352         GNULIB_XYZ.
52353         * tests/test-dirent-c++.cc: Likewise.
52354         * tests/test-dirent-safer.c: Likewise.
52355         * tests/test-dup2.c: Likewise.
52356         * tests/test-fchdir.c: Likewise.
52357         * tests/test-fcntl-h-c++.cc: Likewise.
52358         * tests/test-getopt.c: Likewise.
52359         * tests/test-getopt.h: Likewise.
52360         * tests/test-langinfo-c++.cc: Likewise.
52361         * tests/test-locale-c++.cc: Likewise.
52362         * tests/test-math-c++.cc: Likewise.
52363         * tests/test-pty-c++.cc: Likewise.
52364         * tests/test-search-c++.cc: Likewise.
52365         * tests/test-signal-c++.cc: Likewise.
52366         * tests/test-spawn-c++.cc: Likewise.
52367         * tests/test-stdio-c++.cc: Likewise.
52368         * tests/test-stdlib-c++.cc: Likewise.
52369         * tests/test-string-c++.cc: Likewise.
52370         * tests/test-sys_ioctl-c++.cc: Likewise.
52371         * tests/test-sys_select-c++.cc: Likewise.
52372         * tests/test-sys_socket-c++.cc: Likewise.
52373         * tests/test-sys_stat-c++.cc: Likewise.
52374         * tests/test-sys_time-c++.cc: Likewise.
52375         * tests/test-time-c++.cc: Likewise.
52376         * tests/test-unistd-c++.cc: Likewise.
52377         * tests/test-wchar-c++.cc: Likewise.
52378         * tests/uninorm/test-u8-nfc.c: Likewise.
52379         * tests/uninorm/test-u8-nfd.c: Likewise.
52380         * tests/uninorm/test-u8-nfkc.c: Likewise.
52381         * tests/uninorm/test-u8-nfkd.c: Likewise.
52382         * tests/uninorm/test-u16-nfc.c: Likewise.
52383         * tests/uninorm/test-u16-nfd.c: Likewise.
52384         * tests/uninorm/test-u16-nfkc.c: Likewise.
52385         * tests/uninorm/test-u16-nfkd.c: Likewise.
52386         * tests/uninorm/test-u32-nfc.c: Likewise.
52387         * tests/uninorm/test-u32-nfc-big.c: Likewise.
52388         * tests/uninorm/test-u32-nfd.c: Likewise.
52389         * tests/uninorm/test-u32-nfd-big.c: Likewise.
52390         * tests/uninorm/test-u32-nfkc.c: Likewise.
52391         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
52392         * tests/uninorm/test-u32-nfkd.c: Likewise.
52393         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
52394         * tests/uninorm/test-u32-normalize-big.c: Likewise.
52396 2010-03-27  Bruno Haible  <bruno@clisp.org>
52398         Distinguish two kinds of module indicators.
52399         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
52400         gl_MODULE_INDICATOR.
52401         (gl_MODULE_INDICATOR): New macro.
52402         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
52403         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
52404         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
52405         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
52406         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
52407         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
52408         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
52409         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
52410         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
52411         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
52412         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
52413         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
52414         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
52415         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
52416         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
52417         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
52418         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
52419         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
52420         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
52421         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
52422         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
52423         * modules/cloexec (configure.ac): Likewise.
52424         * modules/getopt-gnu (configure.ac): Likewise.
52425         * modules/uninorm/u8-normalize (configure.ac): Likewise.
52426         * modules/uninorm/u16-normalize (configure.ac): Likewise.
52427         * modules/uninorm/u32-normalize (configure.ac): Likewise.
52428         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
52430 2010-03-27  Bruno Haible  <bruno@clisp.org>
52432         New module description field 'Comment'.
52433         * gnulib-tool: New option --extract-comment.
52434         (func_usage): Document it.
52435         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
52436         (func_get_comment): New function.
52437         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
52439 2010-03-27  Bruno Haible  <bruno@clisp.org>
52441         Addendum to 2010-02-07 commit.
52442         * gnulib-tool (func_usage): Document --extract-applicability option.
52444 2010-03-27  Bruno Haible  <bruno@clisp.org>
52446         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
52447         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
52448         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
52449         rather than link errors.
52451 2010-03-27  Bruno Haible  <bruno@clisp.org>
52453         Avoid side effects from tests-related modules on the compilation of lib.
52454         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
52455         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
52456         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
52457         parameter. Emit into AM_CPPFLAGS a definition of the designated C
52458         macro.
52459         (func_import): Define a witness macro. Assign it a value that depends
52460         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
52461         tests-related modules.
52462         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
52463         Reported by Jim Meyering.
52465 2010-03-27  Bruno Haible  <bruno@clisp.org>
52467         Factorize common .m4 code.
52468         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
52469         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
52470         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
52471         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
52472         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
52473         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
52474         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
52475         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
52476         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
52477         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
52478         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
52479         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
52480         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
52481         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
52482         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
52483         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
52484         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
52485         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
52486         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
52487         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
52488         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
52489         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
52490         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
52491         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
52492         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
52493         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
52494         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
52495         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
52496         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
52497         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
52498         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
52499         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
52501 2010-03-27  Bruno Haible  <bruno@clisp.org>
52503         Fix a compilation error on Cygwin with g++ >= 4.3.
52504         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
52505         if it is undefined or if we alias it to chmod.
52506         (lstat): Don't warn about the use of this function if it is undefined
52507         or if we alias it to stat.
52508         Reported by Simon Josefsson.
52510 2010-03-27  Bruno Haible  <bruno@clisp.org>
52512         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
52513         * modules/getlogin (configure.ac): Update.
52515         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
52516         * modules/getlogin_r (configure.ac): Update.
52518         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
52519         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
52520         * modules/inet_ntop (configure.ac): Update.
52522         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
52523         * modules/inet_pton (configure.ac): Update.
52525         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
52526         * modules/mbslen (configure.ac): Update.
52528         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
52529         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
52530         * modules/forkpty (configure.ac): Update.
52531         * modules/openpty (configure.ac): Update.
52533 2010-03-26  Simon Josefsson  <simon@josefsson.org>
52535         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
52536         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
52538 2010-03-25  Eric Blake  <eblake@redhat.com>
52540         maint: use pragma consistently across replacement headers
52541         * lib/ctype.in.h (system_header): Hoist for consistent placement.
52542         * lib/dirent.in.h (system_header): Likewise.
52543         * lib/errno.in.h (system_header): Likewise.
52544         * lib/float.in.h (system_header): Likewise.
52545         * lib/getopt.in.h (system_header): Likewise.
52546         * lib/iconv.in.h (system_header): Likewise.
52547         * lib/inttypes.in.h (system_header): Likewise.
52548         * lib/langinfo.in.h (system_header): Likewise.
52549         * lib/locale.in.h (system_header): Likewise.
52550         * lib/math.in.h (system_header): Likewise.
52551         * lib/netdb.in.h (system_header): Likewise.
52552         * lib/netinet_in.in.h (system_header): Likewise.
52553         * lib/pty.in.h (system_header): Likewise.
52554         * lib/sched.in.h (system_header): Likewise.
52555         * lib/se-selinux.in.h (system_header): Likewise.
52556         * lib/search.in.h (system_header): Likewise.
52557         * lib/spawn.in.h (system_header): Likewise.
52558         * lib/stdarg.in.h (system_header): Likewise.
52559         * lib/stdint.in.h (system_header): Likewise.
52560         * lib/string.in.h (system_header): Likewise.
52561         * lib/strings.in.h (system_header): Likewise.
52562         * lib/sys_file.in.h (system_header): Likewise.
52563         * lib/sys_ioctl.in.h (system_header): Likewise.
52564         * lib/sys_socket.in.h (system_header): Likewise.
52565         * lib/sys_times.in.h (system_header): Likewise.
52566         * lib/sys_utsname.in.h (system_header): Likewise.
52567         * lib/sys_wait.in.h (system_header): Likewise.
52568         * lib/sysexits.in.h (system_header): Likewise.
52569         * lib/unistd.in.h (system_header): Likewise.
52570         * lib/wctype.in.h (system_header): Likewise.
52572         arpa/inet: fix mingw compilation warning
52573         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
52574         Reported by Matthew Bolte.
52576 2010-03-25  Bruno Haible  <bruno@clisp.org>
52578         Avoid collision between gnulib wrapper and libintl wrapper.
52579         * lib/printf.c (printf): Don't define if a printf wrapper is already
52580         defined in intl/printf.c.
52581         Reported by Michel Boaventura <michel@michelboaventura.com>.
52583 2010-03-25  Bruno Haible  <bruno@clisp.org>
52585         Use ANSI C.
52586         * lib/readutmp.h (getutent): Provide ANSI C prototype.
52588 2010-03-25  Bruno Haible  <bruno@clisp.org>
52590         Minor formatting changes.
52591         * lib/acosl.c: Insert space before function argument list.
52592         * lib/argz.c: Likewise.
52593         * lib/asinl.c: Likewise.
52594         * lib/expl.c: Likewise.
52595         * lib/gen-uni-tables.c: Likewise.
52596         * lib/gettext.h: Likewise.
52597         * lib/glthread/lock.h: Likewise.
52598         * lib/tanl.c: Likewise.
52599         * lib/uniname/uniname.c: Likewise.
52600         * tests/test-idpriv-drop.c: Likewise.
52601         * tests/test-idpriv-droptemp.c: Likewise.
52602         * tests/test-lock.c: Likewise.
52603         * tests/test-tls.c: Likewise.
52604         * lib/argp-help.c: Insert space before function-like macro argument
52605         list.
52606         * lib/memcmp.c: Likewise.
52607         * tests/test-base64.c: Likewise.
52608         * lib/localename.c: Insert space before sizeof's argument list.
52609         * lib/safe-alloc.h: Likewise.
52610         * lib/file-set.h: Insert space before macro argument list.
52611         * tests/test-argp.c: Likewise.
52612         * lib/argp-namefrob.h: Insert space before function parameter list.
52613         * lib/getaddrinfo.c: Likewise.
52614         * lib/netdb.in.h: Likewise.
52615         * lib/parse-duration.h: Likewise.
52616         * lib/parse-duration.c: Likewise.
52617         * lib/poll.c: Likewise.
52618         * lib/select.c: Likewise.
52619         * lib/trim.h: Likewise.
52620         * tests/test-usleep.c: Likewise.
52621         * lib/ldexpl.c: Insert space before function parameter list and before
52622         function argument list.
52623         * lib/logl.c: Likewise.
52624         * lib/sqrtl.c: Likewise.
52625         * lib/trim.c: Likewise.
52626         * lib/cosl.c: Use GNU style indentation. Insert space before function
52627         argument list.
52628         * lib/sinl.c: Likewise.
52629         * lib/tsearch.c: Insert space after 'for'.
52630         Reported by Jim Meyering.
52632 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
52634         * maint.mk (sc_Wundef_boolean): Check for the presence of the
52635         config header before grepping, as it's not present before
52636         autoreconf/configure are run.  Reported by Simon Josefsson.
52638 2010-03-23  Bruno Haible  <bruno@clisp.org>
52640         pt_chown: Make it work with automake < 1.11.
52641         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
52642         Reported by Simon Josefsson.
52644 2010-03-23  Bruno Haible  <bruno@clisp.org>
52646         pt_chown: Don't depend on GPLed modules.
52647         * lib/pt_chown.c: Don't include idpriv.h.
52648         (main): Don't drop privileges.
52649         * modules/pt_chown (Depends-on): Remove idpriv-drop.
52650         Reported by Simon Josefsson.
52652 2010-03-24  Simon Josefsson  <simon@josefsson.org>
52654         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
52655         suggestions from karl@freefriends.org (Karl Berry).
52657 2010-03-22  Eric Blake  <eblake@redhat.com>
52659         gethostname: further tweaks
52660         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
52661         are overriding gethostname.
52662         Suggested by Bruno Haible.
52664 2010-03-21  Bruno Haible  <bruno@clisp.org>
52666         Fix comments.
52667         * lib/forkpty.c (rpl_forkpty): Fix comment.
52668         * lib/openpty.c (rpl_openpty): Likewise.
52669         Reported by Eric Blake.
52671 2010-03-22  Eric Blake  <eblake@redhat.com>
52673         gethostname: fix build on mingw
52674         * lib/unistd.in.h (includes): Work around fact that mingw
52675         <winsock2.h> re-includes <unistd.h>, by avoiding any
52676         redeclarations if we are being included by <winsock2.h>.
52677         Reported by Matthias Bolte.
52679 2010-03-21  Bruno Haible  <bruno@clisp.org>
52681         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
52682         * lib/forkpty.c (forkpty): New replacement function, from glibc with
52683         modifications.
52684         * lib/pty.in.h (forkpty): Update declaration. Add comments.
52685         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
52686         provide the replacement.
52687         * modules/forkpty (Depends-on): Add openpty, login_tty.
52688         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
52689         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
52690         * doc/glibc-functions/forkpty.texi: More supported platforms.
52691         * config/srclist.txt: Add forkpty.c (commented).
52693 2010-03-21  Bruno Haible  <bruno@clisp.org>
52695         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
52696         (Makefile.am): Verify that PTY_LIB is defined.
52698         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
52700 2010-03-21  Bruno Haible  <bruno@clisp.org>
52702         Tests for module 'login_tty'.
52703         * modules/login_tty-tests: New file.
52704         * tests/test-login_tty.c: New file.
52706         New module 'login_tty'.
52707         * lib/login_tty.c: New file.
52708         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
52709         * modules/login_tty: New file.
52710         * doc/glibc-functions/login_tty.texi: Mention the new module.
52712 2010-03-21  Bruno Haible  <bruno@clisp.org>
52714         login_tty: Documentation.
52715         * doc/glibc-functions/login_tty.texi: New file.
52716         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
52718 2010-03-21  Bruno Haible  <bruno@clisp.org>
52720         pty: Consistent macro naming.
52721         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
52722         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
52723         * modules/pty (configure.ac): Update.
52725 2010-03-21  Bruno Haible  <bruno@clisp.org>
52727         Tests for openpty: Make stricter.
52728         * tests/test-openpty.c (main): Add test of canonical processing and
52729         erase.
52730         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
52732         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
52733         * lib/openpty.c (openpty): New replacement function.
52734         * lib/pty.in.h: Include <termios.h>.
52735         (openpty): Update declaration. Add comments.
52736         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
52737         is not declared, arrange to provide the replacement. Check for _getpty
52738         and posix_openpt.
52739         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
52740         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
52741         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
52742         * modules/pty-tests (test_pty_c___LDADD): New variable.
52743         * doc/glibc-functions/openpty.texi: More supported platforms.
52745 2010-03-21  Bruno Haible  <bruno@clisp.org>
52747         setenv: Tweaks.
52748         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
52749         the test program.
52750         * doc/posix-functions/setenv.texi: Update platforms list.
52752 2010-03-21  Bruno Haible  <bruno@clisp.org>
52754         New module 'unlockpt'.
52755         * lib/unlockpt.c: New file, from glibc with modifications.
52756         * m4/unlockpt.m4: New file.
52757         * modules/unlockpt: New file.
52758         * lib/stdlib.in.h (unlockpt): New declaration.
52759         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
52760         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
52761         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
52762         HAVE_UNLOCKPT.
52763         * doc/posix-functions/unlockpt.texi: Mention the new module.
52764         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
52765         * config/srclist.txt: Add unlockpt.c (commented).
52767 2010-03-21  Jim Meyering  <meyering@redhat.com>
52769         maint.mk: prohibit inclusion of "intprops.h" without use
52770         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
52772 2010-03-21  Bruno Haible  <bruno@clisp.org>
52774         New module 'grantpt'.
52775         * lib/grantpt.c: New file, from glibc with modifications.
52776         * m4/grantpt.m4: New file.
52777         * modules/grantpt: New file.
52778         * lib/stdlib.in.h (grantpt): New declaration.
52779         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
52780         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
52781         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
52782         HAVE_GRANTPT.
52783         * doc/posix-functions/grantpt.texi: Mention the new module.
52784         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
52785         * config/srclist.txt: Add grantpt.c (commented).
52787 2010-03-21  Bruno Haible  <bruno@clisp.org>
52789         New module 'pt_chown'.
52790         * lib/pt_chown.c: New file, from glibc with modifications.
52791         * lib/pty-private.h: New file, from glibc with modifications.
52792         * modules/pt_chown: New file.
52793         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
52795 2010-03-21  Bruno Haible  <bruno@clisp.org>
52797         Tests for module 'ptsname'.
52798         * modules/ptsname-tests: New file.
52799         * tests/test-ptsname.c: New file.
52801         New module 'ptsname'.
52802         * lib/ptsname.c: New file, from glibc with modifications.
52803         * m4/ptsname.m4: New file.
52804         * modules/ptsname: New file.
52805         * lib/stdlib.in.h (ptsname): New declaration.
52806         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
52807         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
52808         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
52809         HAVE_PTSNAME.
52810         * doc/posix-functions/ptsname.texi: Mention the new module.
52811         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
52812         * config/srclist.txt: Add ptsname.c (commented).
52814 2010-03-21  Bruno Haible  <bruno@clisp.org>
52816         Tests for module 'ttyname_r'.
52817         * modules/ttyname_r-tests: New file.
52818         * tests/test-ttyname_r.c: New file.
52820         New module 'ttyname_r'.
52821         * lib/ttyname_r.c: New file.
52822         * m4/ttyname_r.m4: New file.
52823         * modules/ttyname_r: New file.
52824         * lib/unistd.in.h (ttyname_r): New declaration.
52825         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
52826         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
52827         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
52828         HAVE_TTYNAME_R.
52829         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
52830         * doc/posix-functions/ttyname_r.texi: Mention the new module.
52832 2010-03-20  Bruno Haible  <bruno@clisp.org>
52834         signal: Undefine macro definitions in C++ mode.
52835         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
52836         sigfillset): Undefine macro definitions from the system header in C++
52837         mode.
52838         Reported by John W. Eaton <jwe@gnu.org>.
52840 2010-03-20  Bruno Haible  <bruno@clisp.org>
52842         Ensure no #include statements inside extern "C" { ... }.
52843         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
52844         contain #include statements.
52845         * lib/time.in.h: Likewise.
52847 2010-03-20  Bruno Haible  <bruno@clisp.org>
52849         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
52850         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
52851         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
52852         Reported by John W. Eaton <jwe@gnu.org>.
52854 2010-03-20  Bruno Haible  <bruno@clisp.org>
52856         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
52857         Reported by Jim Meyering.
52859 2010-03-20  Bruno Haible  <bruno@clisp.org>
52861         pipe: Set errno upon failure.
52862         * lib/pipe.h: Specify that when -1 is returned, errno is set.
52863         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
52864         errno value in error message.
52866 2010-03-20  Bruno Haible  <bruno@clisp.org>
52867             Jim Meyering  <meyering@redhat.com>
52869         lchown: Avoid "unused variable" warning.
52870         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
52872 2010-03-20  Bruno Haible  <bruno@clisp.org>
52874         Work around unlink() bug on MacOS X 10.5.6.
52875         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
52876         attempting to unlink a parent directory.
52877         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
52878         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
52879         activate for the replacement function.
52880         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
52882 2010-03-20  Bruno Haible  <bruno@clisp.org>
52884         Fix link errors on Solaris 8.
52885         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
52886         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
52888 2010-03-19  Jim Meyering  <meyering@redhat.com>
52890         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
52891         The _LIBC implementation of build_range_exp correctly honors the
52892         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
52893         However, the non-_LIBC implementation would ignore that syntax-bit
52894         flag and return REG_ERANGE unconditionally.
52895         This change makes it honor that flag.
52896         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
52897         Make two pointer parameters "const".
52898         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
52899         (parse_bracket_exp): Update caller.
52901         regex.m4: correct the reversed range endpoint ([b-a]) test
52902         * m4/regex.m4: When requiring that [b-a] evoke failure,
52903         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
52904         test pass once again for x86-based systems.
52906 2010-03-19  Bruno Haible  <bruno@clisp.org>
52908         scandir: Fix link error on Solaris 8.
52909         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
52910         macros.
52912 2010-03-19  Bruno Haible  <bruno@clisp.org>
52914         getusershell: Fix documentation.
52915         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
52916         module.
52917         * doc/glibc-functions/setusershell.texi: Likewise.
52919         getusershell: Provide declaration, missing on Solaris 9.
52920         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
52921         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
52922         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
52923         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
52924         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52925         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
52926         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
52927         HAVE_GETUSERSHELL.
52928         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
52930 2010-03-19  Bruno Haible  <bruno@clisp.org>
52932         wctype: Provide iswblank function.
52933         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
52934         exists and is fine.
52935         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
52936         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
52937         * tests/test-wctype.c (main): Re-enable the iswblank tests.
52938         * doc/posix-functions/iswblank.texi: Update.
52940 2010-03-19  Bruno Haible  <bruno@clisp.org>
52942         Tests of module 'pty' in C++ mode.
52943         * modules/pty-tests: New file.
52944         * tests/test-pty-c++.cc: New file.
52945         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
52947 2010-03-19  Eric Blake  <eblake@redhat.com>
52949         logb: fix documentation
52950         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
52951         1.5 declaration bug.
52953         forkpty, openpty: prefer glibc's const-safe prototype
52954         * lib/forkpty.c (rpl_forkpty): New file.
52955         * lib/openpty.c (rpl_openpty): Likewise.
52956         * modules/forkpty (Files): Distribute it.
52957         * modules/openpty (Files): Likewise.
52958         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
52959         check...
52960         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
52961         replacement for non-const BSD signature.
52962         * modules/pty (Makefile.am): Substitute witnesses.
52963         * lib/pty.in.h (forkpty, openpty): Declare replacements.
52964         * tests/test-forkpty.c: Update signature check.
52965         * tests/test-openpty.c: Likewise.
52966         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
52967         * doc/glibc-functions/openpty.texi (openpty): Likewise.
52969         forkpty, openpty: split functions into new modules
52970         * modules/pty (Makefile.am): Substitute new witnesses.
52971         (Libraries): Move library detection...
52972         * modules/forkpty: ...into new module.
52973         * modules/openpty: Another new module.
52974         * modules/pty-tests: Rename and split...
52975         * modules/forkpty-tests: ...to this...
52976         * modules/openpty-tests: ...and this.
52977         * tests/test-pty.c: Rename and split...
52978         * tests/test-forkpty.c: ...to this...
52979         * tests/test-openpty.c: ...and this.
52980         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
52981         (gl_PTY): Split library searching...
52982         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
52983         (gl_FORKPTY, gl_OPENPTY): New macros.
52984         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
52985         * NEWS: Mention the split.
52986         * MODULES.html.sh (Misc): Document the modules.
52987         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
52988         * doc/glibc-functions/openpty.texi (openpty): Likewise.
52990         pty: improve replacement header
52991         * lib/pty.in.h: New file.
52992         * modules/pty (Files): Ship it.
52993         (Makefile.am): Always build replacement.
52994         * m4/pty.m4: Rename...
52995         * m4/pty_h.m4: ...to this.
52996         (gl_PTY): Modernize setting of witness macros; update check of
52997         forkpty to take proper advantage of cache.
52998         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
53000         getopt: avoid compiler warning
53001         * lib/getopt.c (attribute_hidden): Remove unused macro.
53003 2010-03-18  Bruno Haible  <bruno@clisp.org>
53005         Fix link errors on Solaris 8.
53006         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
53007         * modules/search-tests (test_search_c___LDADD): Likewise.
53008         * modules/signal-tests (test_signal_c___LDADD): Likewise.
53009         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
53010         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
53011         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
53012         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
53013         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
53014         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
53016 2010-03-18  Bruno Haible  <bruno@clisp.org>
53018         Fix bug introduced on 2010-03-14.
53019         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
53020         (gl_SPAWN_H): Require it.
53021         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
53022         Reported by Simon Josefsson.
53024 2010-03-18  Bruno Haible  <bruno@clisp.org>
53026         Fix typo introduced on 2009-12-31.
53027         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
53028         posix_spawn_file_actions_adddup2.
53030 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
53031         and Eric Blake  <eblake@redhat.com>
53033         test-vc-list-files-git: make more robust
53034         * tests/test-vc-list-files-git.sh: Unset problematic environment
53035         variables.  Chain commands together.
53037 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
53039         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
53040         `AC_CHECK_DECL' invocation.
53042 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
53044         * lib/inttostr.c (inttostr): Make sure the invocation of verify
53045         appears before executable statements. Suggested by Petr Sumbera
53046         <Petr.Sumbera@Sun.COM>.
53048 2010-03-14  Bruno Haible  <bruno@clisp.org>
53050         * tests/test-flock.c (test_exclusive): Comment out a test that causes
53051         portability problems. Instead use a simpler test.
53052         (main): Check that invalid arguments are rejected only on Linux.
53054 2010-03-14  Bruno Haible  <bruno@clisp.org>
53056         Fix bug introduced on 2009-12-31.
53057         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
53058         gl_PREREQ_SYS_H_WINSOCK2 always.
53059         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
53060         SYS_SOCKET_H variable.
53061         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
53062         Update comments.
53063         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
53064         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
53065         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
53066         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
53067         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
53069 2010-03-14  Bruno Haible  <bruno@clisp.org>
53071         Fix values returned by sinl, cosl.
53072         * lib/trigl.h: Add specification comments.
53073         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
53074         that combines the values from the precomputed table with the values of
53075         the Chebyshev polynomials.
53077 2010-03-14  Bruno Haible  <bruno@clisp.org>
53079         Fix compilation error when modules 'posix_spawn[p]' are not used.
53080         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
53081         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
53083 2010-03-14  Bruno Haible  <bruno@clisp.org>
53085         Fix compilation error on mingw when module 'time_r' is not used.
53086         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
53087         is 1.
53088         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
53089         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
53090         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
53091         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
53093 2010-03-14  Bruno Haible  <bruno@clisp.org>
53095         Fix compilation error with Sun C.
53096         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
53097         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
53098         instead of GCC specific ULONG_LONG_MAX.
53099         * lib/xstrtoll.c: Likewise.
53100         * lib/xstrtoull.c: Likewise.
53102 2010-03-13  Bruno Haible  <bruno@clisp.org>
53104         Allow the user to disable C++ code and tests.
53105         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
53106         (gl_PROG_ANSI_CXX): Require it.
53108 2010-03-13  Bruno Haible  <bruno@clisp.org>
53110         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
53111         cases.
53113 2010-03-13  Bruno Haible  <bruno@clisp.org>
53115         Test that gnulib does not break the standard C++ headers.
53116         * tests/test-locale-c++2.cc: New file.
53117         * modules/locale-tests (Files): Add it.
53118         (Makefile.am): Compile it for test-locale-c++.
53119         * tests/test-math-c++2.cc: New file.
53120         * modules/math-tests (Files): Add it.
53121         (Makefile.am): Compile it for test-math-c++.
53122         * tests/test-signal-c++2.cc: New file.
53123         * modules/signal-tests (Files): Add it.
53124         (Makefile.am): Compile it for test-signal-c++.
53125         * tests/test-stdio-c++2.cc: New file.
53126         * modules/stdio-tests (Files): Add it.
53127         (Makefile.am): Compile it for test-stdio-c++.
53128         * tests/test-stdlib-c++2.cc: New file.
53129         * modules/stdlib-tests (Files): Add it.
53130         (Makefile.am): Compile it for test-stdlib-c++.
53131         * tests/test-string-c++2.cc: New file.
53132         * modules/string-tests (Files): Add it.
53133         (Makefile.am): Compile it for test-string-c++.
53134         * tests/test-time-c++2.cc: New file.
53135         * modules/time-tests (Files): Add it.
53136         (Makefile.am): Compile it for test-time-c++.
53137         Reported by John W. Eaton <jwe@gnu.org>.
53139 2010-03-13  Bruno Haible  <bruno@clisp.org>
53141         * gnulib-tool (func_usage): Clarify which options are available for
53142         --create-testdir and --create-megatestdir.
53144 2010-03-13  Bruno Haible  <bruno@clisp.org>
53146         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
53147         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
53148         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
53149         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
53150         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
53151         when appropriate.
53152         Reported by Jim Meyering.
53154 2010-03-12  Simon Josefsson  <simon@josefsson.org>
53156         * gnulib-tool (func_import): Explain origin of code.
53158 2010-03-12  Bruno Haible  <bruno@clisp.org>
53160         Fix problem with automake's definition of CXXLINK.
53161         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
53162         Reported by Simon Josefsson and Ludovic Courtès.
53164 2010-03-12  Bruno Haible  <bruno@clisp.org>
53166         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
53167         stable releases.
53169 2010-03-11  Bruno Haible  <bruno@clisp.org>
53171         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
53172         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
53173         whether the system provides one variant or multiple variants of the
53174         function.
53175         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
53176         C++ compilers.
53177         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
53178         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
53179         Reported by Jim Meyering.
53181 2010-03-09  Simon Josefsson  <simon@josefsson.org>
53183         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
53185 2010-03-08  Bruno Haible  <bruno@clisp.org>
53187         gnulib-tool: Add support for --libtool in --create-testdir.
53188         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
53189         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
53191 2010-03-08  Eric Blake  <eblake@redhat.com>
53193         gnulib-tool.texi: mention possibility of git submodule
53194         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
53195         submodules.
53196         * doc/.gitignore: Ignore another generated file.
53198 2010-03-08  Karl Berry  <karl@gnu.org>
53200         * doc/gnulib-tool.texi (VCS Issues): Mention third option
53201         of committing gnulib files while skipping others.
53203 2010-03-07  Bruno Haible  <bruno@clisp.org>
53205         Tests of module 'wctype' in C++ mode.
53206         * tests/test-wctype-c++.cc: New file.
53207         * modules/wctype-tests (Files): Add it and tests/signature.h.
53208         (Depends-on): Add ansi-c++-opt.
53209         (Makefile.am): Arrange to compile and run test-wctype-c++.
53211         Tests of module 'wchar' in C++ mode.
53212         * tests/test-wchar-c++.cc: New file.
53213         * modules/wchar-tests (Files): Add it and tests/signature.h.
53214         (Depends-on): Add ansi-c++-opt.
53215         (Makefile.am): Arrange to compile and run test-wchar-c++.
53216         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
53217         gl_MODULE_INDICATOR.
53219         Tests of module 'unistd' in C++ mode.
53220         * tests/test-unistd-c++.cc: New file.
53221         * modules/unistd-tests (Files): Add it and tests/signature.h.
53222         (Depends-on): Add ansi-c++-opt.
53223         (Makefile.am): Arrange to compile and run test-unistd-c++.
53224         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
53225         gl_MODULE_INDICATOR.
53227         Tests of module 'time' in C++ mode.
53228         * tests/test-time-c++.cc: New file.
53229         * modules/time-tests (Files): Add it and tests/signature.h.
53230         (Depends-on): Add ansi-c++-opt.
53231         (Makefile.am): Arrange to compile and run test-time-c++.
53232         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
53234         Tests of module 'sys_time' in C++ mode.
53235         * tests/test-sys_time-c++.cc: New file.
53236         * modules/sys_time-tests (Files): Add it and tests/signature.h.
53237         (Depends-on): Add ansi-c++-opt.
53238         (Makefile.am): Arrange to compile and run test-sys_time-c++.
53239         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
53240         gl_MODULE_INDICATOR.
53242         Tests of module 'sys_stat' in C++ mode.
53243         * tests/test-sys_stat-c++.cc: New file.
53244         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
53245         (Depends-on): Add ansi-c++-opt.
53246         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
53247         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
53248         gl_MODULE_INDICATOR.
53250         Tests of module 'sys_socket' in C++ mode.
53251         * tests/test-sys_socket-c++.cc: New file.
53252         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
53253         (Depends-on): Add ansi-c++-opt.
53254         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
53255         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
53256         gl_MODULE_INDICATOR.
53258         Tests of module 'sys_select' in C++ mode.
53259         * tests/test-sys_select-c++.cc: New file.
53260         * modules/sys_select-tests (Files): Add it and tests/signature.h.
53261         (Depends-on): Add ansi-c++-opt.
53262         (Makefile.am): Arrange to compile and run test-sys_select-c++.
53263         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
53264         gl_MODULE_INDICATOR.
53266         Tests of module 'sys_ioctl' in C++ mode.
53267         * tests/test-sys_ioctl-c++.cc: New file.
53268         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
53269         (Depends-on): Add ansi-c++-opt.
53270         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
53271         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
53272         gl_MODULE_INDICATOR.
53274         Tests of module 'string' in C++ mode.
53275         * tests/test-string-c++.cc: New file.
53276         * modules/string-tests (Files): Add it and tests/signature.h.
53277         (Depends-on): Add ansi-c++-opt.
53278         (Makefile.am): Arrange to compile and run test-string-c++.
53279         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
53280         gl_MODULE_INDICATOR.
53282         Tests of module 'stdlib' in C++ mode.
53283         * tests/test-stdlib-c++.cc: New file.
53284         * modules/stdlib-tests (Files): Add it and tests/signature.h.
53285         (Depends-on): Add ansi-c++-opt.
53286         (Makefile.am): Arrange to compile and run test-stdlib-c++.
53287         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
53288         gl_MODULE_INDICATOR.
53290         Tests of module 'stdio' in C++ mode.
53291         * tests/test-stdio-c++.cc: New file.
53292         * modules/stdio-tests (Files): Add it and tests/signature.h.
53293         (Depends-on): Add ansi-c++-opt.
53294         (Makefile.am): Arrange to compile and run test-stdio-c++.
53295         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
53296         gl_MODULE_INDICATOR.
53298         Tests of module 'spawn' in C++ mode.
53299         * tests/test-spawn-c++.cc: New file.
53300         * modules/spawn-tests (Files): Add it and tests/signature.h.
53301         (Depends-on): Add ansi-c++-opt.
53302         (Makefile.am): Arrange to compile and run test-spawn-c++.
53303         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
53304         gl_MODULE_INDICATOR.
53306         Tests of module 'signal' in C++ mode.
53307         * tests/test-signal-c++.cc: New file.
53308         * modules/signal-tests (Files): Add it and tests/signature.h.
53309         (Depends-on): Add ansi-c++-opt.
53310         (Makefile.am): Arrange to compile and run test-signal-c++.
53311         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
53312         gl_MODULE_INDICATOR.
53314         Tests of module 'search' in C++ mode.
53315         * tests/test-search-c++.cc: New file.
53316         * modules/search-tests (Files): Add it and tests/signature.h.
53317         (Depends-on): Add ansi-c++-opt.
53318         (Makefile.am): Arrange to compile and run test-search-c++.
53319         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
53320         gl_MODULE_INDICATOR.
53322         Tests of module 'math' in C++ mode.
53323         * tests/test-math-c++.cc: New file.
53324         * modules/math-tests (Files): Add it and tests/signature.h.
53325         (Depends-on): Add ansi-c++-opt.
53326         (Makefile.am): Arrange to compile and run test-math-c++.
53327         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
53329         Tests of module 'locale' in C++ mode.
53330         * tests/test-locale-c++.cc: New file.
53331         * modules/locale-tests (Files): Add it and tests/signature.h.
53332         (Depends-on): Add ansi-c++-opt.
53333         (Makefile.am): Arrange to compile and run test-locale-c++.
53334         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
53335         gl_MODULE_INDICATOR.
53337         Tests of module 'langinfo' in C++ mode.
53338         * tests/test-langinfo-c++.cc: New file.
53339         * modules/langinfo-tests (Files): Add it and tests/signature.h.
53340         (Depends-on): Add ansi-c++-opt.
53341         (Makefile.am): Arrange to compile and run test-langinfo-c++.
53342         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
53343         gl_MODULE_INDICATOR.
53345         Tests of module 'iconv-h' in C++ mode.
53346         * tests/test-iconv-h-c++.cc: New file.
53347         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
53348         (Depends-on): Add ansi-c++-opt.
53349         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
53351         Tests of module 'glob' in C++ mode.
53352         * tests/test-glob-c++.cc: New file.
53353         * modules/glob-tests (Files): Add it.
53354         (Depends-on): Add ansi-c++-opt.
53355         (Makefile.am): Arrange to compile and run test-glob-c++.
53357         Tests of module 'fcntl-h' in C++ mode.
53358         * tests/test-fcntl-h-c++.cc: New file.
53359         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
53360         (Depends-on): Add ansi-c++-opt.
53361         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
53362         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
53363         gl_MODULE_INDICATOR.
53365         Tests of module 'dirent' in C++ mode.
53366         * tests/test-dirent-c++.cc: New file.
53367         * modules/dirent-tests (Files): Add it and tests/signature.h.
53368         (Depends-on): Add ansi-c++-opt.
53369         (Makefile.am): Arrange to compile and run test-dirent-c++.
53370         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
53371         gl_MODULE_INDICATOR.
53373         New module 'ansi-c++-opt'.
53374         * modules/ansi-c++-opt: New file.
53375         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
53377         Document C++ namespace mode.
53378         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
53380         wctype: Avoid #define replacements in C++ mode.
53381         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
53382         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
53383         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
53384         In C++, define a namespaced alias symbol.
53385         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
53386         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
53387         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
53388         rule.
53390         wchar: Avoid #define replacements in C++ mode.
53391         * lib/wchar.in.h: Include c++defs.h.
53392         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
53393         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
53394         symbol.
53395         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
53396         * modules/wchar (Depends-on): Add c++defs.
53397         (Makefile.am): Update wchar.h rule.
53399         unistd: Avoid #define replacements in C++ mode.
53400         * lib/unistd.in.h: Include c++defs.h.
53401         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
53402         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
53403         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
53404         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
53405         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
53406         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
53407         symbol.
53408         (environ): Update.
53409         * modules/unistd (Depends-on): Add c++defs.
53410         (Makefile.am): Update unistd.h rule.
53412         time: Avoid #define replacements in C++ mode.
53413         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
53414         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
53415         define a namespaced alias symbol.
53416         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
53417         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
53418         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
53419         * modules/time (Depends-on): Add c++defs, warn-on-use.
53420         (Makefile.am): Update time.h rule.
53421         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
53422         * modules/nanosleep (configure.ac): Likewise.
53423         * modules/strptime (configure.ac): Likewise.
53424         * modules/timegm (configure.ac): Likewise.
53426         sys_time: Avoid #define replacements in C++ mode.
53427         * lib/sys_time.in.h: Include c++defs.h.
53428         (gettimeofday): In C++, define a namespaced alias symbol.
53429         * modules/sys_time (Depends-on): Add c++defs.
53430         (Makefile.am): Update sys/time.h rule.
53432         sys_stat: Avoid #define replacements in C++ mode.
53433         * lib/sys_stat.in.h: Include c++defs.h.
53434         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
53435         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
53436         namespaced alias symbol.
53437         In C++, define a namespaced alias symbol.
53438         * modules/sys_stat (Depends-on): Add c++defs.
53439         (Makefile.am): Update sys/stat.h rule.
53441         sys_socket: Avoid #define replacements in C++ mode.
53442         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
53443         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
53444         definitions also when the system has a <sys/socket.h>.
53445         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
53446         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
53447         In C++, define a namespaced alias symbol.
53448         * modules/sys_socket (Depends-on): Add c++defs.
53449         (Makefile.am): Update sys/socket.h rule.
53451         sys_select: Avoid #define replacements in C++ mode.
53452         * lib/sys_select.in.h: Include c++defs.h. Enable the function
53453         definitions also when the system has a <sys/select.h>.
53454         (select): In C++, define a namespaced alias symbol.
53455         * modules/sys_select (Depends-on): Add c++defs.
53456         (Makefile.am): Update sys/select.h rule.
53458         sys_ioctl: Avoid #define replacements in C++ mode.
53459         * lib/sys_ioctl.in.h: Include c++defs.h.
53460         (ioctl): In C++, define a namespaced alias symbol.
53461         * modules/sys_ioctl (Depends-on): Add c++defs.
53462         (Makefile.am): Update sys/ioctl.h rule.
53464         string: Avoid #define replacements in C++ mode.
53465         * lib/string.in.h: Include c++defs.h.
53466         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
53467         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
53468         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
53469         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
53470         strsignal, strverscmp): In C++, define a namespaced alias symbol.
53471         * modules/string (Depends-on): Add c++defs.
53472         (Makefile.am): Update string.h rule.
53474         stdlib: Avoid #define replacements in C++ mode.
53475         * lib/stdlib.in.h: Include c++defs.h.
53476         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
53477         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
53478         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
53479         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
53480         symbol.
53481         * modules/stdlib (Depends-on): Add c++defs.
53482         (Makefile.am): Update stdlib.h rule.
53484         stdio: Avoid #define replacements in C++ mode.
53485         * lib/stdio.in.h: Include c++defs.h.
53486         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
53487         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
53488         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
53489         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
53490         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
53491         namespaced alias symbol.
53492         * modules/stdio (Depends-on): Add c++defs.
53493         (Makefile.am): Update stdio.h rule.
53495         spawn: Avoid #define replacements in C++ mode.
53496         * lib/spawn.in.h: Include c++defs.h.
53497         (posix_spawn, posix_spawnp, posix_spawnattr_init,
53498         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
53499         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
53500         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
53501         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
53502         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
53503         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
53504         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
53505         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
53506         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
53507         In C++, define a namespaced alias symbol.
53508         * modules/spawn (Depends-on): Add c++defs.
53509         (Makefile.am): Update spawn.h rule.
53511         signal: Avoid #define replacements in C++ mode.
53512         * lib/signal.in.h: Include c++defs.h.
53513         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
53514         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
53515         namespaced alias symbol.
53516         * modules/signal (Depends-on): Add c++defs.
53517         (Makefile.am): Update signal.h rule.
53519         search: Avoid #define replacements in C++ mode.
53520         * lib/search.in.h: Include c++defs.h.
53521         (_gl_search_compar_fn, _gl_search_action_fn): New types.
53522         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
53523         symbol.
53524         * modules/search (Depends-on): Add c++defs.
53525         (Makefile.am): Update search.h rule.
53527         math: Avoid #define replacements in C++ mode.
53528         * lib/math.in.h: Include c++defs.h.
53529         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
53530         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
53531         trunc, truncl): In C++, define a namespaced alias symbol.
53532         * modules/math (Depends-on): Add c++defs.
53533         (Makefile.am): Update math.h rule.
53535         locale: Avoid #define replacements in C++ mode.
53536         * lib/locale.in.h: Include c++defs.h.
53537         (duplocale): In C++, define a namespaced alias symbol.
53538         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
53539         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
53540         * modules/locale (Depends-on): Add c++defs.
53541         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
53543         langinfo: Avoid #define replacements in C++ mode.
53544         * lib/langinfo.in.h: Include c++defs.h.
53545         (nl_langinfo): In C++, define a namespaced alias symbol.
53546         * modules/langinfo (Depends-on): Add c++defs.
53547         (Makefile.am): Update langinfo.h rule.
53549         iconv-h: Avoid #define replacements in C++ mode.
53550         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
53551         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
53552         symbol.
53553         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
53554         whenever iconv is present.
53555         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
53556         (Makefile.am): Update iconv.h rule.
53558         glob: Avoid #define replacements in C++ mode.
53559         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
53560         (_gl_glob_errfunc_fn): New type.
53561         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
53562         symbol.
53563         * modules/glob (Depends-on): Add c++defs, warn-on-use.
53564         (Makefile.am): Update glob.h rule.
53566         fcntl-h: Avoid #define replacements in C++ mode.
53567         * lib/fcntl.in.h: Include c++defs.h.
53568         (fcntl, open, openat): In C++, define a namespaced alias symbol.
53569         * modules/fcntl-h (Depends-on): Add c++defs.
53570         (Makefile.am): Update fcntl.h rule.
53572         dirent: Avoid #define replacements in C++ mode.
53573         * lib/dirent.in.h: Include c++defs.h.
53574         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
53575         namespaced alias symbol.
53576         (dirfd): Update declaration.
53577         * modules/dirent (Depends-on): Add c++defs.
53578         (Makefile.am): Update dirent.h rule.
53580         ctype: Make it usable in C++ code.
53581         * lib/ctype.in.h: Include c++defs.h.
53582         (isblank): Declare as extern "C".
53583         * modules/ctype (Depends-on): Add c++defs.
53584         (Makefile.am): Update ctype.h rule.
53586         New module 'c++defs'.
53587         * modules/c++defs: New file.
53588         * build-aux/c++defs.h: New file.
53589         Reported by John W. Eaton <jwe@gnu.org>.
53591 2010-03-07  Bruno Haible  <bruno@clisp.org>
53593         logb: Provide missing declaration for Cygwin.
53594         * lib/math.in.h (logb): New declaration.
53595         * m4/logb.m4: New file.
53596         * modules/logb (Files): Add m4/logb.m4.
53597         (Depends-on): Add math.
53598         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
53599         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
53600         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
53601         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
53602         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
53604 2010-03-07  Bruno Haible  <bruno@clisp.org>
53606         Fix test-cond link error.
53607         * tests/test-cond.c: Include <stdio.h>.
53609 2010-03-07  Bruno Haible  <bruno@clisp.org>
53611         Fix test-dirent-safer link error.
53612         * modules/dirent-safer-tests (Makefile.am): Define
53613         test_dirent_safer_LDADD.
53615 2010-03-07  Bruno Haible  <bruno@clisp.org>
53617         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
53618         among default module list.
53620 2010-03-07  Bruno Haible  <bruno@clisp.org>
53622         Fix link error on platforms with GNU libiconv.
53623         * modules/unistr/u8-strcoll-tests (Makefile): Define
53624         test_u8_strcoll_LDADD.
53625         * modules/unistr/u16-strcoll-tests (Makefile): Define
53626         test_u16_strcoll_LDADD.
53627         * modules/unistr/u32-strcoll-tests (Makefile): Define
53628         test_u32_strcoll_LDADD.
53630 2010-03-07  Bruno Haible  <bruno@clisp.org>
53632         Use POSIX declarations for socket functions.
53633         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
53634         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
53635         rpl_sendto): Change declaration to match POSIX.
53636         * lib/connect.c (rpl_connect): Likewise.
53637         * lib/accept.c (rpl_accept): Likewise.
53638         * lib/bind.c (rpl_bind): Likewise.
53639         * lib/getpeername.c (rpl_getpeername): Likewise.
53640         * lib/getsockname.c (rpl_getsockname): Likewise.
53641         * lib/recv.c (rpl_recv): Likewise.
53642         * lib/send.c (rpl_send): Likewise.
53643         * lib/recvfrom.c (rpl_recvfrom): Likewise.
53644         * lib/sendto.c (rpl_sendto): Likewise.
53646 2010-03-06  Bruno Haible  <bruno@clisp.org>
53648         Clarify access, euidaccess, faccessat.
53649         * doc/posix-functions/faccessat.texi: Mention security problem under
53650         "Other problems", not "Portability problems".
53651         * doc/posix-functions/access.texi: Likewise. Mention a related security
53652         problem.
53653         * doc/glibc-functions/euidaccess.texi: Mention security problems.
53654         * lib/euidaccess.c: Add comments about platforms.
53655         * lib/unistd.in.h (access, euidaccess): Add warnings.
53657 2010-03-07  Bruno Haible  <bruno@clisp.org>
53659         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
53660         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
53661         (POSIX_SPAWN_SETSCHEDULER): Likewise.
53662         (POSIX_SPAWN_USEVFORK): Define in a way that works when
53663         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
53664         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
53665         declare when POSIX_SPAWN_SETSCHEDULER is zero.
53666         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
53667         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
53668         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
53669         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
53670         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
53671         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
53672         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
53673         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
53674         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
53675         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
53676         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
53677         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
53678         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
53679         Likewise.
53680         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
53681         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
53682         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
53683         Likewise.
53684         * tests/test-spawn.c (main): Make it work when
53685         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
53687 2010-03-07  Bruno Haible  <bruno@clisp.org>
53689         Fix incorrect Makefile.am generation in German locale.
53690         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53691         Execute sed command with character range in C locale.
53693 2010-03-06  Bruno Haible  <bruno@clisp.org>
53695         Tests for module 'iconv-h'.
53696         * modules/iconv-h-tests: New file.
53697         * tests/test-iconv-h.c: New file.
53699         New module 'iconv-h'.
53700         * modules/iconv-h: New file.
53701         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
53702         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
53703         (configure.ac): Remove gl_ICONV_H.
53704         (Makefile.am): Remove rule for iconv.h.
53706 2010-03-06  Bruno Haible  <bruno@clisp.org>
53708         More consistent naming of *.m4 files.
53709         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
53710         * modules/wctype (Files): Update.
53712         More consistent naming of *.m4 files.
53713         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
53714         * modules/wchar (Files): Update.
53716 2010-03-06  Jim Meyering  <meyering@redhat.com>
53718         euidaccess: relax license to LGPLv2+
53719         * modules/euidaccess (License): Relax to LGPLv2+.
53721 2010-03-06  Bruno Haible  <bruno@clisp.org>
53723         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
53724         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
53725         (Makefile.am): Augment lib_SOURCES instead.
53727 2010-03-04  Jim Meyering  <meyering@redhat.com>
53729         utime: remove obsolete module
53730         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
53731         unnecessary for years, and has been marked as obsolete for 10 months.
53732         * modules/utime: Remove file.
53733         * lib/utime.c: Remove file.
53734         * m4/utime.m4: Remove file.
53735         * m4/utimes-null.m4: Remove file.
53736         * doc/posix-functions/utime.texi (utime): Remove reference to
53737         the module.  Move the sole "fixed by gnulib" item into the
53738         "problems not fixed by Gnulib" list.
53739         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
53741 2010-03-05  Simon Josefsson  <simon@josefsson.org>
53743         * modules/exit (License): Relax license to LGPLv2+.
53744         (Status): Mark as obsolete.
53745         * NEWS: Mention deprecated 'exit' module.
53746         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
53747         of now obsolete 'exit'.
53749 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53751         fts-lgpl: remove unused module
53752         * modules/fts-lgpl: Remove.
53753         * MODULES.html.sh (func_all_modules): Adjust.
53754         * check-module (find_included_lib_files): Adjust.
53755         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
53757 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
53759         copy-acl: enhance Solaris ACL error handling
53760         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
53761         * lib/set-mode-acl.c (qset_acl): Likewise.
53763 2010-03-02  Bruno Haible  <bruno@clisp.org>
53765         spawn: Don't override the system defined values on FreeBSD 8.
53766         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
53767         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
53768         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
53769         if HAVE_POSIX_SPAWN is 1.
53770         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
53772 2010-03-01  Bruno Haible  <bruno@clisp.org>
53774         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
53775         regarding Automake.
53777 2010-02-25  Bruno Haible  <bruno@clisp.org>
53779         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
53780         * gnulib-tool: Define 'echo' as a function only before the ksh alias
53781         setting, not afterwards.
53782         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
53784 2010-02-24  Eric Blake  <eblake@redhat.com>
53786         bootstrap, git-version-gen: use timestamp
53787         * build-aux/git-version-gen (scriptversion): Force UTC.
53788         * build-aux/bootstrap (scriptversion): New variable.
53790         bootstrap: allow older git
53791         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
53792         older than 1.6.4.  Requested by the libvirt project.
53794 2010-02-23  Eric Blake  <eblake@redhat.com>
53796         warn-on-use: work with old autoconf
53797         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
53798         AS_VAR semantics of autoconf 2.60.
53799         Reported by Bruno Haible.
53801         bootstrap: improve some comments
53802         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
53803         clarification comments.
53805         gettimeofday: provide correct function
53806         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
53807         when replacement is declared, otherwise provide gettimeofday.
53808         Reported by Michael Goffioul.
53810 2010-02-23  Jim Meyering  <meyering@redhat.com>
53812         lib-ignore: relax license to "unlimited", not LGPLv2+
53813         * modules/lib-ignore (License): Relax to "unlimited".
53815 2010-02-23  Jim Meyering  <meyering@redhat.com>
53817         lib-ignore: relax license to LGPLv2+
53818         * modules/lib-ignore (License): Relax to LGPLv2+.
53820 2010-02-22  Eric Blake  <eblake@redhat.com>
53822         lseek: avoid bash 3.2 broken pipe bug
53823         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
53824         warning from bash 3.2.
53825         Reported by Ben Pfaff, with analysis from Bruno Haible.
53827         bootstrap: support non-FSF copyright holder
53828         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
53829         bootstrap.conf override of COPYRIGHT_HOLDER.
53830         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
53832         bootstrap: interoperate with gettext 0.14.1
53833         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
53835         bootstrap: allow for alternate submodule location
53836         * build-aux/bootstrap (gnulib_path): New variable; use instead of
53837         hardcoding submodule location.
53838         (gnulib_mk): Allow direct use of Makefile.am.
53840         bootstrap: use GNULIB_SRCDIR to reduce disk usage
53841         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
53842         rather than reconfiguring where the submodule points.
53844         gettimeofday: restore support for platforms that lack function
53845         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
53846         replacement if function is missing.
53847         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
53848         * modules/sys_time (Makefile.am): Substitute it.
53849         * lib/sys_time.in.h (gettimeofday): Check it.
53850         Reported by Michael Goffioul.
53852 2010-02-21  Bruno Haible  <bruno@clisp.org>
53854         * lib/stdio.in.h (obstack_printf): Fix typo.
53856 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
53858         vc-list-files: use bzr ls's -R option
53859         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
53860         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
53862 2010-02-21  Jim Meyering  <meyering@redhat.com>
53864         init.sh: fix EXEEXT shims to work also for names like test-prog
53865         * tests/init.sh: Re-exec a better shell, when needed.
53866         If the current shell lacks support for posix $(...), an init.sh-using
53867         test will now try to find a shell that supports that.  If EXEEXT is
53868         nonempty, we also require support for hyphen-in-alias-name and shell
53869         substitutions like ${var#glob}.  Failure to find such a shell results
53870         in a skipped test.
53872 2010-02-21  Bruno Haible  <bruno@clisp.org>
53874         Really work around "broken pipe" error message from bash 3.2.
53875         * gnulib-tool (func_reset_sigpipe): Remove function.
53876         (echo): In bash 3.2, define to a function that uses printf.
53877         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
53879 2010-02-20  Bruno Haible  <bruno@clisp.org>
53881         Restore support for automake 1.9.6 with autoconf 2.61.
53882         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
53883         Reported by James Youngman <jay@gnu.org>.
53885 2010-02-20  Bruno Haible  <bruno@clisp.org>
53887         Improve *printf warning condition.
53888         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
53889         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
53890         and the function is overridden due to SIGPIPE emulation.
53892 2010-02-20  Bruno Haible  <bruno@clisp.org>
53894         * lib/stdio.in.h: Tweak comments.
53896 2010-02-19  Bruno Haible  <bruno@clisp.org>
53898         Make it easier to find modules. New gnulib-tool option '--find'.
53899         * gnulib-tool: New option --find.
53900         (func_usage): Document it.
53901         (func_sanitize_modulelist): New function, extracted from
53902         func_all_modules.
53903         (func_all_modules): Invoke it.
53904         * doc/gnulib-tool.texi (Which modules?): New node.
53906 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
53908         * lib/sys_select.in.h: Provide select replacement even if
53909         sys/select.h exists on a system, for Interix.
53911 2010-02-18  Jim Meyering  <meyering@redhat.com>
53913         init.sh: don't use $(...) just yet
53914         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
53915         to accommodate e.g., Solaris' /bin/sh.
53917 2010-02-17  Bruno Haible  <bruno@clisp.org>
53919         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
53920         Reported by Ludovic Courtès <ludo@gnu.org>.
53922 2010-02-16  Simon Josefsson  <simon@josefsson.org>
53924         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
53925         linking with -lintl.
53927 2010-02-17  Simon Josefsson  <simon@josefsson.org>
53929         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
53930         if not provided by the system's netdb.h.  Reported by
53931         ludo@gnu.org (Ludovic Courtès).
53933 2010-02-15  Jim Meyering  <meyering@redhat.com>
53935         init.sh: improve portability and efficiency
53936         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
53937         "dummy" in a for loop.
53938         Use '!', not '^' to select the complement of a character set used
53939         in a "case" statement.
53940         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
53941         Suggestions from Eric Blake.
53943         init.sh: automatically accommodate programs with the .exe suffix
53944         Automatically arrange for an invocation of "prog" to execute the
53945         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
53946         may use the simpler "prog", yet still work when built on a system
53947         that requires specifying the added suffix.
53948         Do this by constructing a function named "prog" that invokes
53949         "prog.exe" for each .exe file in selected directories.
53950         * tests/init.sh (find_exe_basenames_): New function.
53951         (create_exe_shim_functions_): New function.
53952         (path_prepend_): Use it.
53954         maint.mk: mark syntax-check sc_*.m rules as .PHONY
53955         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
53956         "make -t syntax-check" doesn't create a ton of sc_*.m files.
53958 2010-02-14  Jim Meyering  <meyering@redhat.com>
53960         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
53961         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
53962         (sc_prohibit_hash_pjw_without_use): New rule.
53964         maint.mk: allow the default upload destination dir to be overridden
53965         * top/maint.mk (upload_dest_dir_): Define with a default that
53966         preserves the status quo.
53967         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
53968         Reported by Peter Simons.
53970         maint.mk: prohibit inclusion of "hash.h" without_use
53971         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
53973 2010-02-10  Jim Meyering  <meyering@redhat.com>
53975         maint.mk: prohibit inclusion of "ignore-value.h" without_use
53976         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
53978 2010-02-09  Eric Blake  <ebb9@byu.net>
53979         and Bruno Haible  <bruno@clisp.org>
53981         obstack-printf-posix: ensure declaration
53982         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
53983         extracted from gl_FUNC_OBSTACK_PRINTF.
53984         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
53985         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
53986         Likewise.
53987         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
53988         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
53989         0.
53991 2010-02-08  Bruno Haible  <bruno@clisp.org>
53993         gnulib-tool: Fix typo in 2010-02-07 commit.
53994         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
53995         Reported by Eric Blake.
53997 2010-02-07  Bruno Haible  <bruno@clisp.org>
53999         gnulib-tool: Fix up caching patches.
54000         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
54001         option --no-cache. Use associative arrays when supported by the shell.
54002         (sed_comments): New variable.
54003         (modcache): Renamed from do_cache.
54004         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
54005         abbreviate unnecessarily.
54006         (have_associative): New variable.
54007         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
54008         way also for ksh and zsh.
54009         (func_init_sed_convert_to_cache_statements): New function, extracted
54010         from func_cache_lookup_module. Add support for associative arrays.
54011         Don't set the c_MODULE_cached variable here. Ignore all lines before
54012         the first field header. Remove only the final newline, not all trailing
54013         newlines. Support empty fields correctly. Limit the use of 'eval' to
54014         assignments.
54015         (func_get_description, func_get_status, func_get_notice,
54016         func_get_applicability, func_get_filelist, func_get_dependencies,
54017         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
54018         func_get_automake_snippet, func_get_include_directive,
54019         func_get_link_directive, func_get_license, func_get_maintainer):
54020         Update documentation. List the unoptimized code first. Add support for
54021         associative arrays. Limit the use of 'eval' to assignments.
54022         (func_get_applicability): Undo stylistic pessimisations.
54023         (func_get_automake_snippet, func_get_include_directive): Reduce code
54024         duplication.
54025         (func_modules_transitive_closure, func_modules_add_dummy,
54026         func_modules_notice, func_modules_to_filelist, func_add_file,
54027         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
54028         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
54029         func_create_testdir, func_create_megatestdir): Update documentation.
54031 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54033         * gnulib-tool (func_cache_lookup_module): Store the module name
54034         belonging to the cache variable; error out if two different
54035         module names map to the same cache variable name.
54037 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54039         gnulib-tool: Make caching optional.
54040         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
54041         Update matching short versions of --no-changelog.
54042         (func_usage): Update.
54043         (sed_extract_cache_prog): Renamed from ...
54044         (sed_extract_prog): ... this; revert to old extraction script.
54045         (func_get_description, func_get_status)
54046         (func_get_notice, func_get_applicability, func_get_filelist)
54047         (func_get_dependencies, func_get_autoconf_early_snippet)
54048         (func_get_autoconf_snippet, func_get_automake_snippet)
54049         (func_get_include_directive, func_get_link_directive)
54050         (func_get_license, func_get_maintainer): If $do_cache is false,
54051         use old, non-caching extraction scripts.
54052         Suggestion by Bruno Haible.
54054 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54056         gnulib-tool: cache module metainformation.
54057         * gnulib-tool (sed_extract_prog): Match newline before each
54058         header, and rewrite header to a shell variable suffix.
54059         (func_cache_var, func_cache_lookup_module): New functions,
54060         to turn a module name into a cache variable prefix, and to
54061         look up and cache module metainformation.
54062         (func_get_description, func_get_status)
54063         (func_get_notice, func_get_applicability, func_get_filelist)
54064         (func_get_dependencies, func_get_autoconf_early_snippet)
54065         (func_get_autoconf_snippet, func_get_automake_snippet)
54066         (func_get_include_directive, func_get_link_directive)
54067         (func_get_license, func_get_maintainer): Use
54068         func_cache_lookup_module.
54070 2010-02-07  Bruno Haible  <bruno@clisp.org>
54072         fnctl: Fix missing dependency.
54073         * modules/fcntl (Depends-on): Add getdtablesize.
54074         Reported by John W. Eaton <jwe@gnu.org>.
54076 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
54078         Argp: fix recognition of short alias options.
54080         * lib/argp-parse.c (convert_options): Fix improper use of
54081         `|' between character values.
54082         * tests/test-argp.c (group1_option): New alias option
54083         --read (-r).
54084         (group1_parser): Special handling for 'r'.
54085         (test15): New test case.
54086         (test_fun): Add test15.
54087         * tests/test-argp-2.sh: Update expected --help and --usage
54088         outputs.
54090 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
54092         * tests/test-argp.c: Fix indentation.
54094 2010-02-04  Eric Blake  <ebb9@byu.net>
54096         gettimeofday: expose type of second argument
54097         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
54098         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
54099         * tests/test-gettimeofday.c: Use it to silence warning.
54100         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
54101         the issue.
54103 2010-02-03  Jim Meyering  <meyering@redhat.com>
54105         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
54106         * lib/regcomp.c (TYPE_SIGNED): Define.
54107         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
54109         regcomp.c: avoid a new -Wshadow warning
54110         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
54112 2010-02-01  Jim Meyering  <meyering@redhat.com>
54114         removing useless parentheses in cpp #define directives
54115         For motivation, see commit c0221df4, "define STREQ(a,b)
54116         consistently, removing useless parentheses"
54117         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
54118         * lib/mountlist.c (MNT_IGNORE): Likewise.
54119         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
54121 2010-02-01  Eric Blake  <ebb9@byu.net>
54123         sys_time: use link-warning
54124         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
54125         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
54126         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
54127         * modules/sys_time (Depends-on): Add warn-on-use.
54128         (Makefile.am): Always build replacement.
54129         (configure.ac): Update substitutions.
54130         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
54131         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
54132         bother with SYS_TIME_H.
54133         * modules/gettimeofday (configure.ac): Declare indicator.
54134         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
54135         in use.
54137         closein-tests: silence compiler warning
54138         * tests/test-closein.c (main): Ignore fread result.
54139         * modules/closein-tests (Depends-on): Add ignore-value.
54141         tests: silence warning about system return
54142         * tests/test-areadlink-with-size.c (main): Ignore system result.
54143         * tests/test-areadlink.c (main): Likewise.
54144         * tests/test-areadlinkat-with-size.c (main): Likewise.
54145         * tests/test-areadlinkat.c (main): Likewise.
54146         * tests/test-canonicalize-lgpl.c (main): Likewise.
54147         * tests/test-canonicalize.c (main): Likewise.
54148         * tests/test-chown.c (main): Likewise.
54149         * tests/test-fchownat.c (main): Likewise.
54150         * tests/test-fdutimensat.c (main): Likewise.
54151         * tests/test-fstatat.c (main): Likewise.
54152         * tests/test-futimens.c (main): Likewise.
54153         * tests/test-lchown.c (main): Likewise.
54154         * tests/test-link.c (main): Likewise.
54155         * tests/test-linkat.c (main): Likewise.
54156         * tests/test-lstat.c (main): Likewise.
54157         * tests/test-mkdir.c (main): Likewise.
54158         * tests/test-mkdirat.c (main): Likewise.
54159         * tests/test-mkfifo.c (main): Likewise.
54160         * tests/test-mkfifoat.c (main): Likewise.
54161         * tests/test-mknod.c (main): Likewise.
54162         * tests/test-readlink.c (main): Likewise.
54163         * tests/test-remove.c (main): Likewise.
54164         * tests/test-rename.c (main): Likewise.
54165         * tests/test-renameat.c (main): Likewise.
54166         * tests/test-rmdir.c (main): Likewise.
54167         * tests/test-symlink.c (main): Likewise.
54168         * tests/test-symlinkat.c (main): Likewise.
54169         * tests/test-unlink.c (main): Likewise.
54170         * tests/test-unlinkat.c (main): Likewise.
54171         * tests/test-utimens.c (main): Likewise.
54172         * tests/test-utimensat.c (main): Likewise.
54173         * modules/areadlink-tests (Depends-on): Add ignore-value.
54174         * modules/areadlink-with-size-tests (Depends-on): Likewise.
54175         * modules/areadlinkat-tests (Depends-on): Likewise.
54176         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
54177         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
54178         * modules/canonicalize-tests (Depends-on): Likewise.
54179         * modules/chown-tests (Depends-on): Likewise.
54180         * modules/fdutimensat-tests (Depends-on): Likewise.
54181         * modules/futimens-tests (Depends-on): Likewise.
54182         * modules/lchown-tests (Depends-on): Likewise.
54183         * modules/link-tests (Depends-on): Likewise.
54184         * modules/linkat-tests (Depends-on): Likewise.
54185         * modules/lstat-tests (Depends-on): Likewise.
54186         * modules/mkdir-tests (Depends-on): Likewise.
54187         * modules/mkfifo-tests (Depends-on): Likewise.
54188         * modules/mkfifoat-tests (Depends-on): Likewise.
54189         * modules/mknod-tests (Depends-on): Likewise.
54190         * modules/openat-tests (Depends-on): Likewise.
54191         * modules/readlink-tests (Depends-on): Likewise.
54192         * modules/remove-tests (Depends-on): Likewise.
54193         * modules/rename-tests (Depends-on): Likewise.
54194         * modules/renameat-tests (Depends-on): Likewise.
54195         * modules/rmdir-tests (Depends-on): Likewise.
54196         * modules/symlink-tests (Depends-on): Likewise.
54197         * modules/symlinkat-tests (Depends-on): Likewise.
54198         * modules/unlink-tests (Depends-on): Likewise.
54199         * modules/utimens-tests (Depends-on): Likewise.
54200         * modules/utimensat-tests (Depends-on): Likewise.
54202 2010-01-31  Bruno Haible  <bruno@clisp.org>
54204         Perform the same test for many <math.h> functions.
54205         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
54206         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
54207         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
54208         of gl_MATHFUNC.
54209         * modules/acos (configure.ac): Likewise.
54210         * modules/asin (configure.ac): Likewise.
54211         * modules/atan (configure.ac): Likewise.
54212         * modules/atan2 (configure.ac): Likewise.
54213         * modules/cbrt (configure.ac): Likewise.
54214         * modules/copysign (configure.ac): Likewise.
54215         * modules/cos (configure.ac): Likewise.
54216         * modules/cosh (configure.ac): Likewise.
54217         * modules/erf (configure.ac): Likewise.
54218         * modules/erfc (configure.ac): Likewise.
54219         * modules/exp (configure.ac): Likewise.
54220         * modules/fmod (configure.ac): Likewise.
54221         * modules/hypot (configure.ac): Likewise.
54222         * modules/j0 (configure.ac): Likewise.
54223         * modules/j1 (configure.ac): Likewise.
54224         * modules/jn (configure.ac): Likewise.
54225         * modules/lgamma (configure.ac): Likewise.
54226         * modules/log (configure.ac): Likewise.
54227         * modules/log10 (configure.ac): Likewise.
54228         * modules/log1p (configure.ac): Likewise.
54229         * modules/pow (configure.ac): Likewise.
54230         * modules/remainder (configure.ac): Likewise.
54231         * modules/sin (configure.ac): Likewise.
54232         * modules/sinh (configure.ac): Likewise.
54233         * modules/tan (configure.ac): Likewise.
54234         * modules/tanh (configure.ac): Likewise.
54235         * modules/y0 (configure.ac): Likewise.
54236         * modules/y1 (configure.ac): Likewise.
54237         * modules/yn (configure.ac): Likewise.
54238         Suggested by Paolo Bonzini.
54240 2010-01-31  Bruno Haible  <bruno@clisp.org>
54242         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
54244 2010-01-31  Bruno Haible  <bruno@clisp.org>
54246         Work around getdelim() bug on FreeBSD 8.0.
54247         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
54248         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
54249         not work.
54250         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
54251         is 1.
54252         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
54253         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
54254         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
54255         a non-zero size.
54256         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
54258 2010-01-31  Bruno Haible  <bruno@clisp.org>
54260         Work around getline() bug on FreeBSD 8.0.
54261         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
54262         and a non-zero size.
54263         * tests/test-getline.c (main): Likewise.
54264         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
54265         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
54267 2010-01-28  Eric Blake  <ebb9@byu.net>
54269         regex: fix build failure
54270         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
54271         platforms.
54273 2010-01-28  Jim Meyering  <meyering@redhat.com>
54275         regex: do not ignore memory allocation failure
54276         * lib/regex_internal.c (create_cd_newstate): Detect
54277         re_node_set_init_copy failure.   Extracted from glibc commit
54278         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
54280         regex: sync more white-space changes from libc
54281         * lib/regex_internal.c: White-space only changes.
54282         * lib/regexec.c: Likewise.
54284         regex: add many uses of __attribute_warn_unused_result__
54285         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
54286         * lib/regexec.c: Likewise.
54287         Extracted from a messy glibc commit.
54289         regcomp.c: spelling and merge-artifact from glibc
54290         * lib/regcomp.c: Merge remainder of glibc's
54291         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
54293         regcomp.c: sync white-space changes from glibc
54294         * lib/regcomp.c: Merge to accommodate white space
54295         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
54297         regcomp.c: do not ignore internal return values
54298         * lib/regcomp.c: Do not ignore internal return values.
54299         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
54300         but without its white-space changes and spelling fixes.
54302         regex_internal.h: define __attribute_warn_unused_result__
54303         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
54305         maint: add a syntax-check rule to check for vulnerable Makefile.in
54306         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
54308 2010-01-27  Jim Meyering  <meyering@redhat.com>
54310         ncftpput-ftp: clean up spaces
54311         * build-aux/ncftpput-ftp: Make Copyright line consistent.
54312         Remove trailing blanks.
54314 2010-01-27  Simon Josefsson  <simon@josefsson.org>
54316         * build-aux/git-version-gen: Fix copyright statement.
54317         * build-aux/gnupload: Likewise.
54318         * tests/test-arcfour.c: Likewise.
54319         * tests/test-arctwo.c: Likewise.
54320         * tests/test-count-one-bits.c: Likewise.
54321         * tests/test-crc.c: Likewise.
54322         * tests/test-des.c: Likewise.
54323         * tests/test-gc-arcfour.c: Likewise.
54324         * tests/test-gc-arctwo.c: Likewise.
54325         * tests/test-gc-des.c: Likewise.
54326         * tests/test-gc-hmac-md5.c: Likewise.
54327         * tests/test-gc-hmac-sha1.c: Likewise.
54328         * tests/test-gc-md2.c: Likewise.
54329         * tests/test-gc-md4.c: Likewise.
54330         * tests/test-gc-md5.c: Likewise.
54331         * tests/test-gc-pbkdf2-sha1.c: Likewise.
54332         * tests/test-gc-rijndael.c: Likewise.
54333         * tests/test-gc-sha1.c: Likewise.
54334         * tests/test-gc.c: Likewise.
54335         * tests/test-gethostname.c: Likewise.
54336         * tests/test-gettimeofday.c: Likewise.
54337         * tests/test-hash.c: Likewise.
54338         * tests/test-hmac-md5.c: Likewise.
54339         * tests/test-hmac-sha1.c: Likewise.
54340         * tests/test-md2.c: Likewise.
54341         * tests/test-md4.c: Likewise.
54342         * tests/test-md5.c: Likewise.
54343         * tests/test-memchr.c: Likewise.
54344         * tests/test-memchr2.c: Likewise.
54345         * tests/test-memcmp.c: Likewise.
54346         * tests/test-memmem.c: Likewise.
54347         * tests/test-memrchr.c: Likewise.
54348         * tests/test-rawmemchr.c: Likewise.
54349         * tests/test-read-file.c: Likewise.
54350         * tests/test-rijndael.c: Likewise.
54351         * tests/test-sockets.c: Likewise.
54352         * tests/test-strchrnul.c: Likewise.
54353         * tests/test-strstr.c: Likewise.
54354         * tests/test-strtod.c: Likewise.
54355         * build-aux/ncftpput-ftp: Likewise.
54357 2010-01-26  Eric Blake  <ebb9@byu.net>
54359         ignore-value: update recommended header name
54360         * modules/ignore-value (Include): Only use <> for headers that
54361         exist in glibc.
54363 2010-01-26  Jim Meyering  <meyering@redhat.com>
54365         test-userspec.c: avoid compiler warnings
54366         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
54367         and "initialization discards qualifiers..." warnings.
54368         Put the first "uid" in its own scope, and make char* members "const".
54370 2010-01-25  Bruno Haible  <bruno@clisp.org>
54372         gnulib-tool: Make warning diagnostics consistent.
54373         * gnulib-tool (func_warning): New function.
54374         Use it everywhere where gnulib-tool produces output to stderr and it is
54375         not a fatal error.
54377 2010-01-25  Bruno Haible  <bruno@clisp.org>
54379         Fix test dependencies.
54380         * modules/xstrtol-tests (Depends-on): Add inttypes.
54381         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
54383 2010-01-25  Pádraig Brady  <P@draigBrady.com>
54385         syntax-check: detect incorrect boolean macro values in config.h
54386         * modules/maintainer-makefile (configure.ac): Parameterize the location
54387         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
54388         The logic is from Eric Blake and the location indicated by Jim Meyering.
54389         Note the more natural CONFIG_HEADER name is prohibited by automake
54390         for backwards compatibility reasons.
54391         * top/maint.mk (sc_Wundef_boolean): New rule.
54393 2010-01-25  Jim Meyering  <meyering@redhat.com>
54395         bootstrap: detect MacOS 10.6's shasum, too
54396         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
54397         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
54399 2010-01-23  Jim Meyering  <meyering@redhat.com>
54401         xstrtoll: new module
54402         * modules/xstrtoll: New file.
54403         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
54404         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
54405         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
54406         ./configure fails if you use this module and lack "long long".
54407         * modules/xstrtoll-tests: New module.
54408         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
54409         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
54410         new init.sh-based test framework.
54412 2010-01-24  Bruno Haible  <bruno@clisp.org>
54414         Tests for module 'yn'.
54415         * modules/yn-tests: New file.
54416         * tests/test-yn.c: New file.
54418         Tests for module 'y1'.
54419         * modules/y1-tests: New file.
54420         * tests/test-y1.c: New file.
54422         Tests for module 'y0'.
54423         * modules/y0-tests: New file.
54424         * tests/test-y0.c: New file.
54426         Tests for module 'tanh'.
54427         * modules/tanh-tests: New file.
54428         * tests/test-tanh.c: New file.
54430         Tests for module 'tan'.
54431         * modules/tan-tests: New file.
54432         * tests/test-tan.c: New file.
54434         Tests for module 'sqrt'.
54435         * modules/sqrt-tests: New file.
54436         * tests/test-sqrt.c: New file.
54438         Tests for module 'sinh'.
54439         * modules/sinh-tests: New file.
54440         * tests/test-sinh.c: New file.
54442         Tests for module 'sin'.
54443         * modules/sin-tests: New file.
54444         * tests/test-sin.c: New file.
54446         Tests for module 'rint'.
54447         * modules/rint-tests: New file.
54448         * tests/test-rint.c: New file.
54450         Tests for module 'remainder'.
54451         * modules/remainder-tests: New file.
54452         * tests/test-remainder.c: New file.
54454         Tests for module 'pow'.
54455         * modules/pow-tests: New file.
54456         * tests/test-pow.c: New file.
54458         Tests for module 'nextafter'.
54459         * modules/nextafter-tests: New file.
54460         * tests/test-nextafter.c: New file.
54462         Tests for module 'modf'.
54463         * modules/modf-tests: New file.
54464         * tests/test-modf.c: New file.
54466         Tests for module 'logb'.
54467         * modules/logb-tests: New file.
54468         * tests/test-logb.c: New file.
54470         Tests for module 'log1p'.
54471         * modules/log1p-tests: New file.
54472         * tests/test-log1p.c: New file.
54474         Tests for module 'log10'.
54475         * modules/log10-tests: New file.
54476         * tests/test-log10.c: New file.
54478         Tests for module 'log'.
54479         * modules/log-tests: New file.
54480         * tests/test-log.c: New file.
54482         Tests for module 'lgamma'.
54483         * modules/lgamma-tests: New file.
54484         * tests/test-lgamma.c: New file.
54486         Tests for module 'ldexp'.
54487         * modules/ldexp-tests: New file.
54488         * tests/test-ldexp.c: New file.
54490         Tests for module 'jn'.
54491         * modules/jn-tests: New file.
54492         * tests/test-jn.c: New file.
54494         Tests for module 'j1'.
54495         * modules/j1-tests: New file.
54496         * tests/test-j1.c: New file.
54498         Tests for module 'j0'.
54499         * modules/j0-tests: New file.
54500         * tests/test-j0.c: New file.
54502         Tests for module 'hypot'.
54503         * modules/hypot-tests: New file.
54504         * tests/test-hypot.c: New file.
54506         Tests for module 'fmod'.
54507         * modules/fmod-tests: New file.
54508         * tests/test-fmod.c: New file.
54510         Tests for module 'fabs'.
54511         * modules/fabs-tests: New file.
54512         * tests/test-fabs.c: New file.
54514         Tests for module 'exp'.
54515         * modules/exp-tests: New file.
54516         * tests/test-exp.c: New file.
54518         Tests for module 'erfc'.
54519         * modules/erfc-tests: New file.
54520         * tests/test-erfc.c: New file.
54522         Tests for module 'erf'.
54523         * modules/erf-tests: New file.
54524         * tests/test-erf.c: New file.
54526         Tests for module 'cosh'.
54527         * modules/cosh-tests: New file.
54528         * tests/test-cosh.c: New file.
54530         Tests for module 'cos'.
54531         * modules/cos-tests: New file.
54532         * tests/test-cos.c: New file.
54534         Tests for module 'copysign'.
54535         * modules/copysign-tests: New file.
54536         * tests/test-copysign.c: New file.
54538         Tests for module 'cbrt'.
54539         * modules/cbrt-tests: New file.
54540         * tests/test-cbrt.c: New file.
54542         Tests for module 'atan2'.
54543         * modules/atan2-tests: New file.
54544         * tests/test-atan2.c: New file.
54546         Tests for module 'atan'.
54547         * modules/atan-tests: New file.
54548         * tests/test-atan.c: New file.
54550         Tests for module 'asin'.
54551         * modules/asin-tests: New file.
54552         * tests/test-asin.c: New file.
54554         Tests for module 'acos'.
54555         * modules/acos-tests: New file.
54556         * tests/test-acos.c: New file.
54558 2010-01-24  Bruno Haible  <bruno@clisp.org>
54560         Fix tests for common <math.h> functions.
54561         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
54562         code snippet that references the function pointer, rather than merely
54563         calling the function. Substitute the FUNC_LIBM variable.
54564         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
54565         * modules/acos (configure.ac): Likewise.
54566         * modules/asin (configure.ac): Likewise.
54567         * modules/atan (configure.ac): Likewise.
54568         * modules/atan2 (configure.ac): Likewise.
54569         * modules/cbrt (configure.ac): Likewise.
54570         * modules/copysign (configure.ac): Likewise.
54571         * modules/cos (configure.ac): Likewise.
54572         * modules/cosh (configure.ac): Likewise.
54573         * modules/erf (configure.ac): Likewise.
54574         * modules/erfc (configure.ac): Likewise.
54575         * modules/exp (configure.ac): Likewise.
54576         * modules/fabs (configure.ac): Likewise.
54577         * modules/fmod (configure.ac): Likewise.
54578         * modules/hypot (configure.ac): Likewise.
54579         * modules/j0 (configure.ac): Likewise.
54580         * modules/j1 (configure.ac): Likewise.
54581         * modules/jn (configure.ac): Likewise.
54582         * modules/ldexp (configure.ac): Likewise.
54583         * modules/lgamma (configure.ac): Likewise.
54584         * modules/log (configure.ac): Likewise.
54585         * modules/log10 (configure.ac): Likewise.
54586         * modules/log1p (configure.ac): Likewise.
54587         * modules/logb (configure.ac): Likewise.
54588         * modules/modf (configure.ac): Likewise.
54589         * modules/nextafter (configure.ac): Likewise.
54590         * modules/pow (configure.ac): Likewise.
54591         * modules/remainder (configure.ac): Likewise.
54592         * modules/rint (configure.ac): Likewise.
54593         * modules/sin (configure.ac): Likewise.
54594         * modules/sinh (configure.ac): Likewise.
54595         * modules/tan (configure.ac): Likewise.
54596         * modules/tanh (configure.ac): Likewise.
54597         * modules/y0 (configure.ac): Likewise.
54598         * modules/y1 (configure.ac): Likewise.
54599         * modules/yn (configure.ac): Likewise.
54601 2010-01-24  Bruno Haible  <bruno@clisp.org>
54603         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
54604         * tests/test-acosl.c (x): New variable.
54605         (main): Store argument in x and fetch it from x.
54606         * tests/test-asinl.c (x): New variable.
54607         (main): Store argument in x and fetch it from x.
54608         * tests/test-atanl.c (x): New variable.
54609         (main): Store argument in x and fetch it from x.
54610         * tests/test-cosl.c (x): New variable.
54611         (main): Store argument in x and fetch it from x.
54612         * tests/test-expl.c (x): New variable.
54613         (main): Store argument in x and fetch it from x.
54614         * tests/test-logl.c (x): New variable.
54615         (main): Store argument in x and fetch it from x.
54616         * tests/test-sinl.c (x): New variable.
54617         (main): Store argument in x and fetch it from x.
54618         * tests/test-sqrtl.c (x): New variable.
54619         (main): Store argument in x and fetch it from x.
54620         * tests/test-tanl.c (x): New variable.
54621         (main): Store argument in x and fetch it from x.
54623 2010-01-24  Bruno Haible  <bruno@clisp.org>
54625         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
54626         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
54627         assignments to the initial TESTS_ENVIRONMENT.
54628         * doc/gnulib.texi (Unit test modules): Document it.
54629         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
54630         TESTS_ENVIRONMENT.
54631         * modules/btowc-tests (Makefile.am): Likewise.
54632         * modules/c-stack-tests (Makefile.am): Likewise.
54633         * modules/c-strcase-tests (Makefile.am): Likewise.
54634         * modules/copy-file-tests (Makefile.am): Likewise.
54635         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
54636         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
54637         * modules/mbrtowc-tests (Makefile.am): Likewise.
54638         * modules/mbscasecmp-tests (Makefile.am): Likewise.
54639         * modules/mbscasestr-tests (Makefile.am): Likewise.
54640         * modules/mbschr-tests (Makefile.am): Likewise.
54641         * modules/mbscspn-tests (Makefile.am): Likewise.
54642         * modules/mbsinit-tests (Makefile.am): Likewise.
54643         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
54644         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
54645         * modules/mbspbrk-tests (Makefile.am): Likewise.
54646         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
54647         * modules/mbsrchr-tests (Makefile.am): Likewise.
54648         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
54649         * modules/mbsspn-tests (Makefile.am): Likewise.
54650         * modules/mbsstr-tests (Makefile.am): Likewise.
54651         * modules/nl_langinfo-tests (Makefile.am): Likewise.
54652         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
54653         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
54654         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
54655         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
54656         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
54657         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
54658         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
54659         * modules/wcrtomb-tests (Makefile.am): Likewise.
54660         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
54661         * modules/wcsrtombs-tests (Makefile.am): Likewise.
54662         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
54663         assignments from TESTS_ENVIRONMENT.
54664         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
54665         augmentation.
54666         * modules/argp-version-etc-tests (Makefile.am): Likewise.
54667         * modules/atexit-tests (Makefile.am): Likewise.
54668         * modules/binary-io-tests (Makefile.am): Likewise.
54669         * modules/closein-tests (Makefile.am): Likewise.
54670         * modules/dprintf-posix-tests (Makefile.am): Likewise.
54671         * modules/exclude-tests (Makefile.am): Likewise.
54672         * modules/fflush-tests (Makefile.am): Likewise.
54673         * modules/fpending-tests (Makefile.am): Likewise.
54674         * modules/fprintf-posix-tests (Makefile.am): Likewise.
54675         * modules/freadahead-tests (Makefile.am): Likewise.
54676         * modules/freadptr-tests (Makefile.am): Likewise.
54677         * modules/freadseek-tests (Makefile.am): Likewise.
54678         * modules/fseek-tests (Makefile.am): Likewise.
54679         * modules/fseeko-tests (Makefile.am): Likewise.
54680         * modules/ftell-tests (Makefile.am): Likewise.
54681         * modules/ftello-tests (Makefile.am): Likewise.
54682         * modules/idpriv-drop-tests (Makefile.am): Likewise.
54683         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
54684         * modules/lseek-tests (Makefile.am): Likewise.
54685         * modules/parse-duration-tests (Makefile.am): Likewise.
54686         * modules/perror-tests (Makefile.am): Likewise.
54687         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
54688         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
54689         * modules/pipe-tests (Makefile.am): Likewise.
54690         * modules/pread-tests (Makefile.am): Likewise.
54691         * modules/printf-posix-tests (Makefile.am): Likewise.
54692         * modules/select-tests (Makefile.am): Likewise.
54693         * modules/sigpipe-tests (Makefile.am): Likewise.
54694         * modules/tsearch-tests (Makefile.am): Likewise.
54695         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
54696         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
54697         * modules/uniname/uniname-tests (Makefile.am): Likewise.
54698         * modules/uniwidth/width-tests (Makefile.am): Likewise.
54699         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
54700         * modules/version-etc-tests (Makefile.am): Likewise.
54701         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
54702         * modules/vprintf-posix-tests (Makefile.am): Likewise.
54703         * modules/xalloc-die-tests (Makefile.am): Likewise.
54704         * modules/xprintf-posix-tests (Makefile.am): Likewise.
54705         * modules/xstrtoimax-tests (Makefile.am): Likewise.
54706         * modules/xstrtol-tests (Makefile.am): Likewise.
54707         * modules/xstrtoumax-tests (Makefile.am): Likewise.
54708         * modules/yesno-tests (Makefile.am): Likewise.
54709         Suggested by Jim Meyering.
54711 2010-01-24  Bruno Haible  <bruno@clisp.org>
54713         More documentation.
54714         * doc/gnulib.texi (Writing modules): New chapter.
54715         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
54716         the new chapter.
54718 2010-01-24  Jim Meyering  <meyering@redhat.com>
54720         maint.mk: do not prepend "./" after filtering
54721         * top/maint.mk (_prepend_srcdir_prefix): New variable
54722         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
54723         "./" when $(srcdir) is ".".
54725         define STREQ(a,b) consistently, removing useless parentheses
54726         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
54727         since the only risk is that "a" or "b" contains an unparenthesized
54728         comma, but if either did that, STREQ would have 3 or more arguments.
54729         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
54730         * lib/fts.c (STREQ): Remove unnecessary parentheses.
54731         * lib/hash-triple.c (STREQ): Likewise.
54732         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
54733         * lib/getugroups.c (STREQ): Likewise.
54735 2010-01-23  Jim Meyering  <meyering@redhat.com>
54737         maint.mk: fix syntax-check in a non-srcdir build directory
54738         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
54739         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
54741 2010-01-22  Jim Meyering  <meyering@redhat.com>
54743         userspec: add unit tests
54744         * tests/test-userspec.c: New file.
54745         * modules/userspec-tests: Likewise.
54747 2010-01-21  Jim Meyering  <meyering@redhat.com>
54749         maint.mk: handle source file names containing "." robustly
54750         * top/maint.mk (_dot_escaped_srcdir): Define.
54751         (VC_LIST): Use it in LHS of sed substitution.
54753 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
54755         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
54756         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
54757         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
54758         from a non-srcdir build.
54760 2010-01-20  Eric Blake  <ebb9@byu.net>
54762         warn-on-use: use instead of link-warning
54763         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
54764         * modules/unistd (Depends-on, Makefile.am): Likewise.
54765         * modules/arpa_inet (Depends-on): Replace link-warning with
54766         warn-on-use.
54767         (Makefile.am): Update rules accordingly.
54768         * modules/ctype (Depends-on, Makefile.am): Likewise.
54769         * modules/dirent (Depends-on, Makefile.am): Likewise.
54770         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
54771         * modules/inttypes (Depends-on, Makefile.am): Likewise.
54772         * modules/langinfo (Depends-on, Makefile.am): Likewise.
54773         * modules/locale (Depends-on, Makefile.am): Likewise.
54774         * modules/math (Depends-on, Makefile.am): Likewise.
54775         * modules/search (Depends-on, Makefile.am): Likewise.
54776         * modules/signal (Depends-on, Makefile.am): Likewise.
54777         * modules/spawn (Depends-on, Makefile.am): Likewise.
54778         * modules/stdlib (Depends-on, Makefile.am): Likewise.
54779         * modules/string (Depends-on, Makefile.am): Likewise.
54780         * modules/strings (Depends-on, Makefile.am): Likewise.
54781         * modules/sys_file (Depends-on, Makefile.am): Likewise.
54782         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
54783         * modules/sys_select (Depends-on, Makefile.am): Likewise.
54784         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
54785         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
54786         * modules/sys_times (Depends-on, Makefile.am): Likewise.
54787         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
54788         * modules/wchar (Depends-on, Makefile.am): Likewise.
54789         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
54790         should be poisoned.
54791         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
54792         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
54793         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
54794         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
54795         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
54796         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
54797         * m4/math_h.m4 (gl_MATH_H): Likewise.
54798         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
54799         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
54800         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
54801         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
54802         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
54803         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
54804         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
54805         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
54806         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
54807         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54808         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
54809         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
54810         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
54811         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
54812         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
54813         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
54814         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
54815         GL_LINK_WARNING.
54816         * lib/ctype.in.h: Likewise.
54817         * lib/dirent.in.h: Likewise.
54818         * lib/fcntl.in.h: Likewise.
54819         * lib/inttypes.in.h: Likewise.
54820         * lib/langinfo.in.h: Likewise.
54821         * lib/locale.in.h: Likewise.
54822         * lib/math.in.h: Likewise.
54823         * lib/search.in.h: Likewise.
54824         * lib/signal.in.h: Likewise.
54825         * lib/spawn.in.h: Likewise.
54826         * lib/stdio.in.h: Likewise.
54827         * lib/stdlib.in.h: Likewise.
54828         * lib/string.in.h: Likewise.
54829         * lib/strings.in.h: Likewise.
54830         * lib/sys_file.in.h: Likewise.
54831         * lib/sys_ioctl.in.h: Likewise.
54832         * lib/sys_select.in.h: Likewise.
54833         * lib/sys_socket.in.h: Likewise.
54834         * lib/sys_stat.in.h: Likewise.
54835         * lib/sys_times.in.h: Likewise.
54836         * lib/sys_utsname.in.h: Likewise.
54837         * lib/unistd.in.h: Likewise.
54838         * lib/wchar.in.h: Likewise.
54840 2010-01-20  Bruno Haible  <bruno@clisp.org>
54842         Avoid duplicate -lm.
54843         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
54844         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
54845         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
54846         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
54847         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
54848         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
54849         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
54850         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
54851         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
54852         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
54853         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
54854         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
54855         Reported by Paolo Bonzini.
54857 2010-01-19  Bruno Haible  <bruno@clisp.org>
54859         langinfo, nl_langinfo: Relicense under LGPLv2+.
54860         * modules/langinfo (License): Change to LGPLv2+.
54861         * modules/nl_langinfo (License): Likewise.
54862         Patch by David Lutterkort <lutter@redhat.com>.
54864 2010-01-19  Bruno Haible  <bruno@clisp.org>
54866         Avoid compilation error with cc on OSF/1 5.1.
54867         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
54868         statement, not before.
54869         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54871 2010-01-18  Bruno Haible  <bruno@clisp.org>
54873         Avoid a link error due to the __printf__ symbol.
54874         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
54875         and 2.6.x.
54876         (__format__, __printf__): Remove definitions.
54877         * lib/argp-fmtstream.h: Likewise.
54878         * lib/argp.h: Likewise.
54879         * lib/error.h: Likewise.
54880         * lib/vasnprintf.h: Likewise.
54881         * lib/xprintf.h: Likewise.
54882         * lib/xvasprintf.h: Likewise.
54883         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54885 2010-01-18  Bruno Haible  <bruno@clisp.org>
54887         Tests for module 'tanl'.
54888         * modules/tanl-tests: New file.
54889         * tests/test-tanl.c: New file.
54891         Tests for module 'sqrtl'.
54892         * modules/sqrtl-tests: New file.
54893         * tests/test-sqrtl.c: New file.
54895         Tests for module 'sinl'.
54896         * modules/sinl-tests: New file.
54897         * tests/test-sinl.c: New file.
54899         Tests for module 'logl'.
54900         * modules/logl-tests: New file.
54901         * tests/test-logl.c: New file.
54903         Tests for module 'expl'.
54904         * modules/expl-tests: New file.
54905         * tests/test-expl.c: New file.
54907         Tests for module 'cosl'.
54908         * modules/cosl-tests: New file.
54909         * tests/test-cosl.c: New file.
54911         Tests for module 'atanl'.
54912         * modules/atanl-tests: New file.
54913         * tests/test-atanl.c: New file.
54915         Tests for module 'asinl'.
54916         * modules/asinl-tests: New file.
54917         * tests/test-asinl.c: New file.
54919         Tests for module 'acosl'.
54920         * modules/acosl-tests: New file.
54921         * tests/test-acosl.c: New file.
54923         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
54924         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
54925         tanl): Use the standard gnulib idiom.
54926         * lib/cosl.c: Don't include trigl.c and sincosl.c.
54927         * lib/sinl.c: Likewise.
54928         * lib/tanl.c: Don't include trigl.c.
54929         (kernel_tanl): Make static.
54930         * lib/sincosl.c: Include trigl.h first.
54931         * lib/trigl.c: Likewise.
54932         * m4/acosl.m4: New file.
54933         * m4/asinl.m4: New file.
54934         * m4/atanl.m4: New file.
54935         * m4/cosl.m4: New file.
54936         * m4/expl.m4: New file.
54937         * m4/logl.m4: New file.
54938         * m4/sinl.m4: New file.
54939         * m4/sqrtl.m4: New file.
54940         * m4/tanl.m4: New file.
54941         * m4/mathl.m4: Remove file.
54942         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
54943         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
54944         Don't initialize GNULIB_MATHL.
54945         * modules/acosl: New file.
54946         * modules/asinl: New file.
54947         * modules/atanl: New file.
54948         * modules/cosl: New file.
54949         * modules/expl: New file.
54950         * modules/logl: New file.
54951         * modules/sinl: New file.
54952         * modules/sqrtl: New file.
54953         * modules/tanl: New file.
54954         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
54955         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
54956         substitute GNULIB_MATHL.
54957         * modules/mathl: Rewritten.
54958         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
54959         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
54960         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
54961         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
54962         * doc/posix-functions/expl.texi: Mention the 'expl' module.
54963         * doc/posix-functions/logl.texi: Mention the 'logl' module.
54964         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
54965         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
54966         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
54968 2010-01-18  Bruno Haible  <bruno@clisp.org>
54970         sqrt: Make gl_FUNC_SQRT requirable.
54971         * m4/sqrt.m4: New file.
54972         * modules/sqrt (Files): Add it.
54973         (configure.ac): Invoke gl_FUNC_SQRT.
54975 2010-01-18  Bruno Haible  <bruno@clisp.org>
54977         New modules for common <math.h> functions.
54978         * m4/mathfunc.m4: New file.
54979         * modules/acos: New file.
54980         * modules/asin: New file.
54981         * modules/atan: New file.
54982         * modules/atan2: New file.
54983         * modules/cbrt: New file.
54984         * modules/copysign: New file.
54985         * modules/cos: New file.
54986         * modules/cosh: New file.
54987         * modules/erf: New file.
54988         * modules/erfc: New file.
54989         * modules/exp: New file.
54990         * modules/fabs: New file.
54991         * modules/fmod: New file.
54992         * modules/hypot: New file.
54993         * modules/j0: New file.
54994         * modules/j1: New file.
54995         * modules/jn: New file.
54996         * modules/ldexp: New file.
54997         * modules/lgamma: New file.
54998         * modules/log: New file.
54999         * modules/log10: New file.
55000         * modules/log1p: New file.
55001         * modules/logb: New file.
55002         * modules/modf: New file.
55003         * modules/nextafter: New file.
55004         * modules/pow: New file.
55005         * modules/remainder: New file.
55006         * modules/rint: New file.
55007         * modules/sin: New file.
55008         * modules/sinh: New file.
55009         * modules/sqrt: New file.
55010         * modules/tan: New file.
55011         * modules/tanh: New file.
55012         * modules/y0: New file.
55013         * modules/y1: New file.
55014         * modules/yn: New file.
55015         * doc/posix-functions/acos.texi: Mention the 'acos' module.
55016         * doc/posix-functions/asin.texi: Mention the 'asin' module.
55017         * doc/posix-functions/atan.texi: Mention the 'atan' module.
55018         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
55019         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
55020         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
55021         * doc/posix-functions/cos.texi: Mention the 'cos' module.
55022         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
55023         * doc/posix-functions/erf.texi: Mention the 'erf' module.
55024         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
55025         * doc/posix-functions/exp.texi: Mention the 'exp' module.
55026         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
55027         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
55028         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
55029         * doc/posix-functions/j0.texi: Mention the 'j0' module.
55030         * doc/posix-functions/j1.texi: Mention the 'j1' module.
55031         * doc/posix-functions/jn.texi: Mention the 'jn' module.
55032         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
55033         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
55034         * doc/posix-functions/log.texi: Mention the 'log' module.
55035         * doc/posix-functions/log10.texi: Mention the 'log10' module.
55036         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
55037         * doc/posix-functions/logb.texi: Mention the 'logb' module.
55038         * doc/posix-functions/modf.texi: Mention the 'modf' module.
55039         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
55040         * doc/posix-functions/pow.texi: Mention the 'pow' module.
55041         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
55042         * doc/posix-functions/rint.texi: Mention the 'rint' module.
55043         * doc/posix-functions/sin.texi: Mention the 'sin' module.
55044         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
55045         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
55046         * doc/posix-functions/tan.texi: Mention the 'tan' module.
55047         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
55048         * doc/posix-functions/y0.texi: Mention the 'y0' module.
55049         * doc/posix-functions/y1.texi: Mention the 'y1' module.
55050         * doc/posix-functions/yn.texi: Mention the 'yn' module.
55052 2010-01-18  Jim Meyering  <meyering@redhat.com>
55054         ignore-value: relax license to LGPLv2+
55055         * modules/ignore-value (License): Relax to LGPLv2+.
55057         getdate: don't leak when TZ contains two or more '"'s
55058         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
55059         double quote in TZ after the first one.
55061         readtokens: do not leak internal token_lengths buffer
55062         * lib/readtokens.c (readtokens): Free the local, lengths,
55063         when the supplied "token_lengths" parameter is NULL.
55065 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55067         Fix a couple of missing LIBTHREAD link failures on AIX.
55068         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
55069         $(LIBTHREAD).
55070         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
55072         Link test-poll against INET_PTON_LIB.
55073         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
55074         for inet_pton on Solaris 10.
55076 2010-01-17  Bruno Haible  <bruno@clisp.org>
55078         unistdio/*-sprintf: Fix typo in module description.
55079         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
55080         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
55081         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
55082         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
55083         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
55084         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
55085         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
55086         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55088 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55090         gnulib-tool: fix filelist for AIX, HP-UX ksh.
55091         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
55092         variables in shell case patterns, for AIX and HP-UX ksh.
55094         Split large sed scripts, for HP-UX sed.
55095         * modules/stdio: Split sed scripts around 50 sed commands,
55096         to avoid HP-UX limit of 99 commands, in the near future.
55097         * modules/string: Likewise.
55098         * modules/unistd: Likewise.
55100         gnulib-tool: avoid writing in the current directory.
55101         * gnulib-tool (func_emit_lib_Makefile_am)
55102         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
55103         not in the current directory, so concurrent gnulib-tool
55104         instances do not interfere.
55106 2010-01-16  Jim Meyering  <meyering@redhat.com>
55108         doc: update users.txt
55109         * users.txt: Add grep.
55110         (diffutils, gzip): Update URLs.
55112 2010-01-12  Bruno Haible  <bruno@clisp.org>
55114         posix_spawn: Avoid test failure on Cygwin.
55115         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
55116         characters.
55117         Reported by Simon Josefsson.
55119 2010-01-12  Bruno Haible  <bruno@clisp.org>
55121         * tests/test-cond.c (main): When skipping the test, show the reason.
55123 2010-01-12  Simon Josefsson  <simon@josefsson.org>
55125         * lib/striconv.c (str_cd_iconv): Avoid if before free.
55127 2010-01-12  Simon Josefsson  <simon@josefsson.org>
55129         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
55130         VC_LIST_ALWAYS_EXCLUDE_REGEX.
55132 2010-01-12  Eric Blake  <ebb9@byu.net>
55134         build: guarantee AS_VAR_IF
55135         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
55136         (gl_AS_VAR_IF): Move...
55137         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
55138         Reported by Simon Josefsson.
55140 2010-01-12  Simon Josefsson  <simon@josefsson.org>
55142         * lib/stdio.in.h: Fix typo.
55144 2010-01-12  Simon Josefsson  <simon@josefsson.org>
55146         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
55147         libgpg-error.
55149 2010-01-12  Simon Josefsson  <simon@josefsson.org>
55151         * tests/test-xalloc-die.sh: Use $EXEEXT.
55153 2010-01-12  Simon Josefsson  <simon@josefsson.org>
55154             Bruno Haible  <bruno@clisp.org>
55156         getlogin, getlogin_r: Avoid test failure.
55157         * tests/test-getlogin.c: Include <stdio.h>.
55158         (main): Skip the test when the function fails because stdin is not a
55159         tty.
55160         * tests/test-getlogin_r.c: Include <stdio.h>.
55161         (main): Skip the test when the function fails because stdin is not a
55162         tty.
55164 2010-01-11  Eric Blake  <ebb9@byu.net>
55166         tests: avoid more large file warnings
55167         * tests/test-fflush.c: Avoid warning about ftell use.
55168         * tests/test-fseek.c: Avoid warning about fseek use.
55170 2010-01-10  Bruno Haible  <bruno@clisp.org>
55172         nproc: Work better on Linux when /proc and /sys are not mounted.
55173         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
55174         as lower bound when, on glibc/Linux systems,
55175         sysconf (_SC_NPROCESSORS_CONF) returns 1.
55176         Suggested by Pádraig Brady <P@draigbrady.com>.
55177         Reported by Dmitry V. Levin <ldv@altlinux.org>.
55179         nproc: Refactor.
55180         * lib/nproc.c (num_processors_via_affinity_mask): New function,
55181         extracted from num_processors.
55182         (num_processors): Call it.
55184 2010-01-11  Jim Meyering  <meyering@redhat.com>
55186         utimecmp: avoid new warning from upcoming gcc-4.5.0
55187         * lib/utimecmp.c (BILLION): Define using #define rather than an
55188         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
55190 2010-01-11  Eric Blake  <ebb9@byu.net>
55192         math: add portability warnings for classification macros
55193         * modules/math (Depends-on): Add warn-on-use.
55194         (Makefile.am): Provide new substitutions.
55195         * m4/math_h.m4 (gl_MATH_H): Require inline.
55196         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
55197         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
55198         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
55199         implement warnings.
55201         unistd: warn on use of environ without module
55202         * modules/unistd (Depends-on): Add warn-on-use.
55203         (Makefile.am): Provide new substitutions.
55204         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
55205         * lib/unistd.in.h (environ): Wrap with a warning helper function.
55207         stdio: warn on suspicious uses
55208         * modules/stdio (Depends-on): Add warn-on-use.
55209         (Makefile.am): Provide new substitutions.
55210         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
55211         fseeko.
55212         * lib/stdio.in.h (gets): Always warn on use.
55213         (fseek, ftell): Adjust when warnings are issued, and honor
55214         _GL_NO_LARGE_FILES as a way to silence the warning.
55215         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
55216         any warning about large file offsets.
55217         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
55218         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
55219         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
55220         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
55221         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
55222         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
55223         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
55224         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
55226         warn-on-use: new module
55227         * modules/warn-on-use: New file.
55228         * build-aux/warn-on-use.h: Likewise.
55229         * m4/warn-on-use.m4: Likewise.
55230         * MODULES.html.sh (Support for building): Mention it.
55232 2010-01-10  Bruno Haible  <bruno@clisp.org>
55234         Tests for module 'unistr/u32-strdup'.
55235         * modules/unistr/u32-strdup-tests: New file.
55236         * tests/unistr/test-u32-strdup.c: New file.
55238         Tests for module 'unistr/u16-strdup'.
55239         * modules/unistr/u16-strdup-tests: New file.
55240         * tests/unistr/test-u16-strdup.c: New file.
55242         Tests for module 'unistr/u8-strdup'.
55243         * modules/unistr/u8-strdup-tests: New file.
55244         * tests/unistr/test-u8-strdup.c: New file.
55245         * tests/unistr/test-strdup.h: New file.
55247         Tests for module 'unistr/u32-strncmp'.
55248         * modules/unistr/u32-strncmp-tests: New file.
55249         * tests/unistr/test-u32-strncmp.c: New file.
55251         Tests for module 'unistr/u16-strncmp'.
55252         * modules/unistr/u16-strncmp-tests: New file.
55253         * tests/unistr/test-u16-strncmp.c: New file.
55255         Tests for module 'unistr/u8-strncmp'.
55256         * modules/unistr/u8-strncmp-tests: New file.
55257         * tests/unistr/test-u8-strncmp.c: New file.
55258         * tests/unistr/test-strncmp.h: New file.
55260         Tests for module 'unistr/u32-strcoll'.
55261         * modules/unistr/u32-strcoll-tests: New file.
55262         * tests/unistr/test-u32-strcoll.c: New file.
55264         Tests for module 'unistr/u16-strcoll'.
55265         * modules/unistr/u16-strcoll-tests: New file.
55266         * tests/unistr/test-u16-strcoll.c: New file.
55268         Tests for module 'unistr/u8-strcoll'.
55269         * modules/unistr/u8-strcoll-tests: New file.
55270         * tests/unistr/test-u8-strcoll.c: New file.
55272         Tests for module 'unistr/u32-strcmp'.
55273         * modules/unistr/u32-strcmp-tests: New file.
55274         * tests/unistr/test-u32-strcmp.c: New file.
55275         * tests/unistr/test-u32-strcmp.h: New file.
55277         Tests for module 'unistr/u16-strcmp'.
55278         * modules/unistr/u16-strcmp-tests: New file.
55279         * tests/unistr/test-u16-strcmp.c: New file.
55280         * tests/unistr/test-u16-strcmp.h: New file.
55282         Tests for module 'unistr/u8-strcmp'.
55283         * modules/unistr/u8-strcmp-tests: New file.
55284         * tests/unistr/test-u8-strcmp.c: New file.
55285         * tests/unistr/test-u8-strcmp.h: New file.
55286         * tests/unistr/test-strcmp.h: New file.
55288         Tests for module 'unistr/u32-strncat'.
55289         * modules/unistr/u32-strncat-tests: New file.
55290         * tests/unistr/test-u32-strncat.c: New file.
55292         Tests for module 'unistr/u16-strncat'.
55293         * modules/unistr/u16-strncat-tests: New file.
55294         * tests/unistr/test-u16-strncat.c: New file.
55296         Tests for module 'unistr/u8-strncat'.
55297         * modules/unistr/u8-strncat-tests: New file.
55298         * tests/unistr/test-u8-strncat.c: New file.
55299         * tests/unistr/test-strncat.h: New file.
55301         Tests for module 'unistr/u32-strcat'.
55302         * modules/unistr/u32-strcat-tests: New file.
55303         * tests/unistr/test-u32-strcat.c: New file.
55305         Tests for module 'unistr/u16-strcat'.
55306         * modules/unistr/u16-strcat-tests: New file.
55307         * tests/unistr/test-u16-strcat.c: New file.
55309         Tests for module 'unistr/u8-strcat'.
55310         * modules/unistr/u8-strcat-tests: New file.
55311         * tests/unistr/test-u8-strcat.c: New file.
55312         * tests/unistr/test-strcat.h: New file.
55314         Tests for module 'unistr/u32-stpncpy'.
55315         * modules/unistr/u32-stpncpy-tests: New file.
55316         * tests/unistr/test-u32-stpncpy.c: New file.
55318         Tests for module 'unistr/u16-stpncpy'.
55319         * modules/unistr/u16-stpncpy-tests: New file.
55320         * tests/unistr/test-u16-stpncpy.c: New file.
55322         Tests for module 'unistr/u8-stpncpy'.
55323         * modules/unistr/u8-stpncpy-tests: New file.
55324         * tests/unistr/test-u8-stpncpy.c: New file.
55325         * tests/unistr/test-stpncpy.h: New file.
55327         Tests for module 'unistr/u32-strncpy'.
55328         * modules/unistr/u32-strncpy-tests: New file.
55329         * tests/unistr/test-u32-strncpy.c: New file.
55331         Tests for module 'unistr/u16-strncpy'.
55332         * modules/unistr/u16-strncpy-tests: New file.
55333         * tests/unistr/test-u16-strncpy.c: New file.
55335         Tests for module 'unistr/u8-strncpy'.
55336         * modules/unistr/u8-strncpy-tests: New file.
55337         * tests/unistr/test-u8-strncpy.c: New file.
55338         * tests/unistr/test-strncpy.h: New file.
55340         Tests for module 'unistr/u32-stpcpy'.
55341         * modules/unistr/u32-stpcpy-tests: New file.
55342         * tests/unistr/test-u32-stpcpy.c: New file.
55344         Tests for module 'unistr/u16-stpcpy'.
55345         * modules/unistr/u16-stpcpy-tests: New file.
55346         * tests/unistr/test-u16-stpcpy.c: New file.
55348         Tests for module 'unistr/u8-stpcpy'.
55349         * modules/unistr/u8-stpcpy-tests: New file.
55350         * tests/unistr/test-u8-stpcpy.c: New file.
55351         * tests/unistr/test-stpcpy.h: New file.
55353         Tests for module 'unistr/u32-strcpy'.
55354         * modules/unistr/u32-strcpy-tests: New file.
55355         * tests/unistr/test-u32-strcpy.c: New file.
55357         Tests for module 'unistr/u16-strcpy'.
55358         * modules/unistr/u16-strcpy-tests: New file.
55359         * tests/unistr/test-u16-strcpy.c: New file.
55361         Tests for module 'unistr/u8-strcpy'.
55362         * modules/unistr/u8-strcpy-tests: New file.
55363         * tests/unistr/test-u8-strcpy.c: New file.
55364         * tests/unistr/test-strcpy.h: New file.
55366         Tests for module 'unistr/u32-strnlen'.
55367         * modules/unistr/u32-strnlen-tests: New file.
55368         * tests/unistr/test-u32-strnlen.c: New file.
55370         Tests for module 'unistr/u16-strnlen'.
55371         * modules/unistr/u16-strnlen-tests: New file.
55372         * tests/unistr/test-u16-strnlen.c: New file.
55374         Tests for module 'unistr/u8-strnlen'.
55375         * modules/unistr/u8-strnlen-tests: New file.
55376         * tests/unistr/test-u8-strnlen.c: New file.
55377         * tests/unistr/test-strnlen.h: New file.
55379         Tests for module 'unistr/u32-strlen'.
55380         * modules/unistr/u32-strlen-tests: New file.
55381         * tests/unistr/test-u32-strlen.c: New file.
55383         Tests for module 'unistr/u16-strlen'.
55384         * modules/unistr/u16-strlen-tests: New file.
55385         * tests/unistr/test-u16-strlen.c: New file.
55387         Tests for module 'unistr/u8-strlen'.
55388         * modules/unistr/u8-strlen-tests: New file.
55389         * tests/unistr/test-u8-strlen.c: New file.
55391         Tests for module 'unistr/u32-prev'.
55392         * modules/unistr/u32-prev-tests: New file.
55393         * tests/unistr/test-u32-prev.c: New file.
55395         Tests for module 'unistr/u16-prev'.
55396         * modules/unistr/u16-prev-tests: New file.
55397         * tests/unistr/test-u16-prev.c: New file.
55399         Tests for module 'unistr/u8-prev'.
55400         * modules/unistr/u8-prev-tests: New file.
55401         * tests/unistr/test-u8-prev.c: New file.
55403         Tests for module 'unistr/u32-next'.
55404         * modules/unistr/u32-next-tests: New file.
55405         * tests/unistr/test-u32-next.c: New file.
55407         Tests for module 'unistr/u16-next'.
55408         * modules/unistr/u16-next-tests: New file.
55409         * tests/unistr/test-u16-next.c: New file.
55411         Tests for module 'unistr/u8-next'.
55412         * modules/unistr/u8-next-tests: New file.
55413         * tests/unistr/test-u8-next.c: New file.
55415         Tests for module 'unistr/u32-strmbtouc'.
55416         * modules/unistr/u32-strmbtouc-tests: New file.
55417         * tests/unistr/test-u32-strmbtouc.c: New file.
55419         Tests for module 'unistr/u16-strmbtouc'.
55420         * modules/unistr/u16-strmbtouc-tests: New file.
55421         * tests/unistr/test-u16-strmbtouc.c: New file.
55423         Tests for module 'unistr/u8-strmbtouc'.
55424         * modules/unistr/u8-strmbtouc-tests: New file.
55425         * tests/unistr/test-u8-strmbtouc.c: New file.
55427         Tests for module 'unistr/u32-strmblen'.
55428         * modules/unistr/u32-strmblen-tests: New file.
55429         * tests/unistr/test-u32-strmblen.c: New file.
55431         Tests for module 'unistr/u16-strmblen'.
55432         * modules/unistr/u16-strmblen-tests: New file.
55433         * tests/unistr/test-u16-strmblen.c: New file.
55435         Tests for module 'unistr/u8-strmblen'.
55436         * modules/unistr/u8-strmblen-tests: New file.
55437         * tests/unistr/test-u8-strmblen.c: New file.
55439         Tests for module 'unistr/u32-cpy-alloc'.
55440         * modules/unistr/u32-cpy-alloc-tests: New file.
55441         * tests/unistr/test-u32-cpy-alloc.c: New file.
55443         Tests for module 'unistr/u16-cpy-alloc'.
55444         * modules/unistr/u16-cpy-alloc-tests: New file.
55445         * tests/unistr/test-u16-cpy-alloc.c: New file.
55447         Tests for module 'unistr/u8-cpy-alloc'.
55448         * modules/unistr/u8-cpy-alloc-tests: New file.
55449         * tests/unistr/test-u8-cpy-alloc.c: New file.
55450         * tests/unistr/test-cpy-alloc.h: New file.
55452         Tests for module 'unistr/u32-mbsnlen'.
55453         * modules/unistr/u32-mbsnlen-tests: New file.
55454         * tests/unistr/test-u32-mbsnlen.c: New file.
55456         Tests for module 'unistr/u16-mbsnlen'.
55457         * modules/unistr/u16-mbsnlen-tests: New file.
55458         * tests/unistr/test-u16-mbsnlen.c: New file.
55460         Tests for module 'unistr/u8-mbsnlen'.
55461         * modules/unistr/u8-mbsnlen-tests: New file.
55462         * tests/unistr/test-u8-mbsnlen.c: New file.
55464         Tests for module 'unistr/u32-chr'.
55465         * modules/unistr/u32-chr-tests: New file.
55466         * tests/unistr/test-u32-chr.c: New file.
55468         Tests for module 'unistr/u16-chr'.
55469         * modules/unistr/u16-chr-tests: New file.
55470         * tests/unistr/test-u16-chr.c: New file.
55472         Tests for module 'unistr/u8-chr'.
55473         * modules/unistr/u8-chr-tests: New file.
55474         * tests/unistr/test-u8-chr.c: New file.
55475         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
55477         Tests for module 'unistr/u32-cmp2'.
55478         * modules/unistr/u32-cmp2-tests: New file.
55479         * tests/unistr/test-u32-cmp2.c: New file.
55481         Tests for module 'unistr/u16-cmp2'.
55482         * modules/unistr/u16-cmp2-tests: New file.
55483         * tests/unistr/test-u16-cmp2.c: New file.
55485         Tests for module 'unistr/u8-cmp2'.
55486         * modules/unistr/u8-cmp2-tests: New file.
55487         * tests/unistr/test-u8-cmp2.c: New file.
55488         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
55490         Tests for module 'unistr/u32-cmp'.
55491         * modules/unistr/u32-cmp-tests: New file.
55492         * tests/unistr/test-u32-cmp.c: New file.
55494         Tests for module 'unistr/u16-cmp'.
55495         * modules/unistr/u16-cmp-tests: New file.
55496         * tests/unistr/test-u16-cmp.c: New file.
55498         Tests for module 'unistr/u8-cmp'.
55499         * modules/unistr/u8-cmp-tests: New file.
55500         * tests/unistr/test-u8-cmp.c: New file.
55501         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
55503         Tests for module 'unistr/u32-set'.
55504         * modules/unistr/u32-set-tests: New file.
55505         * tests/unistr/test-u32-set.c: New file.
55507         Tests for module 'unistr/u16-set'.
55508         * modules/unistr/u16-set-tests: New file.
55509         * tests/unistr/test-u16-set.c: New file.
55511         Tests for module 'unistr/u8-set'.
55512         * modules/unistr/u8-set-tests: New file.
55513         * tests/unistr/test-u8-set.c: New file.
55514         * tests/unistr/test-set.h: New file.
55516         Tests for module 'unistr/u32-move'.
55517         * modules/unistr/u32-move-tests: New file.
55518         * tests/unistr/test-u32-move.c: New file.
55520         Tests for module 'unistr/u16-move'.
55521         * modules/unistr/u16-move-tests: New file.
55522         * tests/unistr/test-u16-move.c: New file.
55524         Tests for module 'unistr/u8-move'.
55525         * modules/unistr/u8-move-tests: New file.
55526         * tests/unistr/test-u8-move.c: New file.
55527         * tests/unistr/test-move.h: New file.
55529         Tests for module 'unistr/u32-cpy'.
55530         * modules/unistr/u32-cpy-tests: New file.
55531         * tests/unistr/test-u32-cpy.c: New file.
55533         Tests for module 'unistr/u16-cpy'.
55534         * modules/unistr/u16-cpy-tests: New file.
55535         * tests/unistr/test-u16-cpy.c: New file.
55537         Tests for module 'unistr/u8-cpy'.
55538         * modules/unistr/u8-cpy-tests: New file.
55539         * tests/unistr/test-u8-cpy.c: New file.
55540         * tests/unistr/test-cpy.h: New file.
55542 2010-01-09  Bruno Haible  <bruno@clisp.org>
55544         Tests for module 'unistr/u32-uctomb'.
55545         * modules/unistr/u32-uctomb-tests: New file.
55546         * tests/unistr/test-u32-uctomb.c: New file.
55548         Tests for module 'unistr/u16-uctomb'.
55549         * modules/unistr/u16-uctomb-tests: New file.
55550         * tests/unistr/test-u16-uctomb.c: New file.
55552         Tests for module 'unistr/u8-uctomb'.
55553         * modules/unistr/u8-uctomb-tests: New file.
55554         * tests/unistr/test-u8-uctomb.c: New file.
55556         Tests for module 'unistr/u32-mbtoucr'.
55557         * modules/unistr/u32-mbtoucr-tests: New file.
55558         * tests/unistr/test-u32-mbtoucr.c: New file.
55560         Tests for module 'unistr/u16-mbtoucr'.
55561         * modules/unistr/u16-mbtoucr-tests: New file.
55562         * tests/unistr/test-u16-mbtoucr.c: New file.
55564         Tests for module 'unistr/u8-mbtoucr'.
55565         * modules/unistr/u8-mbtoucr-tests: New file.
55566         * tests/unistr/test-u8-mbtoucr.c: New file.
55568         Tests for module 'unistr/u32-mbtouc'.
55569         * modules/unistr/u32-mbtouc-tests: New file.
55570         * tests/unistr/test-u32-mbtouc.c: New file.
55572         Tests for module 'unistr/u16-mbtouc'.
55573         * modules/unistr/u16-mbtouc-tests: New file.
55574         * tests/unistr/test-u16-mbtouc.c: New file.
55576         Tests for module 'unistr/u8-mbtouc'.
55577         * modules/unistr/u8-mbtouc-tests: New file.
55578         * tests/unistr/test-u8-mbtouc.c: New file.
55580         Tests for module 'unistr/u32-mbtouc-unsafe'.
55581         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
55582         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
55583         * tests/unistr/test-u32-mbtouc.h: New file.
55585         Tests for module 'unistr/u16-mbtouc-unsafe'.
55586         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
55587         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
55588         * tests/unistr/test-u16-mbtouc.h: New file.
55590         Tests for module 'unistr/u8-mbtouc-unsafe'.
55591         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
55592         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
55593         * tests/unistr/test-u8-mbtouc.h: New file.
55595         Tests for module 'unistr/u32-mblen'.
55596         * modules/unistr/u32-mblen-tests: New file.
55597         * tests/unistr/test-u32-mblen.c: New file.
55599         Tests for module 'unistr/u16-mblen'.
55600         * modules/unistr/u16-mblen-tests: New file.
55601         * tests/unistr/test-u16-mblen.c: New file.
55603         Tests for module 'unistr/u8-mblen'.
55604         * modules/unistr/u8-mblen-tests: New file.
55605         * tests/unistr/test-u8-mblen.c: New file.
55607         Tests for module 'unistr/u32-to-u16'.
55608         * modules/unistr/u32-to-u16-tests: New file.
55609         * tests/unistr/test-u32-to-u16.c: New file.
55611         Tests for module 'unistr/u32-to-u8'.
55612         * modules/unistr/u32-to-u8-tests: New file.
55613         * tests/unistr/test-u32-to-u8.c: New file.
55615         Tests for module 'unistr/u16-to-u32'.
55616         * modules/unistr/u16-to-u32-tests: New file.
55617         * tests/unistr/test-u16-to-u32.c: New file.
55619         Tests for module 'unistr/u16-to-u8'.
55620         * modules/unistr/u16-to-u8-tests: New file.
55621         * tests/unistr/test-u16-to-u8.c: New file.
55623         Tests for module 'unistr/u8-to-u32'.
55624         * modules/unistr/u8-to-u32-tests: New file.
55625         * tests/unistr/test-u8-to-u32.c: New file.
55627         Tests for module 'unistr/u8-to-u16'.
55628         * modules/unistr/u8-to-u16-tests: New file.
55629         * tests/unistr/test-u8-to-u16.c: New file.
55631         Tests for module 'unistr/u32-check'.
55632         * modules/unistr/u32-check-tests: New file.
55633         * tests/unistr/test-u32-check.c: New file.
55635         Tests for module 'unistr/u16-check'.
55636         * modules/unistr/u16-check-tests: New file.
55637         * tests/unistr/test-u16-check.c: New file.
55639         Tests for module 'unistr/u8-check'.
55640         * modules/unistr/u8-check-tests: New file.
55641         * tests/unistr/test-u8-check.c: New file.
55643         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
55644         (category_equals): New function.
55645         (main): Add more tests.
55646         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
55648         * tests/unictype/test-bidi_byname.c (main): Add more tests.
55650 2010-01-10  Bruno Haible  <bruno@clisp.org>
55652         unistr/u*-strcoll: Try harder to distinguish different strings.
55653         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
55654         compare s1 and s2 to see if they are different.
55656 2010-01-10  Bruno Haible  <bruno@clisp.org>
55658         unistr/u*-stpncpy: Fix the return value.
55659         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
55660         description of the return value consistent with stpncpy in glibc.
55661         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
55662         written non-NUL unit.
55664 2010-01-10  Bruno Haible  <bruno@clisp.org>
55666         unistr/u*-next: Add missing dependencies.
55667         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
55668         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
55669         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
55671 2010-01-10  Bruno Haible  <bruno@clisp.org>
55673         unistr/u8-mbsnlen: Fix return value for incomplete character.
55674         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
55675         u8_mblen.
55676         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
55677         Remove unistr/u8-mblen.
55678         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
55679         u16_mblen.
55680         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
55681         Remove unistr/u16-mblen.
55683 2010-01-10  Bruno Haible  <bruno@clisp.org>
55685         wchar: Fix compilation error when <wchar.h> is used from coreutils.
55686         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
55687         Reported by Brian Gough <bjg@gnu.org> and
55688         Chris Clayton <chris2553@googlemail.com> via
55689         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
55691 2010-01-09  Bruno Haible  <bruno@clisp.org>
55693         unistr/u16-to-u32: Reject invalid input.
55694         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
55695         u16_mbtouc.
55696         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
55697         Remove unistr/u16-mbtouc.
55699         unistr/u16-to-u8: Reject invalid input.
55700         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
55701         u16_mbtouc.
55702         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
55703         Remove unistr/u16-mbtouc.
55705         unistr/u8-to-u32: Reject invalid input.
55706         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
55707         u8_mbtouc.
55708         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
55709         Remove unistr/u8-mbtouc.
55711         unistr/u8-to-u16: Reject invalid input.
55712         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
55713         u8_mbtouc.
55714         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
55715         Remove unistr/u8-mbtouc.
55717 2010-01-09  Bruno Haible  <bruno@clisp.org>
55719         Tests for module 'getlogin'.
55720         * modules/getlogin-tests: New file.
55721         * tests/test-getlogin.c: New file.
55723         New module 'getlogin'.
55724         * lib/unistd.in.h (getlogin): New declaration.
55725         * lib/getlogin.c: New file.
55726         * m4/getlogin.m4: New file.
55727         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
55728         HAVE_GETLOGIN.
55729         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
55730         HAVE_GETLOGIN.
55731         * modules/getlogin: New file.
55732         * doc/posix-functions/getlogin.texi: Mention the new module.
55733         Reported by John W. Eaton <jwe@gnu.org>.
55735 2010-01-09  Bruno Haible  <bruno@clisp.org>
55737         getlogin_r: Support for native Windows.
55738         * lib/getlogin_r.c: Include <windows.h>
55739         (getlogin_r): Implement for native Windows.
55740         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
55741         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
55742         via John W. Eaton <jwe@gnu.org>.
55744 2010-01-09  Bruno Haible  <bruno@clisp.org>
55746         getlogin_r: Small fixes.
55747         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
55748         succeeds.
55749         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
55750         before testing whether getlogin_r is declared. No need to set
55751         HAVE_DECL_GETLOGIN_R to 1.
55752         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
55754 2010-01-09  Bruno Haible  <bruno@clisp.org>
55756         * lib/unistd.in.h (getlogin_r): Add comment.
55758 2010-01-09  Bruno Haible  <bruno@clisp.org>
55760         Tests for module 'getlogin_r'.
55761         * modules/getlogin_r-tests: New file.
55762         * tests/test-getlogin_r.c: New file.
55764 2010-01-09  Jim Meyering  <meyering@redhat.com>
55766         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
55767         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
55768         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
55770 2010-01-08  Simon Josefsson  <simon@josefsson.org>
55772         * lib/dup2.c (rpl_dup2): Improve comment.
55774 2010-01-08  Eric Blake  <ebb9@byu.net>
55776         maint.mk: allow packages to add makefile @@ exceptions
55777         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
55778         (sc_makefile_check): Rename...
55779         (sc_makefile_at_at_check): ...to this, and use hook.
55781         dup2: work around mingw bug
55782         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
55783         Reported by Simon Josefsson.
55785 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
55787         glob: Fix C++ compilation.
55788         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
55789         C++.
55791 2010-01-07  Bruno Haible  <bruno@clisp.org>
55793         Fix indentation of wctype.in.h, broken since 2007-01-06.
55794         * lib/wctype.in.h: Fix indentation of preprocessor directives.
55796 2010-01-07  Bruno Haible  <bruno@clisp.org>
55798         mbslen: Avoid collision with system function.
55799         * lib/string.in.h [MirBSD]: Include <wchar.h>.
55800         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
55801         * m4/mbslen.m4: New file.
55802         * modules/mbslen (Files): Add it.
55803         (configure.ac): Invoke gl_MBSLEN.
55804         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
55805         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
55806         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
55807         via Ian Beckwith <ianb@erislabs.net>.
55809 2010-01-07  Bruno Haible  <bruno@clisp.org>
55811         dirent: Document the last fix.
55812         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
55814 2010-01-07  Bruno Haible  <bruno@clisp.org>
55816         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
55817         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
55818         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
55819         va_list are defined.
55820         * doc/posix-headers/stdio.texi: Document the bug of missing types.
55821         Reported by Eric Blake.
55823 2010-01-07  Bruno Haible  <bruno@clisp.org>
55825         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
55826         * modules/xlist (Depends-on): Add 'list',
55827         * modules/xoset (Depends-on): Add 'oset'.
55828         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55830 2010-01-07  Bruno Haible  <bruno@clisp.org>
55832         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
55833         * doc/posix-functions/strncasecmp.texi: Likewise.
55835 2010-01-07  Bruno Haible  <bruno@clisp.org>
55837         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
55839 2010-01-07  John W. Eaton  <jwe@octave.org>
55841         wctype: allow C++ use
55842         * lib/wctype.in.h: Add extern "C" block for C++.
55844 2010-01-06  Eric Blake  <ebb9@byu.net>
55846         maint.mk: detect incorrect GFDL usage
55847         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
55849 2010-01-06  Jim Meyering  <meyering@redhat.com>
55850         and Eric Blake  <ebb9@byu.net>
55852         maint.mk: ignore multi-line copyright in NEWS
55853         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
55855 2010-01-06  Eric Blake  <ebb9@byu.net>
55857         select: add missing dependency
55858         * modules/select-tests (Depends-on): Move sockets dependency...
55859         * modules/select (Depends-on): ...here.
55860         Reported by Ian Beckwith.
55862         doc: regenerate INSTALL
55863         * doc/INSTALL: Reflect recent autoconf update.
55864         * doc/INSTALL.ISO: Likewise.
55865         * doc/INSTALL.UTF-8: Likewise.
55867         pread: fix compilation on glibc
55868         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
55869         Reported by Ralf Wildenhues.
55871         dirent: fix test failure
55872         * lib/dirent.in.h (includes): Guarantee ino_t.
55873         Reported by Ralf Wildenhues.
55875 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
55877         linkat, renameat: avoid bad free
55878         * lib/at-func2.c (at_func2): Fix typo.
55879         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
55881 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55883         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
55884         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
55885         to avoid failure of symlink test later.
55887 2010-01-06  Eric Blake  <ebb9@byu.net>
55889         stdio, unistd: guarantee ssize_t
55890         * lib/unistd.in.h (includes): Ensure that types required by POSIX
55891         2008 are exposed when needed.
55892         * lib/stdio.in.h (includes): Likewise.
55893         Reported by Ralf Wildenhues.
55895 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
55897         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
55898         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
55899         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
55901 2010-01-06  Jim Meyering  <meyering@redhat.com>
55903         readtokens: this module *does* require xalloc.h
55904         It uses only functions that were omitted by the old syntax-check rule.
55905         * lib/readtokens.c: Include "xalloc.h" once again.
55906         * modules/readtokens (Depends-on): Add xalloc.
55907         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
55909 2010-01-05  Eric Blake  <ebb9@byu.net>
55911         maint: support 'make announcement' from a VPATH build
55912         * top/maint.mk (announcement): Look for correct NEWS file.
55914 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
55916         utimens (fdutimens): ignore a negative FD, per contract
55917         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
55918         when we have a valid file descriptor.  Otherwise, using a brand
55919         new glibc (with just-patched futimens that now fails with EBADF)
55920         would cause this function to fail with ENOSYS.
55921         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
55922         See also http://bugzilla.redhat.com/552320.
55924 2010-01-05  Eric Blake  <ebb9@byu.net>
55926         strcase: document what it provides
55927         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
55928         gnulib module.
55929         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
55930         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
55932 2010-01-05  Jim Meyering  <meyering@redhat.com>
55934         maint: remove useless inclusions of "xalloc.h"
55935         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
55936         * lib/readtokens.c: Likewise.
55937         * lib/same.c: Likewise.
55938         * modules/getloadavg (Depends-on): Remove xalloc.
55939         * modules/readtokens: Likewise.
55940         * modules/same: Likewise.
55942         maint.mk: include 4 more function names in alloca.h-checking regexp
55943         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
55944         regexp.  Before, we would give a false-positive (saying alloca.h
55945         is included unnecessarily) when the only uses involved omitted symbols.
55947         xalloc.h: use consistent formatting
55948         * lib/xalloc.h: Move declarations to start in the first column.
55950 2010-01-05  Eric Blake  <ebb9@byu.net>
55952         mkdir: avoid xalloc
55953         * lib/mkdir.c (includes): Drop unused header.
55954         Reported by John W. Eaton.
55956 2010-01-04  Jim Meyering  <meyering@redhat.com>
55958         nl_langinfo: avoid configure-time syntax error
55959         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
55960         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
55961         the empty string.  Don't let that provoke a shell syntax error.
55963         regcomp, regexec, fnmatch: avoid array bounds read error
55964         * lib/regcomp.c (build_equiv_class): From glibc:
55965         Use only the low 24 bits of a findidx return value as an index
55966         into the weights array.  Patch by Ulrich Drepper:
55967         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
55968         * lib/regexec.c (check_node_accept_bytes): Likewise.
55969         * lib/fnmatch_loop.c (FCT): Likewise.
55971         regcomp: skip collseq lookup when there are no rules
55972         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
55973         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
55975         regcomp: recognize ill-formed { } expressions
55976         * lib/regcomp.c (parse_dup_op): From glibc:
55977         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
55979         regcomp: fix typo in comment
55980         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
55981         s/satisfy/satisfies/.
55983         regcomp: sync from glibc: remove dead store
55984         * lib/regcomp.c (duplicate_node_closure): Remove useless
55985         search_duplicated_node call and dead store.
55987         regcomp: sync from glibc; always use nl_langinfo
55988         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
55989         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
55990         * modules/regex (Depends-on): Add nl_langinfo.
55992 2010-01-04  Eric Blake  <ebb9@byu.net>
55994         fdopendir: fix configure test
55995         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
55997 2010-01-01  Bruno Haible  <bruno@clisp.org>
55999         wchar: Remove unused configure check.
56000         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
56002 2010-01-01  Eric Blake  <ebb9@byu.net>
56004         headers: make check of system header explicit
56005         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
56006         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
56007         ourselves.
56008         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
56009         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56010         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
56011         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
56012         internals.
56013         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
56014         missing.
56015         Suggested by Bruno Haible.
56017 2010-01-01  Jim Meyering  <meyering@redhat.com>
56019         ChangeLog: tweak to eliminate unnecessary copyright line
56020         * ChangeLog: Remove a copyright line that was mistakenly updated
56021         by today's update-copyright run.  Reported by Eric Blake.
56023         test-update-copyright: don't let envvar setting cause test failure
56024         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
56026 2010-01-01  Bruno Haible  <bruno@clisp.org>
56028         localename: Avoid gcc warning.
56029         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
56030         function if it is not used.
56032 2010-01-01  Jim Meyering  <meyering@redhat.com>
56034         update nearly all FSF copyright year lists to include 2010
56035         Use the same procedure as for 2009, outlined in
56036         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
56038         version-etc: set COPYRIGHT_YEAR to 2010
56039         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
56041 2009-12-31  Eric Blake  <ebb9@byu.net>
56043         doc: correct availability of cygwin 1.5.x getopt
56044         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
56045         variables.
56046         * doc/posix-functions/opterr.texi (opterr): Likewise.
56047         * doc/posix-functions/optind.texi (optind): Likewise.
56048         * doc/posix-functions/optopt.texi (optopt): Likewise.
56049         * doc/posix-functions/tzname.texi (tzname): Likewise.
56051         openat: update maintainer
56052         * modules/openat (Maintainer): Add myself.
56054         utimens: avoid shadowing warning
56055         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
56056         buffers into one, to avoid shadowing, as well as avoiding a
56057         redundant stat.
56058         Reported by Jim Meyering.
56060         test-dup2: avoid compiler warning
56061         * tests/test-dup2.c (is_inheritable): Only define if used.
56063 2010-01-01  Bruno Haible  <bruno@clisp.org>
56065         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
56066         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
56067         defined, use wctomb instead of wcrtomb.
56069 2010-01-01  Bruno Haible  <bruno@clisp.org>
56071         iconv: Reject native Solaris iconv.
56072         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
56073         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
56075 2009-12-31  Bruno Haible  <bruno@clisp.org>
56077         * tests/test-signal.c (main): Remove test of 'SIG'.
56079 2009-12-31  Bruno Haible  <bruno@clisp.org>
56081         spawn: Fix incomplete fix.
56082         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
56083         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
56084         warnings for GNULIB_POSIXCHECK again.
56085         Reported by Eric Blake.
56087 2009-12-31  Bruno Haible  <bruno@clisp.org>
56089         Avoid namespace pollution on glibc systems.
56090         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
56091         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
56092         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
56093         glibc systems.
56095 2009-12-31  Bruno Haible  <bruno@clisp.org>
56097         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
56098         (gl_REPLACE_WCHAR_H): Turn into a no-op.
56099         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
56100         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
56101         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
56102         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
56103         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
56105 2009-12-31  Bruno Haible  <bruno@clisp.org>
56107         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
56108         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
56109         afterwards.
56111 2009-12-31  Bruno Haible  <bruno@clisp.org>
56113         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
56114         SYS_UTSNAME_H.
56116 2009-12-31  Bruno Haible  <bruno@clisp.org>
56118         spawn: Fix misapplied patch.
56119         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
56120         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
56121         warnings for GNULIB_POSIXCHECK.
56123 2009-12-31  Bruno Haible  <bruno@clisp.org>
56125         times: Update after sys_times changed.
56126         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
56127         * modules/times (Files): Add it.
56128         (configure.ac): Invoke gl_FUNC_TIMES.
56130 2009-12-31  Bruno Haible  <bruno@clisp.org>
56132         Use AC_C_INLINE where necessary.
56133         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
56134         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
56135         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
56136         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
56137         * m4/mbfile.m4 (gl_MBFILE): Likewise.
56138         * m4/mbiter.m4 (gl_MBITER): Likewise.
56139         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56140         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
56141         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
56142         * modules/u64 (configure.ac): Likewise.
56144 2009-12-31  Bruno Haible  <bruno@clisp.org>
56146         Use AC_C_INLINE instead of module 'inline' where possible.
56147         * modules/inline (Description): Clarify purpose.
56148         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
56149         * modules/count-one-bits (Depends-on): Remove inline.
56150         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
56151         * modules/openat (Depends-on): Remove inline.
56152         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
56153         instead of depending on module 'inline'.
56154         * modules/filevercmp (Depends-on, configure.ac): Likewise.
56155         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
56156         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
56157         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
56158         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
56159         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
56160         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
56161         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
56162         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
56163         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
56164         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
56165         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
56166         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
56167         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
56168         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
56169         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
56170         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
56171         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
56172         Likewise.
56173         * modules/unictype/property-ascii-hex-digit (Depends-on,
56174         configure.ac): Likewise.
56175         * modules/unictype/property-bidi-arabic-digit (Depends-on,
56176         configure.ac): Likewise.
56177         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
56178         configure.ac): Likewise.
56179         * modules/unictype/property-bidi-block-separator (Depends-on,
56180         configure.ac): Likewise.
56181         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
56182         configure.ac): Likewise.
56183         * modules/unictype/property-bidi-common-separator (Depends-on,
56184         configure.ac): Likewise.
56185         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
56186         Likewise.
56187         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
56188         configure.ac): Likewise.
56189         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
56190         configure.ac): Likewise.
56191         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
56192         configure.ac): Likewise.
56193         * modules/unictype/property-bidi-european-digit (Depends-on,
56194         configure.ac): Likewise.
56195         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
56196         configure.ac): Likewise.
56197         * modules/unictype/property-bidi-left-to-right (Depends-on,
56198         configure.ac): Likewise.
56199         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
56200         configure.ac): Likewise.
56201         * modules/unictype/property-bidi-other-neutral (Depends-on,
56202         configure.ac): Likewise.
56203         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
56204         Likewise.
56205         * modules/unictype/property-bidi-segment-separator (Depends-on,
56206         configure.ac): Likewise.
56207         * modules/unictype/property-bidi-whitespace (Depends-on,
56208         configure.ac): Likewise.
56209         * modules/unictype/property-combining (Depends-on, configure.ac):
56210         Likewise.
56211         * modules/unictype/property-composite (Depends-on, configure.ac):
56212         Likewise.
56213         * modules/unictype/property-currency-symbol (Depends-on,
56214         configure.ac): Likewise.
56215         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
56216         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
56217         Likewise.
56218         * modules/unictype/property-default-ignorable-code-point (Depends-on,
56219         configure.ac): Likewise.
56220         * modules/unictype/property-deprecated (Depends-on, configure.ac):
56221         Likewise.
56222         * modules/unictype/property-diacritic (Depends-on, configure.ac):
56223         Likewise.
56224         * modules/unictype/property-extender (Depends-on, configure.ac):
56225         Likewise.
56226         * modules/unictype/property-format-control (Depends-on, configure.ac):
56227         Likewise.
56228         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
56229         Likewise.
56230         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
56231         Likewise.
56232         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
56233         Likewise.
56234         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
56235         Likewise.
56236         * modules/unictype/property-hyphen (Depends-on, configure.ac):
56237         Likewise.
56238         * modules/unictype/property-id-continue (Depends-on, configure.ac):
56239         Likewise.
56240         * modules/unictype/property-id-start (Depends-on, configure.ac):
56241         Likewise.
56242         * modules/unictype/property-ideographic (Depends-on, configure.ac):
56243         Likewise.
56244         * modules/unictype/property-ids-binary-operator (Depends-on,
56245         configure.ac): Likewise.
56246         * modules/unictype/property-ids-trinary-operator (Depends-on,
56247         configure.ac): Likewise.
56248         * modules/unictype/property-ignorable-control (Depends-on,
56249         configure.ac): Likewise.
56250         * modules/unictype/property-iso-control (Depends-on, configure.ac):
56251         Likewise.
56252         * modules/unictype/property-join-control (Depends-on, configure.ac):
56253         Likewise.
56254         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
56255         Likewise.
56256         * modules/unictype/property-line-separator (Depends-on, configure.ac):
56257         Likewise.
56258         * modules/unictype/property-logical-order-exception (Depends-on,
56259         configure.ac): Likewise.
56260         * modules/unictype/property-lowercase (Depends-on, configure.ac):
56261         Likewise.
56262         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
56263         * modules/unictype/property-non-break (Depends-on, configure.ac):
56264         Likewise.
56265         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
56266         Likewise.
56267         * modules/unictype/property-numeric (Depends-on, configure.ac):
56268         Likewise.
56269         * modules/unictype/property-other-alphabetic (Depends-on,
56270         configure.ac): Likewise.
56271         * modules/unictype/property-other-default-ignorable-code-point
56272         (Depends-on, configure.ac): Likewise.
56273         * modules/unictype/property-other-grapheme-extend (Depends-on,
56274         configure.ac): Likewise.
56275         * modules/unictype/property-other-id-continue (Depends-on,
56276         configure.ac): Likewise.
56277         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
56278         Likewise.
56279         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
56280         Likewise.
56281         * modules/unictype/property-other-math (Depends-on, configure.ac):
56282         Likewise.
56283         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
56284         Likewise.
56285         * modules/unictype/property-paired-punctuation (Depends-on,
56286         configure.ac): Likewise.
56287         * modules/unictype/property-paragraph-separator (Depends-on,
56288         configure.ac): Likewise.
56289         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
56290         Likewise.
56291         * modules/unictype/property-pattern-white-space (Depends-on,
56292         configure.ac): Likewise.
56293         * modules/unictype/property-private-use (Depends-on, configure.ac):
56294         Likewise.
56295         * modules/unictype/property-punctuation (Depends-on, configure.ac):
56296         Likewise.
56297         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
56298         Likewise.
56299         * modules/unictype/property-radical (Depends-on, configure.ac):
56300         Likewise.
56301         * modules/unictype/property-sentence-terminal (Depends-on,
56302         configure.ac): Likewise.
56303         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
56304         Likewise.
56305         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
56306         * modules/unictype/property-terminal-punctuation (Depends-on,
56307         configure.ac): Likewise.
56308         * modules/unictype/property-titlecase (Depends-on, configure.ac):
56309         Likewise.
56310         * modules/unictype/property-unassigned-code-value (Depends-on,
56311         configure.ac): Likewise.
56312         * modules/unictype/property-unified-ideograph (Depends-on,
56313         configure.ac): Likewise.
56314         * modules/unictype/property-uppercase (Depends-on, configure.ac):
56315         Likewise.
56316         * modules/unictype/property-variation-selector (Depends-on,
56317         configure.ac): Likewise.
56318         * modules/unictype/property-white-space (Depends-on, configure.ac):
56319         Likewise.
56320         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
56321         Likewise.
56322         * modules/unictype/property-xid-start (Depends-on, configure.ac):
56323         Likewise.
56324         * modules/unictype/property-zero-width (Depends-on, configure.ac):
56325         Likewise.
56326         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
56327         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
56328         Likewise.
56330 2009-12-31  Bruno Haible  <bruno@clisp.org>
56332         Remove unnecessary AC_C_INLINE invocation.
56333         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
56334         since 2009-08-21.
56336 2009-12-31  Jim Meyering  <meyering@redhat.com>
56338         maint.mk: don't require explicit gpg_key_ID in cfg.mk
56339         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
56340         With this change, we can all remove the gpg_key_ID = ... definition
56341         from our respective cfg.mk files.
56343         maint.mk: create announcement template in ~/, not in /tmp
56344         * top/maint.mk (emit_upload_commands): Adjust.
56345         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
56346         Remove temporary file, .ci-msg.
56348 2009-12-31  Eric Blake  <ebb9@byu.net>
56350         link-warning: always build headers with link warnings
56351         * modules/arpa_inet (Makefile.am): Always build replacement
56352         header.
56353         * modules/ctype (Makefile.am): Likewise.
56354         * modules/dirent (Makefile.am): Likewise.
56355         * modules/inttypes (Makefile.am): Likewise.
56356         * modules/langinfo (Makefile.am): Likewise.
56357         * modules/locale (Makefile.am): Likewise.
56358         * modules/spawn (Makefile.am): Likewise.
56359         * modules/sys_file (Makefile.am): Likewise.
56360         * modules/sys_ioctl (Makefile.am): Likewise.
56361         * modules/sys_select (Makefile.am): Likewise.
56362         * modules/sys_socket (Makefile.am): Likewise.
56363         * modules/sys_times (Makefile.am): Likewise.
56364         * modules/sys_utsname (Makefile.am): Likewise.
56365         * modules/sys_wait (Makefile.am): Likewise.
56366         * modules/wchar (Makefile.am): Likewise.
56367         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
56368         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
56369         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
56370         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
56371         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
56372         Likewise.
56373         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56374         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
56375         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
56376         Likewise.
56377         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
56378         Likewise.
56379         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
56380         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
56381         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
56382         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56383         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
56384         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
56385         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
56386         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
56387         (gl_WCHAR_H_DEFAULTS): Likewise.
56389 2009-12-31  Eric Blake  <ebb9@byu.net>
56391         signal, spawn: use link warnings
56392         * lib/signal.in.h (sigset_t): Make unconditional.
56393         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
56394         (sigpending, sigprocmask, sigaction): Add link warnings.
56395         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
56396         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
56397         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
56398         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
56399         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
56400         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
56401         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
56402         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
56403         (posix_spawn_file_actions_destroy)
56404         (posix_spawn_file_actions_addopen)
56405         (posix_spawn_file_actions_addclose)
56406         (posix_spawn_file_actions_adddup2): Likewise.
56407         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
56408         * tests/test-signal.c (main): Enhance test.
56410         spawn: improve wrapper support
56411         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
56412         (gl_SPAWN_H_DEFAULTS): New defaults.
56413         * modules/spawn (Makefile.am): Substitute them.
56414         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
56415         Only declare if missing or broken.
56417         sys_times, sys_utsname: use include_next
56418         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
56419         header.
56420         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
56421         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
56422         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
56423         * modules/sys_times (Depends-on): Add include_next.
56424         (Makefile.am): Substitute additional values.
56425         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
56426         * lib/sys_times.in.h (includes): Include native header, if
56427         available.
56428         * lib/sys_utsname.in.h (includes): Likewise.
56429         * tests/test-sys_times.c (main): Enhance test.
56431         fdutimensat: revert prior patch
56432         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
56433         utimens.h.
56434         Reported by Bruno Haible.
56436 2009-12-30  Eric Blake  <ebb9@byu.net>
56438         sys_wait: drop link-warning dependency
56439         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
56440         link-warning efforts.
56441         * lib/sys_wait.in.h: Likewise.
56443         fdutimensat: remove bogus dependency
56444         * modules/fdutimensat (Depends-on): Drop inline.
56446         unistd: fix typo
56447         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
56449 2009-12-30  Bruno Haible  <bruno@clisp.org>
56451         Fix compilation error with Solaris cc.
56452         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
56453         * lib/unicase/u16-is-invariant.c: Likewise.
56454         * lib/unicase/u32-is-invariant.c: Likewise.
56455         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56457 2009-12-30  Bruno Haible  <bruno@clisp.org>
56459         Fix test crash.
56460         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
56461         locales.
56462         Reported by Simon Josefsson <simon@josefsson.org>.
56464 2009-12-30  Bruno Haible  <bruno@clisp.org>
56466         Fix compilation error on most platforms.
56467         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
56468         Reported by Simon Josefsson <simon@josefsson.org>
56469         and Nelson H. F. Beebe <beebe@math.utah.edu>.
56471 2009-12-30  Eric Blake  <ebb9@byu.net>
56473         futimens, utimensat: work around ntfs-3g bug
56474         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
56475         a ctime bug is present, and expand workaround to cover ntfs-3g.
56476         * lib/utimens.c (fdutimens, lutimens): Likewise.
56477         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
56478         (validate_timespec): Adjust return value.
56479         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
56480         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
56481         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
56483 2009-12-29  Eric Blake  <ebb9@byu.net>
56485         link-warning: make usage consistent
56486         * modules/ctype (Depends-on): Add link-warning.
56487         (Makefile.am): Update rules accordingly.
56488         * modules/langinfo (Depends-on, Makefile.am): Likewise.
56489         * modules/locale (Depends-on, Makefile.am): Likewise.
56490         * modules/sys_file (Makefile.am): Likewise.
56491         * modules/getopt-posix (Makefile.am): Delete unused link warning
56492         efforts.
56493         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
56494         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
56495         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
56496         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
56498         stdio: remove unused variables
56499         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
56500         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
56501         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
56503         tests: test more substitute headers
56504         * modules/ctype-tests: New file.
56505         * modules/dirent-tests: Likewise.
56506         * modules/spawn-tests: Likewise.
56507         * modules/sys_file-tests: Likewise.
56508         * modules/sys_ioctl-tests: Likewise.
56509         * modules/sys_wait-tests: Likewise.
56510         * tests/test-ctype.c: Likewise.
56511         * tests/test-dirent.c: Likewise.
56512         * tests/test-spawn.c: Likewise.
56513         * tests/test-sys_file.c: Likewise.
56514         * tests/test-sys_ioctl.c: Likewise.
56515         * tests/test-sys_wait.c: Likewise.
56516         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
56517         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
56518         whether or not flock is in use.
56520         tests: remove License section from module
56521         * modules/arpa_inet-tests: Remove unneeded section.
56522         * modules/byteswap-tests: Likewise.
56523         * modules/ceilf-tests: Likewise.
56524         * modules/ceill-tests: Likewise.
56525         * modules/crypto/des-tests: Likewise.
56526         * modules/crypto/gc-arcfour-tests: Likewise.
56527         * modules/crypto/gc-arctwo-tests: Likewise.
56528         * modules/crypto/gc-des-tests: Likewise.
56529         * modules/crypto/gc-hmac-md5-tests: Likewise.
56530         * modules/crypto/gc-hmac-sha1-tests: Likewise.
56531         * modules/crypto/gc-md2-tests: Likewise.
56532         * modules/crypto/gc-md4-tests: Likewise.
56533         * modules/crypto/gc-md5-tests: Likewise.
56534         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
56535         * modules/crypto/gc-rijndael-tests: Likewise.
56536         * modules/crypto/gc-sha1-tests: Likewise.
56537         * modules/crypto/gc-tests: Likewise.
56538         * modules/crypto/md2-tests: Likewise.
56539         * modules/crypto/md4-tests: Likewise.
56540         * modules/fcntl-h-tests: Likewise.
56541         * modules/floorf-tests: Likewise.
56542         * modules/floorl-tests: Likewise.
56543         * modules/frexp-nolibm-tests: Likewise.
56544         * modules/frexp-tests: Likewise.
56545         * modules/frexpl-nolibm-tests: Likewise.
56546         * modules/frexpl-tests: Likewise.
56547         * modules/getaddrinfo-tests: Likewise.
56548         * modules/inttypes-tests: Likewise.
56549         * modules/isfinite-tests: Likewise.
56550         * modules/isinf-tests: Likewise.
56551         * modules/ldexpl-tests: Likewise.
56552         * modules/locale-tests: Likewise.
56553         * modules/math-tests: Likewise.
56554         * modules/netdb-tests: Likewise.
56555         * modules/netinet_in-tests: Likewise.
56556         * modules/printf-frexp-tests: Likewise.
56557         * modules/printf-frexpl-tests: Likewise.
56558         * modules/priv-set-tests: Likewise.
56559         * modules/random_r-tests: Likewise.
56560         * modules/round-tests: Likewise.
56561         * modules/roundf-tests: Likewise.
56562         * modules/roundl-tests: Likewise.
56563         * modules/search-tests: Likewise.
56564         * modules/select-tests: Likewise.
56565         * modules/signal-tests: Likewise.
56566         * modules/stdbool-tests: Likewise.
56567         * modules/stddef-tests: Likewise.
56568         * modules/stdint-tests: Likewise.
56569         * modules/stdio-tests: Likewise.
56570         * modules/stdlib-tests: Likewise.
56571         * modules/string-tests: Likewise.
56572         * modules/strings-tests: Likewise.
56573         * modules/sys_select-tests: Likewise.
56574         * modules/sys_socket-tests: Likewise.
56575         * modules/sys_stat-tests: Likewise.
56576         * modules/sys_time-tests: Likewise.
56577         * modules/sys_utsname-tests: Likewise.
56578         * modules/sysexits-tests: Likewise.
56579         * modules/time-tests: Likewise.
56580         * modules/trunc-tests: Likewise.
56581         * modules/truncf-tests: Likewise.
56582         * modules/truncl-tests: Likewise.
56583         * modules/tsearch-tests: Likewise.
56584         * modules/unistd-tests: Likewise.
56585         * modules/wchar-tests: Likewise.
56586         * modules/wctype-tests: Likewise.
56588         tests: fix license on several tests
56589         * tests/test-des.c: Update to GPLv3+.
56590         * tests/test-flock.c: Likewise.
56591         * tests/test-fsync.c: Likewise.
56592         * tests/test-futimens.h: Likewise.
56593         * tests/test-gc-arcfour.c: Likewise.
56594         * tests/test-gc-arctwo.c: Likewise.
56595         * tests/test-gc-des.c: Likewise.
56596         * tests/test-gc-hmac-md5.c: Likewise.
56597         * tests/test-gc-hmac-sha1.c: Likewise.
56598         * tests/test-gc-md2.c: Likewise.
56599         * tests/test-gc-md4.c: Likewise.
56600         * tests/test-gc-md5.c: Likewise.
56601         * tests/test-gc-pbkdf2-sha1.c: Likewise.
56602         * tests/test-gc-rijndael.c: Likewise.
56603         * tests/test-gc-sha1.c: Likewise.
56604         * tests/test-gc.c: Likewise.
56605         * tests/test-getcwd.c: Likewise.
56606         * tests/test-link.c: Likewise.
56607         * tests/test-link.h: Likewise.
56608         * tests/test-lutimens.h: Likewise.
56609         * tests/test-md2.c: Likewise.
56610         * tests/test-md4.c: Likewise.
56611         * tests/test-mkdir.h: Likewise.
56612         * tests/test-rename.c: Likewise.
56613         * tests/test-rename.h: Likewise.
56614         * tests/test-safe-alloc.c: Likewise.
56615         * tests/test-utimens-common.h: Likewise.
56616         * tests/test-utimens.h: Likewise.
56618         maint: sync license texts
56619         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
56620         * doc/gpl-3.0.texi: Revert copyright year update.
56621         * doc/lgpl-3.0.texi: Likewise.
56623 2009-12-29  Jim Meyering  <meyering@redhat.com>
56625         update nearly all FSF copyright year lists to include 2009
56626         The files named by the following are exempted:
56627             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
56628               test -f "$dst" && { echo "$dst"; continue; }
56629               test -d "$dst" || continue
56630               echo "$dst"/$(basename "$src")
56631             done > exempt
56632             git ls-files tests/unictype >> exempt
56633         In the remaining files, convert to all-interval notation if
56634         - there is already at least one year interval like 2000-2003
56635         - the file is maintained by me
56636         - the file is in lib/uni*/, where that style already prevails
56637         Otherwise, use update-copyright's default.
56639 2009-12-29  Simon Josefsson  <simon@josefsson.org>
56640         and Eric Blake  <ebb9@byu.net>
56642         tests: don't require debug system() to pass
56643         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
56644         * tests/test-rmdir.h (test_rmdir_func): Likewise.
56645         * tests/test-unlink.h (test_unlink_func): Likewise.
56646         * tests/test-fstatat.c (main): ...into callers.
56647         * tests/test-lstat.c (main): Likewise.
56648         * tests/test-rmdir.c (main): Likewise.
56649         * tests/test-unlink.c (main): Likewise.
56650         * tests/test-unlinkat.c (main): Likewise.
56651         * tests/test-areadlink-with-size.c (main): Don't require a
56652         debug-only system call to pass, aiding cross-testing to mingw.
56653         * tests/test-areadlink.c (main): Likewise.
56654         * tests/test-areadlinkat-with-size.c (main): Likewise.
56655         * tests/test-areadlinkat.c (main): Likewise.
56656         * tests/test-canonicalize-lgpl.c (main): Likewise.
56657         * tests/test-canonicalize.c (main): Likewise.
56658         * tests/test-chown.c (main): Likewise.
56659         * tests/test-fchownat.c (main): Likewise.
56660         * tests/test-lchown.c (main): Likewise.
56661         * tests/test-fdutimensat.c (main): Likewise.
56662         * tests/test-futimens.c (main): Likewise.
56663         * tests/test-link.c (main): Likewise.
56664         * tests/test-linkat.c (main): Likewise.
56665         * tests/test-mkdir.c (main): Likewise.
56666         * tests/test-mkdirat.c (main): Likewise.
56667         * tests/test-mkfifo.c (main): Likewise.
56668         * tests/test-mkfifoat.c (main): Likewise.
56669         * tests/test-mknod.c (main): Likewise.
56670         * tests/test-readlink.c (main): Likewise.
56671         * tests/test-remove.c (main): Likewise.
56672         * tests/test-rename.c (main): Likewise.
56673         * tests/test-renameat.c (main): Likewise.
56674         * tests/test-symlink.c (main): Likewise.
56675         * tests/test-symlinkat.c (main): Likewise.
56676         * tests/test-utimens.c (main): Likewise.
56677         * tests/test-utimensat.c (main): Likewise.
56679 2009-12-29  Simon Josefsson  <simon@josefsson.org>
56681         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
56682         on $(UNUSED_PARAMETER_H) to avoid build failure.
56684 2009-12-28  Jim Meyering  <meyering@redhat.com>
56686         update-copyright: you may specify a max. line length other than 72
56687         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
56689         maint: use consistent FSF copyright line syntax
56690         * lib/posixtm.c: Add missing comma in FSF copyright line.
56691         * lib/posixtm.h: Likewise.
56692         * lib/getugroups.c: Add missing ", Inc.".
56694         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
56695         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
56696         FSF copyright line.  Remove trailing blanks.
56698 2009-12-28  Eric Blake  <ebb9@byu.net>
56700         test-dup2: reduce dependencies
56701         * modules/cloexec (Configure.ac): Set witness.
56702         * modules/dup2-tests (Depends-on): Drop cloexec.
56703         * tests/test-dup2.c (main): Skip portion of test if cloexec module
56704         not present.
56705         Suggested by Bruno Haible.
56707 2009-12-26  Bruno Haible  <bruno@clisp.org>
56709         Remove an unneeded dependency.
56710         * modules/fseterr (Depends-on): Remove dup2.
56712 2009-12-26  Eric Blake  <ebb9@byu.net>
56714         tests: use macros.h in more places
56715         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
56716         (ASSERT_STREAM): Provide default of stderr.
56717         * tests/test-dirent-safer.c: Include macros.h, using alternate
56718         stream for assertions.
56719         * tests/test-dup-safer.c: Likewise.
56720         * tests/test-freopen-safer.c: Likewise.
56721         * tests/test-getopt.c: Likewise.
56722         * tests/test-openat-safer.c: Likewise.
56723         * tests/test-pipe.c: Likewise.
56724         * tests/test-popen-safer.c: Likewise.
56725         * modules/dirent-safer-tests (Files): Include macros.h.
56726         * modules/unistd-safer-tests (Files): Likewise.
56727         * modules/freopen-safer-tests (Files): Likewise.
56728         * modules/getopt-posix-tests (Files): Likewise.
56729         * modules/openat-safer-tests (Files): Likewise.
56730         * modules/pipe-tests (Files): Likewise.
56732 2009-12-26  Bruno Haible  <bruno@clisp.org>
56734         javacomp-script: Portability fix.
56735         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
56736         that it also works on Solaris.
56738 2009-12-26  Bruno Haible  <bruno@clisp.org>
56740         localename: Fix storage allocation of gl_locale_name_thread's result.
56741         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
56742         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
56743         all platforms that have 'uselocale'.
56744         (gl_locale_name_thread_unsafe): New function, extracted from
56745         gl_locale_name_thread.
56746         (gl_locale_name_thread): Call struniq on all platforms that have
56747         'uselocale'.
56748         * tests/test-localename.c (test_locale_name_thread): Check that the
56749         resulting strings are permanently allocated.
56750         * modules/localename-tests (Depends-on): Add strdup.
56752 2009-12-26  Bruno Haible  <bruno@clisp.org>
56754         * tests/test-localename.c (categories): Fill in the strings.
56756 2009-12-26  Jim Meyering  <meyering@redhat.com>
56758         isdir: complete the removal of m4/isdir.m4
56759         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
56761         isdir: clean up, since at least grep still uses it
56762         * lib/isdir.c: Include "isdir.h".
56763         (S_ISDIR): Remove now-unneeded definition.
56764         * modules/isdir (Files): Add lib/isdir.h.
56765         * lib/isdir.h: New file, with declaration.
56766         * m4/isdir.m4: Remove file -- unneeded.
56768 2009-12-25  Bruno Haible  <bruno@clisp.org>
56770         selinux-h: Make generated .h files standalone.
56771         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
56772         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
56773         * lib/se-selinux.in.h: Likewise.
56774         * modules/selinux-h (Depends-on): Add unused-parameter.
56775         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
56776         selinux/selinux.h and selinux/context.h.
56777         Suggested by Eric Blake.
56779 2009-12-25  Bruno Haible  <bruno@clisp.org>
56781         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
56782         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
56783         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
56784         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
56785         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
56787 2009-12-24  Bruno Haible  <bruno@clisp.org>
56789         openat: Fix warning.
56790         * lib/openat-proc.c: Include <unistd.h>.
56792 2009-12-24  Bruno Haible  <bruno@clisp.org>
56794         New module 'unused-parameter'.
56795         * build-aux/unused-parameter.h: New file, extracted from earlier
56796         gnulib-common.m4.
56797         * modules/unused-parameter: New file.
56798         * lib/unistr.h: Include unused-parameter.h.
56799         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
56800         _GL_UNUSED.
56801         * modules/unistr/base (Depends-on): Add unused-parameter.
56803 2009-12-24  Bruno Haible  <bruno@clisp.org>
56805         Add missing dependencies to 'extensions' module.
56806         * m4/extensions.m4: Add comment.
56807         * modules/accept4 (Depends-on): Add extensions.
56808         * modules/dup3 (Depends-on): Likewise.
56809         * modules/fcntl (Depends-on): Likewise.
56810         * modules/futimens (Depends-on): Likewise.
56811         * modules/mknod (Depends-on): Likewise.
56812         * modules/pipe2 (Depends-on): Likewise.
56813         * modules/stat-time (Depends-on): Likewise.
56814         * modules/strcasestr-simple (Depends-on): Likewise.
56815         * modules/strsignal (Depends-on): Likewise.
56816         * modules/utimensat (Depends-on): Likewise.
56817         * modules/localcharset (Depends-on): Likewise. Needed because of
56818         gl_FCNTL_O_FLAGS.
56819         * modules/wcrtomb (Depends-on): Likewise. Needed because of
56820         AC_TYPE_MBSTATE_T.
56821         * modules/wcsnrtombs (Depends-on): Likewise.
56822         * modules/wcsrtombs (Depends-on): Likewise.
56824 2009-12-24  Bruno Haible  <bruno@clisp.org>
56826         binary-io: Avoid gcc warning due to SET_BINARY.
56827         * lib/binary-io.h (SET_BINARY): Cast the result to void.
56828         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
56830 2009-12-24  Bruno Haible  <bruno@clisp.org>
56832         Avoid future namespace pollution on glibc systems.
56833         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
56834         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
56835         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
56836         glibc systems.
56838 2009-12-24  Bruno Haible  <bruno@clisp.org>
56840         Refactor common macros used in tests.
56841         * tests/macros.h: New file.
56842         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
56843         and/or <stdlib.h>, if appropriate.
56844         (ASSERT, SIZEOF): Remove macros.
56845         * tests/test-areadlink-with-size.c: Likewise.
56846         * tests/test-areadlinkat.c: Likewise.
56847         * tests/test-areadlinkat-with-size.c: Likewise.
56848         * tests/test-argmatch.c: Likewise.
56849         * tests/test-argv-iter.c: Likewise.
56850         * tests/test-array-mergesort.c: Likewise.
56851         * tests/test-array_list.c: Likewise.
56852         * tests/test-array_oset.c: Likewise.
56853         * tests/test-avltree_list.c: Likewise.
56854         * tests/test-avltree_oset.c: Likewise.
56855         * tests/test-avltreehash_list.c: Likewise.
56856         * tests/test-base64.c: Likewise.
56857         * tests/test-binary-io.c: Likewise.
56858         * tests/test-bitrotate.c: Likewise.
56859         * tests/test-btowc.c: Likewise.
56860         * tests/test-byteswap.c: Likewise.
56861         * tests/test-c-ctype.c: Likewise.
56862         * tests/test-c-stack.c: Likewise.
56863         * tests/test-c-strcasecmp.c: Likewise.
56864         * tests/test-c-strcasestr.c: Likewise.
56865         * tests/test-c-strncasecmp.c: Likewise.
56866         * tests/test-c-strstr.c: Likewise.
56867         * tests/test-canonicalize-lgpl.c: Likewise.
56868         * tests/test-canonicalize.c: Likewise.
56869         * tests/test-carray_list.c: Likewise.
56870         * tests/test-ceilf1.c: Likewise.
56871         * tests/test-ceilf2.c: Likewise.
56872         * tests/test-ceill.c: Likewise.
56873         * tests/test-chown.c: Likewise.
56874         * tests/test-cloexec.c: Likewise.
56875         * tests/test-copy-acl.c: Likewise.
56876         * tests/test-copy-file.c: Likewise.
56877         * tests/test-count-one-bits.c: Likewise.
56878         * tests/test-dprintf-posix.c: Likewise.
56879         * tests/test-dup2.c: Likewise.
56880         * tests/test-dup3.c: Likewise.
56881         * tests/test-duplocale.c: Likewise.
56882         * tests/test-fbufmode.c: Likewise.
56883         * tests/test-fchdir.c: Likewise.
56884         * tests/test-fchownat.c: Likewise.
56885         * tests/test-fcntl-safer.c: Likewise.
56886         * tests/test-fcntl.c: Likewise.
56887         * tests/test-fdopendir.c: Likewise.
56888         * tests/test-fdutimensat.c: Likewise.
56889         * tests/test-fflush2.c: Likewise.
56890         * tests/test-file-has-acl.c: Likewise.
56891         * tests/test-filevercmp.c: Likewise.
56892         * tests/test-flock.c: Likewise.
56893         * tests/test-floorf1.c: Likewise.
56894         * tests/test-floorf2.c: Likewise.
56895         * tests/test-floorl.c: Likewise.
56896         * tests/test-fnmatch.c: Likewise.
56897         * tests/test-fopen.h: Likewise.
56898         * tests/test-fpending.c: Likewise.
56899         * tests/test-fprintf-posix.c: Likewise.
56900         * tests/test-fpurge.c: Likewise.
56901         * tests/test-freadable.c: Likewise.
56902         * tests/test-freadahead.c: Likewise.
56903         * tests/test-freading.c: Likewise.
56904         * tests/test-freadptr.c: Likewise.
56905         * tests/test-freadptr2.c: Likewise.
56906         * tests/test-freadseek.c: Likewise.
56907         * tests/test-freopen.c: Likewise.
56908         * tests/test-frexp.c: Likewise.
56909         * tests/test-frexpl.c: Likewise.
56910         * tests/test-fseek.c: Likewise.
56911         * tests/test-fseeko.c: Likewise.
56912         * tests/test-fstatat.c: Likewise.
56913         * tests/test-fstrcmp.c: Likewise.
56914         * tests/test-fsync.c: Likewise.
56915         * tests/test-ftell.c: Likewise.
56916         * tests/test-ftello.c: Likewise.
56917         * tests/test-func.c: Likewise.
56918         * tests/test-futimens.c: Likewise.
56919         * tests/test-fwritable.c: Likewise.
56920         * tests/test-fwriting.c: Likewise.
56921         * tests/test-getcwd.c: Likewise.
56922         * tests/test-getdate.c: Likewise.
56923         * tests/test-getdelim.c: Likewise.
56924         * tests/test-getdtablesize.c: Likewise.
56925         * tests/test-getgroups.c: Likewise.
56926         * tests/test-getline.c: Likewise.
56927         * tests/test-getndelim2.c: Likewise.
56928         * tests/test-glob.c: Likewise.
56929         * tests/test-hash.c: Likewise.
56930         * tests/test-i-ring.c: Likewise.
56931         * tests/test-iconv-utf.c: Likewise.
56932         * tests/test-iconv.c: Likewise.
56933         * tests/test-idpriv-drop.c: Likewise.
56934         * tests/test-idpriv-droptemp.c: Likewise.
56935         * tests/test-inet_ntop.c: Likewise.
56936         * tests/test-inet_pton.c: Likewise.
56937         * tests/test-isblank.c: Likewise.
56938         * tests/test-isfinite.c: Likewise.
56939         * tests/test-isinf.c: Likewise.
56940         * tests/test-isnan.c: Likewise.
56941         * tests/test-isnand.h: Likewise.
56942         * tests/test-isnanf.h: Likewise.
56943         * tests/test-isnanl.h: Likewise.
56944         * tests/test-lchown.c: Likewise.
56945         * tests/test-ldexpl.c: Likewise.
56946         * tests/test-link.c: Likewise.
56947         * tests/test-linkat.c: Likewise.
56948         * tests/test-linked_list.c: Likewise.
56949         * tests/test-linkedhash_list.c: Likewise.
56950         * tests/test-localename.c: Likewise.
56951         * tests/test-lseek.c: Likewise.
56952         * tests/test-lstat.c: Likewise.
56953         * tests/test-mbmemcasecmp.c: Likewise.
56954         * tests/test-mbmemcasecoll.c: Likewise.
56955         * tests/test-mbrtowc.c: Likewise.
56956         * tests/test-mbscasecmp.c: Likewise.
56957         * tests/test-mbscasestr1.c: Likewise.
56958         * tests/test-mbscasestr2.c: Likewise.
56959         * tests/test-mbscasestr3.c: Likewise.
56960         * tests/test-mbscasestr4.c: Likewise.
56961         * tests/test-mbschr.c: Likewise.
56962         * tests/test-mbscspn.c: Likewise.
56963         * tests/test-mbsinit.c: Likewise.
56964         * tests/test-mbsncasecmp.c: Likewise.
56965         * tests/test-mbsnrtowcs.c: Likewise.
56966         * tests/test-mbspbrk.c: Likewise.
56967         * tests/test-mbspcasecmp.c: Likewise.
56968         * tests/test-mbsrchr.c: Likewise.
56969         * tests/test-mbsrtowcs.c: Likewise.
56970         * tests/test-mbsspn.c: Likewise.
56971         * tests/test-mbsstr1.c: Likewise.
56972         * tests/test-mbsstr2.c: Likewise.
56973         * tests/test-mbsstr3.c: Likewise.
56974         * tests/test-memchr.c: Likewise.
56975         * tests/test-memchr2.c: Likewise.
56976         * tests/test-memcmp.c: Likewise.
56977         * tests/test-memmem.c: Likewise.
56978         * tests/test-memrchr.c: Likewise.
56979         * tests/test-mkdir.c: Likewise.
56980         * tests/test-mkdirat.c: Likewise.
56981         * tests/test-mkfifo.c: Likewise.
56982         * tests/test-mkfifoat.c: Likewise.
56983         * tests/test-mknod.c: Likewise.
56984         * tests/test-nanosleep.c: Likewise.
56985         * tests/test-nl_langinfo.c: Likewise.
56986         * tests/test-obstack-printf.c: Likewise.
56987         * tests/test-open.c: Likewise.
56988         * tests/test-openat.c: Likewise.
56989         * tests/test-pipe-filter-gi1.c: Likewise.
56990         * tests/test-pipe-filter-gi2-main.c: Likewise.
56991         * tests/test-pipe-filter-ii1.c: Likewise.
56992         * tests/test-pipe-filter-ii2-main.c: Likewise.
56993         * tests/test-pipe2.c: Likewise.
56994         * tests/test-popen.h: Likewise.
56995         * tests/test-posixtm.c: Likewise.
56996         * tests/test-pread.c: Likewise.
56997         * tests/test-printf-frexp.c: Likewise.
56998         * tests/test-printf-frexpl.c: Likewise.
56999         * tests/test-printf-posix.c: Likewise.
57000         * tests/test-priv-set.c: Likewise.
57001         * tests/test-quotearg.c: Likewise.
57002         * tests/test-random_r.c: Likewise.
57003         * tests/test-rawmemchr.c: Likewise.
57004         * tests/test-rbtree_list.c: Likewise.
57005         * tests/test-rbtree_oset.c: Likewise.
57006         * tests/test-rbtreehash_list.c: Likewise.
57007         * tests/test-readlink.c: Likewise.
57008         * tests/test-remove.c: Likewise.
57009         * tests/test-rename.c: Likewise.
57010         * tests/test-renameat.c: Likewise.
57011         * tests/test-rmdir.c: Likewise.
57012         * tests/test-round1.c: Likewise.
57013         * tests/test-roundf1.c: Likewise.
57014         * tests/test-roundl.c: Likewise.
57015         * tests/test-safe-alloc.c: Likewise.
57016         * tests/test-sameacls.c: Likewise.
57017         * tests/test-set-mode-acl.c: Likewise.
57018         * tests/test-setenv.c: Likewise.
57019         * tests/test-sigaction.c: Likewise.
57020         * tests/test-signbit.c: Likewise.
57021         * tests/test-sleep.c: Likewise.
57022         * tests/test-snprintf-posix.c: Likewise.
57023         * tests/test-snprintf.c: Likewise.
57024         * tests/test-sprintf-posix.c: Likewise.
57025         * tests/test-stat-time.c: Likewise.
57026         * tests/test-stat.c: Likewise.
57027         * tests/test-strcasestr.c: Likewise.
57028         * tests/test-strchrnul.c: Likewise.
57029         * tests/test-strerror.c: Likewise.
57030         * tests/test-striconv.c: Likewise.
57031         * tests/test-striconveh.c: Likewise.
57032         * tests/test-striconveha.c: Likewise.
57033         * tests/test-strsignal.c: Likewise.
57034         * tests/test-strstr.c: Likewise.
57035         * tests/test-strtod.c: Likewise.
57036         * tests/test-strverscmp.c: Likewise.
57037         * tests/test-symlink.c: Likewise.
57038         * tests/test-symlinkat.c: Likewise.
57039         * tests/test-trunc1.c: Likewise.
57040         * tests/test-trunc2.c: Likewise.
57041         * tests/test-truncf1.c: Likewise.
57042         * tests/test-truncf2.c: Likewise.
57043         * tests/test-truncl.c: Likewise.
57044         * tests/test-uname.c: Likewise.
57045         * tests/test-unlink.c: Likewise.
57046         * tests/test-unlinkat.c: Likewise.
57047         * tests/test-unsetenv.c: Likewise.
57048         * tests/test-usleep.c: Likewise.
57049         * tests/test-utimens.c: Likewise.
57050         * tests/test-utimensat.c: Likewise.
57051         * tests/test-vasnprintf-posix.c: Likewise.
57052         * tests/test-vasnprintf-posix2.c: Likewise.
57053         * tests/test-vasnprintf.c: Likewise.
57054         * tests/test-vasprintf-posix.c: Likewise.
57055         * tests/test-vasprintf.c: Likewise.
57056         * tests/test-vdprintf-posix.c: Likewise.
57057         * tests/test-vfprintf-posix.c: Likewise.
57058         * tests/test-vprintf-posix.c: Likewise.
57059         * tests/test-vsnprintf-posix.c: Likewise.
57060         * tests/test-vsnprintf.c: Likewise.
57061         * tests/test-vsprintf-posix.c: Likewise.
57062         * tests/test-wcrtomb.c: Likewise.
57063         * tests/test-wcsnrtombs.c: Likewise.
57064         * tests/test-wcsrtombs.c: Likewise.
57065         * tests/test-wctype.c: Likewise.
57066         * tests/test-wcwidth.c: Likewise.
57067         * tests/test-xfprintf-posix.c: Likewise.
57068         * tests/test-xmemdup0.c: Likewise.
57069         * tests/test-xprintf-posix.c: Likewise.
57070         * tests/test-xvasprintf.c: Likewise.
57071         * tests/unicase/test-locale-language.c: Likewise.
57072         * tests/unicase/test-mapping-part1.h: Likewise.
57073         * tests/unicase/test-predicate-part1.h: Likewise.
57074         * tests/unicase/test-u8-casecmp.c: Likewise.
57075         * tests/unicase/test-u8-casecoll.c: Likewise.
57076         * tests/unicase/test-u8-casefold.c: Likewise.
57077         * tests/unicase/test-u8-is-cased.c: Likewise.
57078         * tests/unicase/test-u8-is-casefolded.c: Likewise.
57079         * tests/unicase/test-u8-is-lowercase.c: Likewise.
57080         * tests/unicase/test-u8-is-titlecase.c: Likewise.
57081         * tests/unicase/test-u8-is-uppercase.c: Likewise.
57082         * tests/unicase/test-u8-tolower.c: Likewise.
57083         * tests/unicase/test-u8-totitle.c: Likewise.
57084         * tests/unicase/test-u8-toupper.c: Likewise.
57085         * tests/unicase/test-u16-casecmp.c: Likewise.
57086         * tests/unicase/test-u16-casecoll.c: Likewise.
57087         * tests/unicase/test-u16-casefold.c: Likewise.
57088         * tests/unicase/test-u16-is-cased.c: Likewise.
57089         * tests/unicase/test-u16-is-casefolded.c: Likewise.
57090         * tests/unicase/test-u16-is-lowercase.c: Likewise.
57091         * tests/unicase/test-u16-is-titlecase.c: Likewise.
57092         * tests/unicase/test-u16-is-uppercase.c: Likewise.
57093         * tests/unicase/test-u16-tolower.c: Likewise.
57094         * tests/unicase/test-u16-totitle.c: Likewise.
57095         * tests/unicase/test-u16-toupper.c: Likewise.
57096         * tests/unicase/test-u32-casecmp.c: Likewise.
57097         * tests/unicase/test-u32-casecoll.c: Likewise.
57098         * tests/unicase/test-u32-casefold.c: Likewise.
57099         * tests/unicase/test-u32-is-cased.c: Likewise.
57100         * tests/unicase/test-u32-is-casefolded.c: Likewise.
57101         * tests/unicase/test-u32-is-lowercase.c: Likewise.
57102         * tests/unicase/test-u32-is-titlecase.c: Likewise.
57103         * tests/unicase/test-u32-is-uppercase.c: Likewise.
57104         * tests/unicase/test-u32-tolower.c: Likewise.
57105         * tests/unicase/test-u32-totitle.c: Likewise.
57106         * tests/unicase/test-u32-toupper.c: Likewise.
57107         * tests/unicase/test-ulc-casecmp.c: Likewise.
57108         * tests/unicase/test-ulc-casecoll.c: Likewise.
57109         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
57110         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
57111         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
57112         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
57113         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
57114         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
57115         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
57116         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
57117         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
57118         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
57119         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
57120         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
57121         * tests/unictype/test-bidi_byname.c: Likewise.
57122         * tests/unictype/test-bidi_name.c: Likewise.
57123         * tests/unictype/test-bidi_of.c: Likewise.
57124         * tests/unictype/test-bidi_test.c: Likewise.
57125         * tests/unictype/test-block_list.c: Likewise.
57126         * tests/unictype/test-block_of.c: Likewise.
57127         * tests/unictype/test-block_test.c: Likewise.
57128         * tests/unictype/test-categ_and.c: Likewise.
57129         * tests/unictype/test-categ_and_not.c: Likewise.
57130         * tests/unictype/test-categ_byname.c: Likewise.
57131         * tests/unictype/test-categ_name.c: Likewise.
57132         * tests/unictype/test-categ_none.c: Likewise.
57133         * tests/unictype/test-categ_of.c: Likewise.
57134         * tests/unictype/test-categ_or.c: Likewise.
57135         * tests/unictype/test-categ_test_withtable.c: Likewise.
57136         * tests/unictype/test-combining.c: Likewise.
57137         * tests/unictype/test-decdigit.c: Likewise.
57138         * tests/unictype/test-digit.c: Likewise.
57139         * tests/unictype/test-mirror.c: Likewise.
57140         * tests/unictype/test-numeric.c: Likewise.
57141         * tests/unictype/test-pr_byname.c: Likewise.
57142         * tests/unictype/test-pr_test.c: Likewise.
57143         * tests/unictype/test-predicate-part1.h: Likewise.
57144         * tests/unictype/test-scripts.c: Likewise.
57145         * tests/unictype/test-sy_c_ident.c: Likewise.
57146         * tests/unictype/test-sy_java_ident.c: Likewise.
57147         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
57148         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
57149         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
57150         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
57151         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
57152         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
57153         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
57154         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
57155         * tests/uninorm/test-canonical-decomposition.c: Likewise.
57156         * tests/uninorm/test-compat-decomposition.c: Likewise.
57157         * tests/uninorm/test-composition.c: Likewise.
57158         * tests/uninorm/test-decomposing-form.c: Likewise.
57159         * tests/uninorm/test-decomposition.c: Likewise.
57160         * tests/uninorm/test-u8-nfc.c: Likewise.
57161         * tests/uninorm/test-u8-nfd.c: Likewise.
57162         * tests/uninorm/test-u8-nfkc.c: Likewise.
57163         * tests/uninorm/test-u8-nfkd.c: Likewise.
57164         * tests/uninorm/test-u8-normcmp.c: Likewise.
57165         * tests/uninorm/test-u8-normcoll.c: Likewise.
57166         * tests/uninorm/test-u16-nfc.c: Likewise.
57167         * tests/uninorm/test-u16-nfd.c: Likewise.
57168         * tests/uninorm/test-u16-nfkc.c: Likewise.
57169         * tests/uninorm/test-u16-nfkd.c: Likewise.
57170         * tests/uninorm/test-u16-normcmp.c: Likewise.
57171         * tests/uninorm/test-u16-normcoll.c: Likewise.
57172         * tests/uninorm/test-u32-nfc.c: Likewise.
57173         * tests/uninorm/test-u32-nfd.c: Likewise.
57174         * tests/uninorm/test-u32-nfkc.c: Likewise.
57175         * tests/uninorm/test-u32-nfkd.c: Likewise.
57176         * tests/uninorm/test-u32-normalize-big.c: Likewise.
57177         * tests/uninorm/test-u32-normcmp.c: Likewise.
57178         * tests/uninorm/test-u32-normcoll.c: Likewise.
57179         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
57180         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
57181         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
57182         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
57183         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
57184         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
57185         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
57186         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
57187         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
57188         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
57189         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
57190         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
57191         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
57192         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
57193         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
57194         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
57195         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
57196         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
57197         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
57198         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
57199         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
57200         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
57201         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
57202         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
57203         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
57204         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
57205         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
57206         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
57207         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
57208         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
57209         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
57210         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
57211         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
57212         * tests/uniwidth/test-u8-strwidth.c: Likewise.
57213         * tests/uniwidth/test-u8-width.c: Likewise.
57214         * tests/uniwidth/test-u16-strwidth.c: Likewise.
57215         * tests/uniwidth/test-u16-width.c: Likewise.
57216         * tests/uniwidth/test-u32-strwidth.c: Likewise.
57217         * tests/uniwidth/test-u32-width.c: Likewise.
57218         * tests/uniwidth/test-uc_width.c: Likewise.
57219         * tests/uniwidth/test-uc_width2.c: Likewise.
57220         * modules/acl-tests (Files): Add tests/macros.h.
57221         * modules/areadlink-tests (Files): Likewise.
57222         * modules/areadlink-with-size-tests (Files): Likewise.
57223         * modules/areadlinkat-tests (Files): Likewise.
57224         * modules/areadlinkat-with-size-tests (Files): Likewise.
57225         * modules/argmatch-tests (Files): Likewise.
57226         * modules/argv-iter-tests (Files): Likewise.
57227         * modules/array-list-tests (Files): Likewise.
57228         * modules/array-mergesort-tests (Files): Likewise.
57229         * modules/array-oset-tests (Files): Likewise.
57230         * modules/avltree-list-tests (Files): Likewise.
57231         * modules/avltree-oset-tests (Files): Likewise.
57232         * modules/avltreehash-list-tests (Files): Likewise.
57233         * modules/base64-tests (Files): Likewise.
57234         * modules/binary-io-tests (Files): Likewise.
57235         * modules/bitrotate-tests (Files): Likewise.
57236         * modules/btowc-tests (Files): Likewise.
57237         * modules/byteswap-tests (Files): Likewise.
57238         * modules/c-ctype-tests (Files): Likewise.
57239         * modules/c-stack-tests (Files): Likewise.
57240         * modules/c-strcase-tests (Files): Likewise.
57241         * modules/c-strcasestr-tests (Files): Likewise.
57242         * modules/c-strstr-tests (Files): Likewise.
57243         * modules/canonicalize-lgpl-tests (Files): Likewise.
57244         * modules/canonicalize-tests (Files): Likewise.
57245         * modules/carray-list-tests (Files): Likewise.
57246         * modules/ceilf-tests (Files): Likewise.
57247         * modules/ceill-tests (Files): Likewise.
57248         * modules/chown-tests (Files): Likewise.
57249         * modules/cloexec-tests (Files): Likewise.
57250         * modules/copy-file-tests (Files): Likewise.
57251         * modules/count-one-bits-tests (Files): Likewise.
57252         * modules/dprintf-posix-tests (Files): Likewise.
57253         * modules/dup2-tests (Files): Likewise.
57254         * modules/dup3-tests (Files): Likewise.
57255         * modules/duplocale-tests (Files): Likewise.
57256         * modules/fbufmode-tests (Files): Likewise.
57257         * modules/fchdir-tests (Files): Likewise.
57258         * modules/fcntl-safer-tests (Files): Likewise.
57259         * modules/fcntl-tests (Files): Likewise.
57260         * modules/fdopendir-tests (Files): Likewise.
57261         * modules/fdutimensat-tests (Files): Likewise.
57262         * modules/fflush-tests (Files): Likewise.
57263         * modules/filevercmp-tests (Files): Likewise.
57264         * modules/flock-tests (Files): Likewise.
57265         * modules/floorf-tests (Files): Likewise.
57266         * modules/floorl-tests (Files): Likewise.
57267         * modules/fnmatch-tests (Files): Likewise.
57268         * modules/fopen-safer-tests (Files): Likewise.
57269         * modules/fopen-tests (Files): Likewise.
57270         * modules/fpending-tests (Files): Likewise.
57271         * modules/fprintf-posix-tests (Files): Likewise.
57272         * modules/fpurge-tests (Files): Likewise.
57273         * modules/freadable-tests (Files): Likewise.
57274         * modules/freadahead-tests (Files): Likewise.
57275         * modules/freading-tests (Files): Likewise.
57276         * modules/freadptr-tests (Files): Likewise.
57277         * modules/freadseek-tests (Files): Likewise.
57278         * modules/freopen-tests (Files): Likewise.
57279         * modules/frexp-nolibm-tests (Files): Likewise.
57280         * modules/frexp-tests (Files): Likewise.
57281         * modules/frexpl-nolibm-tests (Files): Likewise.
57282         * modules/frexpl-tests (Files): Likewise.
57283         * modules/fseek-tests (Files): Likewise.
57284         * modules/fseeko-tests (Files): Likewise.
57285         * modules/fstrcmp-tests (Files): Likewise.
57286         * modules/fsync-tests (Files): Likewise.
57287         * modules/ftell-tests (Files): Likewise.
57288         * modules/ftello-tests (Files): Likewise.
57289         * modules/func-tests (Files): Likewise.
57290         * modules/futimens-tests (Files): Likewise.
57291         * modules/fwritable-tests (Files): Likewise.
57292         * modules/fwriting-tests (Files): Likewise.
57293         * modules/getcwd-tests (Files): Likewise.
57294         * modules/getdate-tests (Files): Likewise.
57295         * modules/getdelim-tests (Files): Likewise.
57296         * modules/getdtablesize-tests (Files): Likewise.
57297         * modules/getgroups-tests (Files): Likewise.
57298         * modules/getline-tests (Files): Likewise.
57299         * modules/getndelim2-tests (Files): Likewise.
57300         * modules/glob-tests (Files): Likewise.
57301         * modules/hash-tests (Files): Likewise.
57302         * modules/i-ring-tests (Files): Likewise.
57303         * modules/iconv-tests (Files): Likewise.
57304         * modules/iconv_open-utf-tests (Files): Likewise.
57305         * modules/idpriv-drop-tests (Files): Likewise.
57306         * modules/idpriv-droptemp-tests (Files): Likewise.
57307         * modules/inet_ntop-tests (Files): Likewise.
57308         * modules/inet_pton-tests (Files): Likewise.
57309         * modules/isblank-tests (Files): Likewise.
57310         * modules/isfinite-tests (Files): Likewise.
57311         * modules/isinf-tests (Files): Likewise.
57312         * modules/isnan-tests (Files): Likewise.
57313         * modules/isnand-nolibm-tests (Files): Likewise.
57314         * modules/isnand-tests (Files): Likewise.
57315         * modules/isnanf-nolibm-tests (Files): Likewise.
57316         * modules/isnanf-tests (Files): Likewise.
57317         * modules/isnanl-nolibm-tests (Files): Likewise.
57318         * modules/isnanl-tests (Files): Likewise.
57319         * modules/lchown-tests (Files): Likewise.
57320         * modules/ldexpl-tests (Files): Likewise.
57321         * modules/link-tests (Files): Likewise.
57322         * modules/linkat-tests (Files): Likewise.
57323         * modules/linked-list-tests (Files): Likewise.
57324         * modules/linkedhash-list-tests (Files): Likewise.
57325         * modules/localename-tests (Files): Likewise.
57326         * modules/lseek-tests (Files): Likewise.
57327         * modules/lstat-tests (Files): Likewise.
57328         * modules/mbmemcasecmp-tests (Files): Likewise.
57329         * modules/mbmemcasecoll-tests (Files): Likewise.
57330         * modules/mbrtowc-tests (Files): Likewise.
57331         * modules/mbscasecmp-tests (Files): Likewise.
57332         * modules/mbscasestr-tests (Files): Likewise.
57333         * modules/mbschr-tests (Files): Likewise.
57334         * modules/mbscspn-tests (Files): Likewise.
57335         * modules/mbsinit-tests (Files): Likewise.
57336         * modules/mbsncasecmp-tests (Files): Likewise.
57337         * modules/mbsnrtowcs-tests (Files): Likewise.
57338         * modules/mbspbrk-tests (Files): Likewise.
57339         * modules/mbspcasecmp-tests (Files): Likewise.
57340         * modules/mbsrchr-tests (Files): Likewise.
57341         * modules/mbsrtowcs-tests (Files): Likewise.
57342         * modules/mbsspn-tests (Files): Likewise.
57343         * modules/mbsstr-tests (Files): Likewise.
57344         * modules/memchr-tests (Files): Likewise.
57345         * modules/memchr2-tests (Files): Likewise.
57346         * modules/memcmp-tests (Files): Likewise.
57347         * modules/memmem-tests (Files): Likewise.
57348         * modules/memrchr-tests (Files): Likewise.
57349         * modules/mkdir-tests (Files): Likewise.
57350         * modules/mkfifo-tests (Files): Likewise.
57351         * modules/mkfifoat-tests (Files): Likewise.
57352         * modules/mknod-tests (Files): Likewise.
57353         * modules/nanosleep-tests (Files): Likewise.
57354         * modules/nl_langinfo-tests (Files): Likewise.
57355         * modules/obstack-printf-tests (Files): Likewise.
57356         * modules/open-tests (Files): Likewise.
57357         * modules/openat-tests (Files): Likewise.
57358         * modules/pipe-filter-gi-tests (Files): Likewise.
57359         * modules/pipe-filter-ii-tests (Files): Likewise.
57360         * modules/pipe2-tests (Files): Likewise.
57361         * modules/popen-safer-tests (Files): Likewise.
57362         * modules/popen-tests (Files): Likewise.
57363         * modules/posixtm-tests (Files): Likewise.
57364         * modules/pread-tests (Files): Likewise.
57365         * modules/printf-frexp-tests (Files): Likewise.
57366         * modules/printf-frexpl-tests (Files): Likewise.
57367         * modules/printf-posix-tests (Files): Likewise.
57368         * modules/priv-set-tests (Files): Likewise.
57369         * modules/quotearg-tests (Files): Likewise.
57370         * modules/random_r-tests (Files): Likewise.
57371         * modules/rawmemchr-tests (Files): Likewise.
57372         * modules/rbtree-list-tests (Files): Likewise.
57373         * modules/rbtree-oset-tests (Files): Likewise.
57374         * modules/rbtreehash-list-tests (Files): Likewise.
57375         * modules/readlink-tests (Files): Likewise.
57376         * modules/remove-tests (Files): Likewise.
57377         * modules/rename-tests (Files): Likewise.
57378         * modules/renameat-tests (Files): Likewise.
57379         * modules/rmdir-tests (Files): Likewise.
57380         * modules/round-tests (Files): Likewise.
57381         * modules/roundf-tests (Files): Likewise.
57382         * modules/roundl-tests (Files): Likewise.
57383         * modules/safe-alloc-tests (Files): Likewise.
57384         * modules/setenv-tests (Files): Likewise.
57385         * modules/sigaction-tests (Files): Likewise.
57386         * modules/signbit-tests (Files): Likewise.
57387         * modules/sleep-tests (Files): Likewise.
57388         * modules/snprintf-posix-tests (Files): Likewise.
57389         * modules/snprintf-tests (Files): Likewise.
57390         * modules/sprintf-posix-tests (Files): Likewise.
57391         * modules/stat-tests (Files): Likewise.
57392         * modules/stat-time-tests (Files): Likewise.
57393         * modules/strcasestr-tests (Files): Likewise.
57394         * modules/strchrnul-tests (Files): Likewise.
57395         * modules/strerror-tests (Files): Likewise.
57396         * modules/striconv-tests (Files): Likewise.
57397         * modules/striconveh-tests (Files): Likewise.
57398         * modules/striconveha-tests (Files): Likewise.
57399         * modules/strsignal-tests (Files): Likewise.
57400         * modules/strstr-tests (Files): Likewise.
57401         * modules/strtod-tests (Files): Likewise.
57402         * modules/strverscmp-tests (Files): Likewise.
57403         * modules/symlink-tests (Files): Likewise.
57404         * modules/symlinkat-tests (Files): Likewise.
57405         * modules/trunc-tests (Files): Likewise.
57406         * modules/truncf-tests (Files): Likewise.
57407         * modules/truncl-tests (Files): Likewise.
57408         * modules/uname-tests (Files): Likewise.
57409         * modules/unicase/cased-tests (Files): Likewise.
57410         * modules/unicase/ignorable-tests (Files): Likewise.
57411         * modules/unicase/locale-language-tests (Files): Likewise.
57412         * modules/unicase/tolower-tests (Files): Likewise.
57413         * modules/unicase/totitle-tests (Files): Likewise.
57414         * modules/unicase/toupper-tests (Files): Likewise.
57415         * modules/unicase/u8-casecmp-tests (Files): Likewise.
57416         * modules/unicase/u8-casecoll-tests (Files): Likewise.
57417         * modules/unicase/u8-casefold-tests (Files): Likewise.
57418         * modules/unicase/u8-is-cased-tests (Files): Likewise.
57419         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
57420         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
57421         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
57422         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
57423         * modules/unicase/u8-tolower-tests (Files): Likewise.
57424         * modules/unicase/u8-totitle-tests (Files): Likewise.
57425         * modules/unicase/u8-toupper-tests (Files): Likewise.
57426         * modules/unicase/u16-casecmp-tests (Files): Likewise.
57427         * modules/unicase/u16-casecoll-tests (Files): Likewise.
57428         * modules/unicase/u16-casefold-tests (Files): Likewise.
57429         * modules/unicase/u16-is-cased-tests (Files): Likewise.
57430         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
57431         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
57432         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
57433         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
57434         * modules/unicase/u16-tolower-tests (Files): Likewise.
57435         * modules/unicase/u16-totitle-tests (Files): Likewise.
57436         * modules/unicase/u16-toupper-tests (Files): Likewise.
57437         * modules/unicase/u32-casecmp-tests (Files): Likewise.
57438         * modules/unicase/u32-casecoll-tests (Files): Likewise.
57439         * modules/unicase/u32-casefold-tests (Files): Likewise.
57440         * modules/unicase/u32-is-cased-tests (Files): Likewise.
57441         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
57442         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
57443         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
57444         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
57445         * modules/unicase/u32-tolower-tests (Files): Likewise.
57446         * modules/unicase/u32-totitle-tests (Files): Likewise.
57447         * modules/unicase/u32-toupper-tests (Files): Likewise.
57448         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
57449         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
57450         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
57451         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
57452         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
57453         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
57454         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
57455         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
57456         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
57457         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
57458         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
57459         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
57460         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
57461         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
57462         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
57463         * modules/unictype/bidicategory-name-tests (Files): Likewise.
57464         * modules/unictype/bidicategory-of-tests (Files): Likewise.
57465         * modules/unictype/bidicategory-test-tests (Files): Likewise.
57466         * modules/unictype/block-list-tests (Files): Likewise.
57467         * modules/unictype/block-of-tests (Files): Likewise.
57468         * modules/unictype/block-test-tests (Files): Likewise.
57469         * modules/unictype/category-C-tests (Files): Likewise.
57470         * modules/unictype/category-Cc-tests (Files): Likewise.
57471         * modules/unictype/category-Cf-tests (Files): Likewise.
57472         * modules/unictype/category-Cn-tests (Files): Likewise.
57473         * modules/unictype/category-Co-tests (Files): Likewise.
57474         * modules/unictype/category-Cs-tests (Files): Likewise.
57475         * modules/unictype/category-L-tests (Files): Likewise.
57476         * modules/unictype/category-Ll-tests (Files): Likewise.
57477         * modules/unictype/category-Lm-tests (Files): Likewise.
57478         * modules/unictype/category-Lo-tests (Files): Likewise.
57479         * modules/unictype/category-Lt-tests (Files): Likewise.
57480         * modules/unictype/category-Lu-tests (Files): Likewise.
57481         * modules/unictype/category-M-tests (Files): Likewise.
57482         * modules/unictype/category-Mc-tests (Files): Likewise.
57483         * modules/unictype/category-Me-tests (Files): Likewise.
57484         * modules/unictype/category-Mn-tests (Files): Likewise.
57485         * modules/unictype/category-N-tests (Files): Likewise.
57486         * modules/unictype/category-Nd-tests (Files): Likewise.
57487         * modules/unictype/category-Nl-tests (Files): Likewise.
57488         * modules/unictype/category-No-tests (Files): Likewise.
57489         * modules/unictype/category-P-tests (Files): Likewise.
57490         * modules/unictype/category-Pc-tests (Files): Likewise.
57491         * modules/unictype/category-Pd-tests (Files): Likewise.
57492         * modules/unictype/category-Pe-tests (Files): Likewise.
57493         * modules/unictype/category-Pf-tests (Files): Likewise.
57494         * modules/unictype/category-Pi-tests (Files): Likewise.
57495         * modules/unictype/category-Po-tests (Files): Likewise.
57496         * modules/unictype/category-Ps-tests (Files): Likewise.
57497         * modules/unictype/category-S-tests (Files): Likewise.
57498         * modules/unictype/category-Sc-tests (Files): Likewise.
57499         * modules/unictype/category-Sk-tests (Files): Likewise.
57500         * modules/unictype/category-Sm-tests (Files): Likewise.
57501         * modules/unictype/category-So-tests (Files): Likewise.
57502         * modules/unictype/category-Z-tests (Files): Likewise.
57503         * modules/unictype/category-Zl-tests (Files): Likewise.
57504         * modules/unictype/category-Zp-tests (Files): Likewise.
57505         * modules/unictype/category-Zs-tests (Files): Likewise.
57506         * modules/unictype/category-and-not-tests (Files): Likewise.
57507         * modules/unictype/category-and-tests (Files): Likewise.
57508         * modules/unictype/category-byname-tests (Files): Likewise.
57509         * modules/unictype/category-name-tests (Files): Likewise.
57510         * modules/unictype/category-none-tests (Files): Likewise.
57511         * modules/unictype/category-of-tests (Files): Likewise.
57512         * modules/unictype/category-or-tests (Files): Likewise.
57513         * modules/unictype/category-test-withtable-tests (Files): Likewise.
57514         * modules/unictype/combining-class-tests (Files): Likewise.
57515         * modules/unictype/ctype-alnum-tests (Files): Likewise.
57516         * modules/unictype/ctype-alpha-tests (Files): Likewise.
57517         * modules/unictype/ctype-blank-tests (Files): Likewise.
57518         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
57519         * modules/unictype/ctype-digit-tests (Files): Likewise.
57520         * modules/unictype/ctype-graph-tests (Files): Likewise.
57521         * modules/unictype/ctype-lower-tests (Files): Likewise.
57522         * modules/unictype/ctype-print-tests (Files): Likewise.
57523         * modules/unictype/ctype-punct-tests (Files): Likewise.
57524         * modules/unictype/ctype-space-tests (Files): Likewise.
57525         * modules/unictype/ctype-upper-tests (Files): Likewise.
57526         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
57527         * modules/unictype/decimal-digit-tests (Files): Likewise.
57528         * modules/unictype/digit-tests (Files): Likewise.
57529         * modules/unictype/mirror-tests (Files): Likewise.
57530         * modules/unictype/numeric-tests (Files): Likewise.
57531         * modules/unictype/property-alphabetic-tests (Files): Likewise.
57532         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
57533         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
57534         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
57535         Likewise.
57536         * modules/unictype/property-bidi-block-separator-tests (Files):
57537         Likewise.
57538         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
57539         Likewise.
57540         * modules/unictype/property-bidi-common-separator-tests (Files):
57541         Likewise.
57542         * modules/unictype/property-bidi-control-tests (Files): Likewise.
57543         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
57544         Likewise.
57545         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
57546         Likewise.
57547         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
57548         Likewise.
57549         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
57550         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
57551         Likewise.
57552         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
57553         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
57554         Likewise.
57555         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
57556         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
57557         * modules/unictype/property-bidi-segment-separator-tests (Files):
57558         Likewise.
57559         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
57560         * modules/unictype/property-byname-tests (Files): Likewise.
57561         * modules/unictype/property-combining-tests (Files): Likewise.
57562         * modules/unictype/property-composite-tests (Files): Likewise.
57563         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
57564         * modules/unictype/property-dash-tests (Files): Likewise.
57565         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
57566         * modules/unictype/property-default-ignorable-code-point-tests (Files):
57567         Likewise.
57568         * modules/unictype/property-deprecated-tests (Files): Likewise.
57569         * modules/unictype/property-diacritic-tests (Files): Likewise.
57570         * modules/unictype/property-extender-tests (Files): Likewise.
57571         * modules/unictype/property-format-control-tests (Files): Likewise.
57572         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
57573         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
57574         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
57575         * modules/unictype/property-hex-digit-tests (Files): Likewise.
57576         * modules/unictype/property-hyphen-tests (Files): Likewise.
57577         * modules/unictype/property-id-continue-tests (Files): Likewise.
57578         * modules/unictype/property-id-start-tests (Files): Likewise.
57579         * modules/unictype/property-ideographic-tests (Files): Likewise.
57580         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
57581         * modules/unictype/property-ids-trinary-operator-tests (Files):
57582         Likewise.
57583         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
57584         * modules/unictype/property-iso-control-tests (Files): Likewise.
57585         * modules/unictype/property-join-control-tests (Files): Likewise.
57586         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
57587         * modules/unictype/property-line-separator-tests (Files): Likewise.
57588         * modules/unictype/property-logical-order-exception-tests (Files):
57589         Likewise.
57590         * modules/unictype/property-lowercase-tests (Files): Likewise.
57591         * modules/unictype/property-math-tests (Files): Likewise.
57592         * modules/unictype/property-non-break-tests (Files): Likewise.
57593         * modules/unictype/property-not-a-character-tests (Files): Likewise.
57594         * modules/unictype/property-numeric-tests (Files): Likewise.
57595         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
57596         * modules/unictype/property-other-default-ignorable-code-point-tests
57597         (Files): Likewise.
57598         * modules/unictype/property-other-grapheme-extend-tests (Files):
57599         Likewise.
57600         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
57601         * modules/unictype/property-other-id-start-tests (Files): Likewise.
57602         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
57603         * modules/unictype/property-other-math-tests (Files): Likewise.
57604         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
57605         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
57606         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
57607         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
57608         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
57609         * modules/unictype/property-private-use-tests (Files): Likewise.
57610         * modules/unictype/property-punctuation-tests (Files): Likewise.
57611         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
57612         * modules/unictype/property-radical-tests (Files): Likewise.
57613         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
57614         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
57615         * modules/unictype/property-space-tests (Files): Likewise.
57616         * modules/unictype/property-terminal-punctuation-tests (Files):
57617         Likewise.
57618         * modules/unictype/property-test-tests (Files): Likewise.
57619         * modules/unictype/property-titlecase-tests (Files): Likewise.
57620         * modules/unictype/property-unassigned-code-value-tests (Files):
57621         Likewise.
57622         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
57623         * modules/unictype/property-uppercase-tests (Files): Likewise.
57624         * modules/unictype/property-variation-selector-tests (Files): Likewise.
57625         * modules/unictype/property-white-space-tests (Files): Likewise.
57626         * modules/unictype/property-xid-continue-tests (Files): Likewise.
57627         * modules/unictype/property-xid-start-tests (Files): Likewise.
57628         * modules/unictype/property-zero-width-tests (Files): Likewise.
57629         * modules/unictype/scripts-tests (Files): Likewise.
57630         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
57631         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
57632         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
57633         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
57634         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
57635         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
57636         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
57637         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
57638         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
57639         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
57640         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
57641         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
57642         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
57643         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
57644         * modules/uninorm/composition-tests (Files): Likewise.
57645         * modules/uninorm/decomposing-form-tests (Files): Likewise.
57646         * modules/uninorm/decomposition-tests (Files): Likewise.
57647         * modules/uninorm/filter-tests (Files): Likewise.
57648         * modules/uninorm/nfc-tests (Files): Likewise.
57649         * modules/uninorm/nfd-tests (Files): Likewise.
57650         * modules/uninorm/nfkc-tests (Files): Likewise.
57651         * modules/uninorm/nfkd-tests (Files): Likewise.
57652         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
57653         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
57654         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
57655         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
57656         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
57657         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
57658         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
57659         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
57660         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
57661         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
57662         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
57663         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
57664         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
57665         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
57666         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
57667         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
57668         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
57669         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
57670         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
57671         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
57672         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
57673         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
57674         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
57675         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
57676         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
57677         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
57678         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
57679         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
57680         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
57681         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
57682         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
57683         * modules/uniwidth/u8-width-tests (Files): Likewise.
57684         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
57685         * modules/uniwidth/u16-width-tests (Files): Likewise.
57686         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
57687         * modules/uniwidth/u32-width-tests (Files): Likewise.
57688         * modules/uniwidth/width-tests (Files): Likewise.
57689         * modules/unlink-tests (Files): Likewise.
57690         * modules/unsetenv-tests (Files): Likewise.
57691         * modules/usleep-tests (Files): Likewise.
57692         * modules/utimens-tests (Files): Likewise.
57693         * modules/utimensat-tests (Files): Likewise.
57694         * modules/vasnprintf-posix-tests (Files): Likewise.
57695         * modules/vasnprintf-tests (Files): Likewise.
57696         * modules/vasprintf-posix-tests (Files): Likewise.
57697         * modules/vasprintf-tests (Files): Likewise.
57698         * modules/vdprintf-posix-tests (Files): Likewise.
57699         * modules/vfprintf-posix-tests (Files): Likewise.
57700         * modules/vprintf-posix-tests (Files): Likewise.
57701         * modules/vsnprintf-posix-tests (Files): Likewise.
57702         * modules/vsnprintf-tests (Files): Likewise.
57703         * modules/vsprintf-posix-tests (Files): Likewise.
57704         * modules/wcrtomb-tests (Files): Likewise.
57705         * modules/wcsnrtombs-tests (Files): Likewise.
57706         * modules/wcsrtombs-tests (Files): Likewise.
57707         * modules/wctype-tests (Files): Likewise.
57708         * modules/wcwidth-tests (Files): Likewise.
57709         * modules/xmemdup0-tests (Files): Likewise.
57710         * modules/xprintf-posix-tests (Files): Likewise.
57711         * modules/xvasprintf-tests (Files): Likewise.
57713 2009-12-24  Eric Blake  <ebb9@byu.net>
57715         test-nanosleep: fix typo
57716         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
57717         patch.
57718         Reported by Bruno Haible.
57720 2009-12-24  Bruno Haible  <bruno@clisp.org>
57722         Reduce namespace pollution on glibc systems.
57723         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
57724         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
57725         systems.
57726         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
57727         <getopt.h> on glibc systems.
57728         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
57729         systems.
57730         * lib/fcntl.c: Include <unistd.h> here instead.
57732 2009-12-24  Bruno Haible  <bruno@clisp.org>
57734         * lib/stdlib.in.h (includes): Fix typo in today's commit.
57736 2009-12-24  Eric Blake  <ebb9@byu.net>
57738         tests: add signature checks
57739         * tests/signature.h (SIGNATURE_CHECK): New file.
57740         * modules/atexit-tests (Files): Use it.
57741         * modules/btowc-tests (Files): Likewise.
57742         * modules/canonicalize-lgpl-tests (Files): Likewise.
57743         * modules/ceilf-tests (Files): Likewise.
57744         * modules/ceill-tests (Files): Likewise.
57745         * modules/chown-tests (Files): Likewise.
57746         * modules/dprintf-posix-tests (Files): Likewise.
57747         * modules/dup2-tests (Files): Likewise.
57748         * modules/dup3-tests (Files): Likewise.
57749         * modules/duplocale-tests (Files): Likewise.
57750         * modules/fchdir-tests (Files): Likewise.
57751         * modules/fcntl-tests (Files): Likewise.
57752         * modules/fdopendir-tests (Files): Likewise.
57753         * modules/fflush-tests (Files): Likewise.
57754         * modules/flock-tests (Files): Likewise.
57755         * modules/floorf-tests (Files): Likewise.
57756         * modules/floorl-tests (Files): Likewise.
57757         * modules/fnmatch-tests (Files): Likewise.
57758         * modules/fopen-tests (Files): Likewise.
57759         * modules/fprintf-posix-tests (Files): Likewise.
57760         * modules/freopen-tests (Files): Likewise.
57761         * modules/frexp-nolibm-tests (Files): Likewise.
57762         * modules/frexp-tests (Files): Likewise.
57763         * modules/frexpl-nolibm-tests (Files): Likewise.
57764         * modules/frexpl-tests (Files): Likewise.
57765         * modules/fseek-tests (Files): Likewise.
57766         * modules/fseeko-tests (Files): Likewise.
57767         * modules/fsync-tests (Files): Likewise.
57768         * modules/ftell-tests (Files): Likewise.
57769         * modules/ftello-tests (Files): Likewise.
57770         * modules/futimens-tests (Files): Likewise.
57771         * modules/getaddrinfo-tests (Files): Likewise.
57772         * modules/getcwd-tests (Files): Likewise.
57773         * modules/getdelim-tests (Files): Likewise.
57774         * modules/getdtablesize-tests (Files): Likewise.
57775         * modules/getgroups-tests (Files): Likewise.
57776         * modules/gethostname-tests (Files): Likewise.
57777         * modules/getline-tests (Files): Likewise.
57778         * modules/getopt-posix-tests (Files): Likewise.
57779         * modules/gettimeofday-tests (Files): Likewise.
57780         * modules/glob-tests (Files): Likewise.
57781         * modules/iconv-tests (Files): Likewise.
57782         * modules/inet_ntop-tests (Files): Likewise.
57783         * modules/inet_pton-tests (Files): Likewise.
57784         * modules/isblank-tests (Files): Likewise.
57785         * modules/lchown-tests (Files): Likewise.
57786         * modules/ldexpl-tests (Files): Likewise.
57787         * modules/link-tests (Files): Likewise.
57788         * modules/linkat-tests (Files): Likewise.
57789         * modules/lseek-tests (Files): Likewise.
57790         * modules/lstat-tests (Files): Likewise.
57791         * modules/mbrtowc-tests (Files): Likewise.
57792         * modules/mbsinit-tests (Files): Likewise.
57793         * modules/mbsnrtowcs-tests (Files): Likewise.
57794         * modules/mbsrtowcs-tests (Files): Likewise.
57795         * modules/memchr-tests (Files): Likewise.
57796         * modules/memcmp-tests (Files): Likewise.
57797         * modules/memmem-tests (Files): Likewise.
57798         * modules/memrchr-tests (Files): Likewise.
57799         * modules/mkdir-tests (Files): Likewise.
57800         * modules/mkfifo-tests (Files): Likewise.
57801         * modules/mkfifoat-tests (Files): Likewise.
57802         * modules/mknod-tests (Files): Likewise.
57803         * modules/nanosleep-tests (Files): Likewise.
57804         * modules/nl_langinfo-tests (Files): Likewise.
57805         * modules/obstack-printf-tests (Files): Likewise.
57806         * modules/open-tests (Files): Likewise.
57807         * modules/openat-tests (Files): Likewise.
57808         * modules/perror-tests (Files): Likewise.
57809         * modules/pipe2-tests (Files): Likewise.
57810         * modules/poll-tests (Files): Likewise.
57811         * modules/popen-tests (Files): Likewise.
57812         * modules/posix_spawn-tests (Files): Likewise.
57813         * modules/posix_spawnp-tests (Files): Likewise.
57814         * modules/pread-tests (Files): Likewise.
57815         * modules/printf-posix-tests (Files): Likewise.
57816         * modules/pty-tests (Files): Likewise.
57817         * modules/random_r-tests (Files): Likewise.
57818         * modules/rawmemchr-tests (Files): Likewise.
57819         * modules/readlink-tests (Files): Likewise.
57820         * modules/remove-tests (Files): Likewise.
57821         * modules/rename-tests (Files): Likewise.
57822         * modules/renameat-tests (Files): Likewise.
57823         * modules/rmdir-tests (Files): Likewise.
57824         * modules/round-tests (Files): Likewise.
57825         * modules/roundf-tests (Files): Likewise.
57826         * modules/roundl-tests (Files): Likewise.
57827         * modules/select-tests (Files): Likewise.
57828         * modules/setenv-tests (Files): Likewise.
57829         * modules/sigaction-tests (Files): Likewise.
57830         * modules/sleep-tests (Files): Likewise.
57831         * modules/snprintf-posix-tests (Files): Likewise.
57832         * modules/snprintf-tests (Files): Likewise.
57833         * modules/sprintf-posix-tests (Files): Likewise.
57834         * modules/stat-tests (Files): Likewise.
57835         * modules/strcasestr-tests (Files): Likewise.
57836         * modules/strchrnul-tests (Files): Likewise.
57837         * modules/strerror-tests (Files): Likewise.
57838         * modules/strsignal-tests (Files): Likewise.
57839         * modules/strstr-tests (Files): Likewise.
57840         * modules/strtod-tests (Files): Likewise.
57841         * modules/strverscmp-tests (Files): Likewise.
57842         * modules/symlink-tests (Files): Likewise.
57843         * modules/symlinkat-tests (Files): Likewise.
57844         * modules/times-tests (Files): Likewise.
57845         * modules/trunc-tests (Files): Likewise.
57846         * modules/truncf-tests (Files): Likewise.
57847         * modules/truncl-tests (Files): Likewise.
57848         * modules/tsearch-tests (Files): Likewise.
57849         * modules/uname-tests (Files): Likewise.
57850         * modules/unlink-tests (Files): Likewise.
57851         * modules/unsetenv-tests (Files): Likewise.
57852         * modules/usleep-tests (Files): Likewise.
57853         * modules/utimensat-tests (Files): Likewise.
57854         * modules/vasprintf-tests (Files): Likewise.
57855         * modules/vdprintf-posix-tests (Files): Likewise.
57856         * modules/vfprintf-posix-tests (Files): Likewise.
57857         * modules/vprintf-posix-tests (Files): Likewise.
57858         * modules/vsnprintf-posix-tests (Files): Likewise.
57859         * modules/vsnprintf-tests (Files): Likewise.
57860         * modules/vsprintf-posix-tests (Files): Likewise.
57861         * modules/wcrtomb-tests (Files): Likewise.
57862         * modules/wcsnrtombs-tests (Files): Likewise.
57863         * modules/wcsrtombs-tests (Files): Likewise.
57864         * modules/wcwidth-tests (Files): Likewise.
57865         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
57866         * tests/test-isinf.c (isinf): Likewise.
57867         * tests/test-isnan.c (isnan): Likewise.
57868         * tests/test-signbit.c (signbit): Likewise.
57869         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
57870         declaration, either as macro or with correct signature.
57871         (select): Ensure function under test is declared with correct
57872         signature in correct header.
57873         * tests/test-atexit.c (atexit): Likewise.
57874         * tests/test-btowc.c (btowc): Likewise.
57875         * tests/test-canonicalize-lgpl.c (realpath)
57876         (canonicalize_file_name): Likewise.
57877         * tests/test-ceilf1.c (ceilf): Likewise.
57878         * tests/test-ceill.c (ceill): Likewise.
57879         * tests/test-chown.c (chown): Likewise.
57880         * tests/test-dprintf-posix.c (dprintf): Likewise.
57881         * tests/test-dup2.c (dup2): Likewise.
57882         * tests/test-dup3.c (dup3): Likewise.
57883         * tests/test-duplocale.c (duplocale): Likewise.
57884         * tests/test-fchdir.c (fchdir): Likewise.
57885         * tests/test-fchownat.c (fchownat): Likewise.
57886         * tests/test-fcntl.c (fcntl): Likewise.
57887         * tests/test-fdopendir.c (fdopendir): Likewise.
57888         * tests/test-fflush.c (fflush): Likewise.
57889         * tests/test-flock.c (flock): Likewise.
57890         * tests/test-floorf1.c (floorf): Likewise.
57891         * tests/test-floorl.c (floorl): Likewise.
57892         * tests/test-fnmatch.c (fnmatch): Likewise.
57893         * tests/test-fopen.c (fopen): Likewise.
57894         * tests/test-fprintf-posix.c (fprintf): Likewise.
57895         * tests/test-freopen.c (freopen): Likewise.
57896         * tests/test-frexp.c (frexp): Likewise.
57897         * tests/test-frexpl.c (frexpl): Likewise.
57898         * tests/test-fseek.c (fseek): Likewise.
57899         * tests/test-fseeko.c (fseeko): Likewise.
57900         * tests/test-fstatat.c (fstatat): Likewise.
57901         * tests/test-fsync.c (fsync): Likewise.
57902         * tests/test-ftell.c (ftell): Likewise.
57903         * tests/test-ftello.c (ftello): Likewise.
57904         * tests/test-futimens.c (futimens): Likewise.
57905         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
57906         (gai_strerror): Likewise.
57907         * tests/test-getcwd.c (getcwd): Likewise.
57908         * tests/test-getdelim.c (getdelim): Likewise.
57909         * tests/test-getdtablesize.c (getdtablesize): Likewise.
57910         * tests/test-getgroups.c (getgroups): Likewise.
57911         * tests/test-gethostname.c (gethostname): Likewise.
57912         * tests/test-getline.c (getline): Likewise.
57913         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
57914         Likewise.
57915         * tests/test-gettimeofday.c (gettimeofday): Likewise.
57916         * tests/test-glob.c (glob, globfree): Likewise.
57917         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
57918         * tests/test-inet_ntop.c (inet_ntop): Likewise.
57919         * tests/test-inet_pton.c (inet_pton): Likewise.
57920         * tests/test-isblank.c (isblank): Likewise.
57921         * tests/test-lchown.c (lchown): Likewise.
57922         * tests/test-ldexpl.c (ldexpl): Likewise.
57923         * tests/test-link.c (link): Likewise.
57924         * tests/test-linkat.c (linkat): Likewise.
57925         * tests/test-lseek.c (lseek): Likewise.
57926         * tests/test-lstat.c (lstat): Likewise.
57927         * tests/test-mbrtowc.c (mbrtowc): Likewise.
57928         * tests/test-mbsinit.c (mbsinit): Likewise.
57929         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
57930         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
57931         * tests/test-memchr.c (memchr): Likewise.
57932         * tests/test-memcmp.c (memcmp): Likewise.
57933         * tests/test-memmem.c (memmem): Likewise.
57934         * tests/test-memrchr.c (memrchr): Likewise.
57935         * tests/test-mkdir.c (mkdir): Likewise.
57936         * tests/test-mkdirat.c (mkdirat): Likewise.
57937         * tests/test-mkfifo.c (mkfifo): Likewise.
57938         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
57939         * tests/test-mknod.c (mknod): Likewise.
57940         * tests/test-nanosleep.c (nanosleep): Likewise.
57941         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
57942         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
57943         Likewise.
57944         * tests/test-open.c (open): Likewise.
57945         * tests/test-openat.c (openat): Likewise.
57946         * tests/test-perror.c (perror): Likewise.
57947         * tests/test-pipe2.c (pipe2): Likewise.
57948         * tests/test-poll.c (poll): Likewise.
57949         * tests/test-popen.c (popen, pclose): Likewise.
57950         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
57951         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
57952         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
57953         (posix_spawn_file_actions_destroy)
57954         (posix_spawn_file_actions_addclose)
57955         (posix_spawn_file_actions_addopen)
57956         (posix_spawn_file_actions_adddup2): Likewise.
57957         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
57958         * tests/test-pread.c (pread): Likewise.
57959         * tests/test-printf-posix.c (printf): Likewise.
57960         * tests/test-pty.c (openpty, forkpty): Likewise.
57961         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
57962         (random_r): Likewise.
57963         * tests/test-rawmemchr.c (rawmemchr): Likewise.
57964         * tests/test-readlink.c (readlink): Likewise.
57965         * tests/test-remove.c (remove): Likewise.
57966         * tests/test-rename.c (rename): Likewise.
57967         * tests/test-renameat.c (renameat): Likewise.
57968         * tests/test-rmdir.c (rmdir): Likewise.
57969         * tests/test-round1.c (round): Likewise.
57970         * tests/test-roundf1.c (roundf): Likewise.
57971         * tests/test-roundl.c (roundl): Likewise.
57972         * tests/test-setenv.c (setenv): Likewise.
57973         * tests/test-sigaction.c (sigaction): Likewise.
57974         * tests/test-sleep.c (sleep): Likewise.
57975         * tests/test-snprintf.c (snprintf): Likewise.
57976         * tests/test-sprintf-posix.c (sprintf): Likewise.
57977         * tests/test-stat.c (stat): Likewise.
57978         * tests/test-stpncpy.c (stpncpy): Likewise.
57979         * tests/test-strcasestr.c (strcasestr): Likewise.
57980         * tests/test-strchrnul.c (strchrnul): Likewise.
57981         * tests/test-strerror.c (strerror): Likewise.
57982         * tests/test-strsignal.c (strsignal): Likewise.
57983         * tests/test-strstr.c (strstr): Likewise.
57984         * tests/test-strtod.c (strtod): Likewise.
57985         * tests/test-strverscmp.c (strverscmp): Likewise.
57986         * tests/test-symlink.c (symlink): Likewise.
57987         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
57988         * tests/test-times.c (times): Likewise.
57989         * tests/test-trunc1.c (trunc): Likewise.
57990         * tests/test-truncf1.c (truncf): Likewise.
57991         * tests/test-truncl.c (truncl): Likewise.
57992         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
57993         Likewise.
57994         * tests/test-uname.c (uname): Likewise.
57995         * tests/test-unlink.c (unlink): Likewise.
57996         * tests/test-unlinkat.c (unlinkat): Likewise.
57997         * tests/test-unsetenv.c (unsetenv): Likewise.
57998         * tests/test-usleep.c (usleep): Likewise.
57999         * tests/test-utimensat.c (utimensat): Likewise.
58000         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
58001         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
58002         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
58003         * tests/test-vprintf-posix.c (vprintf): Likewise.
58004         * tests/test-vsnprintf.c (vsnprintf): Likewise.
58005         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
58006         * tests/test-wcrtomb.c (wcrtomb): Likewise.
58007         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
58008         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
58009         * tests/test-wcwidth.c (wcwidth): Likewise.
58011         build: pull in conditional headers during GNULIB_POSIXCHECK
58012         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
58013         definitions from any conditionally-included headers.
58014         * lib/stdlib.in.h (includes): Likewise.
58015         * lib/unistd.in.h (includes): Likewise.
58017 2009-12-24  Bruno Haible  <bruno@clisp.org>
58019         * tests/test-argv-iter.c: Include header file being tested immediately
58020         after config.h.
58021         * tests/test-base64.c: Likewise.
58022         * tests/test-flock.c: Likewise.
58023         * tests/test-fsync.c: Likewise.
58024         * tests/test-getdate.c: Likewise.
58025         * tests/test-getndelim2.c: Likewise.
58026         * tests/test-isfinite.c: Likewise.
58027         * tests/test-isinf.c: Likewise.
58028         * tests/test-strerror.c: Likewise.
58029         * tests/test-strsignal.c: Likewise.
58031 2009-12-23  Eric Blake  <ebb9@byu.net>
58033         unistd: work around cygwin bug
58034         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
58035         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
58036         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
58038 2009-12-23  Bruno Haible  <bruno@clisp.org>
58040         localename: More tests.
58041         * tests/test-localename.c (SIZEOF): New macro.
58042         (categories): New variable.
58043         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
58044         test_locale_name_default): Add test w.r.t. thread locale.
58045         (test_locale_name_thread): New function.
58046         (main): Invoke it.
58048         localename: Make aware of thread locale.
58049         * lib/localename.h (gl_locale_name_thread): New declaration.
58050         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
58051         behaviour with respect to thread locale.
58052         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
58053         <langinfo.h>, glthread/lock.h.
58054         (SIZE_BITS): New macro.
58055         (string_hash): New function.
58056         (struct hash_node): New type.
58057         (HASH_TABLE_SIZE): New macro.
58058         (struniq_hash_table, struniq_lock): New variables.
58059         (struniq): New function.
58060         (gl_locale_name_thread): New function.
58061         (gl_locale_name): Invoke it.
58062         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
58063         * modules/localename (Depends-on): Add lock.
58064         Reported by Mike Gran <spk121@yahoo.com>.
58066 2009-12-23  Eric Blake  <ebb9@byu.net>
58068         va-args: new module
58069         * modules/va-args: New file.
58070         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
58071         * MODULES.html.sh (Core language properties): Mention it.
58073         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
58074         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
58075         named alias for __attribute__((__unused__)).
58076         * lib/chown.c: Update client.
58077         * lib/fchmodat.c: Likewise.
58078         * lib/fts.c: Likewise.
58079         * lib/getdate.y: Likewise.
58080         * lib/getgroups.c: Likewise.
58081         * lib/getopt.c: Likewise.
58082         * lib/getugroups.c: Likewise.
58083         * lib/mkdir.c: Likewise.
58084         * lib/mkfifo.c: Likewise.
58085         * lib/mkfifoat.c: Likewise.
58086         * lib/mknod.c: Likewise.
58087         * lib/mknodat.c: Likewise.
58088         * lib/readlink.c: Likewise.
58089         * lib/se-context.in.h: Likewise.
58090         * lib/se-selinux.in.h: Likewise.
58091         * lib/sockets.c: Likewise.
58092         * lib/symlink.c: Likewise.
58093         * lib/symlinkat.c: Likewise.
58094         * lib/unicodeio.c: Likewise.
58095         * lib/unistr.h: Likewise.
58096         * tests/test-areadlink.c: Likewise.
58097         * tests/test-areadlinkat.c: Likewise.
58098         * tests/test-filenamecat.c: Likewise.
58099         * tests/test-fseeko.c: Likewise.
58100         * tests/test-ftello.c: Likewise.
58101         * tests/test-getdate.c: Likewise.
58102         * tests/test-getgroups.c: Likewise.
58103         * tests/test-gethostname.c: Likewise.
58104         * tests/test-quotearg.c: Likewise.
58105         * tests/test-version-etc.c: Likewise.
58106         * tests/test-xalloc-die.c: Likewise.
58107         * tests/test-xfprintf-posix.c: Likewise.
58108         * tests/test-xprintf-posix.c: Likewise.
58109         * tests/test-xvasprintf.c: Likewise.
58111         tests: avoid compiler warnings
58112         * tests/test-fcntl.c (main): Delete unused parameters.
58113         * tests/test-freopen-safer.c (main): Likewise.
58114         * tests/test-xalloc-die.c (main): Mark unused parameters.
58115         * tests/test-fseeko.c (main): Likewise.
58116         * tests/test-ftello.c (main): Likewise.
58117         * tests/test-nanosleep.c (main): Avoid declaration warning.
58118         * tests/test-sleep.c (main): Likewise.
58119         * tests/test-unsetenv.c (main): Silence warning about string
58120         literal.
58121         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
58123 2009-12-23  Bruno Haible  <bruno@clisp.org>
58125         * tests/test-localename.c (test_locale_name): New function, extracted
58126         from main. Also test mixed situations.
58127         (test_locale_name_posix, test_locale_name_environ,
58128         test_locale_name_default): New functions.
58129         (main): Invoke them all.
58130         * modules/localename-tests (configure.ac): Test for newlocale.
58132 2009-12-23  Bruno Haible  <bruno@clisp.org>
58134         unistd: Ensure getcwd gets declared before being overridden.
58135         * lib/unistd.in.h: Conditionally include <io.h>.
58137 2009-12-22  Bruno Haible  <bruno@clisp.org>
58139         wchar: Diagnose broken combination of glibc and gcc versions and flags.
58140         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
58141         (gl_WCHAR_H): Invoke it.
58142         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
58143         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
58144         Reported by Karl Berry <karl@freefriends.org>.
58146 2009-12-22  Eric Blake  <ebb9@byu.net>
58148         math, unistd: avoid redundant includes
58149         * lib/math.in.h (isnan): No need to re-include <math.h>.
58150         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
58152         getsubopt: work around cygwin bug
58153         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
58154         avoid conflicting with system getsubopt.
58155         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
58156         bug.
58158         getopt: synchronize from glibc
58159         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
58160         parameter order.  Adjust all callers.
58161         (_getopt_internal_r, main): Adjust quoting in error messages.
58162         Drop considerations for outdated POSIX 1003.2 error message.
58163         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
58164         callers.
58165         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
58167         test-getopt: test stderr behavior
58168         * modules/getopt-posix-tests (Depends-on): Add dup2.
58169         * tests/test-getopt.c (ASSERT): Avoid stderr.
58170         (main): Move stderr to a temporary file.
58171         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
58172         Instead, add parameter to inform caller if output occurred.
58173         (test_getopt): Adjust all existing tests to expect silence, and
58174         add new tests of leading ":".
58175         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
58176         glibc shortcomings with leading "-:" or "+:" in optstring.
58177         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
58178         Likewise.
58179         * doc/posix-functions/getopt.texi (getopt): Likewise.
58181         test-getopt: enhance test
58182         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
58183         supports optind=0.
58184         * tests/test-getopt.c (OPTIND_MIN): Move...
58185         * tests/test-getopt.h (OPTIND_MIN): ...here.
58186         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
58187         Require that optind=0 works, since modern BSD supports it in
58188         addition to optreset, and since coreutils expects it.
58189         (test_getopt_long_only): New test.
58190         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
58191         glibc shortcomings with 'W;', and enforcement of optind=0.
58192         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
58193         Likewise.
58195 2009-12-21  Bruno Haible  <bruno@clisp.org>
58197         localename: Improvements for MacOS X and Cygwin.
58198         * lib/localename.h (gl_locale_name_environ): New declaration.
58199         * lib/localename.c (gl_locale_name_environ): New function, extracted from
58200         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
58201         (gl_locale_name_posix): Invoke it.
58202         (gl_locale_name_default): Add comments. Use Windows native API also on
58203         Cygwin.
58205 2009-12-21  Bruno Haible  <bruno@clisp.org>
58207         Update list of Win32 locale ids.
58208         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
58209         (LANG_SAMI): Renamed from LANG_SAAMI.
58210         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
58211         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
58212         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
58213         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
58214         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
58215         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
58216         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
58217         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
58218         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
58219         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
58220         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
58221         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
58222         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
58223         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
58224         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
58225         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
58226         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
58227         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
58228         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
58229         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
58230         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
58231         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
58232         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
58233         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
58234         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
58235         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
58236         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
58237         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
58238         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
58239         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
58240         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
58241         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
58242         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
58243         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
58244         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
58245         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
58246         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
58247         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
58248         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
58249         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
58250         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
58251         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
58252         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
58253         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
58254         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
58255         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
58256         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
58257         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
58258         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
58259         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
58260         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
58261         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
58262         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
58263         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
58264         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
58265         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
58266         Add more languages and countries for Sami, Sorbian. Add more countries
58267         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
58268         for Pashto. Change country for Syriac, Tswana.
58270 2009-12-21  Eric Blake  <ebb9@byu.net>
58272         test-utimens: avoid spurious failure
58273         * tests/test-chown.h (nap): Factor...
58274         * tests/nap.h: ...into new file.
58275         * tests/test-lchown.h (nap): Avoid duplication.
58276         * tests/test-utimens-common.h (nap): Use shared implementation,
58277         necessary on file systems with 1-second resolution.
58278         * modules/chown-tests (Files): Include new file.
58279         * modules/fdutimensat-tests (Files): Likewise.
58280         * modules/futimens-tests (Files): Likewise.
58281         * modules/lchown-tests (Files): Likewise.
58282         * modules/openat-tests (Files): Likewise.
58283         * modules/utimens-tests (Files): Likewise.
58284         * modules/utimensat-tests (Files): Likewise.
58286 2009-12-19  Eric Blake  <ebb9@byu.net>
58288         futimens, utimensat: work around Linux bug
58289         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
58290         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
58291         * lib/utimensat.c (rpl_utimensat): Work around it.
58292         * lib/futimens.c (rpl_futimens): Adjust comment.
58294         utimens: work around Linux ctime bug
58295         * lib/utimens.c (detect_ctime_bug): New helper function.
58296         (update_timespec): Differentiate between workaround needed for
58297         this bug vs. what is needed for systems that lack utimensat.
58298         (fdutimens, lutimens): Work around bug.
58300         utimens: check for ctime update
58301         * tests/test-utimens-common.h (check_ctime): Define.
58302         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
58303         * tests/test-futimens.h (test_futimens): Likewise.
58304         * tests/test-lutimens.h (test_lutimens): Likewise.
58305         * doc/posix-functions/futimens.texi (futimens): Document the bug.
58306         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
58308 2009-12-19  Bruno Haible  <bruno@clisp.org>
58310         dprintf-posix: Check against memory leak fixed on 2009-12-15.
58311         * tests/test-dprintf-posix2.sh: New file.
58312         * tests/test-dprintf-posix2.c: New file.
58313         * modules/dprintf-posix-tests (Files): Add them.
58314         (configure.ac): Check for getrlimit and setrlimit.
58315         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
58317 2009-12-19  Bruno Haible  <bruno@clisp.org>
58319         fprintf-posix: Check against memory leak fixed on 2009-12-15.
58320         * tests/test-fprintf-posix3.sh: New file.
58321         * tests/test-fprintf-posix3.c: New file.
58322         * modules/fprintf-posix-tests (Files): Add them.
58323         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
58325 2009-12-19  Eric Blake  <ebb9@byu.net>
58327         dirfd: fix prototype
58328         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
58329         * lib/dirfd.c (dirfd): Likewise.
58331         canonicalize: reduce memory usage
58332         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
58333         allocation to size.
58334         Reported by Solar Designer <solar@openwall.com>.
58336 2009-12-19  Bruno Haible  <bruno@clisp.org>
58338         New module attribute 'Applicability'.
58339         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
58340         * gnulib-tool: New option --extract-applicability.
58341         (func_usage): Document it.
58342         (sed_extract_prog): Recognize it.
58343         (func_get_applicability): New function.
58344         (func_import): Generalize handling of 'link-warning' module.
58345         * modules/link-warning (Applicability): New section.
58346         * modules/arg-nonnull (Applicability): New section.
58347         Repoted by Simon Josefsson <simon@josefsson.org>.
58349 2009-12-19  Bruno Haible  <bruno@clisp.org>
58351         fflush: tweak
58352         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
58353         * lib/fseeko.c (rpl_fseeko): Likewise.
58355 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
58357         * lib/gl_list.h: Fix typo in comment.
58359 2009-12-16  Eric Blake  <ebb9@byu.net>
58361         fcntl: use to simplify other modules
58362         * modules/cloexec (Depends-on): Add fcntl.
58363         * modules/fchdir (Depends-on): Likewise.
58364         * modules/fd-safer-flag (Depends-on): Likewise.
58365         * modules/unistd-safer (Depends-on): Likewise.
58366         * modules/dup3 (configure.ac): Set module indicator.
58367         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
58368         missing.
58369         * lib/fchdir.c (_gl_register_dup): Fix comment.
58370         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
58371         * lib/dup-safer.c (dup_safer): Likewise.
58372         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
58373         * lib/dup3.c (dup3): Likewise.
58374         * tests/test-fchdir.c (main): Enhance test.
58375         Fixes a dup_cloexec bug reported by Ondřej Vašík.
58377         fcntl: port portions of fcntl to mingw
58378         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
58379         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
58380         replacement for mingw.
58381         * modules/fcntl (Description): Update.
58382         (Depends-on): Add dup2.
58383         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
58384         * modules/fcntl-h (Makefile.am): Substitute it.
58385         * lib/fcntl.in.h (fcntl): Update declaration.
58386         (F_DUPFD, F_GETFD): New macros, when needed.
58387         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
58388         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
58389         * tests/test-fcntl.c (check_flags, main): Enhance test for items
58390         we now guarantee.
58392         fcntl: work around cygwin bug in F_DUPFD
58393         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
58394         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
58395         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
58396         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
58397         * doc/posix-functions/fcntl.texi (fcntl): Document it.
58399         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
58400         * modules/fcntl (Files): List new files.
58401         (configure.ac): Run a test.
58402         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
58403         * lib/fcntl.c (rpl_fcntl): Likewise.
58404         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
58405         (gl_FCNTL_H): Always replace fcntl.h.
58406         * modules/fcntl-h (Makefile.am): Substitute witnesses.
58407         * lib/fcntl.in.h (fcntl): Declare replacement.
58408         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
58409         needed, plus a witness.
58410         * doc/posix-functions/fcntl.texi (fcntl): Document this.
58411         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
58412         * tests/test-fcntl.c: New file.
58413         * modules/fcntl-tests: Likewise.
58415         binary-io: avoid potential compilation warning
58416         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
58417         directives.
58419         fflush: avoid compilation error on NetBSD
58420         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
58421         between off_t and fpos_t, since the latter is sometimes a struct.
58422         * lib/fseeko.c (rpl_fseeko): Likewise.
58423         Reported by Alexander Nasonov <alnsn@yandex.ru>.
58425 2009-12-15  Eric Blake  <ebb9@byu.net>
58427         fcntl-h, stdio, sys_ioctl: fix declarations
58428         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
58429         function must not take arguments.
58430         * lib/sys_ioctl.in.h (ioctl): Likewise.
58431         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
58432         (open): Add a link warning.
58434 2009-12-15  Jim Meyering  <meyering@redhat.com>
58436         areadlink, areadlink-with-size: relax license to LGPLv2+
58437         * modules/areadlink (License): Relax to LGPLv2+.
58438         * modules/areadlink-with-size (License): Likewise.
58440 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
58441             Bruno Haible  <bruno@clisp.org>
58443         *printf: Fix memory leak.
58444         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
58445         * lib/vfprintf.c (vfprintf): Likewise.
58446         * lib/dprintf.c (dprintf): Likewise.
58447         * lib/vdprintf.c (vdprintf): Likewise.
58449 2009-12-14  Eric Blake  <ebb9@byu.net>
58451         accept4: adjust module dependencies
58452         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
58454         utimens: one more try at avoiding compiler warning
58455         * lib/utimens.c (lutimens): Lower scope of result.
58457 2009-12-13  Bruno Haible  <bruno@clisp.org>
58459         Move the malloc checking from module 'list' to new module 'xlist'.
58460         * modules/xlist: New file.
58461         * lib/gl_xlist.h: New file.
58462         * lib/gl_xlist.c: New file.
58463         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
58464         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
58465         gl_list_add_last, gl_list_add_before, gl_list_add_after,
58466         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
58467         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
58468         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
58469         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
58470         gl_sortedlist_nx_add): New declarations.
58471         (struct gl_list_implementation): Rename and change methods accordingly.
58472         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
58473         (gl_list_nx_create): Renamed from gl_list_create.
58474         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
58475         (gl_list_nx_set_at): Renamed from gl_list_set_at.
58476         (gl_list_nx_add_first): Renamed from gl_list_add_first.
58477         (gl_list_nx_add_last): Renamed from gl_list_add_last.
58478         (gl_list_nx_add_before): Renamed from gl_list_add_before.
58479         (gl_list_nx_add_after): Renamed from gl_list_add_after.
58480         (gl_list_nx_add_at): Renamed from gl_list_add_at.
58481         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
58482         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
58483         gl_list_create_empty.
58484         (gl_list_nx_create): Renamed from gl_list_create.
58485         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
58486         (gl_list_nx_set_at): Renamed from gl_list_set_at.
58487         (gl_list_nx_add_first): Renamed from gl_list_add_first.
58488         (gl_list_nx_add_last): Renamed from gl_list_add_last.
58489         (gl_list_nx_add_before): Renamed from gl_list_add_before.
58490         (gl_list_nx_add_after): Renamed from gl_list_add_after.
58491         (gl_list_nx_add_at): Renamed from gl_list_add_at.
58492         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
58493         * lib/gl_array_list.c: Don't include xalloc.h.
58494         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
58495         NULL upon out-of-memory.
58496         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
58497         out-of-memory.
58498         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
58499         Change return type to 'int'.
58500         (gl_array_nx_set_at): Renamed from gl_array_set_at.
58501         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
58502         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
58503         upon out-of-memory.
58504         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
58505         upon out-of-memory.
58506         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
58507         upon out-of-memory.
58508         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
58509         upon out-of-memory.
58510         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
58511         out-of-memory.
58512         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
58513         Update.
58514         (gl_array_list_implementation): Update.
58515         * lib/gl_carray_list.c: Don't include xalloc.h.
58516         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
58517         Return NULL upon out-of-memory.
58518         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
58519         out-of-memory.
58520         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
58521         Change return type to 'int'.
58522         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
58523         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
58524         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
58525         upon out-of-memory.
58526         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
58527         upon out-of-memory.
58528         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
58529         out-of-memory.
58530         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
58531         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
58532         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
58533         Update.
58534         (gl_carray_list_implementation): Update.
58535         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
58536         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
58537         gl_linked_create_empty. Return NULL upon out-of-memory.
58538         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
58539         out-of-memory.
58540         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
58541         Change return type to 'int'. Return -1 upon out-of-memory.
58542         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
58543         out-of-memory.
58544         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
58545         upon out-of-memory.
58546         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
58547         upon out-of-memory.
58548         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
58549         NULL upon out-of-memory.
58550         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
58551         upon out-of-memory.
58552         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
58553         out-of-memory.
58554         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
58555         Update.
58556         * lib/gl_linked_list.c: Don't include xalloc.h.
58557         (gl_linked_list_implementation): Update.
58558         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
58559         (add_to_bucket): Change return type to 'int'.
58560         (gl_linkedhash_list_implementation): Update.
58561         * lib/gl_anytree_list1.h (free_subtree): New function.
58562         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
58563         gl_tree_create_empty. Return NULL upon out-of-memory.
58564         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
58565         Change return type to 'int'. Return -1 upon out-of-memory.
58566         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
58567         out-of-memory.
58568         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
58569         (gl_tree_remove_node): New function, moved here from
58570         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
58571         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
58572         Update.
58573         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
58574         malloc, not xmalloc. Return NULL upon out-of-memory.
58575         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
58576         out-of-memory.
58577         (gl_tree_remove_node_from_tree): New function, extracted from
58578         gl_tree_remove_node.
58579         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
58580         upon out-of-memory.
58581         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
58582         out-of-memory.
58583         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
58584         upon out-of-memory.
58585         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
58586         upon out-of-memory.
58587         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
58588         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
58589         not xmalloc. Return NULL upon out-of-memory.
58590         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
58591         out-of-memory.
58592         (gl_tree_remove_node_from_tree): New function, extracted from
58593         gl_tree_remove_node.
58594         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
58595         upon out-of-memory.
58596         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
58597         out-of-memory.
58598         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
58599         upon out-of-memory.
58600         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
58601         upon out-of-memory.
58602         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
58603         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
58604         gl_anytree_list1.h before gl_anyavltree_list2.h.
58605         (gl_avltree_list_implementation): Update.
58606         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
58607         gl_anytree_list1.h before gl_anyavltree_list2.h.
58608         (gl_rbtree_list_implementation): Update.
58609         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
58610         Change return type to 'int'. Return -1 upon out-of-memory. Use
58611         __builtin_expect.
58612         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
58613         (gl_avltreehash_list_implementation): Update.
58614         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
58615         (gl_rbtreehash_list_implementation): Update.
58616         * modules/array-list (Depends-on): Remove xalloc.
58617         * modules/carray-list (Depends-on): Likewise.
58618         * modules/linked-list (Depends-on): Likewise.
58619         * modules/linkedhash-list (Depends-on): Likewise.
58620         * modules/avltree-list (Depends-on): Likewise.
58621         * modules/rbtree-list (Depends-on): Likewise.
58622         * modules/avltreehash-list (Depends-on): Likewise.
58623         * modules/rbtreehash-list (Depends-on): Likewise.
58625         * modules/xsublist: New file.
58626         * lib/gl_xsublist.h: New file.
58627         * lib/gl_xsublist.c: New file.
58628         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
58629         (gl_sublist_nx_create): New declaration.
58630         * lib/gl_sublist.c: Don't include xalloc.h.
58631         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
58632         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
58633         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
58634         Change return type to 'int'. Return -1 upon out-of-memory.
58635         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
58636         upon out-of-memory.
58637         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
58638         NULL upon out-of-memory.
58639         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
58640         upon out-of-memory.
58641         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
58642         NULL upon out-of-memory.
58643         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
58644         NULL upon out-of-memory.
58645         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
58646         upon out-of-memory.
58647         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
58648         (gl_sublist_list_implementation): Update.
58649         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
58650         upon out-of-memory.
58651         * modules/sublist (Depends-on): Remove xalloc.
58653         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
58654         * tests/test-carray_list.c: Likewise.
58655         * tests/test-linked_list.c: Likewise.
58656         * tests/test-linkedhash_list.c: Likewise.
58657         * tests/test-avltree_list.c: Likewise.
58658         * tests/test-rbtree_list.c: Likewise.
58659         * tests/test-avltreehash_list.c: Likewise.
58660         * tests/test-rbtreehash_list.c: Likewise.
58661         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
58662         * modules/carray-list-tests (Makefile.am): Likewise.
58663         * modules/linked-list-tests (Makefile.am): Likewise.
58664         * modules/linkedhash-list-tests (Makefile.am): Likewise.
58665         * modules/avltree-list-tests (Makefile.am): Likewise.
58666         * modules/rbtree-list-tests (Makefile.am): Likewise.
58667         * modules/avltreehash-list-tests (Makefile.am): Likewise.
58668         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
58670         * NEWS: Mention the changes.
58672         * lib/clean-temp.c: Include gl_xlist.h.
58673         * modules/clean-temp (Depends-on): Add xlist.
58675         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
58676         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
58678         * tests/test-array_oset.c: Include gl_xlist.h.
58679         * modules/array-oset-tests (Depends-on): Add xlist.
58681         Reported by José E. Marchesi <jemarch@gnu.org>.
58683 2009-12-13  Bruno Haible  <bruno@clisp.org>
58685         Move the malloc checking from module 'oset' to new module 'xoset'.
58686         * modules/xoset: New file.
58687         * lib/gl_xoset.h: New file.
58688         * lib/gl_xoset.c: New file.
58689         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
58690         declarations.
58691         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
58692         (struct gl_oset_implementation): Rename and change methods accordingly.
58693         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
58694         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
58695         'int'. Mark as __warn_unused_result__.
58696         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
58697         gl_oset_create_empty.
58698         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
58699         'int'.
58700         * lib/gl_array_oset.c: Don't include xalloc.h.
58701         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
58702         malloc, not xmalloc.
58703         (grow): Change return type to 'int'. Don't call xalloc_die.
58704         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
58705         to 'int'.
58706         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
58707         'int'.
58708         (gl_array_oset_implementation): Update.
58709         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
58710         gl_tree_create_empty.
58711         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
58712         'int'.
58713         * lib/gl_avltree_oset.c: Don't include xalloc.h.
58714         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
58715         xmalloc.
58716         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
58717         not xmalloc.
58718         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
58719         xmalloc.
58720         (gl_avltree_oset_implementation): Update.
58721         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
58722         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
58723         xmalloc.
58724         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
58725         not xmalloc.
58726         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
58727         xmalloc.
58728         (gl_rbtree_oset_implementation): Update.
58729         * modules/array-oset (Depends-on): Remove xalloc.
58730         * modules/avltree-oset (Depends-on): Likewise.
58731         * modules/rbtree-oset (Depends-on): Likewise.
58732         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
58733         * tests/test-avltree_oset.c: Likewise.
58734         * tests/test-rbtree_oset.c: Likewise.
58735         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
58736         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
58737         * modules/rbtree-oset-tests (Makefile.am): Likewise.
58738         * NEWS: Mention the change.
58740 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
58742         maint.mk: allow a project to override release-prep commands
58743         * top/maint.mk (alpha, beta, stable): Move release-preparatory
58744         commands into a new rule.
58745         (release-prep): New rule.
58746         (release-prep-hook): New overridable variable.
58748 2009-12-13  Bruno Haible  <bruno@clisp.org>
58750         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
58752 2009-12-13  Jim Meyering  <meyering@redhat.com>
58754         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
58755         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
58757 2009-12-12  Bruno Haible  <bruno@clisp.org>
58759         duplocale: Tweak.
58760         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
58762 2009-12-12  Karl Berry  <karl@gnu.org>
58764         * config/srclist.txt (strtoll.c): tab changes, no more sync.
58766 2009-12-12  Bruno Haible  <bruno@clisp.org>
58768         * m4/po.m4: Undo incorrect untabification.
58770 2009-12-12  Bruno Haible  <bruno@clisp.org>
58772         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
58773         * modules/c-strtod (Depends-on): Add locale.
58774         * modules/c-strtold (Depends-on): Likewise.
58776 2009-12-12  Bruno Haible  <bruno@clisp.org>
58778         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
58780 2009-12-11  Eric Blake  <ebb9@byu.net>
58782         setenv: relax requirement in light of POSIX ruling
58783         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
58784         not NULL.
58785         * tests/test-setenv.c (main): Relax test.
58786         * tests/test-unsetenv.c (main): Likewise.
58787         * doc/posix-functions/setenv.texi (setenv): Document this.
58788         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
58790 2009-12-11  Bruno Haible  <bruno@clisp.org>
58792         New module 'fd-safer-flag'.
58793         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
58794         * lib/dup-safer.c (dup_safer_flag): Remove function.
58795         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
58796         * lib/fd-safer.c (fd_safer_flag): Remove function.
58797         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
58798         * modules/cloexec (configure.ac): Drop indicator macro.
58799         * modules/fd-safer-flag: New file.
58800         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
58801         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
58802         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
58804 2009-12-11  Bruno Haible  <bruno@clisp.org>
58806         Tests for module 'nl_langinfo'.
58807         * modules/nl_langinfo-tests: New file.
58808         * tests/test-nl_langinfo.sh: New file.
58809         * tests/test-nl_langinfo.c: New file.
58811         New module 'nl_langinfo'.
58812         * lib/nl_langinfo.c: New file.
58813         * m4/nl_langinfo.m4: New file.
58814         * modules/nl_langinfo: New file.
58815         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
58817 2009-12-11  Bruno Haible  <bruno@clisp.org>
58819         Tests for module 'langinfo'.
58820         * modules/langinfo-tests: New file.
58821         * tests/test-langinfo.c: New file.
58823         New module 'langinfo'.
58824         * lib/langinfo.in.h: New file.
58825         * m4/langinfo_h.m4: New file.
58826         * modules/langinfo: New file.
58827         * doc/posix-headers/langinfo.texi: Mention the new module.
58829 2009-12-11  Bruno Haible  <bruno@clisp.org>
58831         * lib/config.charset: Untabify.
58833 2009-12-11  Bruno Haible  <bruno@clisp.org>
58835         * modules/unistd-safer (configure.ac): Drop indicator macro.
58837 2009-12-11  Bruno Haible  <bruno@clisp.org>
58839         Move pipe2-safer code to its own file.
58840         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
58841         * lib/pipe-safer.c (pipe2_safer): Remove function.
58842         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
58843         (Makefile.am): Add it to lib_SOURCES.
58845 2009-12-10  Bruno Haible  <bruno@clisp.org>
58847         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
58849 2009-12-10  Bruno Haible  <bruno@clisp.org>
58851         Declare which arguments expect non-NULL values, for GCC and clang.
58852         * build-aux/arg-nonnull.h: New file.
58853         * modules/arg-nonnull: New file.
58854         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
58855         (inet_ntop, inet_pton): Use it.
58856         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
58857         (closedir, dirfd, opendir, scandir, alphasort): Use it.
58858         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
58859         (open, openat): Use it.
58860         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
58861         (fnmatch): Use it.
58862         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
58863         (getopt, getopt_long, getopt_long_only): Use it.
58864         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
58865         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
58866         Use it.
58867         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
58868         (iconv_open): Use it.
58869         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
58870         (strtoimax, strtoumax): Use it.
58871         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
58872         (duplocale): Use it.
58873         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
58874         (frexp, frexpl): Use it.
58875         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
58876         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
58877         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
58878         (tsearch, tfind, tdelete, twalk): Use it.
58879         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
58880         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
58881         sigpending): Use it.
58882         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
58883         (posix_spawn, posix_spawnp, posix_spawnattr_init,
58884         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
58885         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
58886         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
58887         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
58888         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
58889         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
58890         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
58891         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
58892         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
58893         Use it.
58894         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
58895         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
58896         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
58897         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
58898         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
58899         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
58900         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
58901         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
58902         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
58903         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
58904         strtoull, unsetenv): Use it.
58905         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
58906         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
58907         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
58908         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
58909         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
58910         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
58911         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
58912         (strcasecmp, strncasecmp): Use it.
58913         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
58914         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
58915         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
58916         rpl_setsockopt): Use it.
58917         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
58918         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
58919         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
58920         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
58921         (gettimeofday): Use it.
58922         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
58923         (times): Use it.
58924         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
58925         (uname): Use it.
58926         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
58927         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
58928         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
58929         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
58930         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
58931         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
58932         unlinkat, write): Use it.
58933         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
58934         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
58935         * lib/argv-iter.h: Include arg-nonnull.h.
58936         (_ATTRIBUTE_NONNULL_): Remove macro.
58937         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
58938         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
58939         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
58940         optimization.
58941         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
58942         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
58943         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
58944         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
58945         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
58946         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
58947         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
58948         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
58949         * modules/arpa_inet (Depends-on): Add arg-nonnull.
58950         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
58951         * modules/dirent (Depends-on): Add arg-nonnull.
58952         (Makefile.am): Insert arg-nonnull.h into dirent.h.
58953         * modules/fcntl-h (Depends-on): Add arg-nonnull.
58954         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
58955         * modules/fnmatch (Depends-on): Add arg-nonnull.
58956         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
58957         * modules/getopt-posix (Depends-on): Add arg-nonnull.
58958         (Makefile.am): Insert arg-nonnull.h into getopt.h.
58959         * modules/glob (Depends-on): Add arg-nonnull.
58960         (Makefile.am): Insert arg-nonnull.h into glob.h.
58961         * modules/iconv_open (Depends-on): Add arg-nonnull.
58962         (Makefile.am): Insert arg-nonnull.h into iconv.h.
58963         * modules/inttypes (Depends-on): Add arg-nonnull.
58964         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
58965         * modules/locale (Depends-on): Add arg-nonnull.
58966         (Makefile.am): Insert arg-nonnull.h into locale.h.
58967         * modules/math (Depends-on): Add arg-nonnull.
58968         (Makefile.am): Insert arg-nonnull.h into math.h.
58969         * modules/netdb (Depends-on): Add arg-nonnull.
58970         (Makefile.am): Insert arg-nonnull.h into netdb.h.
58971         * modules/search (Depends-on): Add arg-nonnull.
58972         (Makefile.am): Insert arg-nonnull.h into search.h.
58973         * modules/signal (Depends-on): Add arg-nonnull.
58974         (Makefile.am): Insert arg-nonnull.h into signal.h.
58975         * modules/spawn (Depends-on): Add arg-nonnull.
58976         (Makefile.am): Insert arg-nonnull.h into spawn.h.
58977         * modules/stdio (Depends-on): Add arg-nonnull.
58978         (Makefile.am): Insert arg-nonnull.h into stdio.h.
58979         * modules/stdlib (Depends-on): Add arg-nonnull.
58980         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
58981         * modules/string (Depends-on): Add arg-nonnull.
58982         (Makefile.am): Insert arg-nonnull.h into string.h.
58983         * modules/strings (Depends-on): Add arg-nonnull.
58984         (Makefile.am): Insert arg-nonnull.h into strings.h.
58985         * modules/sys_socket (Depends-on): Add arg-nonnull.
58986         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
58987         * modules/sys_stat (Depends-on): Add arg-nonnull.
58988         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
58989         * modules/sys_time (Depends-on): Add arg-nonnull.
58990         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
58991         * modules/sys_times (Depends-on): Add arg-nonnull.
58992         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
58993         * modules/sys_utsname (Depends-on): Add arg-nonnull.
58994         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
58995         * modules/time (Depends-on): Add arg-nonnull.
58996         (Makefile.am): Insert arg-nonnull.h into time.h.
58997         * modules/unistd (Depends-on): Add arg-nonnull.
58998         (Makefile.am): Insert arg-nonnull.h into unistd.h.
58999         * modules/wchar (Depends-on): Add arg-nonnull.
59000         (Makefile.am): Insert arg-nonnull.h into wchar.h.
59001         * modules/argv-iter (Depends-on): Add arg-nonnull.
59002         * tests/test-canonicalize.c (null_ptr): New function.
59003         (main): Use it.
59004         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
59005         (main): Use it.
59006         * tests/test-memmem.c (null_ptr): New function.
59007         (main): Use it.
59008         Reported by Jim Meyering.
59010 2009-12-10  Bruno Haible  <bruno@clisp.org>
59012         Use spaces for indentation, not tabs.
59013         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
59014         * m4/*.m4: Untabify.
59015         * build-aux/*.h: Untabify.
59016         * tests/**/*.[hc]: Untabify.
59017         * README: New section "Indent with spaces, not TABs", based on
59018         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
59019         * NEWS: Mention the change.
59021 2009-12-10  Bruno Haible  <bruno@clisp.org>
59023         pty test: Fix link error.
59024         * modules/pty-tests (Makefile.am): Add the default LDADD value to
59025         test_pty_LDADD.
59027 2009-12-07  Simon Josefsson  <simon@josefsson.org>
59029         * modules/pty: New file.
59030         * modules/pty-tests: New file.
59031         * m4/pty.m4: New file.
59032         * tests/test-pty.c: New file.
59033         * doc/glibc-headers/pty.texi: Modified.
59034         * doc/glibc-functions/forkpty.texi: Modified.
59035         * doc/glibc-functions/openpty.texi: Modified.
59037 2009-12-10  Bruno Haible  <bruno@clisp.org>
59039         Avoid syntax error in C++ mode.
59040         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
59042 2009-12-10  Bruno Haible  <bruno@clisp.org>
59044         Use sed with option -e.
59045         * gnulib-tool (func_version, func_emit_copyright_notice,
59046         func_emit_initmacro_end, func_import, func_create_testdir): Pass
59047         option -e to sed.
59048         * modules/link-warning (Makefile.am): Likewise.
59050 2009-12-10  Jim Meyering  <meyering@redhat.com>
59052         mgetgroups: do not write bytes beyond end of malloc'd buffer
59053         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
59054         username, we call getgroups with a one-element-shorter buffer,
59055         but still told it the length was original, max_n_groups.
59057 2009-12-09  Eric Blake  <ebb9@byu.net>
59059         cloexec: relax license
59060         * modules/cloexec (Maintainer): Add myself.
59061         (License): Use LGPL, not GPL.
59063         link-warning: optimize generation
59064         * modules/link-warning (Makefile.am): Reduce process usage.
59066 2009-12-09  Bruno Haible  <bruno@clisp.org>
59068         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
59069         workaround was added on 2009-11-17.
59071 2009-12-09  Jim Meyering  <meyering@redhat.com>
59072             Bruno Haible  <bruno@clisp.org>
59074         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
59075         * modules/link-warning (Makefile.am): Make the comment-removing sed
59076         command more robust in the face of bootstrap-prepended comment lines.
59078 2009-12-09  Bruno Haible  <bruno@clisp.org>
59080         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
59081         most one group.
59083 2009-12-09  Simon Josefsson  <simon@josefsson.org>
59084             Bruno Haible  <bruno@clisp.org>
59086         * build-aux/link-warning.h: Add copyright notice.
59087         * modules/link-warning (Makefile.am): Generate link-warning.h from
59088         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
59089         * NEWS: Mention change in link-warning module.
59090         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
59091         * modules/dirent (Makefile.am): Add dependency to dirent.h.
59092         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
59093         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
59094         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
59095         * modules/math (Makefile.am): Add dependency to math.h.
59096         * modules/search (Makefile.am): Add dependency to search.h.
59097         * modules/signal (Makefile.am): Add dependency to signal.h.
59098         * modules/spawn (Makefile.am): Add dependency to spawn.h.
59099         * modules/stdio (Makefile.am): Add dependency to stdio.h.
59100         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
59101         * modules/string (Makefile.am): Add dependency to string.h.
59102         * modules/strings (Makefile.am): Add dependency to strings.h.
59103         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
59104         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
59105         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
59106         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
59107         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
59108         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
59109         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
59110         * modules/unistd (Makefile.am): Add dependency to unistd.h.
59111         * modules/wchar (Makefile.am): Add dependency to wchar.h.
59113 2009-12-09  Bruno Haible  <bruno@clisp.org>
59115         fchdir: Optimize away rpl_fstat when possible.
59116         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
59117         REPLACE_OPEN_DIRECTORY.
59118         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
59120 2009-12-09  Bruno Haible  <bruno@clisp.org>
59122         * lib/fchdir.c: Update comment.
59124 2009-12-09  Bruno Haible  <bruno@clisp.org>
59126         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
59128 2009-12-08  Eric Blake  <ebb9@byu.net>
59130         fchdir: avoid memory leak on re-registration.
59131         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
59133 2009-12-08  Jim Meyering  <meyering@redhat.com>
59135         init.sh: avoid Solaris 10 /bin/sh portability problem
59136         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
59137         sourced script:
59138           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
59139           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
59140           bar
59141         tests/init.sh relied on that, accepting a --set-path=DIR argument,
59142         and two tests used that idiom.
59143         * tests/init.sh: Update suggested usage comments.
59144         (path_prepend_): New function, to be used in place
59145         of the --src-path=DIR option.
59146         (setup_): Move PATH-prepending code into path_prepend_.
59147         * tests/test-pread.sh: Adapt to new usage.
59148         * tests/test-xalloc-die.sh: Likewise.
59150 2009-12-08  Simon Josefsson  <simon@josefsson.org>
59152         * doc/gnulib.texi (Glibc pty.h): Add.
59153         * doc/glibc-functions/forkpty.texi: Add.
59154         * doc/glibc-functions/openpty.texi: Add.
59155         Suggested by Bruno Haible.
59157 2009-12-08  Eric Blake  <ebb9@byu.net>
59159         fchdir: fix logic bugs
59160         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
59161         * tests/test-fchdir.c (main): Enhance test.
59162         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
59163         is in use.
59165         dup2: fix logic bugs
59166         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
59167         REPLACE_DUP2 to decide when rpl_dup2 is needed.
59168         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
59169         exists.
59170         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
59172 2009-12-07  Eric Blake  <ebb9@byu.net>
59174         unlink: fix m4 detection
59175         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
59177         unistd-safer: add unit test
59178         * modules/unistd-safer-tests: New file.
59179         * tests/test-dup-safer.c: Likewise.
59180         * tests/test-cloexec.c (setmode): Avoid compiler warning.
59181         * tests/test-dup2.c (setmode): Likewise.
59182         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
59184         cloexec: preserve text vs. binary across dup_cloexec
59185         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
59186         mode.
59187         * modules/dup2-tests (Depends-on): Add binary-io.
59188         * modules/cloexec-tests (Depends-on): Likewise.
59189         * tests/test-dup2.c (setmode, is_mode): New helpers.
59190         (main): Add tests that translation mode is preserved.
59191         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
59192         Reported by Bruno Haible.
59194         mgetgroups: reduce duplicate listings
59195         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
59196         resulting array.
59197         * tests/test-chown.h (test_chown): Simplify client.
59198         * tests/test-lchown.h (test_lchown): Likewise.
59200 2009-12-06  Bruno Haible  <bruno@clisp.org>
59202         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
59203         value.
59205 2009-12-06  Bruno Haible  <bruno@clisp.org>
59207         * lib/progname.c: Include stdio.h, stdlib.h.
59208         (set_program_name): Reject a NULL argument.
59210 2009-12-05  Eric Blake  <ebb9@byu.net>
59212         pipe2-safer: new module
59213         * modules/pipe2-safer: New file.
59214         * lib/unistd-safer.h (pipe2_safer): New prototype.
59215         * lib/unistd--.h (pipe2): New wrapper.
59216         * lib/pipe-safer.c (pipe2_safer): New function.
59217         * modules/pipe (Depends-on): Add pipe2-safer.
59218         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
59220         stdlib-safer: preserve cloexec flag for mkostemp[s]
59221         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
59222         fd_safer_flag.
59224         unistd-safer: allow preservation of cloexec status via flag
59225         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
59226         prototypes.
59227         * lib/dup-safer.c (dup_safer_flag): New function.
59228         * lib/fd-safer.c (fd_safer_flag): Likewise.
59229         * modules/cloexec (configure.ac): Set witness.
59231         test-dup2: enhance test
59232         * modules/dup2-tests (Depends-on): Add cloexec.
59233         * tests/test-dup2.c (main): Enhance test.
59235         cloexec: add dup_cloexec
59236         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
59237         header and comments.
59238         * lib/cloexec.c (set_cloexec_flag): Add comments.
59239         (dup_cloexec): New function, with mingw implementation borrowed
59240         from...
59241         * lib/w32spawn.h (dup_noinherit): ...here.
59242         * modules/execute (Depends-on): Add cloexec.
59243         * modules/pipe (Depends-on): Likewise.
59244         * modules/cloexec (Depends-on): Add dup2.
59245         * modules/cloexec-tests (Files): New file.
59246         * tests/test-cloexec.c: Likewise.
59248         test-xalloc-die: fix test for mingw
59249         * modules/xalloc-die-tests (Files): Add tests/init.sh.
59250         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
59251         directory and .exe suffix off argv[0] output.
59253         test-fseeko: fix test for mingw
59254         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
59255         than undefining fseek, so test will pass on mingw.
59257 2009-12-05  Bruno Haible  <bruno@clisp.org>
59259         * lib/progname.h (set_program_name): Clarify specification.
59260         * lib/progname.c (set_program_name): Likewise.
59261         Reported by Jim Meyering.
59263 2009-12-05  Jim Meyering  <meyering@redhat.com>
59265         maint.mk: backslash-escape parens in default regexp
59266         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
59267         backslash-escape the literal parentheses.
59269         maint.mk: news-date-check: use grep -E
59270         * top/maint.mk (today): Define a Make variable, not a...
59271         (news-date-check): ...shell variable.
59272         (news-date-regexp): Use the Make variable.
59273         Use grep's -E option.  Change the failing diagnostic to mention
59274         the variable, $(news-date-regexp).
59276 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
59278         maintainer-makefile: allow customization of NEWS entry format
59279         * top/maint.mk (news-date-regexp): New overridable variable.
59280         (news-date-check): Use it.
59282 2009-12-04  Eric Blake  <ebb9@byu.net>
59284         mgetgroups: add xgetgroups, and avoid ENOSYS failures
59285         * lib/mgetgroups.h (xgetgroups): New prototype.
59286         * lib/mgetgroups.c (xgetgroups): New wrapper.
59287         (mgetgroups): Handle ENOSYS.
59288         * modules/mgetgroups (Depends-on): Add realloc.
59289         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
59291         mgetgroups: avoid argument promotion issues with -1
59292         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
59293         for invalid gid_t.
59294         * tests/test-chown.h (getegid, test_chown): Likewise.
59295         * tests/test-lchown.h (getegid, test_lchown): Likewise.
59297 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
59299         exclude: Fix header file problems.
59300         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
59302 2009-12-01  Jim Meyering  <meyering@redhat.com>
59304         fts: fts_open: do not let an empty string cause immediate failure
59305         This is required in support of GNU rm, for which the command
59306         "rm A '' B" must process and remove both A and B, in spite of
59307         the empty string argument.
59308         * lib/fts.c (fts_open): Do not let the presence of an empty string
59309         cause fts_open to fail immediately.  Most fts-using tools must be
59310         able to process all arguments, in order, and can be expected to
59311         diagnose such arguments themselves.
59313 2009-11-30  Eric Blake  <ebb9@byu.net>
59315         utimens: fix compilation error
59316         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
59317         Declare variable at right scope.
59319 2009-11-29  Jim Meyering  <meyering@redhat.com>
59321         bootstrap: handle perl-5.11's changed --version output
59322         * build-aux/bootstrap (get_version): Handle perl separately,
59323         since perl-5.11's --version output is different.
59325 2009-11-28  Jim Meyering  <meyering@redhat.com>
59327         userspec: depend on the inttostr module, too
59328         * modules/userspec (Depends-on): Add inttostr.
59330         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
59331         * lib/userspec.c (parse_with_separator): Do not accept a user ID
59332         number of MAXUID when it evaluates to (uid_t) -1.
59333         Likewise for group ID.  Reported by Matt McCutchen in
59334         <http://savannah.gnu.org/bugs/?28113>
59336         userspec: reformat to use spaces, not TABs
59337         * lib/userspec.c: Expand TABs to spaces.
59338         Add Emacs' "indent-tabs-mode: nil" hint.
59340 2009-11-27  Eric Blake  <ebb9@byu.net>
59342         getopt-gnu: flush out another BSD bug
59343         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
59344         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
59345         flush out BSD bug.
59346         * tests/test-getopt.h (test_getopt): End lists with NULL.
59347         * tests/test-getopt_long.h (test_getopt_long): Likewise.
59348         (test_getopt_long_posix): Enhance test.
59349         * modules/getopt-posix-tests (Depends-on): Add stdbool.
59350         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
59351         getopt-gnu.
59352         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
59353         Likewise.
59355 2009-11-27  Simon Josefsson  <simon@josefsson.org>
59357         * modules/idpriv-droptemp-tests (Notice): Fix text.
59359 2009-11-27  Jim Meyering  <meyering@redhat.com>
59361         test-xalloc-die: avoid spurious failure due to libtool argv difference
59362         In a libtool-enabled project, this test would fail due to a difference
59363         in the emitted program name, e.g.,
59364         -test-xalloc-die: memory exhausted
59365         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
59366         Use program to avoid that.
59367         * modules/xalloc-die-tests (Depends-on): Add progname.
59368         * tests/test-xalloc-die.c: Include progname.h".
59369         (program_name): Remove decl.
59370         (main): Call set_program_name.
59371         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
59373 2009-11-26  Richard Jones  <rjones@redhat.com>
59375         w32sock: leave win32 error in place.
59376         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
59378 2009-11-26  Eric Blake  <ebb9@byu.net>
59380         init.sh: suggest to use skip_ and fail_ functions in comments
59381         * tests/init.sh: Add a sentence.
59383 2009-11-25  Bruno Haible  <bruno@clisp.org>
59385         init.sh: add documentation in comments
59386         * tests/init.sh: Add some developer and user documentation.
59388 2009-11-26  Jim Meyering  <meyering@redhat.com>
59390         init.sh: accommodate even those who specify bogus srcdir manually
59391         * tests/init.sh: Normally, srcdir is guaranteed by automake and
59392         configure-time tests to be sanitized, so that there is no need to
59393         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
59394         (with no double quotes) suffices.  However, since tests may be
59395         invoked manually, and since you may explicitly set srcdir to the
59396         name of a directory containing spaces, do quote its uses here.
59397         * tests/test-pread.sh: Likewise.
59398         Suggested by Bruno Haible.
59400         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
59401         * tests/test-pread.sh: Write no data into the pipe, because
59402         test-pread actually reads none.  This avoids a diagnostic,
59403         "bash: echo: write error: Broken pipe", that arises in the unusual
59404         event something is ignoring SIGPIPE, and might be interpreted
59405         as some sort of failure.  Reported by Bruno Haible.
59407 2009-11-25  Jim Meyering  <meyering@redhat.com>
59409         test-pread: cover failure with ESPIPE and EINVAL
59410         * tests/test-pread.c (main): Test for failure, too.
59411         * tests/test-pread.sh: Invoke with stdin on a pipe.
59412         Suggested by Eric Blake.
59414         pread: improvement and fix
59415         * modules/pread (Depends-on): Depend on lseek, for portability to
59416         e.g., mingw.  Suggested by Eric Blake.
59417         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
59419         unistd.in.h: correct declaration of pread
59420         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
59421         Reported by Richard W.M. Jones.
59423         test-pread.sh: distribute the test script
59424         * modules/pread-tests (Files): Include test-pread.sh.
59426         test-pread.sh: clean up
59427         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
59428         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
59429         That is unnecessary, since it's always ".".
59430         Suggestion from Eric Blake.
59432         test-pread.sh: make executable
59433         * tests/test-pread.sh: Set executable bit.
59434         Reported by Eric Blake.
59436         correct typo in test-pread.sh
59437         * tests/test-pread.sh: Add #! line.
59439         test pread
59440         * tests/test-pread.c: New file.
59441         * tests/test-pread.sh: Likewise.
59442         * modules/pread-tests: Likewise.
59444         pread: new module
59445         * modules/pread: New file.
59446         * lib/unistd.in.h (pread): Define/declare.
59447         * lib/pread.c (pread): New file.
59448         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
59449         * modules/unistd (Makefile.am): Substitute witnesses.
59450         * doc/posix-functions/pread.texi (pread): Update.
59451         * MODULES.html.sh: Add pread.
59453 2009-11-25  Jim Meyering  <meyering@redhat.com>
59455         tests/init.sh: new file to be used via most *.sh tests
59456         * tests/init.sh: New file.
59458 2009-11-25  Eric Blake  <ebb9@byu.net>
59460         utimens: work around older Linux failure with symlinks
59461         * lib/utimens.c (lutimensat_works_really): New variable.
59462         (fdutimens, lutimens): Use it to manage kernels that support
59463         nanosecond times on files, but not on symlinks.
59464         Reported by Ondřej Vašík.
59466         utimes: fix configure grammar
59467         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
59469 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
59471         regex: Fix fastmap for multibyte character ranges.
59472         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
59473         characters when a multibyte character range is included.
59475 2009-11-22  Andy Wingo  <wingo@pobox.com>
59477         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
59478         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
59480 2009-11-24  Bruno Haible  <bruno@clisp.org>
59482         doc: Most *_l functions exist in MacOS X 10.5.
59483         * doc/posix-functions/duplocale.texi: Update platforms list.
59484         * doc/posix-functions/freelocale.texi: Likewise.
59485         * doc/posix-functions/newlocale.texi: Likewise.
59486         * doc/posix-functions/uselocale.texi: Likewise.
59487         * doc/posix-functions/isalnum_l.texi: Likewise.
59488         * doc/posix-functions/isalpha_l.texi: Likewise.
59489         * doc/posix-functions/isblank_l.texi: Likewise.
59490         * doc/posix-functions/iscntrl_l.texi: Likewise.
59491         * doc/posix-functions/isdigit_l.texi: Likewise.
59492         * doc/posix-functions/isgraph_l.texi: Likewise.
59493         * doc/posix-functions/islower_l.texi: Likewise.
59494         * doc/posix-functions/isprint_l.texi: Likewise.
59495         * doc/posix-functions/ispunct_l.texi: Likewise.
59496         * doc/posix-functions/isspace_l.texi: Likewise.
59497         * doc/posix-functions/isupper_l.texi: Likewise.
59498         * doc/posix-functions/iswalnum_l.texi: Likewise.
59499         * doc/posix-functions/iswalpha_l.texi: Likewise.
59500         * doc/posix-functions/iswblank_l.texi: Likewise.
59501         * doc/posix-functions/iswcntrl_l.texi: Likewise.
59502         * doc/posix-functions/iswctype_l.texi: Likewise.
59503         * doc/posix-functions/iswdigit_l.texi: Likewise.
59504         * doc/posix-functions/iswgraph_l.texi: Likewise.
59505         * doc/posix-functions/iswlower_l.texi: Likewise.
59506         * doc/posix-functions/iswprint_l.texi: Likewise.
59507         * doc/posix-functions/iswpunct_l.texi: Likewise.
59508         * doc/posix-functions/iswspace_l.texi: Likewise.
59509         * doc/posix-functions/iswupper_l.texi: Likewise.
59510         * doc/posix-functions/iswxdigit_l.texi: Likewise.
59511         * doc/posix-functions/isxdigit_l.texi: Likewise.
59512         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
59513         * doc/posix-functions/strcasecmp_l.texi: Likewise.
59514         * doc/posix-functions/strcoll_l.texi: Likewise.
59515         * doc/posix-functions/strfmon_l.texi: Likewise.
59516         * doc/posix-functions/strftime_l.texi: Likewise.
59517         * doc/posix-functions/strncasecmp_l.texi: Likewise.
59518         * doc/posix-functions/strxfrm_l.texi: Likewise.
59519         * doc/posix-functions/tolower_l.texi: Likewise.
59520         * doc/posix-functions/toupper_l.texi: Likewise.
59521         * doc/posix-functions/towctrans_l.texi: Likewise.
59522         * doc/posix-functions/towlower_l.texi: Likewise.
59523         * doc/posix-functions/towupper_l.texi: Likewise.
59524         * doc/posix-functions/wcscoll_l.texi: Likewise.
59525         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
59526         * doc/posix-functions/wctrans_l.texi: Likewise.
59527         * doc/posix-functions/wctype_l.texi: Likewise.
59528         * doc/glibc-functions/strptime_l.texi: Likewise.
59529         * doc/glibc-functions/strtod_l.texi: Likewise.
59530         * doc/glibc-functions/strtof_l.texi: Likewise.
59531         * doc/glibc-functions/strtol_l.texi: Likewise.
59532         * doc/glibc-functions/strtold_l.texi: Likewise.
59533         * doc/glibc-functions/strtoll_l.texi: Likewise.
59534         * doc/glibc-functions/strtoul_l.texi: Likewise.
59535         * doc/glibc-functions/strtoull_l.texi: Likewise.
59536         * doc/glibc-functions/wcsftime_l.texi: Likewise.
59537         * doc/glibc-functions/wcstod_l.texi: Likewise.
59538         * doc/glibc-functions/wcstof_l.texi: Likewise.
59539         * doc/glibc-functions/wcstol_l.texi: Likewise.
59540         * doc/glibc-functions/wcstold_l.texi: Likewise.
59541         * doc/glibc-functions/wcstoll_l.texi: Likewise.
59542         * doc/glibc-functions/wcstoul_l.texi: Likewise.
59543         * doc/glibc-functions/wcstoull_l.texi: Likewise.
59545 2009-11-24  Bruno Haible  <bruno@clisp.org>
59547         duplocale: Fix logic bug.
59548         * lib/duplocale.c: Don't include <langinfo.h>.
59549         (_NL_LOCALE_NAME): Remove macro.
59550         (rpl_duplocale): Use setlocale instead of nl_langinfo.
59551         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
59553 2009-11-23  Jim Meyering  <meyering@redhat.com>
59555         test-update-copyright: don't hard-code /usr/bin/perl
59556         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
59557         perl to print the current year.  Gilles Espinasse reported that
59558         the replaced use of perl was hard-coded as /usr/bin/perl.
59560 2009-11-23  Bruno Haible  <bruno@clisp.org>
59562         duplocale: Add support for glibc 2.3.x.
59563         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
59565 2009-11-22  Bruno Haible  <bruno@clisp.org>
59567         vasnprintf: Tiny optimization.
59568         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
59569         MacOS X.
59571 2009-11-22  Bruno Haible  <bruno@clisp.org>
59573         Tests for module 'duplocale'.
59574         * modules/duplocale-tests: New file.
59575         * tests/test-duplocale.c: New file.
59577         New module 'duplocale'.
59578         * m4/duplocale.m4: New file.
59579         * lib/locale.in.h (duplocale): New declaration.
59580         * lib/duplocale.c: New file.
59581         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
59582         gl_LOCALE_H_DEFAULTS): New macros.
59583         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
59584         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
59585         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
59586         REPLACE_DUPLOCALE.
59587         * modules/duplocale: New file.
59588         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
59590 2009-11-22  Bruno Haible  <bruno@clisp.org>
59592         * modules/locale-tests (configure.ac): Test for newlocale function.
59593         * tests/test-locale.c: When the system has extended locale functions,
59594         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
59596         locale: Make locale_t available when possible.
59597         * lib/locale.in.h: Include <xlocale.h> when it exists.
59598         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
59599         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
59600         * modules/locale (Depends-on): Add extensions.
59601         (Makefile.am): Also substitute HAVE_XLOCALE_H.
59602         * doc/posix-headers/locale.texi: Document the problem with locale_t.
59604 2009-11-22  Bruno Haible  <bruno@clisp.org>
59606         Add comments.
59607         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
59608         invocation.
59609         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
59610         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
59611         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
59613 2009-11-22  Bruno Haible  <bruno@clisp.org>
59615         error: account for the possibility of freopen (stdout).
59616         * lib/error.c: Include <unistd.h>.
59617         (flush_stdout): New function, extracted from error and error_at_line.
59618         Determine stdout's fd dynamically.
59619         (error, error_at_line): Invoke flush_stdout.
59620         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
59621         * modules/error (Depends-on): Add unistd.
59623 2009-11-22  Bruno Haible  <bruno@clisp.org>
59625         diffseq: Add comment.
59626         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
59628 2009-11-22  Jim Meyering  <meyering@redhat.com>
59630         c-stack: avoid defining an unused static function
59631         * lib/c-stack.c (find_stack_direction): Do not define this function
59632         when it will not be used.
59634         diffseq: avoid spurious gcc warnings
59635         * lib/diffseq.h (IF_LINT2): Define.
59636         (compareseq): Use it to initialize two members of "part".
59637         This avoids two used-uninitialized warnings.
59639 2009-11-21  Jim Meyering  <meyering@redhat.com>
59641         c-stack: avoid "ignoring return value of `write'" warning
59642         * lib/c-stack.c: Include "ignore-value.h".
59643         (die): Explicitly ignore each write return value.
59644         * modules/c-stack (Depends-on): Add ignore-value.
59646 2009-11-21  Bruno Haible  <bruno@clisp.org>
59648         diffseq: reduce scope of variable 'best'.
59649         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
59650         variable, earlier used for two different purposes.
59652 2009-11-21  Jim Meyering  <meyering@redhat.com>
59654         diffseq: remove useless assignment to "best"
59655         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
59656         assignment.  At that point "best" is already guaranteed to be zero.
59658 2009-11-20  Eric Blake  <ebb9@byu.net>
59660         build: mention ftp redirector in release announcements
59661         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
59662         values that used to come from cfg.mk; mention FTP redirect URL.
59663         * build-aux/announce-gen: Mention the mirror list.
59664         Suggested by Karl Berry.
59666         nanosleep: improve port to mingw
59667         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
59668         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
59669         LIB_NANOSLEEP, but only when needed.
59670         * modules/select (Link): Document LIBSOCKET.
59671         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
59672         enough.
59674         nanosleep: work around cygwin bug
59675         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
59676         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
59677         bug.
59678         (getnow): Delete, not needed.
59679         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
59680         LIB_CLOCK_GETTIME.
59681         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
59682         clock-time, gettime.
59683         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
59684         bug.
59685         * modules/nanosleep-tests: New test.
59686         * tests/test-nanosleep.c: New file.
59688         sleep: work around cygwin bug
59689         * lib/sleep.c (rpl_sleep): Work around the bug.
59690         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
59691         (gl_PREREQ_SLEEP): Delete unused macro.
59692         * modules/sleep (Depends-on): Add verify.
59693         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
59694         * modules/unistd (Makefile.am): Substitute witness.
59695         * lib/unistd.in.h (sleep): Update prototype.
59696         * doc/posix-functions/sleep.texi (sleep): Document the bug.
59697         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
59698         * modules/sleep-tests (Depends-on): Check for alarm.
59700 2009-11-20  Jim Meyering  <meyering@redhat.com>
59702         maint.mk: improve sc_prohibit_magic_number_exit
59703         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
59704         so it does not match uses like System.exit(1).
59705         Add comments showing how to correct all offenders.
59707 2009-11-19  Eric Blake  <ebb9@byu.net>
59709         xalloc-die-tests: add missing library
59710         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
59712         test-xvasprintf: silence compiler warnings
59713         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
59714         empty string from gcc.
59716 2009-11-19  Jim Meyering  <meyering@redhat.com>
59718         xfreopen: new module, from coreutils
59719         * modules/xfreopen: New module.
59720         * lib/xfreopen.c: New file.
59721         * lib/xfreopen.h: New file.
59722         * MODULES.html.sh (File stream based Input/Output"): Add it.
59724 2009-11-19  Eric Blake  <ebb9@byu.net>
59726         manywarnings: depend on warnings
59727         * modules/manywarnings (Depends-on): Add warnings.
59729         build: avoid compiler warnings
59730         * lib/select.c (rpl_select): Delete unused variable.
59731         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
59733 2009-11-18  Eric Blake  <ebb9@byu.net>
59735         tests: avoid false negative with --with-packager
59736         * tests/test-version-etc.sh: Discard packager information.
59737         * tests/test-argp-version-etc-1.sh: Likewise.
59738         Reported by Mike Frysinger.
59740         utimens: fix regression on Solaris
59741         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
59742         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
59743         can only change fd timestamps via futimesat.  Instead, use an
59744         additional witness macro to avoid BSD bug.
59745         Reported by Jim Meyering.
59747 2009-11-17  Eric Blake  <ebb9@byu.net>
59749         usleep: use it to simplify tests
59750         * modules/stat-time-tests (Depends-on): Add usleep.
59751         (configure.ac): Drop usleep check.
59752         * modules/chown-tests (Depends-on, configure.ac): Likewise.
59753         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
59754         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
59755         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
59756         * modules/openat-tests (Depends-on, configure.ac): Likewise.
59757         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
59758         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
59759         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
59760         Likewise.
59761         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
59762         * tests/test-lchown.h (nap): Likewise.
59763         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
59764         * tests/test-stat-time.c (nap): Likewise.
59765         * tests/test-utimens-common.h (nap): Update comments.
59767         usleep: new module
59768         * modules/usleep: New file.
59769         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
59770         * lib/usleep.c (usleep): Likewise.
59771         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
59772         * modules/unistd (Makefile.am): Substitute witnesses.
59773         * lib/unistd.in.h (usleep): Add declaration.
59774         * doc/pastposix-functions/usleep.texi (usleep): Document this.
59775         * MODULES.html.sh (Date and time): Likewise.
59776         * modules/usleep-tests (Depends-on): New test.
59777         * tests/test-usleep.c: New file.
59779         chown: work around OpenBSD bug
59780         * lib/chown.c (rpl_chown): Work around the bug.
59781         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
59782         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
59783         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
59784         * modules/chown (Depends-on): Add stdbool.
59785         * modules/lchown (Depends-on): Likewise.
59786         * doc/posix-functions/chown.texi (chown): Document the bug.
59787         * doc/posix-functions/lchown.texi (lchown): Likewise.
59788         * tests/test-lchown.h (test_chown): Relax test.
59790         mkstemp: avoid conflict with C++ keyword template
59791         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
59792         * lib/mkostemp.c (mkostemp): Likewise.
59793         * lib/mkostemps.c (mkostemps): Likewise.
59794         * lib/mkstemp.c (mkstemp): Likewise.
59795         * lib/mkstemps.c (mkstemps): Likewise.
59797         xalloc-die-tests: optimize
59798         * tests/test-xalloc-die.sh: Reduce number of processes.
59800 2009-11-17  Simon Josefsson  <simon@josefsson.org>
59802         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
59803         patch from ludo@gnu.org (Ludovic Courtès).
59805 2009-11-17  Jim Meyering  <meyering@redhat.com>
59807         version-etc: use proper license string
59808         * modules/version-etc (License): Use LGPL, not LGPLv3+.
59809         * modules/version-etc-fsf: Likewise.
59811 2009-11-17  Simon Josefsson  <simon@josefsson.org>
59813         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
59814         printed to stdout.  Deal with EOL differences.
59816 2009-11-17  Eric Blake  <ebb9@byu.net>
59818         unsetenv: work around Solaris bug
59819         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
59820         * lib/unsetenv.c (rpl_unsetenv): Work around it.
59821         Reported by Jim Meyering.
59823         vasnprintf: avoid compiler warnings
59824         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
59825         variables.
59826         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
59828 2009-11-17  Simon Josefsson  <simon@josefsson.org>
59830         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
59831         settings since xalloc-die is no longer the self test,
59832         xalloc-die.sh is.
59834 2009-11-17  Jim Meyering  <meyering@redhat.com>
59836         test-xalloc-die.sh: make the code agree with the commit log
59837         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
59838         at the end, just in case you happen to have a test-xalloc-die
59839         program in some other PATH directory.
59841         test-xalloc-die.sh: fix a portability bug
59842         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
59843         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
59844         Otherwise, argv[0] (as often seen in diagnostics) would be too
59845         system-dependent, sometimes with, and sometimes without the leading "./".
59847         version-etc-fsf: relax license to LGPLv3+
59848         * modules/version-etc-fsf (License): Relax license.
59850 2009-11-16  Eric Blake  <ebb9@byu.net>
59852         xalloc-die-tests: avoid printing null pointer
59853         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
59854         shell script.
59855         * tests/test-xalloc-die.c (program_name): Declare.
59856         * tests/test-xalloc-die.sh (tmpfiles): New file.
59858         setenv, unsetenv: work around various bugs
59859         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
59860         (setenv) [HAVE_SETENV]: Work around bugs.
59861         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
59862         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
59863         for bugs.
59864         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
59865         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
59866         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
59867         * modules/stdlib (Makefile.am): Update substitutions.
59868         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
59869         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
59870         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
59871         * modules/setenv-tests: New test.
59872         * modules/unsetenv-tests: Likewise.
59873         * tests/test-setenv.c: New file.
59874         * tests/test-unsetenv.c: Likewise.
59876 2009-11-16  Jim Meyering  <meyering@redhat.com>
59878         version-etc: relax license to LGPLv3+
59879         * modules/version-etc (License): Relax license.
59881         better AC_REQUIRE expanded-before-required-warning avoidance
59882         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
59883         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
59884         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
59885         which is no longer needed.
59887 2009-11-16  Eric Blake  <ebb9@byu.net>
59889         test-freading: clean up temporary file
59890         * tests/test-freading.c (main): Remove file on success, and use
59891         ASSERT more liberally.
59892         Reported by Jim Meyering.
59894 2009-11-16  Jim Meyering  <meyering@redhat.com>
59896         avoid new AC_REQUIRE expanded-before-required warnings
59897         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
59898         merely using it.
59899         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
59900         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
59902 2009-11-15  Simon Josefsson  <simon@josefsson.org>
59904         * tests/test-xalloc-die.c: New file.
59905         * modules/xalloc-die-tests: New file.
59906         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
59907         XFAIL_TESTS so it can be appended by modules.
59909 2009-11-15  Simon Josefsson  <simon@josefsson.org>
59911         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
59912         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
59914 2009-11-14  Eric Blake  <ebb9@byu.net>
59916         fnmatch: avoid compiler warning
59917         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
59918         to silence compiler warning about mismatch signedness in ?:.
59919         Reported by Robert Millan.
59921         intprops: add double-inclusion guard
59922         * lib/intprops.h: Allow idempotent includes.
59923         Suggested by Bruce Korb.
59925         openat: detect Solaris fchownat bug
59926         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
59927         penalizing glibc chownat when only lchownat is broken.
59928         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
59929         trailing slash bugs.
59930         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
59931         * modules/openat-tests (Files): Include more files.
59932         (Depends-on): Add mgetgroups, sleep, stat-time.
59933         (configure.ac): Add additional checks.
59934         (Makefile.am): Build new test.
59935         * tests/test-fchownat.c: New file.
59937         lchown: detect Solaris and FreeBSD bug
59938         * lib/lchown.c (rpl_lchown): Work around bug.
59939         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
59940         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
59941         * modules/unistd (Makefile.am): Populate it.
59942         * lib/unistd.in.h (lchown): Update declaration.
59943         * doc/posix-functions/lchown.texi (lchown): Document the bug.
59944         * modules/lchown-tests: New file.
59945         * tests/test-lchown.h (test_lchown): Likewise.
59946         * tests/test-lchown.c (main): Likewise.
59948         chown: detect Solaris and FreeBSD bug
59949         * lib/chown.c (rpl_chown): Work around bug.
59950         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
59951         (gl_PREREQ_CHOWN): Delete.
59952         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
59953         * modules/unistd (Makefile.am): Populate it.
59954         * lib/unistd.in.h (chown): Update declaration.
59955         * lib/lchown.c (chown): Update client.
59956         * modules/lchown (Depends-on): Add lstat.
59957         * doc/posix-functions/chown.texi (chown): Document the bug.
59958         * doc/posix-functions/getgroups.texi (getgroups): Document
59959         getgroups pitfall.
59960         * modules/chown-tests: New file.
59961         * tests/test-chown.h (test_chown): Likewise.
59962         * tests/test-chown.c (main): Likewise.
59964 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
59966         gnulib-tool: correctly detect absence of m4 directories
59967         * gnulib-tool: Avoid extra newline on data passed to wc -l.
59969 2009-11-14  Jim Meyering  <meyering@redhat.com>
59971         maint.mk: Prohibit inclusion of "xalloc.h" without use.
59972         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
59974 2009-11-14  John W. Eaton  <jwe@gnu.org>
59976         strftime.h: wrap function declaration in extern "C" block
59977         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
59979 2009-11-13  Eric Blake  <ebb9@byu.net>
59981         getgroups: avoid compiler warning
59982         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
59984         getgroups: work around FreeBSD bug
59985         * lib/getgroups.c (rpl_getgroups): Work around the bug.
59986         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
59987         * doc/posix-functions/getgroups.texi (getgroups): Document it.
59988         * tests/test-getgroups.c (main): Fix buffer overrun.
59990         getgroups: avoid compilation failure
59991         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
59992         * modules/getgroups (Depends-on): Add stdint.
59994 2009-11-13  Jim Meyering  <meyering@redhat.com>
59996         test-getgroups: avoid compilation failure
59997         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
59999 2009-11-13  Eric Blake  <ebb9@byu.net>
60001         mgetgroups: new module, taken from coreutils
60002         * modules/mgetgroups: New file.
60003         * lib/mgetgroups.h: Likewise.
60004         * lib/mgetgroups.c (mgetgroups): Likewise.
60005         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
60006         * MODULES.html.sh (Users and groups): Mention it.
60008         getgroups: don't expose GETGROUPS_T to user
60009         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
60010         an element at a time if GETGROUPS_T is wrong size.
60011         * lib/getugroups.h (getugroups): Change signature.
60012         * lib/unistd.in.h (getgroups): Likewise.
60013         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
60014         signature needs fixing.
60015         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
60016         AC_TYPE_GETGROUPS.
60017         * modules/group-member (Depends-on): Add getgroups.
60018         * lib/group-member.c (group_info, get_group_info): Use gid_t.
60019         (group_member): Rely on getgroups replacement.
60020         * lib/getugroups.c (getugroups): Use gid_t.
60021         * tests/test-getgroups.c (main): Likewise.
60022         * NEWS: Mention the signature change.
60023         * doc/posix-functions/getgroups.texi (getgroups): Mention the
60024         problem with signature.
60025         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
60026         GETGROUPS_T is still useful for setgroups.
60028         getgroups, getugroups: provide stubs for mingw
60029         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
60030         * lib/getugroups.c (getugroups): Likewise.
60031         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
60032         function.  Modernize replacement scheme.
60033         (gl_PREREQ_GETGROUPS): Delete.
60034         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
60035         * modules/getgroups (configure.ac): Declare witness.
60036         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
60037         * modules/unistd (Depends-on): Substitute witness.
60038         * lib/unistd.in.h (getgroups): Declare replacement.
60040         getgroups: avoid calling exit
60041         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
60042         drop xalloc.
60043         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
60044         dependencies.
60045         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
60046         exiting, in the rare case of malloc failure.
60048         getgroups: fix logic error
60049         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
60050         has more than 20 groups.
60051         * modules/getgroups-tests: New test.
60052         * tests/test-getgroups.c: New file.
60054 2009-11-13  Simon Josefsson  <simon@josefsson.org>
60056         * tests/test-base64.c: Improve.
60058 2009-11-13  Simon Josefsson  <simon@josefsson.org>
60060         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
60061         Blake <ebb9@byu.net>.
60063 2009-11-13  Simon Josefsson  <simon@josefsson.org>
60065         * tests/test-xvasprintf.c: Add %s%s related checks.
60067 2009-11-12  Eric Blake  <ebb9@byu.net>
60069         version-etc: match standards.texi style
60070         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
60071         and use <> only for URLs.
60073 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
60075         fts: do not fail on a submount during traversal
60076         * lib/fts.c (fts_build): Read the stat info again after opening
60077         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
60078         Original report at http://bugzilla.redhat.com/501848.
60080 2009-11-12  Jim Meyering  <meyering@redhat.com>
60082         bootstrap: sync from coreutils
60083         * build-aux/bootstrap (bootstrap_epilogue): New function.
60084         Use git_modules_config in one more place.  This make bootstrap's
60085         --gnulib-srcdir option more useful for testing.
60087         bootstrap: generalize autoheader check
60088         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
60089         AC_CONFIG_HEADERS.
60091 2009-11-11  Eric Blake  <ebb9@byu.net>
60093         mkfifoat: use new modules for Solaris and BSD bugs
60094         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
60095         * lib/mkfifoat.c (mknodat): Split...
60096         * lib/mknodat.c (mknodat): ...into new file.
60097         * modules/mkfifoat (Files): Ship new file.
60098         (Depends-on): Add mkfifo, mknod.
60099         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
60100         (Depends-on): Add symlink.
60101         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
60102         redundant with test_mkfifo.h.
60103         (do_mkfifoat, do_mknodat): New helpers.
60105         mknod: new module
60106         * modules/mknod: New file.
60107         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
60108         * lib/mknod.c (mknod): Likewise.
60109         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
60110         defaults.
60111         * modules/sys_stat (Makefile.am): Substitute them.
60112         * lib/sys_stat.in.h (mknod): Declare replacement.
60113         * MODULES.html.sh (Support for systems lacking POSIX:2008):
60114         Document it.
60115         * doc/posix-functions/mknod.texi (mknod): Likewise.
60116         * modules/mknod-tests: New test.
60117         * tests/test-mknod.c: Likewise.
60119         mkfifo: new module
60120         * modules/mkfifo: New file.
60121         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
60122         * lib/mkfifo.c (mkfifo): Likewise.
60123         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
60124         defaults.
60125         * modules/sys_stat (Makefile.am): Substitute them.
60126         * lib/sys_stat.in.h (mkfifo): Declare replacement.
60127         * MODULES.html.sh (Support for systems lacking POSIX:2008):
60128         Document it.
60129         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
60130         * modules/mkfifo-tests: New test.
60131         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
60132         from test-mkfifoat.c.
60133         * tests/test-mkfifo.c: New file.
60135         readlink: detect FreeBSD bug
60136         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
60137         slash on symlink.
60138         * doc/posix-functions/readlink.texi (readlink): Document the bug.
60139         * tests/test-readlink.h (test_readlink): Enhance test.
60141         symlink: detect FreeBSD bug
60142         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
60143         slash on symlink.
60144         * doc/posix-functions/symlink.texi (symlink): Document the bug.
60145         * tests/test-symlink.h (test_symlink): Enhance test.
60147 2009-11-10  Eric Blake  <ebb9@byu.net>
60149         link: detect FreeBSD bug
60150         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
60151         symlink.
60152         * doc/posix-functions/link.texi (link): Document the bug.
60153         * tests/test-link.h (test_link): Enhance test.
60154         * tests/test-linkat.c (main): Update caller.
60156         unlink, remove: detect FreeBSD bug
60157         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
60158         slash on symlink.
60159         * doc/posix-functions/unlink.texi (unlink): Document the bug.
60160         * doc/posix-functions/remove.texi (remove): Likewise.
60161         * tests/test-unlink.h (test_unlink): Enhance test.
60162         * tests/test-remove.c (main): Likewise.
60164 2009-11-09  Eric Blake  <ebb9@byu.net>
60166         rename: detect FreeBSD bug
60167         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
60168         slash on symlink.
60169         * modules/renameat-tests (Depends-on): Add filenamecat.
60170         * tests/test-rename.h (test_rename): Allow one more errno.
60171         * tests/test-renameat.c (main): Likewise.
60172         * doc/posix-functions/rename.texi (rename): Document the bug.
60174         open: detect FreeBSD bug
60175         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
60176         symlink.
60177         * doc/posix-functions/open.texi (open): Document the bug.
60178         * doc/posix-functions/utimes.texi (utimes): Likewise.
60179         * tests/test-open.h (test_open): Add parameters, and test symlink
60180         handling.
60181         * tests/test-open.c (main): Adjust caller.
60182         * tests/test-fcntl-safer.c (main): Likewise.
60183         * modules/open-tests (Depends-on): Add stdbool, symlink.
60184         * modules/fcntl-safer-tests (Depends-on): Likewise.
60185         * tests/test-openat.c (main): Add test-open tests.
60187         stat: detect FreeBSD bug
60188         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
60189         symlink.
60190         * doc/posix-functions/stat.texi (stat): Document the bug.
60191         * tests/test-stat.h (test_stat_func): Add argument.
60192         * tests/test-stat.c (main): Adjust caller.
60193         * tests/test-fstatat.c (main): Likewise.
60194         * modules/stat-tests (Depends-on): Add stdbool, symlink.
60195         Reported by Jim Meyering.
60197 2009-11-09  James Youngman  <jay@gnu.org>
60199         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
60200         * lib/strftime.c: Correct placement of #include "ignore-value.h".
60202 2009-11-08  Jim Meyering  <meyering@redhat.com>
60204         utimens: remove invalid futimesat call
60205         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
60206         It used the file descriptor of the target file as the DIR_FD
60207         parameter and NULL as the file name.  That caused failure with
60208         errno == EFAULT on FreeBSD-8.0-rc2
60210 2009-11-07  Eric Blake  <ebb9@byu.net>
60212         fflush, freadseek: use fseeko, not fseek
60213         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
60214         (clear_ungetc_buffer): Avoid potential problems on large files.
60215         * lib/freadseek.c (freadseek): Likewise.
60216         * modules/freadseek (Depends-on): Add fseeko.
60217         * modules/fseek (configure.ac): Set a witness.
60218         * tests/test-fflush.c (main): Use fseeko.
60219         * tests/test-fpurge.c (fseek): Disable link warning.
60220         * tests/test-freadable.c (fseek): Likewise.
60221         * tests/test-freading.c (fseek): Likewise.
60222         * tests/test-fseeko.c (fseek): Likewise.
60223         * tests/test-ftell.c (fseek): Likewise.
60224         * tests/test-ftello.c (fseek): Likewise.
60225         * tests/test-fwritable.c (fseek): Likewise.
60226         * tests/test-fwriting.c (fseek): Likewise.
60228 2009-11-06  Simon Josefsson  <simon@josefsson.org>
60230         * modules/memchr (Depends-on): Drop getpagesize dependency.
60232 2009-11-06  Simon Josefsson  <simon@josefsson.org>
60234         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
60235         Reported by Ludovic Courtès.
60236         * build-aux/pmccabe2html: Improve example usage.
60237         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
60239 2009-11-06  Jim Meyering  <meyering@redhat.com>
60241         do-release-commit-and-tag: New module.
60242         Automate the release-commit and tag process.
60243         * build-aux/do-release-commit-and-tag: New script, from coreutils.
60244         * modules/do-release-commit-and-tag: New file.
60245         * MODULES.html.sh (Support for maintaining and releasing): Add it.
60247 2009-11-06  Simon Josefsson  <simon@josefsson.org>
60249         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
60250         because test-select.c uses inet_pton.
60252 2009-11-06  Simon Josefsson  <simon@josefsson.org>
60254         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
60255         GETADDRINFO_LIB.  Bump serial number.
60256         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
60257         Suggested by Eric Blake <ebb9@byu.net>.
60259 2009-11-05  Eric Blake  <ebb9@byu.net>
60261         strtod: detect darwin bug
60262         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
60263         Reported by Leo Davis.
60265         freopen-safer: new module
60266         * modules/freopen-safer: New module.
60267         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
60268         * lib/freopen-safer.c (freopen_safer): New file.
60269         * lib/stdio-safer.h (freopen_safer): New declaration.
60270         * lib/stdio--.h (freopen): New override.
60271         * MODULES.html.sh (File stream based Input/Output): Mention it.
60272         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
60273         freopen-safer module.
60274         * doc/posix-functions/stderr.texi (stderr): Likewise.
60275         * doc/posix-functions/stdin.texi (stdin): Likewise.
60276         * doc/posix-functions/stdout.texi (stdout): Likewise.
60277         * modules/freopen-safer-tests: New test.
60278         * tests/test-reopen-safer.c: New file.
60280 2009-11-05  Jim Meyering  <meyering@redhat.com>
60282         maint.mk: Prohibit inclusion of "close-stream.h" without use.
60283         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
60285 2009-11-05  Simon Josefsson  <simon@josefsson.org>
60287         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
60289 2009-11-05  Simon Josefsson  <simon@josefsson.org>
60291         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
60293 2009-11-05  Simon Josefsson  <simon@josefsson.org>
60295         Fix link error.
60296         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
60297         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60299 2009-11-05  Simon Josefsson  <simon@josefsson.org>
60301         * tests/test-func.c: Also test value of __func__.
60303 2009-11-05  Simon Josefsson  <simon@josefsson.org>
60305         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
60306         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
60308 2009-11-05  Bruno Haible  <bruno@clisp.org>
60310         Fix link error.
60311         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
60312         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60313         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
60315 2009-11-05  Bruno Haible  <bruno@clisp.org>
60317         Tests for module 'inet_pton'.
60318         * modules/inet_pton-tests: New file.
60319         * tests/test-inet_pton.c: New file.
60321 2009-11-05  Bruno Haible  <bruno@clisp.org>
60323         Tests for module 'inet_ntop'.
60324         * modules/inet_ntop-tests: New file.
60325         * tests/test-inet_ntop.c: New file.
60327 2009-11-04  Eric Blake  <ebb9@byu.net>
60329         stdlib-safer: wrap all mkstemp variants
60330         * modules/mkostemp (configure.ac): Set witness.
60331         * modules/mkostemps (configure.ac): Likewise.
60332         * modules/mkstemps (configure.ac): Likewise.
60333         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
60334         (mkstemps_safer): Wrap more functions.
60335         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
60336         wrapping.
60337         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
60338         (mkstemps_safer): Implement the wrappers.
60340         mkstemps, mkostemps: new modules
60341         * modules/mkostemps: New module.
60342         * modules/mkstemps: Likewise.
60343         * lib/mkostemps.c (mkostemps): New file.
60344         * lib/mkstemps.c (mkstemps): Likewise.
60345         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
60346         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
60347         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
60348         * modules/stdlib (Makefile.am): Substitute them.
60349         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
60350         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
60351         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
60352         * doc/gnulib.texi (Glibc stdlib.h): Include them.
60353         * MODULES.html.sh (File system functions): Mention them.
60355         tempname: resync from glibc
60356         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
60357         same values for __GT_FILE as glibc.  Abort even when assertions
60358         are disabled.
60359         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
60360         match its value otherwise.  Allow idempotent inclusion.
60361         * lib/mkdtemp.c (mkdtemp): Adjust caller.
60362         * lib/mkostemp.c (mkostemp): Likewise.
60363         * lib/mkstemp.c (mkstemp): Likewise.
60364         * lib/tmpfile.c (tmpfile): Likewise.
60365         * NEWS: Document this.
60367         utimens: fix use of futimens on older Linux
60368         * lib/utimens.c (fdutimens): Use updated, rather than original,
60369         timespec to avoid bug in older Linux kernel.
60370         Reported by Simon Josefsson.
60372 2009-11-04  Bruno Haible  <bruno@clisp.org>
60374         Make num_processors more flexible and consistent.
60375         * lib/nproc.h (enum nproc_query): New type.
60376         (num_processors): Add a 'query' argument.
60377         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
60378         (num_processors): Add a 'query' argument. Test the value of the
60379         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
60380         mingw, count the number of CPUs available for the current process.
60381         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
60382         Check for sched_getaffinity and sched_getaffinity_np.
60383         * modules/nproc (Depends-on): Add c-ctype, extensions.
60384         * NEWS: Mention the change.
60386 2009-11-03  Bruno Haible  <bruno@clisp.org>
60388         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
60390 2009-11-03  Jim Meyering  <meyering@redhat.com>
60392         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
60393         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
60394         if it is defined.
60396 2009-11-02  Eric Blake  <ebb9@byu.net>
60398         mktime, timegm: share common declaration
60399         * lib/mktime-internal.h: New file.
60400         * lib/mktime.c: Use it rather than open-coding a declaration.
60401         * lib/timegm.c: Likewise.
60402         * modules/mktime (Files): Ship it.
60403         * modules/timegm (Files): Likewise.
60404         Suggested by Bruno Haible.
60406         test-update-copyright: update test to match script changes
60407         * tests/test-update-copyright.sh: Avoid hard-coding perl
60408         location.  Don't update *.bak created by earlier runs.
60410 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
60411             Simon Josefsson  <simon@josefsson.org>
60412             Bruno Haible  <bruno@clisp.org>
60414         Fix link error on Solaris 8.
60415         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
60416         also in libnsl. Define also INET_PTON_LIB.
60417         * modules/inet_pton (Link): New section.
60419 2009-11-02  Simon Josefsson  <simon@josefsson.org>
60420             Bruno Haible  <bruno@clisp.org>
60422         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
60423         * modules/inet_ntop (Link): New section.
60424         Reported by Boyan Kasarov <bkasarov@gmail.com>.
60426 2009-11-02  Eric Blake  <ebb9@byu.net>
60428         maint: avoid compiler warnings in m4 macros
60429         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
60430         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
60432 2009-11-02  Simon Josefsson  <simon@josefsson.org>
60434         * m4/pmccabe2html.m4: Remove file.
60435         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
60436         function.  Change maintainer.
60437         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
60438         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
60439         Courtès).
60441 2009-10-31  Eric Blake  <ebb9@byu.net>
60443         fseeko: fix m4 regression
60444         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
60445         regression from 2009-10-27.
60446         Reported by Ralf Wildenhues.
60448 2009-10-31  Jim Meyering  <meyering@redhat.com>
60450         inttostr: aesthetics and improved (compile-time) safety
60451         Define inttype_is_signed rather than inttype_is_unsigned,
60452         since the sole use is via "#if inttype_is_signed".
60453         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
60454         inttype_is_unsigned.
60455         * lib/offtostr.c (inttype_is_signed): Likewise.
60456         * lib/uinttostr.c (inttype_is_signed): Likewise.
60457         * lib/umaxtostr.c (inttype_is_signed): Likewise.
60458         * lib/inttostr.c (inttostr): Use verify to cross-check the
60459         inttype_is_signed value and the signedness of the actual type.
60460         * modules/inttostr (Depends-on): Add verify.
60462 2009-10-30  Eric Blake  <ebb9@byu.net>
60464         build: avoid compiler warnings
60465         * lib/fchmodat.c (lchmod): Mark unused variables.
60466         * lib/getopt.c (_getopt_initialize): Likewise.
60467         * lib/mktime.c (__mktime_internal): Provide prototype.
60468         * lib/inttostr.c (inttostr): Avoid compiler warning even with
60469         older gcc that do not understand #pragma GCC diagnostic.
60470         * lib/uinttostr.c (inttype_is_unsigned): Define.
60471         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
60473 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
60475         stat: fix compilation on AIX
60476         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
60477         only see struct stat64.
60479 2009-10-30  Eric Blake  <ebb9@byu.net>
60481         exclude: make more robust
60482         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
60483         rather than masking a coding bug.
60484         Suggested by Bruno Haible.
60486 2009-10-30  Jim Meyering  <meyering@redhat.com>
60488         perl scripts: remove #!/usr/bin/perl in favor of more portable...
60489         Rather than putting #!/usr/bin/perl on the first line,
60490         start with a variant of what's recommended by "man perlrun" that
60491         invokes the first "perl" program from your shell's search path.
60492         * build-aux/gitlog-to-changelog: Replace #!... as above.
60493         Add a "Local Variables" perl mode setting.
60494         Prompted by a patch from Ludovic Courtès.
60495         Improved by Eric Blake.
60496         * build-aux/useless-if-before-free: Likewise.
60497         * build-aux/announce-gen: Likewise.
60498         * build-aux/update-copyright: Likewise.
60500 2009-10-29  Eric Blake  <ebb9@byu.net>
60502         filenamecat-lgpl: adjust clients
60503         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
60504         filenamecat.
60505         * modules/renameat (Depends-on): Likewise.
60507         filenamecat: split into filenamecat-lgpl
60508         * modules/filenamecat-lgpl: New module.
60509         * modules/filenamecat (Files): Move library-safe files into
60510         filenamecat-lgpl.
60511         (Depends-on): Add filenamecat-lgpl.
60512         (configure.ac): Declare witness.
60513         * lib/filenamecat.h (file_name_concat): Only declare when using
60514         GPL module.
60515         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
60516         Move...
60517         * lib/filenamecat-lgpl.c: ...into new file.
60518         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
60519         (gl_FILE_NAME_CONCAT): Use it.
60520         * MODULES.html.sh (File system functions): Mention new module.
60522         argp: avoid memory leak
60523         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
60524         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
60525         base_name, since the latter malloc()s and can call exit().
60526         Leak introduced 2006-07-03.
60528         dirname-lgpl: adjust clients that don't need full dirname
60529         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
60530         * modules/filenamecat (Depends-on): Likewise.
60531         * modules/linkat (Depends-on): Likewise.
60532         * modules/mkancesdirs (Depends-on): Likewise.
60533         * modules/mkdir (Depends-on): Likewise.
60534         * modules/openat (Depends-on): Likewise.
60535         * modules/savewd (Depends-on): Likewise.
60536         * modules/rename (Depends-on): Likewise.
60537         (License): Relax license.
60538         * modules/mkdir-tests (Depends-on): Drop progname.
60539         (Makefile.am): Delete unneeded LDADD.
60540         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
60542         dirname: split into dirname-lgpl
60543         * modules/dirname-lgpl: New module.
60544         * modules/dirname (Files): Move library-safe files into
60545         dirname-lgpl.
60546         (Depends-on): Add dirname-lgpl.
60547         (configure.ac): Declare witness.
60548         * modules/double-slash-root (License): Relax license.
60549         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
60550         module.
60551         * lib/dirname.c (dir_len, mdir_name): Move...
60552         * lib/dirname-lgpl.c: ...into new file.
60553         * lib/basename.c (last_component, base_len): Move...
60554         * lib/basename-lgpl.c: ...into new file.
60555         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
60556         (gl_DIRNAME): Use it.
60557         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
60558         Mention new module.
60559         * modules/dirname-tests (Depends-on): Add progname.
60560         * tests/test-dirname.c (program_name): Delete.
60562         mkdir: make safe for libraries
60563         * modules/mkdir (Depends-on): Drop xalloc.
60564         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
60565         exit.
60567         tests: avoid some compiler warnings
60568         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
60569         literals.
60570         * tests/test-memchr.c (main): Avoid type mismatch.
60571         * tests/test-arpa_inet.c (main): Avoid unused parameters.
60572         * tests/test-base64.c (main): Likewise.
60573         * tests/test-getdelim.c (main): Likewise.
60574         * tests/test-gethostname.c (main): Likewise.
60575         * tests/test-getline.c (main): Likewise.
60576         * tests/test-netinet_in.c (main): Likewise.
60577         * tests/test-select.c (open_server_socket, main): Likewise.
60578         * tests/test-select-stdin.c (main): Likewise.
60579         * tests/test-sockets.c (main): Likewise.
60580         * tests/test-strsignal.c (main): Likewise.
60581         * tests/test-sys_select.c (main): Likewise.
60582         * tests/test-sys_socket.c (main): Likewise.
60583         * tests/test-u64.c (main): Likewise.
60584         * tests/test-xfprintf-posix.c (main): Likewise.
60585         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
60587         sockets: avoid compiler warning
60588         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
60590         maint: detect usage(1) and other suspicious exits
60591         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
60593 2009-10-29  Jim Meyering  <meyering@redhat.com>
60595         timespec: long-to-int truncation could make timespec_cmp malfunction
60596         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
60597         a multiple of 2^32 nanoseconds as no difference.
60599 2009-10-28  Jim Meyering  <meyering@redhat.com>
60601         fprintftime: wrap macro code argument in "do {...} while(0)"
60602         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
60603         cpy macro must be a statement that can be followed by a semicolon.
60604         Now that the else clause contains a comment and is hence longer
60605         than one line, I require curly braces.  That in turn requires
60606         that we wrap this code block in the standard do...while(0).
60608         fprintftime: remove stray semicolon from previous change
60609         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
60611         fprintftime: avoid a warning about ignored fwrite return value
60612         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
60613         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
60614         that is unsafe.
60615         * modules/fprintftime (Depends-on): Add ignore-value.
60617         exclude: avoid an unwarranted warning
60618         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
60620 2009-10-27  Eric Blake  <ebb9@byu.net>
60622         fseek: avoid compilation failure when fflush is replaced
60623         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
60624         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
60625         module is in use.
60626         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
60627         module is not in use; since REPLACE_FSEEK worked otherwise.
60628         (GNULIB_FTELLO): Likewise for ftell.
60629         Reported by Ian Beckwith and others.
60631 2009-10-27  Bruno Haible  <bruno@clisp.org>
60633         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
60634         Reported by Jim Meyering.
60636 2009-10-27  Jim Meyering  <jim@meyering.net>
60637             Bruno Haible  <bruno@clisp.org>
60639         Avoid warning despite dropping the return value of fwrite.
60640         * lib/unicodeio.c: Include ignore-value.h.
60641         (fwrite_success_callback): Explicitly ignore fwrite's return value.
60642         * modules/unicodeio (Depends-on): Add ignore-value.
60644 2009-10-26  Eric Blake  <ebb9@byu.net>
60646         areadlinkat: fix fallback path
60647         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
60648         pointer and zero.
60650 2009-10-22  Pádraig Brady  <P@draigBrady.com>
60652         Use a better IO block size for modern systems
60653         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
60654         * lib/md2.c: Likewise.
60655         * lib/md4.c: Likewise.
60656         * lib/md5.c: Likewise.
60657         * lib/sha1.c: Likewise.
60658         * lib/sha256.c: Likewise.
60659         * lib/sha512.c: Likewise.
60661 2009-10-22  Eric Blake  <ebb9@byu.net>
60663         tests: avoid several compiler warnings
60664         * tests/test-getcwd.c (main): Avoid buffer underflow.
60665         * tests/test-getdate.c (main): String literals are not safe with
60666         putenv, so use setenv.  Declare unused argument.
60667         * modules/getdate-tests (Depends-on): Add setenv.
60668         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
60669         problems with string literals in char *.
60670         * tests/test-hash.c (main): Avoid shadowing declaration.
60671         (insert_new): Treat string literals as char const *.
60672         * tests/test-getopt.h (test_getopt): Likewise.
60673         (getopt_loop): Alter types to minimize casting elsewhere.
60674         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
60675         (test_getopt_long_posix): Likewise.
60676         (do_getopt_long): Add wrapper to minimize casting.
60677         * tests/test-atexit.c (clear_temp_file): Use void.
60678         * tests/test-areadlink-with-size.c (main): Declare unused
60679         arguments.
60680         * tests/test-areadlink.c (main): Likewise.
60681         * tests/test-areadlinkat-with-size.c (main): Likewise.
60682         * tests/test-areadlinkat.c (main): Likewise.
60683         * tests/test-canonicalize-lgpl.c (main): Likewise.
60684         * tests/test-canonicalize.c (main): Likewise.
60685         * tests/test-dirent-safer.c (main): Likewise.
60686         * tests/test-dirname.c (main): Likewise.
60687         * tests/test-dup2.c (main): Likewise.
60688         * tests/test-fchdir.c (main): Likewise.
60689         * tests/test-fcntl-h.c (main): Likewise.
60690         * tests/test-fcntl-safer.c (main): Likewise.
60691         * tests/test-fdopendir.c (main): Likewise.
60692         * tests/test-fdutimensat.c (main): Likewise.
60693         * tests/test-fflush.c (main): Likewise.
60694         * tests/test-filenamecat.c (main): Likewise.
60695         * tests/test-filevercmp.c (main): Likewise.
60696         * tests/test-fopen-safer.c (main): Likewise.
60697         * tests/test-fopen.c (main): Likewise.
60698         * tests/test-fpending.c (main): Likewise.
60699         * tests/test-fpurge.c (main): Likewise.
60700         * tests/test-freading.c (main): Likewise.
60701         * tests/test-fstatat.c (main): Likewise.
60702         * tests/test-fsync.c (main): Likewise.
60703         * tests/test-futimens.c (main): Likewise.
60704         * tests/test-getndelim2.c (main): Likewise.
60705         * tests/test-gettimeofday.c (main): Likewise.
60706         * tests/test-getopt.c (main): Likewise.
60707         * tests/test-i-ring.c (main): Likewise.
60708         * tests/test-inttypes.c (main): Likewise.
60709         * tests/test-link.c (main): Likewise.
60710         * tests/test-lstat.c (main): Likewise.
60711         * tests/test-math.c (main): Likewise.
60712         * tests/test-md5.c (main): Likewise.
60713         * tests/test-memchr2.c (main): Likewise.
60714         * tests/test-memrchr.c (main): Likewise.
60715         * tests/test-mkdir.c (main): Likewise.
60716         * tests/test-mkdirat.c (main): Likewise.
60717         * tests/test-mkfifoat.c (main): Likewise.
60718         * tests/test-open.c (main): Likewise.
60719         * tests/test-openat-safer.c (main): Likewise.
60720         * tests/test-openat.c (main): Likewise.
60721         * tests/test-quotearg.c (main): Likewise.
60722         * tests/test-rawmemchr.c (main): Likewise.
60723         * tests/test-readlink.c (main): Likewise.
60724         * tests/test-remove.c (main): Likewise.
60725         * tests/test-rename.c (main): Likewise.
60726         * tests/test-renameat.c (main): Likewise.
60727         * tests/test-rmdir.c (main): Likewise.
60728         * tests/test-sha1.c (main): Likewise.
60729         * tests/test-signal.c (main): Likewise.
60730         * tests/test-sigaction.c (main): Likewise.
60731         * tests/test-stat.c (main): Likewise.
60732         * tests/test-stat-time.c (main): Likewise.
60733         * tests/test-stddef.c (main): Likewise.
60734         * tests/test-stdint.c (main): Likewise.
60735         * tests/test-stdio.c (main): Likewise.
60736         * tests/test-stdlib.c (main): Likewise.
60737         * tests/test-strchrnul.c (main): Likewise.
60738         * tests/test-strerror.c (main): Likewise.
60739         * tests/test-string.c (main): Likewise.
60740         * tests/test-strtod.c (main): Likewise.
60741         * tests/test-strverscmp.c (main): Likewise.
60742         * tests/test-symlink.c (main): Likewise.
60743         * tests/test-symlinkat.c (main): Likewise.
60744         * tests/test-sys_stat.c (main): Likewise.
60745         * tests/test-sys_time.c (main): Likewise.
60746         * tests/test-time.c (main): Likewise.
60747         * tests/test-unistd.c (main): Likewise.
60748         * tests/test-unlink.c (main): Likewise.
60749         * tests/test-unlinkat.c (main): Likewise.
60750         * tests/test-utimens.c (main): Likewise.
60751         * tests/test-utimensat.c (main): Likewise.
60752         * tests/test-version-etc.c (main): Likewise.
60753         * tests/test-wchar.c (main): Likewise.
60754         * tests/test-wctype.c (main): Likewise.
60755         * tests/test-xprintf-posix.c (main): Likewise.
60756         * tests/test-posixtm.c (main): Likewise.
60757         (STREQ): Delete unused macro.
60758         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
60759         shadowed variables.
60760         * tests/test-memchr.c (main): Likewise.
60762 2009-10-21  Eric Blake  <ebb9@byu.net>
60764         areadlinkat: avoid failure on older glibc
60765         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
60766         rather than mis-comparing 0 against FUNC_RESULT of char*.
60768 2009-10-21  Bruno Haible  <bruno@clisp.org>
60770         * modules/stpncpy (License): Relicense under LGPLv2+.
60771         Reported by David Lutterkort <lutter@redhat.com>.
60773 2009-10-20  Eric Blake  <ebb9@byu.net>
60775         utimensat: work around Solaris 9 bug
60776         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
60777         has trailing slash bugs.
60778         * tests/test-lutimens.h (test_lutimens): Enhance test.
60779         * tests/test-utimens.h (test_utimens): Likewise.
60780         * doc/posix-functions/utime.texi (utime): Enhance documentation.
60781         * doc/posix-functions/utimes.texi (utimes): Likewise.
60782         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
60783         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
60784         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
60785         * doc/posix-functions/futimens.texi (futimens): Likewise.
60787         fdutimensat: new module
60788         * modules/fdutimensat: New file.
60789         * lib/fdutimensat.c (fdutimensat): Likewise.
60790         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
60791         * MODULES.html.sh (File system functions): Mention module.
60792         * modules/fdutimensat-tests: New test.
60793         * tests/test-fdutimensat.c: Likewise.
60795         doc: regenerate INSTALL
60796         * doc/INSTALL: Reflect recent autoconf update.
60797         * doc/INSTALL.ISO: Likewise.
60798         * doc/INSTALL.UTF-8: Likewise.
60800 2009-10-20  Pádraig Brady  <P@draigBrady.com>
60802         acl: warn if ACL support is not detected
60803         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
60805 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
60807         * lib/nproc.h: Add extern "C" block for C++.
60809 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
60810             Bruno Haible  <bruno@clisp.org>
60812         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
60813         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
60814         * doc/posix-functions/isalpha.texi: Likewise.
60815         * doc/posix-functions/isblank.texi: Likewise.
60816         * doc/posix-functions/iscntrl.texi: Likewise.
60817         * doc/posix-functions/isdigit.texi: Likewise.
60818         * doc/posix-functions/isgraph.texi: Likewise.
60819         * doc/posix-functions/islower.texi: Likewise.
60820         * doc/posix-functions/isprint.texi: Likewise.
60821         * doc/posix-functions/ispunct.texi: Likewise.
60822         * doc/posix-functions/isspace.texi: Likewise.
60823         * doc/posix-functions/isupper.texi: Likewise.
60824         * doc/posix-functions/isxdigit.texi: Likewise.
60826 2009-10-18  Bruno Haible  <bruno@clisp.org>
60828         Tests for module 'isblank'.
60829         * modules/isblank-tests: New file.
60830         * tests/test-isblank.c: New file.
60832         New module 'isblank'.
60833         * lib/isblank.c: New file.
60834         * m4/isblank.m4: New file.
60835         * modules/isblank: New file.
60836         * doc/posix-functions/isblank.texi: Mention the new module.
60838 2009-10-18  Bruno Haible  <bruno@clisp.org>
60840         New module 'ctype'.
60841         * lib/ctype.in.h: New file.
60842         * m4/ctype.m4: New file.
60843         * modules/ctype: New file.
60844         * doc/posix-headers/ctype.texi: Mention the new module.
60846 2009-10-18  Jim Meyering  <meyering@redhat.com>
60848         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
60849         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
60850         right after its initialization, rather than farther down.
60851         Keeping these in close proximity makes it easier to ensure
60852         that each such variable is initialized.  E.g.,
60854             LIB_CLOCK_GETTIME=
60855             AC_SUBST([LIB_CLOCK_GETTIME])
60857         This change also increments these serial numbers.
60858         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
60859         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
60860         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60862 2009-10-18  Bruno Haible  <bruno@clisp.org>
60864         Don't let environment variables perturb build.
60865         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
60866         (gl_PREREQ_GETHRXTIME): ... not here.
60868 2009-10-18  Bruno Haible  <bruno@clisp.org>
60870         Avoid symlink attack in localcharset module.
60871         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
60872         (O_NOFOLLOW): Define fallback.
60873         (get_charset_aliases): Don't open the file if it is a symbolic link.
60874         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
60875         gl_FCNTL_H.
60876         (gl_FCNTL_H): Require it.
60877         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
60878         * modules/localcharset (Files): Add m4/fcntl_h.m4.
60879         Reported by Fergal Glynn <fglynn@veracode.com>.
60881 2009-10-18  Bruno Haible  <bruno@clisp.org>
60883         Implement nproc for mingw.
60884         * lib/nproc.c: Include <windows.h>
60885         (num_processors): On native Windows platforms, try GetSystemInfo.
60887 2009-10-18  Bruno Haible  <bruno@clisp.org>
60889         Implement nproc for IRIX.
60890         * lib/nproc.c: Include <sys/sysmp.h>.
60891         (num_processors): On IRIX systems, try sysmp.
60892         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
60894 2009-10-18  Bruno Haible  <bruno@clisp.org>
60896         Implement nproc for HP-UX.
60897         * lib/nproc.c: Include <sys/pstat.h>
60898         (num_processors): On HP-UX systems, try pstat_getdynamic.
60899         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
60900         pstat_getdynamic.
60902 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
60903             Bruno Haible  <bruno@clisp.org>
60905         Implement nproc for NetBSD, OpenBSD.
60906         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
60907         (ARRAY_SIZE): New macro.
60908         (num_processors): On BSD systems, try sysctl of HW_NCPU.
60909         * m4/nproc.m4: New file.
60910         * modules/nproc (Files): Add m4/nproc.m4.
60911         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
60912         (Makefile.am): Instead, augment lib_SOURCES.
60914 2009-10-18  Bruno Haible  <bruno@clisp.org>
60916         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
60917         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
60918         sys/param.h.
60920 2009-10-16  Eric Blake  <ebb9@byu.net>
60922         utimensat: new module
60923         * modules/utimensat: New file.
60924         * lib/utimensat.c (utimensat): Likewise.
60925         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
60926         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
60927         so we can work around Linux bugs.
60928         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
60929         * modules/sys_stat (Makefile.am): Substitute them.
60930         * lib/sys_stat.in.h (utimensat): Declare it.
60931         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
60932         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
60933         * modules/utimensat-tests: New test.
60934         * tests/test-utimensat.c: Likewise.
60936         utimens: let lutimens work on non-symlinks
60937         * lib/utimens.c (lutimens): Fall back to utimens rather than
60938         failing with ENOSYS, when file is not a symlink.
60939         (utimens): Reduce redirection.
60940         * tests/test-lutimens.h (test_lutimens): Update test to cover
60941         non-symlinks.
60942         * tests/test-utimens.h (test_utimens): Update test to cover
60943         symlinks.
60944         * tests/test-utimens.c (main): Update caller.
60946         utimens: cache whether utimensat syscall works
60947         * lib/utimens.c (utimensat_works_really): New cache variable.
60948         (fdutimens, lutimens): Use it to avoid failing syscall.
60950         test-stat-time, test-utimens: improve portability
60951         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
60952         ext4 on alpha, and for cygwin.
60953         * tests/test-utimens-common.h: New file.
60954         (nap): Factor delays into single function.
60955         * tests/test-lutimens.h (test_lutimens): Use new header.
60956         * tests/test-futimens.h (test_futimens): Likewise.
60957         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
60958         timestamps to occur from same machine, as was done previously for
60959         test_utimens.
60960         * modules/utimens-tests (Files): Ship new file.
60961         * modules/futimens-tests (Files): Likewise.
60962         Reported in part by Jim Meyering.
60964         sys_stat: sort replacement declarations
60965         * lib/sys_stat.in.h: Sort declarations.
60966         * lib/futimens.c (futimens): Fix typo.
60968 2009-10-15  Jim Meyering  <meyering@redhat.com>
60970         don't let environment settings perturb build
60971         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
60972         could cause a configure-time and/or build-time malfunction.
60973         Typically, a configure-time function-in-library test is performed
60974         via code like this:
60976           LIB_VAR=
60977           AC_SUBST([LIB_VAR])
60978           prefix_saved_LIBS=$LIBS
60979             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
60980                        [test "$ac_cv_search_FUNC" = "none required" ||
60981                         LIB_VAR=$ac_cv_search_FUNC])
60982           LIBS=$prefix_saved_LIBS
60984         However, in each of the files affected by this change, the LIB_VAR=
60985         initialization was omitted.  Thus, when set in the environment, its
60986         value would propagate into generated Makefiles when FUNC is not found
60987         in LIB_NAME.
60988         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
60989         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
60990         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60992 2009-10-14  Eric Blake  <ebb9@byu.net>
60994         fchdir: avoid infinite recursion in mingw
60995         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
60996         recursing.
60998         test-stat-time: port to mingw
60999         * tests/test-stat-time.c (force_unlink): Return a value.
61000         (test_ctime) [W32]: Fix compilation error.
61001         (nap): Don't call usleep with too large an argument.  Use
61002         force_unlink.
61003         * doc/pastposix-functions/usleep.texi (usleep): Document the
61004         portability issue.
61006 2009-10-13  Jim Meyering  <meyering@redhat.com>
61008         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
61009         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
61010         * modules/pipe-filter-ii: Likewise.
61011         * modules/sys_socket-tests: Likewise.
61012         * modules/tsearch-tests: Likewise.
61013         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
61014         (check): Depend on it.
61016 2009-10-12  Eric Blake  <ebb9@byu.net>
61018         utimens-tests: port to NFS file systems
61019         * tests/test-utimens.h (test_utimens): Refactor utimecmp
61020         comparisons to avoid spurious failures from timestamp drift
61021         between NFS machines.
61023 2009-10-12  Eric Blake  <ebb9@byu.net>
61025         stat-time-tests: minor cleanups
61026         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
61027         * tests/test-stat-time.c (nap): Separate assignment from call.
61028         Suggested by Paolo Bonzini and Bruno Haible.
61030         sys_stat: guarantee struct timespec
61031         * lib/sys_stat.in.h (includes): Always include <time.h>
61032         * modules/sys_stat (Depends-on): Add time.
61033         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
61034         mode_t permission values.
61035         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
61036         get at subsecond timestamps.
61038 2009-10-10  Eric Blake  <ebb9@byu.net>
61040         futimens: new module
61041         * modules/futimens: New file.
61042         * lib/futimens.c (futimens): Likewise.
61043         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
61044         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
61045         we can work around Linux bugs.
61046         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
61047         * modules/sys_stat (Makefile.am): Substitute them.
61048         * lib/sys_stat.in.h (futimens): Declare it.
61049         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
61050         * doc/posix-functions/futimens.texi (futimens): Likewise.
61051         * modules/futimens-tests: New test.
61052         * tests/test-futimens.c: Likewise.
61054         utimens: introduce fdutimens
61055         * lib/utimens.h (fdutimens): New prototype.
61056         * lib/utimens.c (gl_futimens): Move guts...
61057         (fdutimens): ...to new interface.
61058         * tests/test-utimens.c (do_fdutimens): Use it.
61060         utimens: add UTIME_NOW and UTIME_OMIT support
61061         * lib/utimens.c (validate_timespec, update_timespec): New helper
61062         functions.
61063         (gl_futimens, lutimens): Use them.
61064         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
61065         stdbool, sys_stat.
61066         (Link): Mention resulting library dependency.
61067         * modules/utimecmp (Link): Likewise.
61068         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
61069         (Makefile.am): Pick up library dependency.
61070         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
61071         definition.
61072         * tests/test-sys_stat.c: Test the definitions.
61073         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
61074         * NEWS: Document library dependency.
61076         utimecmp: support symlink timestamps
61077         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
61078         hashing when possible.  Use pathconf when available.
61079         (SYSCALL_RESOLUTION): Recognize tighter resolution.
61080         * modules/utimecmp (Depends-on): Add lstat.
61082         utimens: add lutimens interface
61083         * lib/utimens.c (lutimens): New function.
61084         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
61085         * lib/utimens.h (lutimens): Declare new interface.
61086         * tests/test-utimens.c (main): Enhance test.
61087         * tests/test-lutimens.h (test_lutimens): New file.
61088         * modules/utimens-tests (Files): Distribute it.
61089         (Depends-on): Add symlink.
61090         (configure.ac): Check for usleep.
61092         utimens: validate futimens usage
61093         * lib/utimens.c (gl_futimens): Require valid fd up front, using
61094         fewer syscalls on failure later on.  Avoid compiler warning on
61095         mingw.
61096         * modules/utimens (Depends-on): Add dup2.
61098         utimens: add test
61099         * modules/utimens-tests: New test.
61100         * tests/test-utimens.h: New file.
61101         * tests/test-futimens.h: Likewise.
61102         * tests/test-utimens.c: Likewise.
61104         doc: mention timestamp portability issues
61105         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
61106         instead.
61107         * doc/posix-functions/utime.texi (utime): Likewise.
61108         * doc/posix-functions/utimes.texi (utimes): Likewise.
61109         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
61110         instead.
61111         * doc/posix-functions/futimens.texi (futimens): Mention utimens
61112         module.
61113         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
61114         Mention weakness with symlink timestamps.
61115         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
61116         to utimensat/futimens instead.
61117         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
61119         test-dup2: enhance test
61120         * tests/test-dup2.c (main): Also check AT_FDCWD.
61122         test-stat-time: avoid more spurious failures
61123         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
61124         xfs; and avoid race if the two timestamps cross quantization edge.
61126         relocatable: prefer 'file system' over 'filesystem'
61127         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
61128         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
61129         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
61130         * doc/relocatable.texi (Enabling Relocatability): Likewise.
61131         * lib/relocatable.c (compute_curr_prefix): Likewise.
61133 2009-10-10  Jim Meyering  <meyering@redhat.com>
61135         stat-time-tests: check for the usleep function
61136         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
61138 2009-10-10  Bruno Haible  <bruno@clisp.org>
61140         * modules/xnanosleep: Put the Link section after the Include section.
61142 2009-10-09  Eric Blake  <ebb9@byu.net>
61144         dup2: work around FreeBSD 6.1 bug
61145         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
61146         * doc/posix-functions/dup2.texi (dup2): Document it.
61147         Reported by Nelson H. F. Beebe and Jim Meyering.
61149         test-stat-time: port to buggy NFS clients
61150         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
61151         (test_ctime): Also skip test if mtime and ctime are skewed.
61153         maint: prefer 'file system' over 'filesystem'
61154         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
61155         * doc/posix-functions/lstat.texi (lstat): Likewise.
61156         * lib/file-has-acl.c (file_has_acl): Likewise.
61157         * lib/fwriteerror.c [TEST]: Likewise.
61158         * tests/test-areadlink.h (test_areadlink): Likewise.
61159         * tests/test-areadlinkat-with-size.c (main): Likewise.
61160         * tests/test-areadlinkat.c (main): Likewise.
61161         * tests/test-canonicalize-lgpl.c (main): Likewise.
61162         * tests/test-canonicalize.c (main): Likewise.
61163         * tests/test-fstatat.c (main): Likewise.
61164         * tests/test-linkat.c (main): Likewise.
61165         * tests/test-lstat.h (test_lstat_func): Likewise.
61166         * tests/test-mkdir.h (test_mkdir): Likewise.
61167         * tests/test-readlink.h (test_readlink): Likewise.
61168         * tests/test-remove.c (main): Likewise.
61169         * tests/test-rename.h (test_rename): Likewise.
61170         * tests/test-renameat.c (main): Likewise.
61171         * tests/test-rmdir.h (test_rmdir_func): Likewise.
61172         * tests/test-symlink.h (test_symlink): Likewise.
61173         * tests/test-symlinkat.c (main): Likewise.
61174         * tests/test-unlink.h (test_unlink_func): Likewise.
61175         * tests/test-unlinkat.c (main): Likewise.
61177         maint: make realtime library usage explicit
61178         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
61179         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
61180         * modules/settime (Link): Likewise.
61181         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
61183         test-stat-time: speed up execution
61184         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
61185         warning on mingw.
61186         (nap): New helper function.
61187         (prepare_test): Use it to reduce sleep time.
61188         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
61189         execution.
61190         * modules/stat-time-tests (configure.ac): Check for usleep.
61192 2009-10-09  Jim Meyering  <meyering@redhat.com>
61194         selinux-h: always use getfilecon wrappers
61195         * lib/getfilecon.c: New file.
61196         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
61197         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
61198         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
61199         (fgetfilecon): Provide a stub.
61200         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
61201         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
61202         file unconditionally.
61203         When <selinux/selinux.h> is found, arrange to use wrappers.
61204         * modules/selinux-h (Files): Add getfilecon.c.
61205         (Makefile.am): Substitute include-next-related bits
61206         into the now-always-generated selinux/selinux.h file.
61207         * doc/glibc-functions/lgetfilecon.texi: New file.
61208         * doc/glibc-functions/fgetfilecon.texi: New file.
61209         * doc/glibc-functions/getfilecon.texi: New file.
61210         * doc/glibc-functions/getfilecon-desc.texi: New file.
61211         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
61212         which to pull in the new files.
61213         * MODULES.html.sh (Misc): Add selinux-h.
61215 2009-10-08  Jim Meyering  <meyering@redhat.com>
61217         unistd: fix comment typo
61218         * lib/unistd.in.h (euidaccess): Fix a comment typo.
61220 2009-10-08  Eric Blake  <ebb9@byu.net>
61222         areadlink: use SIZE_MAX consistently
61223         * modules/areadlink (Depends-on): Add stdint.
61224         * modules/areadlink-with-size (Depends-on): Likewise.
61225         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
61226         gives NULL; drop sys/types, since unistd gives size_t; and add
61227         stdint for SIZE_MAX.
61228         (SIZE_MAX): Rely on headers.
61229         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
61230         and add stdint.
61231         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
61232         (SIZE_MAX): Likewise.
61233         (INITIAL_BUF_SIZE): Turn into enum.
61234         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
61236 2009-10-08  Jim Meyering  <meyering@redhat.com>
61238         areadlinkat: avoid compilation failure
61239         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
61240         Fix typo in comment.
61242 2009-10-07  Eric Blake  <ebb9@byu.net>
61244         areadlinkat-with-size: new module
61245         * modules/areadlinkat-with-size: New module.
61246         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
61247         * lib/areadlink.h (areadlinkat): Declare it.
61248         * MODULES.html.sh (File system functions): Mention it.
61249         * modules/areadlinkat-with-size-tests: New test.
61250         * tests/test-areadlinkat-with-size.c: New file.
61252         xreadlinkat: new module
61253         * modules/xreadlinkat: New module.
61254         * lib/xreadlinkat.c (xreadlinkat): New file.
61255         * lib/xreadlink.h (xreadlinkat): Declare it.
61256         * MODULES.html.sh (File system functions): Mention it.
61258         areadlinkat: new module
61259         * lib/at-func.c (FUNC_FAIL): New define.
61260         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
61261         * modules/areadlinkat: New module.
61262         * lib/linkat.c (areadlinkat): Move...
61263         * lib/areadlinkat.c (areadlinkat): ...to new file.
61264         * lib/areadlink.h (areadlinkat): Declare it.
61265         * modules/linkat (Depends-on): Add areadlinkat.
61266         * MODULES.html.sh (File system functions): Mention it.
61267         * modules/areadlinkat-tests: New test.
61268         * tests/test-areadlinkat.c: New file.
61270         areadlink, areadlink-with-size: add tests
61271         * modules/areadlink-tests: New test.
61272         * modules/areadlink-with-size-tests: Likewise.
61273         * tests/test-areadlink.h: New file.
61274         * tests/test-areadlink.c: Likewise.
61275         * tests/test-areadlink-with-size.c: Likewise.
61277         maint: minor cleanups
61278         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
61279         _UNUSED_PARAMETER_ instead.
61280         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
61281         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
61282         * modules/linkat-tests (Files): Distribute test-link.h.
61284         openat, utimens: whitespace cleanup
61285         * lib/openat.c: Prefer space throughout, rather than mix of 8
61286         spaces vs. tabs.
61287         * lib/at-func.c: Likewise.
61288         * lib/utimens.c: Likewise.
61290         openat: avoid using wrong fd
61291         * lib/openat.c (openat_permissive): Reject user's fd if saving the
61292         working directory chooses same fd.
61293         * lib/at-func.c (AT_FUNC_NAME): Likewise.
61295         mkdir, mkdirat: fix cygwin 1.5.x bug
61296         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
61297         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
61298         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
61299         bug.
61300         (gl_PREREQ_MKDIR): Delete unused macro.
61301         * modules/mkdir (Files): Track file rename.
61302         (configure.ac): Update macro name.
61303         * modules/openat (Depends-on): Add mkdir.
61304         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
61306         mkdir, mkdirat: add tests
61307         * modules/mkdir-tests: New test.
61308         * tests/test-mkdir.h: New file.
61309         * tests/test-mkdir.c: Likewise.
61310         * tests/test-mkdirat.c: Likewise.
61311         * modules/openat-tests (Files): Add new files.
61312         (Makefile.am): Run new test.
61314 2009-10-06  Eric Blake  <ebb9@byu.net>
61316         doc: tweak *at function documentation
61317         * doc/posix-functions/faccessat.texi (faccessat): Mention
61318         known issue with replacement.
61319         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
61320         * doc/posix-functions/linkat.texi (linkat): Likewise.
61321         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
61322         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
61323         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
61324         * doc/posix-functions/renameat.texi (renameat): Likewise.
61325         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
61327         openat: fix GNU/Hurd bug in unlinkat
61328         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
61329         broken.
61330         * doc/posix-functions/unlink.texi (unlink): Document this.
61331         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
61333         fdopendir: fix GNU/Hurd bug
61334         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
61335         allowing non-directory fds.
61336         * lib/fdopendir.c (rpl_fdopendir): Work around it.
61337         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
61338         * modules/dirent (Makefile.am): Substitute it.
61339         * lib/dirent.in.h (fdopendir): Declare replacement.
61340         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
61341         * tests/test-fdopendir.c (main): Test something other than
61342         /dev/null, since on Hurd that behaves like a directory.
61344         test-symlink: port to GNU/Hurd
61345         * tests/test-symlink.h (test_symlink): Relax expected errno.
61347         doc: tweak more cygwin information
61348         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
61349         now compatible with glibc.
61350         * doc/posix-functions/getopt.texi (getopt): Likewise.
61352         getopt-gnu: add another test
61353         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
61354         guarantee behavior relied on by m4.
61355         * tests/test-getopt.c (main): Use it.
61356         * modules/getopt-posix-tests (Depends-on): Add setenv.
61357         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
61359         getopt: fix compilation on darwin
61360         * lib/getopt.in.h (includes): Leave breadcrumbs during system
61361         include.
61362         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
61363         Reported by Ludovic Courtès.
61365 2009-10-06  Bruno Haible  <bruno@clisp.org>
61367         * modules/size_max (Description): Discourage its use.
61368         Reported by Simon Josefsson.
61370 2009-10-06  Jim Meyering  <meyering@redhat.com>
61372         linkat: avoid compilation failure
61373         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
61375 2009-10-05  Eric Blake  <ebb9@byu.net>
61377         linkat: support Linux 2.6.17
61378         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
61379         linkat on Linux, but allow cache variable override.
61380         * lib/linkat.c (rpl_linkat): Define override.
61381         * modules/linkat (Depends-on): Add symlinkat.
61382         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
61383         * modules/unistd (Makefile.am): Substitute it.
61384         * lib/unistd.in.h (linkat): Declare replacement.
61385         Reported by Pádraig Brady.
61387         quotearg: port test to systems with C.UTF-8 locale
61388         * tests/test-quotearg.c (struct result_strings): Add another
61389         member, differentiating between C.ASCII and C.UTF-8 handling.
61390         (compare_strings): Add parameter.
61391         (main): Adjust all callers.
61393         getopt: avoid clash with FreeBSD _getopt_internal
61394         * lib/getopt.in.h (_getopt_internal): Override the name.
61395         * lib/getopt_int.h (includes): Pick up any overrides.
61396         Reported by Reuben Thomas.
61398         hash: allow C89 compilation
61399         * lib/hash.c (check_tuning): Move declaration before statement.
61400         Reported by Reuben Thomas.
61402 2009-10-05  Karl Berry  <karl@gnu.org>
61404         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
61406 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
61407             Bruno Haible  <bruno@clisp.org>
61409         * lib/uname.c (uname): Use a table-driven algorithm to compute
61410         Windows NT versions.
61412 2009-10-04  Bruno Haible  <bruno@clisp.org>
61414         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
61415         program_invocation_short_name.
61416         * modules/progname (configure.ac): Test for presence of
61417         program_invocation_short_name.
61418         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
61420 2009-10-04  Bruno Haible  <bruno@clisp.org>
61422         * lib/progname.c (set_program_name): Fix comment.
61423         Reported by Jim Meyering.
61425 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
61426             Bruno Haible  <bruno@clisp.org>
61428         * lib/uname.c: Include <string.h>.
61429         (uname): Do only one call to GetVersionEx in the common case.
61431 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
61432             Bruno Haible  <bruno@clisp.org>
61434         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
61435         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
61436         (uname): Add support for Windows CE and various non-x86 CPU types.
61438 2009-10-03  Bruno Haible  <bruno@clisp.org>
61440         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
61441         invocation to tests/configure.ac.
61442         Reported by Ian Beckwith <ianb@erislabs.net>.
61444 2009-10-02  Eric Blake  <ebb9@byu.net>
61446         fchdir: avoid compiler warning
61447         * lib/fchdir.c (canonicalize_file_name)
61448         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
61450         test-open: support mingw errno values
61451         * tests/test-open.h (test_open): Relax test.
61452         * tests/test-fopen.h (test_fopen): Likewise.
61453         * tests/test-openat-safer.c (main): Likewise.
61455         open: fix opening directory on mingw
61456         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
61458         test-open: on GNU/Hurd, /dev/null is a directory
61459         * tests/test-fopen.h (main): Rename...
61460         (test_fopen): ...to this.  Use a guaranteed non-directory when
61461         confirming open behavior on trailing slash.
61462         * tests/test-openat-safer.c (main): Likewise.
61463         * tests/test-open.h (main): Likewise....
61464         (test_open): ...to this.
61465         * tests/test-fopen.c (main): Adjust caller.
61466         * tests/test-fopen-safer.c (main): Likewise.
61467         * tests/test-open.c (main): Likewise.
61468         * tests/test-fcntl-safer.c (main): Likewise.
61469         Reported by Samuel Thibault.
61471         rename, fchdir: don't ignore chdir failure
61472         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
61473         * lib/rename.c (rpl_rename) [W32]: Likewise.
61474         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
61475         an empty destination directory if source cannot be renamed,
61476         although there is still possibility for failure.
61477         * doc/posix-functions/rename.texi (rename): Document the race.
61478         Reported by Jim Meyering.
61480         maint: cleanup whitespace in recent commits
61481         * lib/rename.c (rpl_rename): Remove tabs.
61482         * tests/test-link.h (test_link): Likewise.
61483         * lib/fchdir.c (get_name): Likewise.
61484         Reported by Jim Meyering.
61486 2009-10-02  Ben Pfaff  <blp@gnu.org>
61488         relocatable-prog-wrapper: Add missing dependency on
61489         double-slash-root.
61490         * modules/relocatable-prog-wrapper: Add dependency.
61491         Reported by Ian Beckwith <ianb@erislabs.net>.
61493 2009-10-02  Eric Blake  <ebb9@byu.net>
61495         renameat: fix Solaris bugs
61496         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
61497         needed fixing.
61498         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
61499         * modules/stdio (Makefile.am): Substitute it.
61500         * lib/stdio.in.h (renameat): Declare replacement.
61501         * lib/renameat.c (rpl_renameat): Implement fix.
61503         renameat: new module
61504         * modules/renameat: New file.
61505         * lib/renameat.c (renameat): Likewise.
61506         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
61507         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
61508         * modules/stdio (Makefile.am): Substitute them.
61509         * lib/stdio.in.h (renameat): Declare it.
61510         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
61511         * doc/posix-functions/renameat.texi (renameat): Likewise.
61512         * modules/renameat-tests: New test.
61513         * tests/test-renameat.c: Likewise.
61515         rename: fix mingw bugs
61516         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
61517         directory overwrite bugs.
61519         rename: fix another cygwin 1.5 bug
61520         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
61521         checks.
61522         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
61523         unnecessary cygwin workarounds.  Also work around bug with moving
61524         full directory onto an empty one.
61525         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
61527         rename-dest-slash: merge into rename module
61528         * modules/rename-dest-slash (Status): Mark obsolete.
61529         (Depends-on): Add rename.
61530         (Files): Let rename do it all.
61531         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
61532         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
61533         * m4/rename-dest-slash.m4: ...so this file can be deleted.
61534         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
61535         * lib/rename.c (rpl_rename): Update comments.
61537         rename: fix cygwin 1.5.x bugs
61538         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
61539         * lib/rename.c (rpl_rename): Work around them.
61540         * modules/rename (Depends-on): Add same-inode.
61542         rename: fix Solaris 10 bug
61543         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
61544         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
61545         was the only bug.
61547         rename: fix Solaris 9 bug
61548         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
61549         on non-directory.  Avoid calling exit.
61550         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
61551         strdup.
61552         * modules/rename-tests (Depends-on): Drop lstat.
61553         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
61554         (gl_PREREQ_RENAME): Delete unused macro.
61556         rename-dest-slash: fix NetBSD bug
61557         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
61558         links.
61559         * modules/rename-dest-slash (Depends-on): Add same-inode.
61561         rename-tests: new test, exposes several platform bugs
61562         * modules/rename-tests: New file.
61563         * tests/test-rename.h: Likewise.
61564         * tests/test-rename.c: Likewise.
61565         * doc/posix-functions/rename.texi (rename): Improve documentation,
61566         including bugs that will eventually be fixed in gnulib.
61568 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
61570         * lib/uname.c: Include <stdlib.h>
61571         (uname): Assume version info is available.
61573 2009-10-02  Jim Meyering  <meyering@redhat.com>
61575         gnu-web-doc-update: correct --help output
61576         * build-aux/gnu-web-doc-update: Make --help output relevant.
61578         gnu-web-doc-update: add standard options
61579         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
61581         gnu-web-doc-update: New module.
61582         Use this script to automatically update the on-line web documentation
61583         for your GNU project at http://www.gnu.org/software/$pkg/manual/
61584         * modules/gnu-web-doc-update: New file, from coreutils.
61585         * build-aux/gnu-web-doc-update: New script.
61587 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
61589         link: LoadLibrary is not needed.
61590         * lib/link.c: Use GetModuleHandle.
61592 2009-10-01  Eric Blake  <ebb9@byu.net>
61594         getopt: bump serial number
61595         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
61596         change.
61598         tests: tighten link, rmdir, and remove tests
61599         * tests/test-link.h (includes): No need to use <config.h> here.
61600         Clean up if directory hard link was created, otherwise test for
61601         trailing '.'.
61602         * tests/test-linkat.c (main): Simplify.
61603         * tests/test-remove.c (main): Enhance test for trailing '.'.
61604         * tests/test-rmdir.h (test_rmdir_func): Likewise.
61606 2009-10-01  Jim Meyering  <meyering@redhat.com>
61608         maint.mk: requiring "make major" was annoying, for a "minor" release.
61609         What is intended is "stable", to contrast with alpha and beta,
61610         so require "make stable", not "make major".
61611         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
61612         (get_tool_versions): Likewise.
61613         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
61615 2009-09-30  Ben Pfaff  <blp@gnu.org>
61617         Fix broken build of replacement for Windows tmpfile().
61618         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
61619         flags argument added along with the 'mkostemp' module.
61621 2009-09-28  Bruno Haible  <bruno@clisp.org>
61623         Avoid identifier clash with POSIX function 'remove' defined as a macro.
61624         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
61625         to 'remove_elt'.
61626         (gl_list_remove): Update.
61627         * lib/gl_list.c (gl_list_remove): Update.
61628         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
61629         to 'remove_elt'.
61630         (gl_oset_remove): Update.
61631         * lib/gl_list.c (gl_oset_remove): Update.
61632         Reported by Eric Blake.
61634 2009-09-28  Eric Blake  <ebb9@byu.net>
61636         doc: mention yet more cygwin 1.7 status
61637         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
61638         cygwin.
61639         * doc/glibc-functions/execvpe.texi (execvpe): New file.
61640         * doc/gnulib.texi (Glibc unistd.h): Mention it.
61642         argp: fix test failure
61643         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
61644         that are not upper-case.  Pass correct range to tolower.
61646 2009-09-27  Jim Meyering  <meyering@redhat.com>
61648         test-yesno: work around sparc-dash here-document infelicity
61649         Without this change, the literal \177 byte in a here document
61650         would make dash 0.5.5.1-3 access uninitialized memory.
61651         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
61652         Instead, use a marker, "@", and filter through tr to create the desired
61653         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
61655 2009-09-27  Bruno Haible  <bruno@clisp.org>
61657         Disable untested support for new flavours of ACLs on AIX.
61658         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
61659         progress.
61660         * lib/set-mode-acl.c (qset_acl): Likewise.
61662 2008-12-07  Bruno Haible  <bruno@clisp.org>
61664         Add support for new flavours of ACLs on AIX. (Untested.)
61665         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
61666         (file_has_acl): Add support for newer AIX.
61667         * lib/set-mode-acl.c (qset_acl): Likewise.
61668         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
61669         Rainer Tammer <tammer@tammer.net>.
61671 2009-09-26  Eric Blake  <ebb9@byu.net>
61673         argp: fix compilation of getopt
61674         * lib/getopt.in.h (includes): Use different guard than glibc.
61675         Reported by Sergey Poznyakoff.
61677         doc: mention more cygwin 1.7 status
61678         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
61679         bug.
61680         * doc/posix-functions/execl.texi (execl): Likewise.
61681         * doc/posix-functions/execle.texi (execle): Likewise.
61682         * doc/posix-functions/execlp.texi (execlp): Likewise.
61683         * doc/posix-functions/execv.texi (execv): Likewise.
61684         * doc/posix-functions/execve.texi (execve): Likewise.
61685         * doc/posix-functions/execvp.texi (execvp): Likewise.
61686         * doc/glibc-functions/canonicalize_file_name.texi
61687         (canonicalize_file_name): Cygwin 1.7 now provides this.
61688         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
61689         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
61690         on AT_SYMLINK_NOFOLLOW.
61692 2009-09-24  Eric Blake  <ebb9@byu.net>
61694         test-linkat: make test more robust
61695         * tests/test-linkat.c (main): Avoid collision with EEXIST.
61697         getopt: fix inclusion guards for cygwin
61698         * modules/getopt-posix (Depends-on): Add include-next.
61699         (Makefile.am): Substitute more items in replacement header.
61700         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
61701         <getopt.h>.
61702         * lib/getopt.in.h (includes): Use split inclusion guard, and
61703         prefer <getopt.h> over include <unistd.h> when one is present.
61704         (option): Also override name of 'struct option'.
61706         same-inode: revert prior change; it is not yet ready
61707         * NEWS: Undo mention of this change.
61708         * lib/same-inode.h (same-inode.h): Undo tri-state change.
61709         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
61710         * lib/cycle-check.c (cycle_check): Likewise.
61711         * lib/same.c (same_name): Likewise.
61712         * lib/at-func2.c (at_func2): Likewise.
61714 2009-09-23  Eric Blake  <ebb9@byu.net>
61716         linkat: new module
61717         * modules/linkat: New file.
61718         * lib/at-func2.c (at_func2): Likewise.
61719         * lib/linkat.c (linkat): Likewise.
61720         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
61721         * lib/openat-priv.h (at_func2): Add declaration.
61722         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
61723         * modules/unistd (Makefile.am): Substitute them.
61724         * lib/unistd.in.h (linkat): Declare it.
61725         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
61726         * doc/posix-functions/linkat.texi (linkat): Likewise.
61727         * doc/posix-functions/link.texi (link): Tweak wording.
61728         * tests/test-link.c (main): Move guts...
61729         * tests/test-link.h (test_link): ...into new file.
61730         * modules/linkat-tests: New test.
61731         * tests/test-linkat.c: Likewise.
61732         * modules/link-tests (Files): Ship new file.
61733         (Depends-on): Add stdbool.
61735         dirname: add library-safe mdir_name
61736         * lib/dirname.h (mdir_name): New prototype.
61737         * lib/dirname.c (dir_name): Move guts...
61738         (mdir_name): ...to new function that avoids xalloc_die.
61740         fchdir: another mingw fix
61741         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
61742         * lib/fchdir.c (get_name): New helper method; skips canonicalize
61743         on mingw (where it has not yet been ported), and make it optional
61744         elsewhere.
61745         (_gl_register_fd): Use it.
61747         same-inode: make SAME_INODE tri-state, to port to mingw
61748         * NEWS: Mention this change.
61749         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
61750         st_ino always being 0.
61751         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
61752         * lib/cycle-check.c (cycle_check): Likewise.
61753         * lib/same.c (same_name): Likewise.
61755         lstat: avoid mingw compilation error
61756         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
61757         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
61758         lstat ourselves.
61759         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
61760         was adequate.
61761         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
61762         the checks for lstat.
61763         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
61765         link: fix test failure on Solaris 9
61766         * lib/link.c (rpl_link): Don't assume link will catch bogus
61767         trailing slash on source.
61769         test-symlinkat: enhance test
61770         * tests/test-readlink.c (main): Move guts...
61771         * tests/test-readlink.h (test_readlink): ...into new file.
61772         * tests/test-symlink.c (main): Move guts...
61773         * tests/test-symlink.h (test_symlink): ...into new file.
61774         * tests/test-symlinkat.c (main): Use new files for further
61775         coverage.
61776         (do_symlink, do_readlink): New helper functions.
61777         * modules/symlink-tests (Files): Ship new file.
61778         (Depends-on): Add stdbool.
61779         * modules/readlink-tests (Files): Ship new file.
61780         (Depends-on): Add stdbool.
61781         * modules/symlinkat-tests (Files): Use new files.
61783 2009-09-23  Eric Blake  <ebb9@byu.net>
61785         readlink: document portability issue with symlink length
61786         * doc/posix-functions/lstat.texi (lstat): Mention that some file
61787         systems have bogus st_size on symlinks, and mention the
61788         areadlink-with-size module.
61789         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
61790         * doc/posix-functions/readlink.texi (readlink): Mention the
61791         areadlink module, and ERANGE failure.
61792         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
61793         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
61795         readlink: fix Solaris 9 bug with trailing slash
61796         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
61797         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
61798         * doc/posix-functions/readlink.texi (readlink): Document this.
61799         * modules/readlink-tests: New test.
61800         * tests/test-readlink.c: Likewise.
61802         readlink: fix cygwin 1.5.x bug with return type
61803         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
61804         * lib/unistd.in.h (readlink): Use ssize_t.
61805         * lib/readlink.c (readlink): Likewise.
61806         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
61807         * modules/unistd (Makefile.am): Substitute it.
61808         * lib/unistd.in.h (readlink): Declare replacement.
61809         * doc/posix-functions/readlink.texi (readlink): Document this.
61811         symlink: use throughout gnulib
61812         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
61813         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
61814         symlink is not used.
61815         * modules/symlinkat (Depends-on): Add symlink.
61816         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
61817         * modules/canonicalize-tests (Depends-on): Likewise.
61818         * modules/lstat-tests (Depends-on): Likewise.
61819         * modules/openat-tests (Depends-on): Likewise.
61820         * modules/remove-tests (Depends-on): Likewise.
61821         * modules/rmdir-tests (Depends-on): Likewise.
61822         * modules/unlink-tests (Depends-on): Likewise.
61823         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
61824         * tests/test-canonicalize.c (symlink): Likewise.
61825         * tests/test-fstatat.c (symlink): Likewise.
61826         * tests/test-lstat.c (symlink): Likewise.
61827         * tests/test-remove.c (symlink): Likewise.
61828         * tests/test-rmdir.c (symlink): Likewise.
61829         * tests/test-unlink.c (symlink): Likewise.
61830         * tests/test-unlinkat.c (symlink): Likewise.
61832         symlink: new module, for Solaris 9 bug
61833         * modules/symlink: New file.
61834         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
61835         * lib/symlink.c: Likewise.
61836         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
61837         * modules/unistd (Makefile.am): Substitute them.
61838         * lib/unistd.in.h (symlink): Declare replacement.
61839         * MODULES.html.sh (File system functions): Mention it.
61840         * doc/posix-functions/symlink.texi (symlink): Likewise.
61841         * modules/symlink-tests: New test.
61842         * tests/test-symlink.c: Likewise.
61844 2009-09-23  Bruno Haible  <bruno@clisp.org>
61846         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
61847         when needed.
61848         Test case: gnulib-tool --import --with-tests atexit inttypes.
61849         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
61851 2009-09-23  Bruno Haible  <bruno@clisp.org>
61853         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
61854         subcommand, not in a subshell.
61856 2009-09-22  Eric Blake  <ebb9@byu.net>
61858         unistd: sort replacement declarations
61859         * lib/unistd.in.h: Sort declarations.
61861         open, openat: minor optimization
61862         * lib/open.c (open): If open succeeded, len is non-zero.
61863         * lib/openat.c (rpl_openat): Likewise.
61865         link-follow: ensure correct result
61866         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
61867         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
61868         distinguish between possible failures.
61870 2009-09-21  Eric Blake  <ebb9@byu.net>
61872         fts: avoid compiler warning
61873         * lib/fts.c (dirent_inode_sort_may_be_useful)
61874         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
61876 2009-09-19  Bruno Haible  <bruno@clisp.org>
61878         * lib/progreloc.c (canonicalize_file_name): New declaration.
61880 2009-09-19  Eric Blake  <ebb9@byu.net>
61882         link: fix quoting
61883         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
61885         openat: fix openat bugs on Solaris 9
61886         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
61887         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
61888         * modules/openat (Depends-on): Add open.
61889         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
61890         * modules/fcntl-h (Makefile.am): Substitute it.
61891         * lib/fcntl.in.h (openat): Declare replacement.
61892         * doc/posix-functions/openat.texi (openat): Document this.
61894         openat: move fstatat and unlinkat into correct files
61895         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
61896         compiled.
61897         * lib/openat.c (fstatat, unlinkat): Move...
61898         * lib/fstatat.c (fstatat): ...into correct files.
61899         * lib/unlinkat.c (unlinkat): Likewise.
61901         openat: fix unlinkat bugs on Solaris 9
61902         * lib/unlinkat.c (unlinkat): New file.
61903         * modules/openat (Depends-on): Add unlink.
61904         (Files): Distribute it.
61905         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
61906         trailing slash behavior is broken.
61907         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
61908         * modules/unistd (Makefile.am): Substitute it.
61909         * lib/unistd.in.h (unlinkat): Declare replacement.
61910         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
61912         openat: fix fstatat bugs on Solaris 9
61913         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
61914         stat.
61915         * doc/posix-functions/fstatat.texi (fstatat): Document this.
61917         test-unlinkat: enhance test, to expose Solaris 9 bug
61918         * tests/test-unlink.c (main): Factor guts...
61919         * tests/test-unlink.h (test_rmdir_func): ...into new file.
61920         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
61921         * tests/test-rmdir.c (main): Adjust caller.
61922         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
61923         (unlinker): New helper function.
61924         (rmdirat): Enhance check.
61925         * modules/rmdir-tests (Depends-on): Add stdbool.
61926         * modules/unlink-tests (Depends-on): Likewise.
61927         (Files): Add test-unlink.h.
61928         * modules/openat-tests (Files): Likewise.
61929         (Depends-on): Add unlinkdir.
61931         test-fstatat: new test, to expose Solaris 9 bugs
61932         * tests/test-stat.c (main): Factor guts...
61933         * tests/test-stat.h (test_stat_func): ...into new file.
61934         * tests/test-lstat.c (main): Factor guts...
61935         * tests/test-lstat.h (test_lstat_func): ...into new file.
61936         * tests/test-fstatat.c: New file.
61937         * modules/stat-tests (Files): Add test-stat.h.
61938         * modules/lstat-tests (Files): Add test-lstat.h.
61939         (Depends-on): Add stdbool.
61940         * modules/openat-tests (Depends-on): Add pathmax.
61941         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
61942         (Makefile.am): Run new test.
61944         remove: new module, for mingw and Solaris 9 bugs
61945         * modules/remove: New file.
61946         * lib/remove.c: Likewise.
61947         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
61948         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
61949         * modules/stdio (Makefile.am): Use them.
61950         * lib/stdio.in.h (remove): Declare replacement.
61951         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
61952         * doc/posix-functions/remove.texi (remove): Likewise.
61953         * modules/remove-tests: New test.
61954         * tests/test-remove.c: Likewise.
61956         unlink: new module, for Solaris 9 bug
61957         * modules/unlink: New file.
61958         * lib/unlink.c: Likewise.
61959         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
61960         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
61961         * modules/unistd (Makefile.am): Use them.
61962         * lib/unistd.in.h (stat): Declare replacement.
61963         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
61964         * doc/posix-functions/unlink.texi (unlink): Likewise.
61965         * modules/unlink-tests: New test.
61966         * tests/test-unlink.c: Likewise.
61968         lstat: fix Solaris 9 bug
61969         * lib/lstat.c (lstat): Also check for trailing slash on
61970         non-symlink, non-directories.  Use stat module to simplify logic.
61971         * doc/posix-functions/lstat.texi (lstat): Document it.
61972         * modules/lstat-tests (Depends-on): Add errno, same-inode.
61973         (configure.ac): Check for symlink.
61974         * tests/test-lstat.c (main): Add more tests.
61976         stat: add as dependency to other modules
61977         * modules/chown (Depends-on): Add stat.
61978         * modules/euidaccess (Depends-on): Likewise.
61979         * modules/fchdir (Depends-on): Likewise.
61980         * modules/isdir (Depends-on): Likewise.
61981         * modules/link (Depends-on): Likewise.
61982         * modules/lstat (Depends-on): Likewise.
61983         * modules/mkdir-p (Depends-on): Likewise.
61984         * modules/modechange (Depends-on): Likewise.
61985         * modules/open (Depends-on): Likewise.
61986         * modules/readlink (Depends-on): Likewise.
61987         * modules/same (Depends-on): Likewise.
61989         stat: fix Solaris 9 bug
61990         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
61991         slash.
61992         * lib/stat.c (rpl_stat): Work around it.
61993         * doc/posix-functions/stat.texi (stat): Update documentation.
61995         stat: new module, for mingw bug
61996         * modules/stat: New file.
61997         * lib/stat.c: Likewise.
61998         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
61999         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
62000         * modules/sys_stat (Makefile.am): Use them.
62001         * lib/sys_stat.in.h (stat): Declare replacement.
62002         * lib/openat.c (fstatat): Deal with lstat and stat being function
62003         macros.
62004         * modules/openat (Depends-on): Add inline.
62005         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
62006         * doc/posix-functions/stat.texi (stat): Likewise.
62007         * modules/stat-tests: New test.
62008         * tests/test-stat.c: Likewise.
62010 2009-09-19  Jim Meyering  <meyering@redhat.com>
62012         syntax-check: detect unnecessary inclusion of canonicalize.h
62013         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
62015 2009-09-19  Eric Blake  <ebb9@byu.net>
62017         canonicalize-lgpl: adjust clients to use correct header
62018         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
62019         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
62020         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
62021         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
62022         * lib/progreloc.c (includes): Likewise.
62024 2009-09-19  Jim Meyering  <meyering@redhat.com>
62026         test-posixtm.c: correct a comment
62027         * tests/test-posixtm.c: Correct first-line comment.
62028         Spotted by Eric Blake.
62030 2009-09-16  Jim Meyering  <meyering@redhat.com>
62032         posixtm-tests: make T const-correct; add a test case
62033         * tests/test-posixtm.c (T): Declare const.
62034         Add a test for -(2^31+1).
62035         Remove useless can-succeed-only-in-2002 test.
62037         posixtm-tests: adjust the sole failing test
62038         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
62039         expected output matches what mktime now produces.  Cross-checked via
62040         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
62042         posixtm: move #ifdef'd tests into a new module
62043         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
62044         * tests/test-posixtm.c: ... this new file.
62045         * modules/posixtm-tests: New module.
62047 2009-09-19  Eric Blake  <ebb9@byu.net>
62049         openat: simplify use of at-func.c
62050         * lib/at-func.c (includes): Include prerequisites here, to
62051         simplify requirements on client files.
62052         * lib/openat-priv.h: Add double-inclusion guard.
62053         * lib/faccessat.c (includes): Simplify.
62054         * lib/fchmodat.c (includes): Likewise.
62055         * lib/fchownat.c (includes): Likewise.
62056         * lib/mkdirat.c (includes): Likewise.
62057         * lib/mkfifoat.c (includes): Likewise.
62058         * lib/symlinkat.c (includes): Likewise.
62060         openat: allow return of fd 0
62061         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
62062         * modules/save-cwd (Depends-on): Replace fcntl-safer with
62063         unistd-safer.
62064         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
62065         <fcntl.h>; this module does not leak fds.
62066         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
62067         must be allowed to return 0, leaving openat_safer to add the
62068         safety.
62069         (openat_permissive): Avoid writing to just-opened fd 2 if
62070         restoring the current directory fails.
62071         * lib/openat-die.c (openat_restore_fail): Add comment.
62072         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
62073         (save_cwd): Guarantee safe fd, but without use of open_safer.
62074         * tests/test-openat.c: New test.
62075         * modules/openat-tests (Files, Makefile.am): Distribute and build
62076         new file.
62078         relocatable-prog-wrapper: fix build
62079         * modules/relocatable-prog-wrapper (Files): Update name of
62080         canonicalize m4 file, broken on 2009-09-17.
62081         Reported by emad hajjar <aleppos@hotmail.com>.
62083 2009-09-19  Bruno Haible  <bruno@clisp.org>
62085         * lib/safe-alloc.h: Use the standard header with GPL copyright.
62086         * lib/safe-alloc.c: Likewise.
62087         Reported by Ian Beckwith <ianb@erislabs.net>.
62089 2009-09-18  Bruno Haible  <bruno@clisp.org>
62091         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
62092         Reported by <erobles@sensacd.com.mx>.
62094 2009-09-17  Eric Blake  <ebb9@byu.net>
62096         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
62097         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
62098         slashes when checking if last component is missing.
62099         * tests/test-canonicalize.c (main): Test this.
62101         canonicalize, canonicalize-lgpl: honor // if distinct from /
62102         * modules/canonicalize (Files): Add double-slash-root.m4.
62103         * modules/canonicalize-lgpl (Files): Likewise.
62104         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
62105         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
62106         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
62107         fallback definition.
62108         (canonicalize_filename_mode): Use it to protect //.
62109         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
62110         (__realpath): Likewise.
62111         * tests/test-canonicalize.c (main): Test this.
62112         * tests/test-canonicalize-lgpl.c (main): Likewise.
62113         * modules/canonicalize-tests (Depends-on): Add same-inode.
62114         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
62116         canonicalize-lgpl: fix glibc bug with trailing slash
62117         * m4/canonicalize-lgpl.m4: Move contents...
62118         * m4/canonicalize.m4: ...here.
62119         (gl_CANONICALIZE_LGPL): Factor realpath check...
62120         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
62121         glibc 2.3.5 bug, fixed 2005-04-27.
62122         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
62123         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
62124         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
62125         * modules/canonicalize-lgpl (Files): Manage file rename.
62126         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
62127         * modules/stdlib (Makefile.am): Substitute witness.
62128         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
62129         is needed.
62130         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
62131         replacement is required.
62132         * lib/canonicalize.c (canonicalize_file_name): Likewise.
62133         * doc/glibc-functions/canonicalize_file_name.texi
62134         (canonicalize_file_name): Document this.
62135         * doc/posix-functions/realpath.texi (realpath): Likewise.
62137         canonicalize-lgpl: reject non-directory with trailing slash
62138         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
62139         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
62140         catches failures in glibc 2.3.5.
62141         * tests/test-canonicalize.c (main): Likewise.
62143         canonicalize-lgpl: use native realpath if it works
62144         * lib/canonicalize-lgpl.c (realpath): Guard with
62145         FUNC_REALPATH_WORKS.
62146         * lib/stdlib.in.h (realpath): Make declaration optional based on
62147         HAVE_REALPATH.
62148         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
62149         native realpath works.
62150         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
62151         * modules/stdlib (Makefile.am): Substitute witness.
62153         canonicalize, canonicalize-lgpl: use <stdlib.h>
62154         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
62155         (Include): Mention <stdlib.h>.
62156         (configure.ac): Mention functions we provide.
62157         * modules/canonicalize (configure.ac): Likewise.
62158         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
62159         realpath if canonicalize_file_name is missing.
62160         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
62161         * modules/stdlib (Makefile.am): Substitute witnesses.
62162         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
62163         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
62164         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
62165         * NEWS: Document this.
62166         * doc/glibc-functions/canonicalize_file_name.texi
62167         (canonicalize_file_name): Likewise.
62168         * doc/posix-functions/realpath.texi (realpath): Likewise.
62169         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
62171         test-canonicalize: consolidate into single C program
62172         * tests/test-canonicalize.sh: Delete; move setup into...
62173         * tests/test-canonicalize.c (main): ...the program, making it
62174         easier to run in debugger.  Add some tests.
62175         * modules/canonicalize-tests (Files): Remove unused file.
62176         (Depends-on): Add progname.
62177         (configure.ac, Makefile.am): Simplify.
62179         test-canonicalize-lgpl: consolidate into single C program
62180         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
62181         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
62182         easier to run in debugger.  Add some tests.
62183         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
62184         (configure.ac, Makefile.am): Simplify.
62186         canonicalize: avoid resolvepath
62187         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
62188         unnecessary checks.
62189         * lib/canonicalize.c (includes): Simplify.
62190         (canonicalize_file_name): Drop resolvepath implementation.
62191         * modules/canonicalize (Depends-on): Drop filenamecat.
62193         canonicalize: don't lose errno
62194         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
62195         over calls to free.
62197         canonicalize: simplify errno handling
62198         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
62199         assignment.
62201         canonicalize, canonicalize-lgpl: update module dependencies
62202         * modules/canonicalize (Depends-on): Add extensions, lstat,
62203         pathmax, stdlib.
62204         (Files): Drop pathmax.h.
62205         (configure.ac): Adjust macro name.
62206         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
62207         lstat, stdlib, sys_stat.
62208         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
62209         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
62210         extensions.
62211         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
62212         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
62213         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
62214         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
62215         declaration, if available.
62216         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
62217         we can rely on the readlink module.
62218         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
62219         (includes): Use <unistd.h> unconditionally.
62221 2009-09-17  Eric Blake  <ebb9@byu.net>
62223         maint: make Include sections of modules consistent
62224         * modules/alloca: Use only header name; no need to list #include.
62225         * modules/alloca-opt: Likewise.
62226         * modules/arpa_inet: Likewise.
62227         * modules/canon-host: Likewise.
62228         * modules/configmake: Likewise.
62229         * modules/dirent: Likewise.
62230         * modules/eealloc: Likewise.
62231         * modules/environ: Likewise.
62232         * modules/fchdir: Likewise.
62233         * modules/fcntl: Likewise.
62234         * modules/fcntl-h: Likewise.
62235         * modules/gethrxtime: Likewise.
62236         * modules/gettime: Likewise.
62237         * modules/ignore-value: Likewise.
62238         * modules/inet_ntop: Likewise.
62239         * modules/inet_pton: Likewise.
62240         * modules/inttypes: Likewise.
62241         * modules/isnand-nolibm: Likewise.
62242         * modules/isnanf-nolibm: Likewise.
62243         * modules/mbchar: Likewise.
62244         * modules/mbfile: Likewise.
62245         * modules/mbiter: Likewise.
62246         * modules/mbuiter: Likewise.
62247         * modules/netdb: Likewise.
62248         * modules/netinet_in: Likewise.
62249         * modules/nproc: Likewise.
62250         * modules/pagealign_alloc: Likewise.
62251         * modules/poll: Likewise.
62252         * modules/printf-frexp: Likewise.
62253         * modules/pthread: Likewise.
62254         * modules/putenv: Likewise.
62255         * modules/random_r: Likewise.
62256         * modules/relocatable-prog: Likewise.
62257         * modules/search: Likewise.
62258         * modules/select: Likewise.
62259         * modules/selinux-h: Likewise.
62260         * modules/settime: Likewise.
62261         * modules/signal: Likewise.
62262         * modules/size_max: Likewise.
62263         * modules/socklen: Likewise.
62264         * modules/ssize_t: Likewise.
62265         * modules/stdarg: Likewise.
62266         * modules/stdbool: Likewise.
62267         * modules/stddef: Likewise.
62268         * modules/stdint: Likewise.
62269         * modules/stdio: Likewise.
62270         * modules/stdlib: Likewise.
62271         * modules/string: Likewise.
62272         * modules/strings: Likewise.
62273         * modules/sys_file: Likewise.
62274         * modules/sys_ioctl: Likewise.
62275         * modules/sys_select: Likewise.
62276         * modules/sys_socket: Likewise.
62277         * modules/sys_stat: Likewise.
62278         * modules/sys_time: Likewise.
62279         * modules/sys_times: Likewise.
62280         * modules/sys_utsname: Likewise.
62281         * modules/sys_wait: Likewise.
62282         * modules/sysexits: Likewise.
62283         * modules/time: Likewise.
62284         * modules/times: Likewise.
62285         * modules/tmpfile: Likewise.
62286         * modules/trim: Likewise.
62287         * modules/unistd: Likewise.
62288         * modules/wchar: Likewise.
62289         * modules/wctype: Likewise.
62291 2009-09-17  Bruno Haible  <bruno@clisp.org>
62293         Make getdate.y compile on QNX and NetBSD 5 / i386.
62294         * m4/getdate.m4 (gl_GETDATE): Conditionally define
62295         TIME_T_FITS_IN_LONG_INT.
62296         * lib/getdate.y (long_time_t): New type.
62297         (relative_time): Change type of 'seconds' field to long_time_t.
62298         (get_date): Update types of local variables. Check against overflow
62299         during conversion from long_time_t to time_t.
62300         Reported by Matt Kraai <kraai@ftbfs.org>
62301         and Hasso Tepper <hasso@netbsd.org>.
62303 2009-09-17  Bruno Haible  <bruno@clisp.org>
62305         * modules/COPYING: Update copyright years.
62306         * modules/README: Likeiwse.
62307         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
62308         Reported by Ian Beckwith <ianb@erislabs.net>.
62310 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
62312         * users.txt: Update references for gnuit package.
62314 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
62316         * m4/getdelim.m4: Fix typo in copyright line.
62318 2009-09-17  Bruno Haible  <bruno@clisp.org>
62320         * lib/atoll.c: Use the standard header with GPL copyright.
62321         * lib/argz.in.h: Likewise.
62322         * lib/glob.c: Likewise.
62323         * lib/glob-libc.h: Likewise.
62324         * lib/random_r.c: Likewise.
62325         * lib/siglist.h: Likewise.
62326         * lib/strsignal.c: Likewise.
62327         Reported by Ian Beckwith <ianb@erislabs.net>.
62329 2009-09-17  Eric Blake  <ebb9@byu.net>
62331         rmdir: ensure correct dependency order
62332         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
62334 2009-09-17  Bruno Haible  <bruno@clisp.org>
62336         Disable assertion that fails on NetBSD 5 / i386.
62337         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
62338         Reported by Sam Steingold <sds@gnu.org>
62339         and Hasso Tepper <hasso@netbsd.org>.
62341 2009-09-16  Eric Blake  <ebb9@byu.net>
62343         unlinkdir: port to mingw
62344         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
62345         on which no one can unlink a directory.
62347         stdlib: sort witness names
62348         * modules/stdlib (Makefile.am): Sort replacements.
62349         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
62350         * lib/stdlib.in.h: Likewise.
62352         parse-duration-tests: avoid link failure
62353         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
62354         LIBINTL.
62355         Reported by Tom G. Christensen.
62357         openat-tests: ensure unlinkat behaves like rmdir
62358         * tests/test-rmdir.c (main): Factor guts...
62359         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
62360         * modules/rmdir-tests (Files): Ship new file.
62361         * modules/openat-tests: New test.
62362         * tests/test-unlinkat.c: Likewise.
62364         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
62365         * modules/rmdir-errno (Status, Notice): Now obsolete.
62367         rmdir: work around cygwin 1.5.x and mingw bugs
62368         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
62369         * lib/rmdir.c (rmdir): Work around it.
62370         * modules/rmdir (Status, Notice): No longer obsolete.
62371         (Files): Add dos.m4.
62372         (Depends-on): Add unistd.
62373         (configure.ac): Set witnesses.
62374         (License): Relax to LGPLv2+.
62375         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
62376         * modules/unistd (Makefile.am): Substitute witnesses.
62377         * lib/unistd.in.h (rmdir): Declare replacement.
62378         * doc/posix-functions/rmdir.texi (rmdir): Document this.
62379         * modules/rmdir-tests: New tests.
62380         * tests/test-rmdir.c: Likewise.
62382 2009-09-15  Eric Blake  <ebb9@byu.net>
62384         fchdir: improve use of replacement functions
62385         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
62386         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
62387         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
62388         REPLACE_CLOSEDIR.
62389         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
62390         * modules/sys_stat (Makefile.am): Substitute correct witness.
62391         * modules/dirent (Makefile.am): Likewise.
62392         * modules/unistd (Makefile.am): Likewise.
62393         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
62394         * lib/unistd.in.h (dup): Likewise.
62395         * lib/sys_stat.in.h (fstat): Likewise.
62397         maint: ignore gnulib-tool temp files
62398         * .gitignore: Ignore files created during gnulib-tool --test.
62400 2009-09-13  Jim Meyering  <meyering@redhat.com>
62402         posixtm: don't reject a time that specify "60" as the number of seconds
62403         * lib/posixtm.c (posixtime): The code to reject invalid dates
62404         would also reject a time specified with the .60 suffix.
62405         But POSIX allows that, in order to accommodate leap seconds.
62406         So don't reject it.
62407         (main): Adjust tests accordingly.
62408         * modules/posixtm (Depends-on): Add stpcpy.
62410 2009-09-11  Jim Meyering  <meyering@redhat.com>
62412         announce-gen: include [$release_type] in emitted Subject:
62413         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
62414         e.g., [stable] in the emitted Subject: line.
62416 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62418         Remove obsolete macros from several modules.
62419         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
62420         obsolete Autoconf macros with their modern counterparts.
62421         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
62422         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
62423         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
62424         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
62425         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
62426         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62427         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
62428         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
62429         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
62430         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
62431         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
62432         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
62433         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
62434         * m4/sockets.m4 (gl_SOCKETS): Likewise.
62435         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
62436         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
62437         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
62438         * m4/time_r.m4 (gl_TIME_R): Likewise.
62439         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
62440         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
62441         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
62443         Fix copyright header in build-aux scripts.
62444         * build-aux/git-version-gen: Fix copyright header to match GPLv3
62445         recommendation.
62446         * build-aux/ncftpput-ftp: Likewise.
62447         * build-aux/update-copyright: Likewise.
62449 2009-09-09  Eric Blake  <ebb9@byu.net>
62451         test-link: allow Linux choice of errno
62452         * tests/test-link.c (main): Relax test for alternate error.
62454         strndup: fix improper m4 caching
62455         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
62456         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
62457         (gl_PREREQ_STRNDUP): Delete.
62458         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
62459         * modules/string (Makefile.am): Substitute it.
62460         * lib/string.in.h (strndup): Modernize prototype.
62462         getcwd: port to mingw
62463         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
62464         different from the POSIX assumptions made throughout the getcwd
62465         module; fortunately, the mingw getcwd does not need replacement.
62466         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
62467         * modules/getcwd-tests: New test.
62468         * tests/test-getcwd.c: Likewise.
62470         link: fix platform bugs
62471         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
62472         * lib/link.c (link): Work around them.  Fix related mingw bug.
62473         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
62474         * modules/unistd (Makefile.am): Substitute it.
62475         * lib/unistd.in.h (link): Declare replacement.
62476         * doc/posix-functions/link.texi (link): Document this.
62477         * modules/link (Depends-on): Add strdup-posix, sys_stat.
62479         test-link: consolidate into single C program, test more cases
62480         * tests/test-link.sh: Delete.
62481         * tests/test-link.c: Test more error conditions.  Exposes bugs on
62482         at least Cygwin and Solaris.
62483         * modules/link-tests (Files): Remove unused file.
62484         (Depends-on): Add errno, sys_stat.
62485         (Makefile.am): Simplify.
62487 2009-09-08  Bruno Haible  <bruno@clisp.org>
62489         Work around towlower, towupper bug on mingw.
62490         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
62491         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
62492         * doc/posix-functions/towlower.texi: Mention the mingw bug.
62493         * doc/posix-functions/towupper.texi: Likewise.
62494         Reported by Eric Blake.
62496 2009-09-08  Jim Meyering  <meyering@redhat.com>
62498         build: don't try to run autoheader if we don't use it
62499         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
62500         is not used in configure.ac.
62502 2009-09-08  Eric Blake  <ebb9@byu.net>
62504         euidaccess: fix compilation error
62505         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
62507         rawmemchr: relax license
62508         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
62509         okay.
62510         Reported by Jim Meyering.
62512         mkfifoat: new module
62513         * modules/mkfifoat: New file.
62514         * lib/mkfifoat.c: Likewise.
62515         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
62516         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
62517         * modules/sys_stat (Makefile.am): Use them.
62518         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
62519         * MODULES.html.sh (File system functions): Mention module.
62520         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
62521         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
62522         * modules/mkfifoat-tests: New test.
62523         * tests/test-mkfifoat.c: Likewise.
62525         strchrnul: relax license
62526         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
62527         okay.
62528         Reported by Jim Meyering.
62530 2009-09-08  Eric Blake  <ebb9@byu.net>
62532         fstatat: fix compilation on Solaris
62533         * lib/fstatat.c (includes): Add fcntl.h.
62534         Reported by Pádraig Brady.
62536 2009-09-07  Eric Blake  <ebb9@byu.net>
62538         rename: modernize replacement
62539         * modules/rename (Depends-on): Add stdio.
62540         (configure.ac): Declare witness.
62541         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
62542         stdio take care of replacement.
62543         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
62544         * modules/stdio (Makefile.am): Substitute them.
62545         * lib/stdio.in.h (rename): Declare replacement.
62546         * lib/rename.c (includes): Allow cross-compilation to non-windows
62547         machines.
62548         * doc/posix-functions/rename.texi (rename): Improve
62549         documentation.
62551         stdio: sort witness names
62552         * modules/stdio (Makefile.am): Sort replacements.
62553         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
62554         * lib/stdio.in.h: Likewise.
62556         getcwd: minor cleanups
62557         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
62558         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
62560         openat: provide more convenience names
62561         * modules/faccessat (configure.ac): Add C witness.
62562         * lib/unistd.in.h (readlinkat): Fix typo.
62563         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
62564         convenience wrappers.
62565         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
62566         wrappers in syntax checks.
62568 2009-09-06  Eric Blake  <ebb9@byu.net>
62570         doc: fix comments in recent patches
62571         * lib/faccessat.c: Mention correct function.
62572         * lib/fchmodat.c: Likewise.
62573         * lib/fchownat.c: Likewise.
62574         * lib/symlinkat.c: Likewise.
62575         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
62576         constants.
62578         faccessat, symlinkat: continue cleanup of previous patch
62579         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
62580         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
62581         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
62582         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
62583         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
62584         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
62585         set.
62587 2009-09-06  Bruno Haible  <bruno@clisp.org>
62589         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
62590         (fstatat): Declare if GNULIB_FSTATAT is set.
62591         (mkdirat): Declare if GNULIB_MKDIRAT is set.
62592         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
62593         (unlinkat): Declare if GNULIB_UNLINKAT is set.
62594         * modules/fcntl-h (Files): Remove m4/openat.m4.
62595         * modules/sys_stat (Files): Remove m4/openat.m4.
62596         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
62597         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
62598         * modules/unistd (Files): Remove m4/openat.m4.
62599         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
62600         GNULIB_OPENAT.
62601         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
62602         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
62603         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
62604         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
62605         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
62606         gl_OPENAT_DEFAULTS.
62607         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
62608         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
62609         Don't require gl_OPENAT_DEFAULTS.
62610         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
62611         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
62612         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
62613         (gl_OPENAT_DEFAULTS): Remove macro.
62615 2009-09-06  Bruno Haible  <bruno@clisp.org>
62617         * modules/openat (configure.ac): Remove unneeded witness.
62619 2009-09-06  Bruno Haible  <bruno@clisp.org>
62621         Set errno to ENOSYS when a function is entirely unsupported.
62622         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
62623         EOPNOTSUPP.
62624         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
62625         * modules/chown (Depends-on): Remove errno.
62627 2009-09-06  Bruno Haible  <bruno@clisp.org>
62629         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
62631 2009-09-06  Bruno Haible  <bruno@clisp.org>
62633         * lib/sys_stat.in.h: Fix preprocessor command indentation.
62635 2009-09-06  Ben Pfaff  <blp@gnu.org>
62636             Bruno Haible  <bruno@clisp.org>
62638         Work around a glibc bug in strtok_r.
62639         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
62640         Undefine if UNDEFINE_STRTOK_R is set.
62641         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
62642         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
62643         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
62644         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
62645         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
62646         UNDEFINE_STRTOK_R.
62647         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
62649 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
62651         exclude: minor fix
62652         * lib/exclude.c: Include wctype.h
62654 2009-09-06  Akim Demaille  <demaille@gostai.com>
62656         bootstrap: improve error message
62657         * build-aux/bootstrap (find_tool): Upon failure, report the list
62658         of candidates.
62659         Honor the initial value of the envvar.
62661 2009-09-05  Eric Blake  <ebb9@byu.net>
62663         symlinkat: new module
62664         * modules/symlinkat: New file.
62665         * lib/symlinkat.c: Likewise.
62666         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
62667         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
62668         * modules/unistd (Makefile.am): Use them.
62669         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
62670         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
62671         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
62672         * MODULES.html.sh (File system functions): Mention module.
62673         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
62674         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
62675         * modules/symlinkat-tests: New test.
62676         * tests/test-symlinkat.c: Likewise.
62678         test-openat-safer: add more checks
62679         * tests/test-openat-safer.c (main): Check more code paths.
62681 2009-09-05  Jim Meyering  <meyering@redhat.com>
62683         syntax-check: detect unnecessary inclusion of openat.h
62684         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
62686 2009-09-05  Bruno Haible  <bruno@clisp.org>
62688         Support towlower, towupper.
62689         * doc/posix-functions/towlower.texi: Mention module wctype.
62690         * doc/posix-functions/towupper.texi: Likewise.
62691         * lib/wctype.in.h (towlower, towupper): New functions.
62692         * tests/test-wctype.c: Include stdio.h, stdlib.h.
62693         (ASSERT): New macro.
62694         (e): New variable.
62695         (main): Test also towlower, towupper. Test WEOF argument.
62696         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
62698 2009-09-05  Bruno Haible  <bruno@clisp.org>
62700         Fix conversion behaviour when the input is invalid.
62701         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
62702         mark occurring in first pass of indirect conversion.
62703         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
62704         input.
62705         Found by clang's static analyzer.
62707 2009-09-05  Bruno Haible  <bruno@clisp.org>
62709         * tests/test-striconveh.c (main): Test indirect conversion on platforms
62710         where direct conversion is possible.
62712 2009-09-04  Eric Blake  <ebb9@byu.net>
62714         openat: fail with ENOENT on empty name
62715         * lib/openat-proc.c (openat_proc_name): Special-case the empty
62716         buffer.
62718         link-follow: fix logic bug in prior patch
62719         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
62720         reversed sense of yes and no in prior patch.  Avoid confusing
62721         compilation failure with desired semantics.
62723         link-follow: accommodate mingw and cross-compilation
62724         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
62725         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
62726         cross-compilation results to -1, to make linkat easier to
62727         implement when cross-compiling.  Trivially support mingw.
62728         * modules/link-follow (configure.ac): Call new name.
62729         * NEWS: Mention this.
62731 2009-09-03  Eric Blake  <ebb9@byu.net>
62733         faccessat: compile replacement
62734         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
62735         needed.
62737         fts: fix compilation error
62738         * lib/fts.c (includes): Re-add "openat.h", for
62739         openat_needs_fchdir.
62741         faccessat: new module
62742         * modules/faccessat: New file.
62743         * lib/faccessat.c: Likewise.
62744         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
62745         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
62746         * modules/unistd (Makefile.am): Use it.
62747         * lib/unistd.in.h (faccessat): Declare it.
62748         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
62749         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
62750         * MODULES.html.sh (File system functions): Mention it.
62751         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
62752         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
62754         euidaccess: prefer POSIX over non-standard implementation
62755         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
62756         * lib/euidaccess.c (euidaccess): Use it if available.
62758         openat: make template easier to use
62759         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
62760         AT_FUNC_F2 to be undefined.
62761         (VALIDATE_FLAG): New macro; use it to reject bad flags.
62762         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
62763         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
62764         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
62765         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
62766         Likewise.
62767         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
62768         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
62769         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
62770         Likewise.
62772         openat: declare in POSIX headers
62773         * NEWS: Mention this.
62774         * modules/openat (configure.ac): Declare witnesses.
62775         (Depends-on): Add fcntl-h, sys_stat, unistd.
62776         (Include): Mention correct headers.
62777         * modules/fcntl-h (Depends-on): Add link-warning.
62778         (Files): Add openat.m4.
62779         (Makefile.am): Substitute witnesses.
62780         * modules/sys_stat (Files, Makefile.am): Likewise.
62781         * modules/unistd (Files, Makefile.am): Likewise.
62782         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
62783         (gl_OPENAT_DEFAULTS): New macro.
62784         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
62785         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
62786         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
62787         (SYS_STAT_H): Remove unused variable.
62788         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
62789         * lib/fcntl--.h (includes): Remove unneeded header.
62790         * lib/openat-safer.c (includes): Likewise.
62791         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
62792         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
62793         appropriate headers.
62794         (__OPENAT_PREFIX): Delete.
62795         * lib/fcntl.in.h (openat): Provide declaration.
62796         (AT_FDCWD): Fix Solaris bug.
62797         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
62798         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
62799         * lib/fchmodat.c (includes):  Adjust to find declaration.
62800         * lib/fchownat.c (includes): Likewise.
62801         * lib/mkdirat.c (includes): Likewise.
62802         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
62803         still visible.
62805 2009-09-02  Eric Blake  <ebb9@byu.net>
62807         errno: use consistently
62808         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
62809         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
62810         * lib/canonicalize.c (ELOOP): Likewise.
62811         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
62812         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
62813         * lib/lchown.c (EOPNOTSUPP): Likewise.
62814         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
62815         * lib/savewd.c (ESTALE): Likewise.
62816         * lib/settime.c (ENOSYS): Likewise.
62817         * lib/utimens.c (ENOSYS): Likewise.
62818         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
62819         * lib/chdir-safer.c (ELOOP): Likewise.
62820         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
62821         * modules/c-stack (Depends-on): Add errno.
62822         * modules/canonicalize (Depends-on): Likewise.
62823         * modules/chdir-safer (Depends-on): Likewise.
62824         * modules/fdopendir (Depends-on): Likewise.
62825         * modules/inet_ntop (Depends-on): Likewise.
62826         * modules/inet_pton (Depends-on): Likewise.
62827         * modules/lchown (Depends-on): Likewise.
62828         * modules/openat (Depends-on): Likewise.
62829         * modules/savewd (Depends-on): Likewise.
62830         * modules/settime (Depends-on): Likewise.
62831         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
62833         fts: avoid leaking fds
62834         * modules/fts (Depends-on): Add cloexec.
62835         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
62836         flag.
62838         fts: make directory fds more robust
62839         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
62840         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
62842         backupfile, chdir-long, fts, savedir: make safer
62843         * lib/backupfile.c (includes): Use "dirent--.h", since
62844         numbered_backup can write to stderr during readdir.
62845         * lib/savedir.c (includes): Likewise.
62846         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
62847         emulation can write to stderr on failure.
62848         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
62849         * lib/getcwd.c: Document why opendir_safer is unused.
62850         * lib/glob.c: Likewise.
62851         * lib/scandir.c: Likewise.
62852         * lib/openat-proc.c: Likewise, for open_safer.
62853         * modules/backupfile (Depends-on): Add dirent-safer.
62854         * modules/savedir (Depends-on): Likewise.
62855         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
62856         * modules/chdir-long (Depends-on): Add openat-safer.
62858         openat-safer: new module
62859         * modules/openat-safer: New file.
62860         * lib/openat-safer.c: Likewise.
62861         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
62862         * lib/fcntl-safer.h (openat_safer): Declare.
62863         * lib/fcntl--.h (openat): Override.
62864         * MODULES.html.sh (File descriptor based I/O): Mention it.
62865         * lib/openat.h: Add double-inclusion guards.
62866         * lib/openat.c (includes): Only include "fcntl-safer.h", not
62867         "fcntl--.h", so we can implement openat.
62868         * modules/openat-safer-tests: New test.
62869         * tests/test-openat-safer.c: New file.
62871         dirent-safer: new module
62872         * modules/dirent-safer: New file.
62873         * lib/dirent--.h: Likewise.
62874         * lib/dirent-safer.h: Likewise.
62875         * lib/opendir-safer.c: Likewise.
62876         * m4/dirent-safer.m4: Likewise.
62877         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
62878         * modules/dirent-safer-tests: New test.
62879         * tests/test-dirent-safer.c: New file.
62880         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
62882         fdopendir: optimize on mingw
62883         * lib/unistd.in.h (_gl_directory_name): New prototype.
62884         * lib/fchdir.c (_gl_directory_name): Implement it.
62885         (fchdir): Use it to simplify implementation.
62886         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
62887         fchdir, when available, to avoid calling [f]chdir().
62889         fdopendir: split into its own module
62890         * lib/openat.c (fdopendir): Move...
62891         * lib/fdopendir.c: ...into new file.
62892         * modules/fdopendir: New module.
62893         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
62894         * modules/openat (Depends-on): Add fdopendir.
62895         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
62896         fdopendir here.
62897         * modules/savedir (Depends-on): Only need fdopendir, not full
62898         openat.
62899         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
62900         * lib/openat.h (fdopendir): Drop prototype.
62901         * lib/dirent.in.h (fdopendir): Provide prototype.
62902         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
62903         * modules/dirent (Makefile.am): Substitute them.
62904         * MODULES.html.sh (File system functions): Mention it.
62905         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
62906         * modules/fdopendir-tests: New file.
62907         * tests/test-fdopendir.c: Likewise.
62909         fchdir: use more consistent macro convention
62910         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
62911         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
62912         REPLACE_FCHDIR, rather than relying on config.h macros.
62913         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
62914         inside a single make-time REPLACE_FCHDIR block, rather than using
62915         the config.h FCHDIR_REPLACEMENT.
62916         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
62917         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
62918         Manage fstat replacement.
62919         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
62920         REPLACE_FCHDIR.
62921         * modules/sys_stat (Files): Add m4/unistd_h.m4.
62922         (Makefile.am): Substitute REPLACE_FCHDIR.
62923         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
62924         FCHDIR_REPLACEMENT.
62925         * lib/dup-safer.c (dup_safer): Likewise.
62926         * lib/dup2.c (rpl_dup2): Likewise.
62927         * lib/dup3.c (rpl_dup3): Likewise.
62928         * lib/open.c (rpl_open): Likewise.
62930         fchdir: simplify error handling, and support dup3
62931         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
62932         stdbool, malloc-posix, realloc-posix.
62933         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
62934         (ensure_dirs_slot): Return false on allocation failure.
62935         (rpl_dup2): Delete.
62936         (_gl_register_dup): New function.
62937         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
62938         (_gl_register_fd): Close fd on allocation failure.
62939         * lib/fcntl.in.h (_gl_register_fd): Update signature.
62940         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
62941         prototype.
62942         (rpl_dup2_fchdir): Delete prototype.
62943         * lib/open.c (open): Update caller.
62944         * lib/dup2.c (dup2): Track fchdir metadata.
62945         * lib/dup3.c (dup3): Likewise.
62946         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
62947         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
62949 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62951         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
62952         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
62953         don't pass arguments to AC_OUTPUT.
62955 2009-09-02  Bruno Haible  <bruno@clisp.org>
62957         * modules/mkdtemp (License): Relicense under LGPLv2+.
62958         Reported by Paolo Bonzini.
62960 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62962         Replace uses of obsolete autoconf macros in Jim's modules.
62963         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
62964         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
62965         can evoke a warning from autoconf when run with -Wobsolete
62966         enabled.  They were declared obsolete for good reasons (see
62967         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
62968         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
62969         should not continue using the deprecated macros.
62970         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
62971         obsolete Autoconf macros with modern counterparts.
62972         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
62973         * m4/dos.m4 (gl_AC_DOS): Likewise.
62974         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
62975         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
62976         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
62977         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
62978         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
62979         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
62980         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
62981         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
62982         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
62983         Likewise.
62984         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
62985         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
62986         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
62987         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
62988         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
62989         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
62991 2009-09-01  Eric Blake  <ebb9@byu.net>
62993         fchdir: fix off-by-one bug in previous patch
62994         * lib/fchdir.c (rpl_fstat): Use correct bounds.
62995         (_gl_unregister_fd): Delete useless if.
62997 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
62999         maint.mk: sort the list of syntax-check rules
63000         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
63001         easier to get a sense of progress when the rules are run sequentially
63002         and take a long time.
63004 2009-09-01  Simon Josefsson  <simon@josefsson.org>
63006         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
63007         * modules/netinet_in: Likewise.
63008         * modules/sys_file: Likewise.
63009         * modules/sys_ioctl: Likewise.
63010         * modules/sys_select: Likewise.
63011         * modules/sys_socket: Likewise.
63012         * modules/sys_stat: Likewise.
63013         * modules/sys_time: Likewise.
63014         * modules/sys_times: Likewise.
63015         * modules/sys_utsname: Likewise.
63016         * modules/sys_wait: Likewise.
63018 2009-09-01  Jim Meyering  <meyering@redhat.com>
63020         fts: help ensure that return values are not ignored
63021         * lib/fts_.h (__GNUC_PREREQ): Define.
63022         (__attribute_warn_unused_result__): Define.
63023         (fts_children, fts_close, fts_open, fts_read): Declare with
63024         __attribute_warn_unused_result__.
63026         fts: fts_close now fails also when closing a dir file descriptor fails
63027         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
63028         and propagate to caller, along with errno.
63030         announce-gen: correct formatting in --help output
63031         * build-aux/announce-gen (usage): Move the one-line description in
63032         --help output "up", to where it belongs, just after Usage:.
63034 2009-08-31  Eric Blake  <ebb9@byu.net>
63036         fchdir: port to mingw
63037         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
63038         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
63039         opened, then use a substitute.
63040         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
63041         replacement.
63042         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
63043         (_gl_register_fd): No need to check stat if open already filters
63044         all directories.
63045         (fchdir): Fix error condition to match POSIX.
63046         * modules/fchdir (Depends-on): Add sys_stat.
63047         * doc/posix-functions/open.texi (open): Document the limitation.
63048         * modules/fchdir-tests: New file.
63049         * tests/test-fchdir.c: Likewise.
63051         canonicalize: allow cross-testing from cygwin to mingw
63052         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
63053         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
63054         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
63055         Likewise.
63056         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
63057         target does not support symlinks.
63058         * tests/test-canonicalize-lgpl.sh: Likewise.
63060         chown: avoid compilation warning on mingw
63061         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
63062         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
63063         mingw.
63064         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
63065         * modules/chown (Depends-on): Add errno.
63067 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
63069         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
63070         command.
63072 2009-08-31  Jim Meyering  <meyering@redhat.com>
63074         canonicalize: remove useless initialization
63075         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
63076         initialization of local, "end".
63078 2009-08-30  Bruno Haible  <bruno@clisp.org>
63080         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
63081         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
63082         ENOSYS.
63084 2009-08-30  Bruno Haible  <bruno@clisp.org>
63086         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
63087         /usr/xpg4/bin/tr when it exists.
63088         * tests/test-pipe-filter-gi1.sh: Likewise.
63090 2009-08-30  Bruno Haible  <bruno@clisp.org>
63092         Work around deficient /usr/bin/id program on Solaris.
63093         * tests/test-file-has-acl.sh (ID): New variable.
63094         * tests/test-set-mode-acl.sh (ID): Likewise.
63095         * tests/test-copy-acl.sh (ID): Likewise.
63096         * tests/test-copy-file.sh (ID): Likewise.
63098 2009-08-30  Bruno Haible  <bruno@clisp.org>
63100         New module 'xstriconveh'.
63101         * lib/xstriconveh.h: New file.
63102         * lib/xstriconveh.c: New file.
63103         * modules/xstriconveh: New file.
63105 2009-08-30  Bruno Haible  <bruno@clisp.org>
63107         Make it easier to use mem_cd_iconveh.
63108         * lib/striconveh.h (iconveh_t): New type.
63109         (iconveh_open, iconveh_close): New declarations.
63110         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
63111         with a single 'const iconveh_t *' argument.
63112         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
63113         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
63114         with a single 'const iconveh_t *' argument.
63115         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
63116         * tests/test-striconveh.c (main): Update.
63117         * NEWS: Mention the change.
63119 2009-08-30  Bruno Haible  <bruno@clisp.org>
63121         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
63122         problem.
63124 2009-08-30  Bruno Haible  <bruno@clisp.org>
63126         Work around iconv_open problem on Solaris.
63127         * lib/iconv_open-solaris.gperf: New file.
63128         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
63129         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
63130         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
63131         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
63132         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
63133         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
63135 2009-08-29  Jim Meyering  <meyering@redhat.com>
63137         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
63138         * top/maint.mk (cvs-check): Remove target; it was just an alias
63139         to the better-named vc-diff-check.
63140         (maintainer-distcheck): Remove rule.  It was used only from
63141         the (alpha/beta/major) target, and all of its commands but one
63142         were coreutils-specific.
63143         (vc-dist): Remove rule.
63144         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
63145         Run vc-diff-check, not vc-dist.
63146         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
63148 2009-08-27  Bruno Haible  <bruno@clisp.org>
63150         * tests/test-bitrotate.c (main): Remove test that uses a shift count
63151         of 0.
63153 2009-08-27  Bruno Haible  <bruno@clisp.org>
63155         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
63156         compilers.
63157         * doc/func.texi: Document the SunPRO C bug.
63159 2009-08-27  Bruno Haible  <bruno@clisp.org>
63161         Fix link error on Solaris.
63162         * tests/test-parse-duration.c (xstrdup): Remove function.
63164 2009-08-26  Pádraig Brady  <P@draigbrady.com>
63166         ignore-value: handle pointer types, too
63167         * lib/ignore-value.h (__attribute__): Remove definition.
63168         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
63169         of a more concise and more-often effective "(void) i" statement.
63170         (ignore_ptr): New function to suppress warnings from functions that
63171         return pointers, and to make it explicit that one function doesn't
63172         handle all cases.
63174 2009-08-25  Bruno Haible  <bruno@clisp.org>
63176         dup2: work around a Linux bug.
63177         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
63178         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
63179         * doc/posix-functions/dup2.texi: Mention the Linux bug.
63180         Reported by Simon Josefsson.
63182 2009-08-25  Jim Meyering  <meyering@redhat.com>
63184         libguestfs uses gnulib
63185         * users.txt: Add libguestfs.
63187 2009-08-24  Eric Blake  <ebb9@byu.net>
63189         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
63190         * lib/pipe2.c (includes): Add binary-io.h.
63191         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
63193 2009-08-24  Bruno Haible  <bruno@clisp.org>
63195         Tolerate declared but missing accept4 syscall.
63196         * lib/accept4.c (accept4): Invoke original accept4 function first, if
63197         available.
63198         * lib/sys_socket.in.h (accept4): If the function is already present,
63199         override it.
63200         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
63201         * modules/accept4 (Makefile.am): Compile accept4.c always.
63202         Reported by Paolo Bonzini and Eric Blake.
63204 2009-08-23  Bruno Haible  <bruno@clisp.org>
63206         New module 'accept4'.
63207         * lib/sys_socket.in.h (accept4): New declaration.
63208         * lib/accept4.c: New file.
63209         * m4/accept4.m4: New file.
63210         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
63211         GNULIB_ACCEPT4, HAVE_ACCEPT4.
63212         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
63213         HAVE_ACCEPT4.
63214         * modules/accept4: New file.
63215         * doc/glibc-functions/accept4.texi: Mention the new module.
63217 2009-08-24  Jim Meyering  <meyering@redhat.com>
63219         progname: also set global program_invocation_name, when possible
63220         Before this change, a libtool-enabled program that calls glibc's
63221         error function would report the program name as
63222         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
63223         * modules/progname (configure.ac): Check for a declaration of
63224         program_invocation_name.
63225         * lib/progname.c:  Include <errno.h>.
63226         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
63227         Set program_invocation_name.
63229 2009-08-23  Bruno Haible  <bruno@clisp.org>
63231         * lib/dup3.c: Include <string.h>.
63233 2009-08-23  Bruno Haible  <bruno@clisp.org>
63235         * lib/dup3.c (dup3): Test only once whether the system actually exists.
63236         * lib/pipe2.c (pipe2): Likewise.
63237         Suggested by Eric Blake.
63239 2009-08-23  Bruno Haible  <bruno@clisp.org>
63241         Tolerate declared but missing dup3 syscall.
63242         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
63243         * lib/unistd.in.h (dup3): If the function is already present,
63244         override it.
63245         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
63246         * modules/dup3 (Makefile.am): Compile dup3.c always.
63247         Reported by Paolo Bonzini.
63249 2009-08-23  Bruno Haible  <bruno@clisp.org>
63251         Tolerate declared but missing pipe2 syscall.
63252         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
63253         available.
63254         * lib/unistd.in.h (pipe2): If the function is already present,
63255         override it.
63256         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
63257         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
63258         Reported by Paolo Bonzini.
63260 2009-08-23  Bruno Haible  <bruno@clisp.org>
63262         * lib/pipe2.c (pipe2): Move #ifs inside function.
63264 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
63266         quotearg: document limitations of quote_these_too
63267         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
63268         those limitations are created.
63269         * lib/quotearg.h (set_char_quoting): Document that digits and
63270         letters that are special after backslash are not permitted.
63271         (quotearg_char): Cross-reference set_char_quoting documentation.
63273 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
63275         quotearg: implement custom_quoting_style
63276         * lib/quotearg.c: (struct quoting_options): Add left_quote and
63277         right_quote fields.
63278         (set_custom_quoting): New public function.
63279         (quotearg_buffer_restyled): Add left_quote and right_quote
63280         arguments, handle them very much like locale quoting, and update
63281         all uses.
63282         (quotearg_n_custom): New public function.
63283         (quotearg_n_custom_mem): New public function.
63284         (quotearg_custom): New public function.
63285         (quotearg_custom_mem): New public function.
63286         * lib/quotearg.h: Prototype and document new public functions.
63287         (enum quoting_style): For escape_quoting_style and
63288         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
63289         ignored even though they're otherwise like c_quoting_style.
63290         Add custom_quoting_style member and document with comparison to
63291         clocale_quoting_style.
63292         * tests/test-quotearg.c (custom_quotes): New array.
63293         (custom_results): New array.
63294         (main): Extend to test custom quoting.
63296 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
63298         quotearg: fix right quote escaping when it's in quote_these_too
63299         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
63300         quote, be sure to prepend only one backslash.
63301         * tests/test-quotearg.c (use_quote_double_quotes): New function.
63302         (main): Test it.
63304 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
63306         quotearg-tests: test escaping of embedded locale quotes
63307         * tests/test-quotearg.c (struct result_strings): Add member for
63308         new input.
63309         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
63310         (inputs): Add new input.
63311         (results_g): Add expected results.
63312         (flag_results): Likewise.
63313         (locale_results): Likewise.
63314         (compare_strings): Check those.
63316 2009-08-23  Bruno Haible  <bruno@clisp.org>
63318         Tests for module 'dup3'.
63319         * modules/dup3-tests: New file.
63320         * tests/test-dup3.c: New file.
63322         New module 'dup3'.
63323         * lib/unistd.in.h (dup3): New declaration.
63324         * lib/dup3.c: New file.
63325         * m4/dup3.m4: New file.
63326         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
63327         HAVE_DUP3.
63328         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
63329         * modules/dup3: New file.
63330         * doc/glibc-functions/dup3.texi: Mention the new module.
63332 2009-08-23  Bruno Haible  <bruno@clisp.org>
63334         Tweak the dup2 test.
63335         * tests/test-dup2.c (main): Create the test file empty. Verify that an
63336         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
63337         the test file is still empty. Fix argument order of lseek.
63339 2009-08-23  Bruno Haible  <bruno@clisp.org>
63341         Avoid test link errors when the modules getopt-gnu, gettext are used.
63342         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
63343         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
63345 2009-08-23  Bruno Haible  <bruno@clisp.org>
63347         Fix getdtablesize() on mingw.
63348         * lib/getdtablesize.c (getdtablesize): Implement differently.
63349         * lib/unistd.in.h (getdtablesize): Improve comment.
63351 2009-08-23  Bruno Haible  <bruno@clisp.org>
63353         New module 'mkostemp'.
63354         Based on Ulrich Drepper's 2007-08-10 change in glibc.
63355         * lib/stdlib.in.h (mksotemp): New declaration.
63356         * lib/mkostemp.c: New file, from glibc with modifications.
63357         * lib/tempname.h (GT_FILE): Remove outdated comment.
63358         (gen_tempname): Add flags argument.
63359         * lib/tempname.c (__GT_BIGFILE): Remove macro.
63360         (__GT_FILE): Map to 1.
63361         (small_open, large_open): Remove macros.
63362         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
63363         * lib/mkstemp.c (mkstemp): Update.
63364         * lib/mkdtemp.c (mkdtemp): Likewise.
63365         * m4/mkostemp.m4: New file.
63366         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
63367         HAVE_MKOSTEMP.
63368         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
63369         HAVE_MKOSTEMP.
63370         * modules/mkostemp: New file, based on modules/mkstemp.
63371         * doc/glibc-functions/mkostemp.texi: Mention the new module.
63372         * NEWS: Mention the change.
63374 2009-08-23  Bruno Haible  <bruno@clisp.org>
63376         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
63377         Reported by Eric Blake.
63379 2009-08-23  Bruno Haible  <bruno@clisp.org>
63381         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
63382         Reported by Eric Blake.
63384 2009-08-23  Bruno Haible  <bruno@clisp.org>
63386         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
63387         * modules/pipe2 (Depends-on): Likewise.
63389 2009-08-23  Eric Blake  <ebb9@byu.net>
63391         fcntl-h: add O_TTY_INIT support
63392         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
63393         * tests/test-fcntl-h.c (o): Test it.
63394         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
63396         fcntl-h: rename from fcntl, in preparation for fcntl(2)
63397         * modules/fcntl: Move <fcntl.h> header replacement...
63398         * modules/fcntl-h: ...to new name, so as not to collide with
63399         like-named function.
63400         * tests/test-fcntl.c: Rename...
63401         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
63402         * modules/fcntl-tests: Rename...
63403         * modules/fcntl-h-tests: ...to this.  Update test file name.
63404         * modules/chdir-long (Depends-on): Update clients.
63405         * modules/chdir-safer (Depends-on): Likewise.
63406         * modules/fcntl-safer (Depends-on): Likewise.
63407         * modules/fts (Depends-on): Likewise.
63408         * modules/mkancesdirs (Depends-on): Likewise.
63409         * modules/mkdir-p (Depends-on): Likewise.
63410         * modules/open (Depends-on): Likewise.
63411         * modules/savewd (Depends-on): Likewise.
63412         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
63413         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
63415 2009-08-22  Bruno Haible  <bruno@clisp.org>
63417         * modules/binary-io (License): Relicense under LGPL.
63418         * modules/pipe2 (License): Likewise.
63420 2009-08-22  Bruno Haible  <bruno@clisp.org>
63422         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
63423         return value.
63424         * lib/pipe-filter-gi.c (filter_init): Likewise.
63425         Reported by Eric Blake.
63427 2009-08-22  Bruno Haible  <bruno@clisp.org>
63429         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
63430         * modules/pipe (Depends-on): Add pipe2.
63432 2009-08-22  Bruno Haible  <bruno@clisp.org>
63434         Tests for module 'pipe2'.
63435         * modules/pipe2-tests: New file.
63436         * tests/test-pipe2.c: New file.
63438         New module 'pipe2'.
63439         * lib/unistd.in.h (pipe2): New declaration.
63440         * lib/pipe2.c: New file.
63441         * m4/pipe2.m4: New file.
63442         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
63443         HAVE_PIPE2.
63444         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
63445         * modules/pipe2: New file.
63446         * doc/glibc-functions/pipe2.texi: Mention the new module.
63448 2009-08-22  Bruno Haible  <bruno@clisp.org>
63450         Reference some new glibc functions.
63451         * doc/glibc-functions/accept4.texi: New file.
63452         * doc/glibc-functions/dup3.texi: New file.
63453         * doc/glibc-functions/mkostemp.texi: New file.
63454         * doc/glibc-functions/pipe2.texi: New file.
63455         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
63456         (Glibc sys/socket.h): Refer to accept4.
63457         (Glibc unistd.h): Refer to dup3, pipe2.
63458         Reported by Eric Blake.
63460 2009-08-22  Jim Meyering  <meyering@redhat.com>
63461             Bruno Haible  <bruno@clisp.org>
63463         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
63464         This makes it so packages using automake-1.11's silent-rules option
63465         can print e.g., a single "GEN    configmake.h" line, rather than
63466         the 30+ statements that perform the job.  If you want to see the
63467         actual commands, you can still run "make V=1".
63468         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
63469         so that make output is abbreviated when those variables are defined
63470         appropriately.
63471         * modules/argz: Likewise.
63472         * modules/arpa_inet: Likewise.
63473         * modules/byteswap: Likewise.
63474         * modules/configmake: Likewise.
63475         * modules/dirent: Likewise.
63476         * modules/errno: Likewise.
63477         * modules/fcntl: Likewise.
63478         * modules/float: Likewise.
63479         * modules/fnmatch: Likewise.
63480         * modules/getopt-posix: Likewise.
63481         * modules/glob: Likewise.
63482         * modules/iconv_open: Likewise.
63483         * modules/inttypes: Likewise.
63484         * modules/localcharset: Likewise.
63485         * modules/locale: Likewise.
63486         * modules/math: Likewise.
63487         * modules/netdb: Likewise.
63488         * modules/netinet_in: Likewise.
63489         * modules/poll: Likewise.
63490         * modules/posix_spawnp-tests: Likewise.
63491         * modules/sched: Likewise.
63492         * modules/search: Likewise.
63493         * modules/selinux-h: Likewise.
63494         * modules/signal: Likewise.
63495         * modules/spawn: Likewise.
63496         * modules/stdarg: Likewise.
63497         * modules/stdbool: Likewise.
63498         * modules/stddef: Likewise.
63499         * modules/stdint: Likewise.
63500         * modules/stdio: Likewise.
63501         * modules/stdlib: Likewise.
63502         * modules/string: Likewise.
63503         * modules/strings: Likewise.
63504         * modules/sys_file: Likewise.
63505         * modules/sys_ioctl: Likewise.
63506         * modules/sys_select: Likewise.
63507         * modules/sys_socket: Likewise.
63508         * modules/sys_stat: Likewise.
63509         * modules/sys_time: Likewise.
63510         * modules/sys_times: Likewise.
63511         * modules/sys_utsname: Likewise.
63512         * modules/sys_wait: Likewise.
63513         * modules/sysexits: Likewise.
63514         * modules/time: Likewise.
63515         * modules/unistd: Likewise.
63516         * modules/wchar: Likewise.
63517         * modules/wctype: Likewise.
63519 2009-08-22  Jim Meyering  <meyering@redhat.com>
63521         announce-gen: detect write failure
63522         * build-aux/announce-gen: Add Coda at end.
63523         Remove equivalent-but-more-verbose block at top.
63525 2009-08-19  Akim Demaille  <demaille@gostai.com>
63527         bootstrap: --help to stdout.
63528         * bootstrap (usage): Don't send --help to stderr.
63529         Use a here doc instead of a long string.
63531 2009-08-21  Eric Blake  <ebb9@byu.net>
63533         test-popen-safer: split from test-popen
63534         * tests/test-popen.c (main): Move...
63535         * tests/test-popen.h: ...into new file.
63536         * tests/test-popen-safer2.c: New file.
63537         * modules/popen-tests (Files): Add test-popen.h.
63538         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
63539         Suggested by Bruno Haible.
63541         test-fcntl-safer: split from test-open
63542         * tests/test-open.c (main): Move...
63543         * tests/test-open.h: ...into new file.
63544         * tests/test-fcntl-safer.c: New file.
63545         * modules/open-tests (Files): Add test-open.h.
63546         * modules/fcntl-safer-tests: New file.
63547         Suggested by Bruno Haible.
63549         test-fopen-safer: split from test-fopen
63550         * tests/test-fopen.c (main): Move...
63551         * tests/test-fopen.h: ...into new file.
63552         * tests/test-fopen-safer.c: New file.
63553         * modules/fopen-tests (Files): Add test-fopen.h.
63554         * modules/fopen-safer-tests: New file.
63555         Suggested by Bruno Haible.
63557 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
63559         popen-safer: test O_CLOEXEC at run-time.
63560         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
63562 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
63564         fcntl: move more flags to the header
63565         * lib/cloexec.c: Do not define FD_CLOEXEC here.
63566         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
63567         * lib/fcntl.in.h: Do both things here.
63569 2009-08-21  Jim Meyering  <meyering@redhat.com>
63571         consistently remove $@-t before redirecting to it
63572         * modules/argz: Remove $@-t and $@ before redirecting to the former.
63573         * modules/alloca-opt: Likewise.
63574         * modules/byteswap: Likewise.
63575         * modules/fnmatch: Likewise.
63576         * modules/getopt-posix: Likewise.
63577         * modules/glob: Likewise.
63578         * modules/poll: Likewise.
63579         * modules/posix_spawnp-tests: Likewise.
63580         * modules/sys_socket: Likewise.
63581         * modules/sysexits: Likewise.
63583 2009-08-21  Eric Blake  <ebb9@byu.net>
63585         popen: simplify access to original popen
63586         * lib/popen.c (rpl_popen): No need to worry about popen being a
63587         macro.
63588         Reported by Bruno Haible.
63590 2009-08-20  Eric Blake  <ebb9@byu.net>
63592         build: avoid some compiler warnings
63593         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
63594         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
63595         type.
63596         (new_exclude_segment, excluded_file_pattern_p)
63597         (excluded_file_name_p): Reduce scope.
63598         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
63599         old-style declaration.
63601 2009-08-20  Simon Josefsson  <simon@josefsson.org>
63603         * tests/test-exclude1.sh: Handle Windows EOL.
63604         * tests/test-exclude2.sh: Likewise.
63605         * tests/test-exclude3.sh: Likewise.
63606         * tests/test-exclude4.sh: Likewise.
63607         * tests/test-exclude5.sh: Likewise.
63608         * tests/test-exclude6.sh: Likewise.
63609         * tests/test-exclude7.sh: Likewise.
63611 2009-08-19  Akim Demaille  <demaille@gostai.com>
63613         bootstrap: find sha1sum when named gsha1sum.
63614         * bootstrap (find_tool): New.
63615         ($SHA1SUM): New.
63616         Use it.
63618 2009-08-20  Jim Meyering  <meyering@redhat.com>
63620         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
63621         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
63622         expression that converts "." in a file name to "\." in the resulting
63623         regexp.  Start with a dummy statement, so that prior shell variable
63624         definitions are expanded portably.  Reported by Simon Josefsson.
63626 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
63628         Fix polling for writeability of a screen buffer.
63629         * lib/poll.c: Distinguish input and screen buffers for the
63630         Win32 implementation.
63631         * lib/select.c: Likewise.
63633 2009-08-19  Eric Blake  <ebb9@byu.net>
63635         popen-safer: prevent popen from clobbering std descriptors
63636         * modules/popen-safer: New file.
63637         * lib/popen-safer.c: Likewise.
63638         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
63639         * lib/stdio--.h (popen): Provide override.
63640         * lib/stdio-safer.h (popen_safer): Provide declaration.
63641         * tests/test-popen.c (includes): Partially test this.
63642         * modules/popen-safer-tests: New file, for more tests.
63643         * tests/test-popen-safer.c: Likewise.
63644         * MODULES.html.sh (file stream based Input/Output): Mention it.
63646         tests: test some of the *-safer modules
63647         * modules/fopen-safer (Depends-on): Add fopen.
63648         * modules/fcntl-safer (Depends-on): Add fcntl.
63649         * modules/stdlib-safer (Depends-on): Add stdlib.
63650         (configure.ac): Set indicator.
63651         * modules/unistd-safer (configure.ac): Likewise.
63652         * modules/tmpfile-safer (configure.ac): Likewise.
63653         (Depends-on): Add tmpfile.
63654         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
63655         active.
63656         * tests/test-fopen.c (includes): Test safer versions when they are
63657         in use.
63658         * tests/test-open.c (includes): Likewise.
63660         popen: fix cygwin 1.5 bug when stdin closed
63661         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
63662         * modules/popen: New file.
63663         * modules/popen-tests: Likewise.
63664         * tests/test-popen.c: Likewise.
63665         * m4/popen.m4: Likewise.
63666         * lib/popen.c: Likewise.
63667         * lib/stdio.in.h (popen): New declaration.
63668         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
63669         * modules/stdio (Makefile.am): Likewise.
63670         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
63672 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
63674         maint.mk: give full control over update-copyright exclusions
63675         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
63676         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
63677         (update-copyright): Don't force inclusion of top-level
63678         ChangeLog.  Don't force exclusion of all COPYING files, but make
63679         them the default exclusion instead.
63681 2009-08-16  Bruno Haible  <bruno@clisp.org>
63683         Fix test failures on Solaris 10.
63684         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
63685         tests when Solaris iconv() is used.
63686         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
63687         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
63688         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
63689         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
63690         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
63692 2009-08-16  Bruno Haible  <bruno@clisp.org>
63694         Fix test failures on Solaris 10.
63695         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
63696         'tr' program and pass it as first argument.
63697         * tests/test-pipe-filter-gi1.sh: Likewise.
63698         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
63699         program as first argument.
63700         * tests/test-pipe-filter-gi1.c (main): Likewise.
63702 2009-08-16  Eric Blake  <ebb9@byu.net>
63704         fpurge: fix previous commits
63705         * modules/fpurge (Makefile.am): Make replacement conditional,
63706         partially reverting 2007-04-29 change; missed in previous
63707         attempt.
63708         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
63709         is missing.
63711 2009-08-16  Bruno Haible  <bruno@clisp.org>
63713         Clarify fpurge's effect on the file position.
63714         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
63715         * tests/test-fpurge.c (main): Make a second pass for checking the file
63716         position.
63718 2009-08-16  Bruno Haible  <bruno@clisp.org>
63720         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
63721         declaration of fpurge is missing.
63722         * tests/test-fpurge.c (main): Check that the file has not more contents
63723         than expected. Close the file before removing it.
63725 2009-08-15  Eric Blake  <ebb9@byu.net>
63727         fpurge: don't wrap working cygwin implementation
63728         * lib/fpurge.c (fpurge): Fix comment typo.
63729         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
63730         1.7 to avoid replacement.
63731         * tests/test-fpurge.c (main): Enhance test.
63733 2009-08-15  Eric Blake  <ebb9@byu.net>
63734         and Jim Meyering  <meyering@redhat.com>
63736         test-update-copyright: skip if perl is insufficient
63737         * tests/test-update-copyright.sh: Failure to run maintainer tool
63738         should not cause testsuite failure on cygwin 1.5.
63740 2009-08-14  Eric Blake  <ebb9@byu.net>
63742         doc: mention more functions added in cygwin 1.7.0
63743         * doc/posix-headers/limits.texi (limits.h): Update for recent
63744         cygwin additions.
63745         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
63746         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
63747         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
63748         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
63749         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
63751 2009-08-14  Eric Blake  <ebb9@byu.net>
63753         maint.mk: simplify update-copyright rule
63754         * top/maint.mk (update-copyright-local): Delete, and document how
63755         to do it in cfg.mk instead.
63756         (update-copyright-exclude-regexp): Delete, and document how to do
63757         it in .x-update-copyright instead.
63758         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
63759         exclude ChangeLog.
63761 2009-08-14  Bruno Haible  <bruno@clisp.org>
63763         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
63765 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
63767         maint.mk: support update-copyright-env
63768         * top/maint.mk (update-copyright-env): Define place-holder.
63769         (update-copyright): Expand $(update-copyright-env) before
63770         invoking update-copyright.
63772 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
63774         update-copyright: implement forced reformatting
63775         * build-aux/update-copyright: Implement and document
63776         UPDATE_COPYRIGHT_FORCE.
63777         * tests/test-update-copyright.sh: Test it.
63779 2009-08-14  Eric Blake  <ebb9@byu.net>
63780         and Bruno Haible  <bruno@clisp.org>
63782         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
63783         * tests/test-locale.c: Revert previous patch related to NULL.
63784         * tests/test-stdio.c: Likewise.
63785         * tests/test-stdlib.c: Likewise.
63786         * tests/test-string.c: Likewise.
63787         * tests/test-unistd.c: Likewise.
63788         * modules/time-tests (Depends-on): Add verify.
63789         * modules/wchar-tests (Depends-on): Likewise.
63790         * tests/test-time.c: Test for NULL compliance.
63791         * tests/test-wchar.c: Likewise.
63792         * modules/locale (Depends-on): Add stddef.
63793         * modules/stdio (Depends-on): Likewise.
63794         * modules/stdlib (Depends-on): Likewise.
63795         * modules/string (Depends-on): Likewise.
63796         * modules/time (Depends-on): Likewise.
63797         * modules/unistd (Depends-on): Likewise.
63798         * modules/wchar (Depends-on): Likewise.
63799         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
63800         * lib/stdlib.in.h (includes): Likewise.
63801         * lib/string.in.h (includes): Likewise.
63802         * lib/time.in.h (includes): Likewise.
63803         * lib/unistd.in.h (includes): Likewise.
63804         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
63805         replaced.
63806         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
63807         * m4/stddef_h.m4: New file.
63808         * modules/stddef: Likewise.
63809         * lib/stddef.in.h: Likewise.
63810         * modules/stddef-tests: Likewise.
63811         * tests/test-stddef.c: Likewise.
63812         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
63813         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
63814         * doc/posix-headers/locale.texi (locale.h): Likewise.
63815         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
63816         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
63817         * doc/posix-headers/string.texi (string.h): Likewise.
63818         * doc/posix-headers/time.texi (time.h): Likewise.
63819         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
63820         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
63822 2009-08-14  Eric Blake  <ebb9@byu.net>
63824         doc: improve git diff of texinfo files
63825         * .gitattributes: Add rule for *.texi files, with hint on how to
63826         use it.
63827         Copied from m4, and based on a report by Bruno Haible.
63829 2009-08-14  Bruno Haible  <bruno@clisp.org>
63831         Disable multithread support by default on Cygwin 1.5.x for real.
63832         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
63834 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
63836         update-copyright: much ado about intervals
63837         * build-aux/update-copyright: Implement and document
63838         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
63839         of copyright year intervals.
63840         Also, document UPDATE_COPYRIGHT_YEAR.
63841         * tests/test-update-copyright.sh: Test it.
63843         update-copyright: convert 2-digit to 4-digit years
63844         * build-aux/update-copyright: Implement and document.
63845         * tests/test-update-copyright.sh: Update.
63847 2009-08-14  Jim Meyering  <meyering@redhat.com>
63849         test-exclude: avoid coreutils "make check" failure
63850         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
63851         just as in test-argmatch.c.
63853 2009-08-13  Eric Blake  <ebb9@byu.net>
63855         test-dup2: fix bad assumption
63856         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
63857         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
63859         test-version-etc: fix CRLF portability issue
63860         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
63861         recognize \r.
63862         * tests/test-argp-version-etc-1.sh: Likewise.
63864         getopt: update client modules
63865         * modules/argp (Depends-on): Use getopt-gnu.
63866         * modules/git-merge-changelog (Depends-on): Likewise.
63867         * modules/long-options (Depends-on): Likewise.
63868         * modules/xstrtol (Depends-on): Likewise.
63870 2009-08-13  Simon Josefsson  <simon@josefsson.org>
63872         * tests/test-version-etc.sh: Don't fail on different
63873         project/version.  Don't fail on CRLF differences.  Rewrite to use
63874         multiple -e instead of multiple sed forks, suggested by Eric Blake
63875         <ebb9@byu.net>.
63876         * tests/test-argp-version-etc-1.sh: Likewise.
63878 2009-08-13  Simon Josefsson  <simon@josefsson.org>
63880         * tests/test-version-etc.sh: Don't fail on different
63881         project/version.
63883 2009-08-12  Bruno Haible  <bruno@clisp.org>
63885         Tests for modules 'getopt-posix', 'getopt-gnu'.
63886         * modules/getopt-posix-tests: New file.
63887         * tests/test-getopt.c: New file.
63888         * tests/test-getopt.h: New file.
63889         * tests/test-getopt_long.h: New file.
63891         New modules 'getopt-posix', 'getopt-gnu'.
63892         * modules/getopt-gnu: New file, renamed from modules/getopt.
63893         * modules/getopt-posix: New file.
63894         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
63895         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
63896         (gl_GETOPT): Remove macro.
63897         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
63898         Disable the test against BSD systems that declare optreset. Test
63899         against mingw bug. Test against lack of support of optional arguments
63900         on many platforms.
63901         * doc/glibc-headers/getopt.texi: Update module name and list of
63902         relevant platforms.
63903         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
63904         'getopt-gnu' and more portability problems.
63905         * NEWS: Mention the changes.
63907 2009-08-12  Bruno Haible  <bruno@clisp.org>
63909         Ensure that optarg etc. get declared by <unistd.h>.
63910         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
63911         AC_USE_SYSTEM_EXTENSIONS.
63912         * modules/getopt (Depends-on): Add 'extensions'.
63914 2009-08-12  Bruno Haible  <bruno@clisp.org>
63916         Avoid test link errors.
63917         * modules/pipe-filter-ii-tests (Makefile.am): Define
63918         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
63919         * modules/pipe-filter-gi-tests (Makefile.am): Define
63920         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
63921         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
63923 2009-08-12  Bruno Haible  <bruno@clisp.org>
63925         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
63926         gl_GETOPT_SUBSTITUTE before.
63927         (gl_GETOPT): Use it.
63928         * m4/argp.m4 (gl_ARGP): Update.
63929         Reported by Sergey Poznyakoff.
63931         * m4/getopt.m4: Reorder macros.
63932         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
63933         (gl_GETOPT_SUBSTITUTE): Remove macro.
63935 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
63937         Minor improvement in gitlog-to-changelog
63939         * build-aux/gitlog-to-changelog: New option `--format' makes
63940         output format string configurable.
63942 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
63944         Optimize exclude: use hash tables for non-wildcard patterns.
63946         * lib/exclude.c: Include hash.h and mbuiter.h
63947         (struct exclude_pattern, exclude_segment): New data types.
63948         (struct exclude): Rewrite.
63949         (fnmatch_pattern_has_wildcards): New function.
63950         (new_exclude_segment, free_exclude_segment): New functions.
63951         (excluded_file_pattern_p, excluded_file_name_p): New functions.
63952         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
63953         * lib/exclude.h (is_fnmatch_pattern): New prototype.
63954         * modules/exclude: Depend on hash and mbuiter.
63956         * modules/exclude-tests: New file.
63957         * tests/test-exclude.c: New file.
63958         * tests/test-exclude1.sh: New file.
63959         * tests/test-exclude2.sh: New file.
63960         * tests/test-exclude3.sh: New file.
63961         * tests/test-exclude4.sh: New file.
63962         * tests/test-exclude5.sh: New file.
63963         * tests/test-exclude6.sh: New file.
63964         * tests/test-exclude7.sh: New file.
63966 2009-08-12  Bruno Haible  <bruno@clisp.org>
63968         Ensure that getopt() gets declared by <unistd.h>.
63969         * lib/unistd.in.h: Conditionally include getopt.h.
63970         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
63971         Set GNULIB_UNISTD_H_GETOPT.
63972         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63973         GNULIB_UNISTD_H_GETOPT.
63974         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
63976 2009-08-12  Bruno Haible  <bruno@clisp.org>
63978         Clarify logic.
63979         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
63980         gl_replace_getopt instead of GETOPT_H.
63982 2009-08-12  Bruno Haible  <bruno@clisp.org>
63984         * m4/getopt.m4: Add comments.
63986 2009-08-12  Bruno Haible  <bruno@clisp.org>
63988         Disable multithread support by default on Cygwin 1.5.x.
63989         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
63990         set gl_use_threads=no if not specified otherwise.
63992 2009-08-11  Bruno Haible  <bruno@clisp.org>
63994         Avoid compilation error on NetBSD 5.0.
63995         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
63996         * tests/test-stdio.c: Likewise.
63997         * tests/test-stdlib.c: Likewise.
63998         * tests/test-string.c: Likewise.
63999         * tests/test-unistd.c: Likewise.
64000         Reported by Greg Troxel <gdt@ir.bbn.com>
64001         at <https://savannah.gnu.org/support/?106973>.
64003 2009-08-11  Bruno Haible  <bruno@clisp.org>
64005         * modules/dup2-tests (Depends-on): Remove close.
64007         Undo 2009-07-19 commit.
64008         * modules/acl-tests (Depends-on): Remove close.
64009         * modules/binary-io-tests (Depends-on): Likewise.
64010         * modules/closein-tests (Depends-on): Likewise.
64011         * modules/flock-tests (Depends-on): Likewise.
64012         * modules/fsync-tests (Depends-on): Likewise.
64013         * modules/lseek-tests (Depends-on): Likewise.
64014         * modules/pipe-tests (Depends-on): Likewise.
64015         * modules/posix_spawn-tests (Depends-on): Likewise.
64016         * modules/posix_spawnp-tests (Depends-on): Likewise.
64017         * modules/stat-time-tests (Depends-on): Likewise.
64018         * modules/yesno-tests (Depends-on): Likewise.
64020 2009-08-10  Bruno Haible  <bruno@clisp.org>
64022         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
64024 2009-08-10  Bruno Haible  <bruno@clisp.org>
64026         Fix a gcc warning.
64027         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
64029 2009-08-10  Bruno Haible  <bruno@clisp.org>
64031         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
64032         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
64033         not only the first time.
64034         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
64035         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
64036         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
64037         is 1, not only the first time.
64039 2009-08-10  Bruno Haible  <bruno@clisp.org>
64041         Make it possible to use module 'gethostname' without module 'close'.
64042         * lib/unistd.in.h (close): Evoke a link error only if
64043         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
64044         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
64045         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
64046         * modules/unistd (Makefile.am): Substitute
64047         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
64048         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
64049         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
64050         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
64051         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
64052         * modules/sys_ioctl (Makefile.am): Substitute
64053         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
64054         * modules/socket (configure.ac): On native Windows, set
64055         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
64056         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
64057         Reported by Sam Steingold <sds@gnu.org>.
64059 2009-08-10  Bruno Haible  <bruno@clisp.org>
64061         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
64062         * modules/ioctl (configure.ac): Likewise.
64064 2009-08-10  Bruno Haible  <bruno@clisp.org>
64066         Avoid collision between gnulib wrapper and libintl wrapper.
64067         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
64068         already defined in intl/printf.c.
64069         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
64070         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
64072 2009-08-09  Bruno Haible  <bruno@clisp.org>
64074         Make <sys/select.h> really self-contained, also on Solaris 10.
64075         * lib/sys_select.in.h: Include <string.h>.
64076         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
64077         Solaris 10 problem.
64078         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
64079         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
64080         Reported by Jim Meyering.
64082 2009-08-09  Bruno Haible  <bruno@clisp.org>
64084         Avoid warnings from 'aclocal' that are due to a use of macro name
64085         AM_XGETTEXT_OPTION that is not defined in automake.
64086         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
64087         automake.
64088         * modules/error (configure.ac): Likewise.
64089         * modules/propername (configure.ac): Likewise.
64090         * modules/vasprintf (configure.ac): Likewise.
64091         * modules/verror (configure.ac): Likewise.
64092         * modules/xprintf (configure.ac): Likewise.
64093         * modules/xvasprintf (configure.ac): Likewise.
64095 2009-08-08  Bruno Haible  <bruno@clisp.org>
64097         Avoid compilation error in C++ mode.
64098         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
64099         Reported by Sam Steingold <sds@gnu.org>.
64101 2009-08-08  Bruno Haible  <bruno@clisp.org>
64103         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
64104         for the various Unix platforms.
64105         * doc/posix-headers/limits.texi: Update platforms list regarding
64106         HOST_NAME_MAX.
64107         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
64109 2009-08-07  Jim Meyering  <meyering@redhat.com>
64111         selinux-at: fix typo in a comment
64112         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
64113         Spotted by Paolo Bonzini.
64115         selinux-at: remove redundant m4 code, add documentation
64116         * modules/selinux-at (configure.ac): Remove redundant code.
64117         LIB_SELINUX is already set via the dependent module, selinux-h.
64118         (Include): Add quotes around selinux-at.h.
64119         * lib/selinux-at.h: Add documentation.
64120         Reported by Bruno Haible in
64121         http://marc.info/?l=gnulib-bug&m=124958988300749
64123 2009-08-07  Bruno Haible  <bruno@clisp.org>
64125         Avoid link error on MacOS X 10.3 and 10.4.
64126         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
64127         on non-ELF systems.
64128         * lib/argp-pv.c (argp_program_version): Likewise.
64129         Reported by Simon Josefsson.
64131 2009-08-07  Simon Josefsson  <simon@josefsson.org>
64133         * tests/test-version-etc.sh: Use $EXEEXT.
64135 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
64137         update-copyright: update documentation to point to maint.mk
64138         * build-aux/update-copyright: Here.
64140 2009-08-06  Jim Meyering  <meyering@redhat.com>
64142         maint.mk: support update-copyright-local
64143         * top/maint.mk (update-copyright-local): Define place-holder.
64144         (update-copyright): Depend on $(update-copyright-local).
64146 2009-08-06  Jim Meyering  <meyering@redhat.com>
64148         selinux-at: new module
64149         Initially written for coreutils, this module will soon be
64150         used by findutils, too.
64151         * MODULES.html.sh [Misc]: Add selinux-at.
64152         * lib/selinux-at.h: New file, from coreutils.
64153         * lib/selinux-at.c: Likewise.
64154         * modules/selinux-at: Likewise.
64155         (License): Change from LGPL to GPL, since it depends
64156         on the GPL'd openat module.
64158         doc: update README
64159         * README: Remove references to cogito.
64160         Remove cvs-repo-updating instructions from 2007.
64161         Don't imply that CVS is better if you have limited disk space.
64163 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
64165         update-copyright: support C-style comments
64166         * build-aux/update-copyright: Implement and document.
64167         * tests/test-update-copyright.sh: Test.
64169 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
64171         update-copyright: support omitted "(C)"
64172         * build-aux/update-copyright: Implement and document.  Also,
64173         allow variable whitespace before "(C)".
64174         * tests/test-update-copyright.sh: Test.
64176 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
64178         update-copyright: don't trip on non-FSF copyright statements
64179         * build-aux/update-copyright: Fix so that the first correctly
64180         formatted FSF copyright statement is recognized no matter what
64181         appears before it.  Update documentation.
64182         * tests/test-update-copyright.sh: Test that.
64184 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
64186         update-copyright: clean up code a little
64187         * build-aux/update-copyright: Append "_re" to the name of any
64188         variable holding a regular expression.
64189         Replace "old" and "new" with "stmt" in variable names.
64190         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
64191         handled correctly.
64192         Format code more consistently.
64194 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
64196         update-copyright-tests: improve portability
64197         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
64198         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
64200 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
64202         update-copyright: support @copyright{} and &copy;
64203         * build-aux/update-copyright: Implement and document.
64204         * tests/test-update-copyright.sh: Test.
64206 2009-08-04  Jim Meyering  <meyering@redhat.com>
64208         update-copyright-tests: correctly test EOL=\r\n handling
64209         * tests/test-update-copyright.sh: Put \r at the end of some lines
64210         for the dos-eol tests.  Based on a patch by Joel E. Denny.
64212         maint.mk: make update-copyright exclusion list more configurable
64213         * top/maint.mk (update-copyright): Default to excluding COPYING,
64214         but allow an override, in case someone does want to update that file.
64216         maint.mk: don't update copyright date in COPYING
64217         * top/maint.mk (update-copyright): Exclude COPYING.
64219         maint.mk: add a copyright-updating rule
64220         * top/maint.mk (update-copyright): New rule.
64221         Derived from coreutils/Makefile.am.
64223         update-copyright: rename some variables
64224         * build-aux/update-copyright: Rename a few variables for clarity.
64225         Tweak syntax.  List Joel E. Denny as coauthor.
64227 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
64229         update-copyright: fix bug for 2-digit last year and add tests
64230         * build-aux/update-copyright: Fix bug.
64231         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
64232         specified.
64233         * modules/update-copyright-tests: New
64234         * tests/test-update-copyright.sh: New.
64236 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
64238         update-copyright: handle leading tabs in line prefix
64239         * build-aux/update-copyright: Count leading tabs as 8 spaces
64240         when computing margin.  This helps with the formatting of
64241         ChangeLogs, for example.
64242         Fix documentation a little.
64244 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
64246         update-copyright: support EOL=\r\n
64247         * build-aux/update-copyright: Implement that.
64249 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
64251         update-copyright: automatically format copyright statements
64252         * build-aux/update-copyright: Implement that.
64253         Also, be a little more predictable and safer by always failing
64254         when the full copyright format is not perfectly recognized as an
64255         unbroken whole.  Discussed at
64256         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
64257         Rewrite documentation.
64259 2009-08-03  Bruno Haible  <bruno@clisp.org>
64261         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
64263 2009-08-02  Bruno Haible  <bruno@clisp.org>
64265         Tests for module 'uname'.
64266         * modules/uname-tests: New file.
64267         * tests/test-uname.c: New file.
64269         New module 'uname'.
64270         * lib/uname.c: New file.
64271         * m4/uname.m4: New file.
64272         * modules/uname: New file.
64273         * doc/posix-functions/uname.texi: Mention the new module.
64275 2009-08-02  Bruno Haible  <bruno@clisp.org>
64277         Tests for module 'sys_utsname'.
64278         * modules/sys_utsname-tests: New file.
64279         * tests/test-sys_utsname.c: New file.
64281         New module 'sys_utsname'.
64282         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
64283         * m4/sys_utsname_h.m4: New file.
64284         * modules/sys_utsname: New file.
64285         * doc/posix-headers/sys_utsname.texi: Mention the new module.
64287 2009-08-02  Bruno Haible  <bruno@clisp.org>
64289         Implicitly initialize the sockets library.
64290         * lib/gethostname.c: Include sockets.h.
64291         (rpl_gethostname): Invoke gl_sockets_startup.
64292         * lib/socket.c: Include sockets.h.
64293         (rpl_socket): Invoke gl_sockets_startup.
64294         * modules/gethostname (Depends-on): Add sockets.
64295         * modules/socket (Depends-on): Likewise.
64296         * tests/test-poll.c: Don't include sockets.h.
64297         (main): Don't invoke gl_sockets_startup.
64298         * tests/test-select.c: Don't include sockets.h.
64299         (main): Don't invoke gl_sockets_startup.
64301 2009-08-02  Bruno Haible  <bruno@clisp.org>
64303         Allow multiple calls to gl_sockets_startup.
64304         * lib/sockets.c (initialized_sockets_version): New variable.
64305         (gl_sockets_startup): Do nothing if already called for this or a higher
64306         version.
64307         (gl_sockets_cleanup): Reset initialized_sockets_version.
64309 2009-08-03  Simon Josefsson  <simon@josefsson.org>
64311         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
64312         different project/version.
64314 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
64315             Bruno Haible  <bruno@clisp.org>
64317         Tests for module 'pipe-filter-gi'.
64318         * modules/pipe-filter-gi-tests: New file.
64319         * tests/test-pipe-filter-gi1.sh: New file.
64320         * tests/test-pipe-filter-gi1.c: New file.
64321         * tests/test-pipe-filter-gi2.sh: New file.
64322         * tests/test-pipe-filter-gi2-main.c: New file.
64323         * tests/test-pipe-filter-gi2-child.c: New file.
64325         New module 'pipe-filter-gi'.
64326         * lib/pipe-filter-gi.c: New file.
64327         * modules/pipe-filter-gi: New file.
64329 2009-08-02  Bruno Haible  <bruno@clisp.org>
64330             Paolo Bonzini  <bonzini@gnu.org>
64332         Tests for module 'pipe-filter-ii'.
64333         * modules/pipe-filter-ii-tests: New file.
64334         * tests/test-pipe-filter-ii1.sh: New file.
64335         * tests/test-pipe-filter-ii1.c: New file.
64336         * tests/test-pipe-filter-ii2.sh: New file.
64337         * tests/test-pipe-filter-ii2-main.c: New file.
64338         * tests/test-pipe-filter-ii2-child.c: New file.
64340         New module 'pipe-filter-ii'.
64341         * lib/pipe-filter.h: New file.
64342         * lib/pipe-filter-ii.c: New file.
64343         * lib/pipe-filter-aux.h: New file.
64344         * modules/pipe-filter-ii: New file.
64346 2009-08-02  Simon Josefsson  <simon@josefsson.org>
64348         * lib/gc-libgcrypt.c: Change copyright to FSF.
64349         * lib/gc-gnulib.c: Likewise.
64351 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
64353         * lib/gethostname.c: Include limits.h.
64355 2009-08-02  Simon Josefsson  <simon@josefsson.org>
64356             Bruno Haible  <bruno@clisp.org>
64358         Ensure HOST_NAME_MAX as part of the gethostname module.
64359         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
64360         define also HOST_NAME_MAX.
64361         * tests/test-gethostname.c: Include <limits.h>.
64362         (main): Check also HOST_NAME_MAX.
64363         * doc/posix-headers/limits.texi: Document the mingw problem.
64365 2009-08-02  Bruno Haible  <bruno@clisp.org>
64367         * lib/gethostname.c (gethostname): Fix handling of large len argument.
64368         Add comments.
64370 2009-03-31  Simon Josefsson  <simon@josefsson.org>
64372         * lib/gethostname.c: Add Windows wrapper.
64373         * m4/gethostname.m4: Look for gethostname in -lws2_32.
64374         * modules/gethostname: Depend on sys_socket & errno, for also
64375         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
64376         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
64378 2009-07-31  Jim Meyering  <meyering@redhat.com>
64380         getloadavg: fix symbol name in comment
64381         * lib/getloadavg.c: Correct a typo I introduced when adding
64382         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
64383         Matt Kraai spotted the problem.
64385 2009-07-29  Matt Kraai  <mkraai@beckman.com>
64387         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
64388         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
64389         code also if ! defined N_NAME_POINTER.
64390         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
64391         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
64392         but the n_name member is a 12-byte array.
64394 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
64396         update-copyright: generalize comment handling
64397         * build-aux/update-copyright: Handle copyright statements
64398         within more comment styles.
64399         Document usage.
64400         Report any file with an external copyright holder or parse failure.
64402 2009-07-29  Jim Meyering  <meyering@redhat.com>
64404         mktime: correct setting of REPLACE_MKTIME
64405         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
64407         update-copyright: new module
64408         * modules/update-copyright: New file.
64409         * build-aux/update-copyright: New file.
64410         * MODULES.html.sh (maint+release support): Add update-copyright.
64412 2009-07-27  Bruno Haible  <bruno@clisp.org>
64414         Fix compilation error when <ctime> is used and mktime is replaced.
64415         * lib/time.in.h (mktime): New declaration.
64416         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
64417         REPLACE_MKTIME instead of defining mktime in config.h.
64418         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
64419         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
64420         Reported by Ross McFarland <rwmcfa1@neces.com>.
64422 2009-07-27  Bruno Haible  <bruno@clisp.org>
64424         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
64425         Reported by Matt Kraai <mkraai@beckman.com>.
64427 2009-07-25  Jim Meyering  <meyering@redhat.com>
64429         maint.mk: avoid warnings about missing files
64430         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
64431         diagnostic when .prev-version does not exist.
64432         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
64433         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
64434         nonexistent cfg.mk.
64435         Suggestions from Simon Josefsson.
64437 2009-07-25  Bruno Haible  <bruno@clisp.org>
64439         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
64440         defined as macros. Needed on QNX 6.4.1.
64441         Reported by Matt Kraai <mkraai@beckman.com>.
64443 2009-07-23  Jim Meyering  <meyering@redhat.com>
64445         maint.mk: invoke "make dist" with a working value of XZ_OPT
64446         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
64448 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
64450         Make fseeko.c compile on QNX.
64451         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
64453 2009-07-22  Peter Simons  <simons@cryp.to>
64455         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
64456         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
64457         * lib/md4.h: Likewise.
64458         * lib/md5.h: Likewise.
64459         * lib/sha1.h: Likewise.
64460         * lib/sha256.h: Likewise.
64461         * lib/sha512.h: Likewise.
64463         tests-sha1: don't assign literal string to 'char *' variable
64464         * tests/test-sha1.c (main): Declare locals with "const" to match
64465         attributes of the right hand side.
64467 2009-07-21  Eric Blake  <ebb9@byu.net>
64469         dup2: fix more mingw problems
64470         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
64471         fd to itself.
64472         * doc/posix-functions/dup2.texi (dup2): Document the bug.
64473         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
64474         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
64475         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
64476         care of mingw bugs.
64478 2009-07-21  Jim Meyering  <meyering@redhat.com>
64480         vc-list-files: avoid failure when /bin/sh is dash
64481         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
64482         On some Debian based systems, /bin/sh is a symlink to dash, and running
64483         this command would omit the "/" following each 'tests' prefix:
64484           dash -x build-aux/vc-list-files -C . tests
64485         That is because bash and dash work differently:
64486           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
64487           bash ok
64488           dash odd
64490 2009-07-21  Eric Blake  <ebb9@byu.net>
64492         dup2-tests: test previous patch
64493         * modules/dup2-tests: New file.
64494         * tests/test-dup2.c: Likewise.
64495         * tests/test-open.c (main): Avoid unspecified behavior.
64496         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
64497         test.
64499         dup2: work around mingw and cygwin 1.5 bug
64500         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
64501         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
64502         * modules/unistd (Makefile.am): Substitute it.
64503         * lib/unistd.in.h (dup2): Declare the replacement.
64504         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
64505         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
64506         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
64507         * modules/execute (Depends-on): Add dup2.
64508         * modules/fseterr (Depends-on): Likewise.
64509         * modules/pipe (Depends-on): Likewise.
64510         * modules/posix_spawn-internal (Depends-on): Likewise.
64512 2009-07-21  Bruno Haible  <bruno@clisp.org>
64514         * modules/.gitattributes: New file.
64516 2009-07-20  Bruno Haible  <bruno@clisp.org>
64518         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
64519         (main): Use it.
64521 2009-07-20  Eric Blake  <ebb9@byu.net>
64523         test-pipe: make a bit more robust.
64524         * tests/test-pipe.c (myerr): Allow error messages regardless of
64525         what we do to stderr.
64526         (test_pipe): Rearrange to avoid deadlock.
64527         (child_main): Try a larger read, to ensure we avoided deadlock.
64528         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
64529         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
64530         if misused.
64532 2009-07-19  Jim Meyering  <meyering@redhat.com>
64534         fts: avoid false-positive cycle-detection
64535         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
64536         for each new command line argument.
64538 2009-07-19  Bruno Haible  <bruno@clisp.org>
64540         Fix build error on mingw with the modules sys_select and unistd.
64541         * modules/acl-tests (Depends-on): Add close.
64542         * modules/binary-io-tests (Depends-on): Likewise.
64543         * modules/closein-tests (Depends-on): Likewise.
64544         * modules/flock-tests (Depends-on): Likewise.
64545         * modules/fsync-tests (Depends-on): Likewise.
64546         * modules/lseek-tests (Depends-on): Likewise.
64547         * modules/pipe-tests (Depends-on): Likewise.
64548         * modules/posix_spawn-tests (Depends-on): Likewise.
64549         * modules/posix_spawnp-tests (Depends-on): Likewise.
64550         * modules/stat-time-tests (Depends-on): Likewise.
64551         * modules/yesno-tests (Depends-on): Likewise.
64553 2009-07-19  Bruno Haible  <bruno@clisp.org>
64555         Unify conditionals.
64556         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
64557         macros, not at the compiler macros.
64558         * lib/pipe.c: Likewise.
64559         * lib/execute.c: Likewise.
64560         * lib/spawni.c: Likewise.
64562 2009-07-19  Bruno Haible  <bruno@clisp.org>
64564         Fix handling of closed stdin/stdout/stderr on mingw.
64565         * lib/w32spawn.h: Include unistd.h.
64566         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
64567         file descriptor with O_NOINHERIT flag.
64568         (fd_safer_noinherit): New function, based on fd-safer.c.
64569         (dup_safer_noinherit): New function, based on dup-safer.c.
64570         (undup_safer_noinherit): New function.
64571         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
64572         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
64573         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
64574         instead of fd_safer.
64575         * tests/test-pipe.c: Include <windows.h>.
64576         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
64577         result.
64579         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
64580         from main.
64581         (test_pipe): Pass an extra argument for disambiguation.
64582         (main): Invoke parent_main or child_main.
64584         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
64585         consistently.
64587 2009-07-18  Eric Blake  <ebb9@byu.net>
64589         test-pipe: fix mingw build
64590         * tests/test-pipe.c (main): Avoid fcntl on mingw.
64592 2009-07-18  Bruno Haible  <bruno@clisp.org>
64594         * modules/pipe-tests (Makefile.am): Fix typo.
64596 2009-07-18  Eric Blake  <ebb9@byu.net>
64598         error: fix mingw build
64599         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
64600         Reported by Bruno Haible.
64602         error: avoid undefined use of stdout
64603         * lib/error.c (error, error_at_line): Check that fd 1 is open
64604         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
64605         is handling faults and the close_stdout module wants to report the
64606         detection of closed stdout as an error.
64608 2009-07-17  Eric Blake  <ebb9@byu.net>
64610         pipe: be robust in face of closed fds
64611         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
64612         should cause child to misbehave.
64613         * modules/pipe-tests: New module.
64614         * tests/test-pipe.c: New file.
64615         * tests/test-pipe.sh: New file.
64616         Reported by Akim Demaille.
64618 2009-07-14  Bruno Haible  <bruno@clisp.org>
64620         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
64621         Reported by anonymous kc.
64623 2009-07-07  Jim Meyering  <meyering@redhat.com>
64625         maint.mk: don't look for translatable strings in *.m4 or *.mk
64626         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
64627         when searching for translatable strings.
64629 2009-07-05  Jim Meyering  <meyering@redhat.com>
64631         remove superfluous parentheses in STREQ definition
64632         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
64633         * lib/getugroups.c (STREQ): Likewise.
64634         * lib/fnmatch.c (STREQ): Likewise.
64635         Spotted by Bruno Haible.
64637 2009-07-04  Jim Meyering  <meyering@redhat.com>
64639         argv-iter: new module
64640         * MODULES.html.sh: Add argv-iter.
64641         * lib/argv-iter.c, lib/argv-iter.h: New files.
64642         * modules/argv-iter: New file.
64643         * modules/argv-iter-tests: New file.
64644         * tests/test-argv-iter.c: Test it.
64646 2009-07-04  Bruno Haible  <bruno@clisp.org>
64648         Fix assertion.
64649         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
64650         contains more exact copies of a given entry than file2, leave the extra
64651         copies unpaired rather than aborting.
64652         Reported by Eric Blake.
64654 2009-07-02  Bruno Haible  <bruno@clisp.org>
64656         Speedup git-merge-changelog for git cherry-pick.
64657         * lib/git-merge-changelog.c (struct entries_mapping): New type.
64658         (entries_mapping_get): New function, extracted from compute_mapping.
64659         (entries_mapping_reverse_get): New function.
64660         (compute_mapping): Add a 'full' argument. Return the result in a
64661         'struct entries_mapping'.
64662         (main): Update. Access the mappings through entries_mapping_get.
64663         Reported by Eric Blake.
64665 2009-07-02  Bruno Haible  <bruno@clisp.org>
64667         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
64668         best_i.
64670 2009-07-02  Bruno Haible  <bruno@clisp.org>
64672         Speed up approximate search for matching ChangeLog entries.
64673         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
64674         argument. Call fstrcmp_bounded instead of fstrcmp.
64675         (compute_mapping, try_split_merged_entry, main): Update callers.
64677 2009-07-02  Bruno Haible  <bruno@clisp.org>
64679         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
64681 2009-06-30  Bruno Haible  <bruno@clisp.org>
64683         Reduce the number of uc_is_cased calls.
64684         * lib/unicase.h (casing_suffix_context_t): Add
64685         'first_char_except_ignorable' field.
64686         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
64687         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
64688         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
64689         Update initializer.
64690         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
64691         case-ignorable characters.
64692         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
64693         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
64694         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
64695         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
64696         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
64698 2009-06-30  Bruno Haible  <bruno@clisp.org>
64700         Tests for module 'unicase/ignorable'.
64701         * modules/unicase/ignorable-tests: New file.
64702         * tests/unicase/test-ignorable.c: New file, generated by
64703         gen-uni-tables.
64705         Tests for module 'unicase/cased'.
64706         * modules/unicase/cased-tests: New file.
64707         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
64708         * tests/unicase/test-predicate-part1.h: New file, derived from
64709         tests/unictype/test-predicate-part1.h.
64710         * tests/unicase/test-predicate-part2.h: New file, same as
64711         tests/unictype/test-predicate-part2.h.
64713         Fix evaluation of "Before C" condition of FINAL_SIGMA.
64714         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
64715         (output_casing_properties): New function.
64716         (main): Call it.
64717         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
64718         * lib/unicase/cased.c: Include unictype/bitmap.h.
64719         (uc_is_cased): Define through a bitmap lookup.
64720         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
64721         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
64722         (uc_is_case_ignorable): Define through a bitmap lookup.
64723         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
64724         lib/unictype/bitmap.h.
64725         (Depends-on): Add inline. Clean up.
64726         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
64727         lib/unictype/bitmap.h.
64728         (Depends-on): Add inline. Clean up.
64729         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
64730         recognition.
64731         * tests/unicase/test-u16-tolower.c (main): Likewise.
64732         * tests/unicase/test-u32-tolower.c (main): Likewise.
64734 2009-06-30  Bruno Haible  <bruno@clisp.org>
64736         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
64737         * lib/unicase/u16-casemap.c: Likewise.
64738         * lib/unicase/u32-casemap.c: Likewise.
64740 2009-06-29  Bruno Haible  <bruno@clisp.org>
64742         Define u32_casefold as a wrapper around u32_ct_casefold.
64743         * lib/unicase/u32-casefold.c: Update.
64744         * modules/unicase/u32-casefold (Depends-on): Add
64745         unicase/u32-ct-casefold, unicase/empty-prefix-context,
64746         unicase/empty-suffix-context. Clean up.
64748         Define u16_casefold as a wrapper around u16_ct_casefold.
64749         * lib/unicase/u16-casefold.c: Update.
64750         * modules/unicase/u16-casefold (Depends-on): Add
64751         unicase/u16-ct-casefold, unicase/empty-prefix-context,
64752         unicase/empty-suffix-context. Clean up.
64754         Define u8_casefold as a wrapper around u8_ct_casefold.
64755         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
64756         * lib/unicase/u8-casefold.c: Update.
64757         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
64758         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
64760         Define u32_totitle as a wrapper around u32_ct_totitle.
64761         * lib/unicase/u32-totitle.c: Update.
64762         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
64763         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
64765         Define u16_totitle as a wrapper around u16_ct_totitle.
64766         * lib/unicase/u16-totitle.c: Update.
64767         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
64768         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
64770         Define u8_totitle as a wrapper around u8_ct_totitle.
64771         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
64772         functions.
64773         (FUNC): Delegate to U_CT_TOTITLE.
64774         * lib/unicase/u8-totitle.c: Update.
64775         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
64776         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
64778         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
64779         invocation.
64780         * modules/unicase/u32-tolower (Depends-on): Add
64781         unicase/empty-prefix-context, unicase/empty-suffix-context.
64783         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
64784         invocation.
64785         * modules/unicase/u16-tolower (Depends-on): Add
64786         unicase/empty-prefix-context, unicase/empty-suffix-context.
64788         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
64789         * modules/unicase/u8-tolower (Depends-on): Add
64790         unicase/empty-prefix-context, unicase/empty-suffix-context.
64792         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
64793         invocation.
64794         * modules/unicase/u32-toupper (Depends-on): Add
64795         unicase/empty-prefix-context, unicase/empty-suffix-context.
64797         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
64798         invocation.
64799         * modules/unicase/u16-toupper (Depends-on): Add
64800         unicase/empty-prefix-context, unicase/empty-suffix-context.
64802         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
64803         * modules/unicase/u8-toupper (Depends-on): Add
64804         unicase/empty-prefix-context, unicase/empty-suffix-context.
64806         New module 'unicase/u32-ct-casefold'.
64807         * lib/unicase/u32-ct-casefold.c: New file.
64808         * modules/unicase/u32-ct-casefold: New file.
64810         New module 'unicase/u16-ct-casefold'.
64811         * lib/unicase/u16-ct-casefold.c: New file.
64812         * modules/unicase/u16-ct-casefold: New file.
64814         New module 'unicase/u8-ct-casefold'.
64815         * lib/unicase/u8-ct-casefold.c: New file.
64816         * lib/unicase/u-ct-casefold.h: New file, derived from
64817         lib/unicase/u-casefold.h.
64818         * modules/unicase/u8-ct-casefold: New file.
64820         New module 'unicase/u32-ct-totitle'.
64821         * lib/unicase/u32-ct-totitle.c: New file.
64822         * modules/unicase/u32-ct-totitle: New file.
64824         New module 'unicase/u16-ct-totitle'.
64825         * lib/unicase/u16-ct-totitle.c: New file.
64826         * modules/unicase/u16-ct-totitle: New file.
64828         New module 'unicase/u8-ct-totitle'.
64829         * lib/unicase/u8-ct-totitle.c: New file.
64830         * lib/unicase/u-ct-totitle.h: New file, derived from
64831         lib/unicase/u-totitle.h.
64832         * modules/unicase/u8-ct-totitle: New file.
64834         New module 'unicase/u32-ct-tolower'.
64835         * lib/unicase/u32-ct-tolower.c: New file.
64836         * modules/unicase/u32-ct-tolower: New file.
64838         New module 'unicase/u16-ct-tolower'.
64839         * lib/unicase/u16-ct-tolower.c: New file.
64840         * modules/unicase/u16-ct-tolower: New file.
64842         New module 'unicase/u8-ct-tolower'.
64843         * lib/unicase/u8-ct-tolower.c: New file.
64844         * modules/unicase/u8-ct-tolower: New file.
64846         New module 'unicase/u32-ct-toupper'.
64847         * lib/unicase/u32-ct-toupper.c: New file.
64848         * modules/unicase/u32-ct-toupper: New file.
64850         New module 'unicase/u16-ct-toupper'.
64851         * lib/unicase/u16-ct-toupper.c: New file.
64852         * modules/unicase/u16-ct-toupper: New file.
64854         New module 'unicase/u8-ct-toupper'.
64855         * lib/unicase/u8-ct-toupper.c: New file.
64856         * modules/unicase/u8-ct-toupper: New file.
64858         Add context arguments to u*_casemap functions.
64859         * lib/unicase/unicasemap.h: Include unicase.h.
64860         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
64861         suffix_context arguments.
64862         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
64863         functions.
64864         (FUNC): Add prefix_context and suffix_context arguments. Use
64865         uc_is_cased and uc_is_case_ignorable.
64866         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
64867         * lib/unicase/u16-casemap.c: Likewise.
64868         * lib/unicase/u32-casemap.c: Likewise.
64869         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
64870         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
64871         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
64872         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
64873         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
64874         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
64876         New module 'unicase/u32-suffix-context'.
64877         * lib/unicase/u32-suffix-context.c: New file.
64878         * modules/unicase/u32-suffix-context: New file.
64880         New module 'unicase/u16-suffix-context'.
64881         * lib/unicase/u16-suffix-context.c: New file.
64882         * modules/unicase/u16-suffix-context: New file.
64884         New module 'unicase/u8-suffix-context'.
64885         * lib/unicase/u8-suffix-context.c: New file.
64886         * lib/unicase/u-suffix-context.h: New file.
64887         * modules/unicase/u8-suffix-context: New file.
64889         New module 'unicase/empty-suffix-context'.
64890         * lib/unicase/empty-suffix-context.c: New file.
64891         * modules/unicase/empty-suffix-context: New file.
64893         New module 'unicase/u32-prefix-context'.
64894         * lib/unicase/u32-prefix-context.c: New file.
64895         * modules/unicase/u32-prefix-context: New file.
64897         New module 'unicase/u16-prefix-context'.
64898         * lib/unicase/u16-prefix-context.c: New file.
64899         * modules/unicase/u16-prefix-context: New file.
64901         New module 'unicase/u8-prefix-context'.
64902         * lib/unicase/u8-prefix-context.c: New file.
64903         * lib/unicase/u-prefix-context.h: New file.
64904         * lib/unicase/context.h: New file.
64905         * modules/unicase/u8-prefix-context: New file.
64907         New module 'unicase/empty-prefix-context'.
64908         * lib/unicase/empty-prefix-context.c: New file.
64909         * modules/unicase/empty-prefix-context: New file.
64911         New module 'unicase/ignorable'.
64912         * lib/unicase/ignorable.c: New file.
64913         * modules/unicase/ignorable: New file.
64915         New module 'unicase/cased'.
64916         * lib/unicase/caseprop.h: New file.
64917         * lib/unicase/cased.c: New file.
64918         * modules/unicase/cased: New file.
64920         New functions for case mapping of substrings.
64921         * lib/unicase.h (casing_prefix_context_t): New type.
64922         (unicase_empty_prefix_context): New variable.
64923         (u8_casing_prefix_context, u16_casing_prefix_context,
64924         u32_casing_prefix_context, u8_casing_prefixes_context,
64925         u16_casing_prefixes_context, u32_casing_prefixes_context): New
64926         declarations.
64927         (casing_suffix_context_t): New type.
64928         (unicase_empty_suffix_context): New variable.
64929         (u8_casing_suffix_context, u16_casing_suffix_context,
64930         u32_casing_suffix_context, u8_casing_suffixes_context,
64931         u16_casing_suffixes_context, u32_casing_suffixes_context,
64932         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
64933         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
64934         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
64935         declarations.
64937 2009-06-28  Jim Meyering  <meyering@redhat.com>
64939         boostrap: indent only with spaces
64940         * build-aux/bootstrap: Indent only with spaces, never TABs.
64942         bootstrap: split long lines
64943         * build-aux/bootstrap: Keep line length < 80.
64945         bootstrap: sync from coreutils
64946         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
64947         just as autoreconf does.  Verify a list of prerequisite
64948         package-name,version-number pairs if defined in bootstrap.conf.
64949         Refer to README-prereq, if prerequisites are not satisfied.
64951 2009-06-27  Eric Blake  <ebb9@byu.net>
64953         tests: add test for bogus NULL definition
64954         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
64955         * tests/test-stdlib.c: Likewise.
64956         * tests/test-string.c: Likewise.
64957         * tests/test-locale.c: Likewise.
64958         * tests/test-unistd.c: Likewise.
64959         * modules/stdio-tests (Depends-on): Add verify.
64960         * modules/stdlib-tests (Depends-on): Likewise.
64961         * modules/string-tests (Depends-on): Likewise.
64962         * modules/locale-tests (Depends-on): Likewise.
64963         * modules/unistd-tests (Depends-on): Likewise.
64965 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
64967         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
64968         self-explaining comment.
64969         * m4/selinux-selinux-h: Update serial.
64970         (gl_LIBSELINUX): New macro, adding a warning for missing development
64971         packages to code extracted from...
64972         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
64973         Add warning for missing development packages here, too.
64975 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
64977         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
64979 2009-06-25  Eric Blake  <ebb9@byu.net>
64981         version-etc: fix regression
64982         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
64983         gcc.
64984         (version_etc): Use it, to catch bugs with trailing NULL.
64985         * lib/version-etc.c (version_etc_arn): Delete unused argument.
64986         (version_etc_va): Fix logic bug.
64987         * modules/version-etc-tests: Add test.
64988         * tests/test-version-etc.c: New file.
64989         * tests/test-version-etc.sh: Likewise.
64991 2009-06-25  Sam Steingold  <sds@gnu.org>
64993         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
64994         mbtowc declaration.
64996 2009-06-25  Eric Blake  <ebb9@byu.net>
64998         fpurge: migrate into <stdio.h>
64999         * lib/fpurge.h: Delete...
65000         * lib/stdio.in.h (fpurge): ...and declare here, instead.
65001         * lib/fpurge.c (fpurge): Change declaring header.
65002         * modules/fpurge (Files): Drop deleted file.
65003         (Depends-on): Add stdio.
65004         (configure.ac): Set witness.
65005         * modules/stdio (Makefile.am): Support fpurge macros.
65006         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
65007         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
65008         * lib/fflush.c: Update client.
65009         * tests/test-fpurge.c: Likewise.
65010         * NEWS: Mention the change.
65012 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
65014         * lib/argp-version-etc.c (program_authors): Add const
65015         qualifier.
65016         * lib/version-etc.c: Fix typos in the comments.
65017         * modules/argp-version-etc: Depends on version-etc.
65019 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
65021         argp-version-etc: new module.
65023         * lib/argp-version-etc.c: New file.
65024         * lib/argp-version-etc.h: New file.
65025         * modules/argp-version-etc: New file.
65026         * modules/argp-version-etc-tests: New file.
65027         * tests/test-argp-version-etc.c: New test.
65028         * tests/test-argp-version-etc-1.sh: New test.
65030 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
65032         Provide additional interfaces and documentation for version-etc
65033         module.
65035         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
65036         interfaces.
65037         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
65038         prototypes.
65040 2009-06-24  Bruno Haible  <bruno@clisp.org>
65042         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
65043         HAVE_LIB${NAME} macro.
65044         Reported by Sam Steingold <sds@gnu.org>.
65046 2009-06-23  Simon Josefsson  <simon@josefsson.org>
65048         * modules/hash-tests (test_hash_LDADD): Link to libintl when
65049         needed.
65051 2009-06-21  Bruno Haible  <bruno@clisp.org>
65053         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
65054         work.
65055         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
65056         together with LIB${NAME}, LTLIB${NAME}.
65057         Reported by Sam Steingold <sds@gnu.org>.
65059 2009-06-20  Jim Meyering  <meyering@redhat.com>
65061         tests: make sc_require_test_exit_idiom more generic
65062         * top/maint.mk (Exit_witness_file): New overridable variable.
65063         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
65064         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
65066 2009-06-19  Jim Meyering  <meyering@redhat.com>
65068         hash: reverse order of src/dst parameters in an internal interface
65069         * lib/hash.c (transfer_entries): Reverse order of parameters to
65070         put DST before SRC.  Adjust callers.
65072         tests: test-hash: avoid wholesale duplication
65073         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
65074         Instead, use a loop and add a single conditional.
65076         tests: test-hash: allow seed selection via a command line argument
65077         * tests/test-hash.c (get_seed): New function.
65078         (main): Use it.
65080 2009-06-19  Eric Blake  <ebb9@byu.net>
65082         hash: avoid memory leak on allocation failure
65083         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
65084         failure.  Factor repeated algorithm...
65085         (transfer_entries): ...into new helper routine.
65086         (hash_delete): React to hash_rehash return value.
65088         hash: reduce memory pressure in hash_rehash no-op case
65089         * lib/hash.c (next_prime): Avoid overflow.
65090         (hash_initialize): Factor bucket size computation...
65091         (compute_bucket_size): ...into new helper function.
65092         (hash_rehash): Use new function and open coding to reduce memory
65093         pressure, and avoid a memory leak in USE_OBSTACK code.
65094         Reported by Jim Meyering.
65096 2009-06-18  Eric Blake  <ebb9@byu.net>
65098         hash: make rotation more obvious
65099         * modules/hash (Depends-on): Add bitrotate and stdint.
65100         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
65101         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
65102         (SIZE_MAX): Rely on headers for definition.
65103         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
65104         (raw_hasher): Use rotr_sz.
65105         Suggested by Jim Meyering.
65107         hash: fix memory leak in last patch
65108         * lib/hash.c (hash_rehash): Avoid memory leak.
65110         hash: avoid no-op rehashing
65111         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
65113         hash: provide default callback functions
65114         * lib/hash.c (raw_hasher, raw_comparator): New functions.
65115         (hash_initialize): Use them as defaults.
65116         * tests/test-hash.c (main): Test this.
65118         hash: minor optimization
65119         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
65120         when possible.
65121         (hash_initialize): Document this promise.
65122         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
65123         * tests/test-hash.c (hash_compare_strings): Test this.
65125 2009-06-18  Bruno Haible  <bruno@clisp.org>
65127         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
65128         going to be replaced anyway.
65130 2009-06-18  Bruno Haible  <bruno@clisp.org>
65132         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
65133         in one place.
65134         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
65135         be replaced anyway.
65137 2009-06-18  Eric Blake  <ebb9@byu.net>
65139         hash: check for resize before insertion
65140         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
65141         threshold before insertion, so that a pathological hash_rehash
65142         that fills every bucket can still trigger another rehash.
65144 2009-06-18  Jim Meyering  <meyering@redhat.com>
65146         hash-tests: add a loop around the small tests
65147         * tests/test-hash.c (main): Repeat small tests with selected
65148         small initial table sizes.
65150 2009-06-17  Eric Blake  <ebb9@byu.net>
65152         hash: minor cleanups
65153         * lib/hash.h (hash_entry): Make opaque, by moving...
65154         * lib/hash.c (hash_entry): ...here.
65155         (hash_insert): Clarify restrictions on what can be inserted.
65156         (hash_get_next): Clarify when it is safe to remove an element
65157         during traversal.
65158         (check_tuning): Skip verification when tuning is known safe.
65159         (hash_initialize): Clarify restrictions on tuning.
65161 2009-06-17  Jim Meyering  <jim@meyering.net>
65162         and Eric Blake  <ebb9@byu.net>
65164         hash-tests: new module
65165         * modules/hash-tests: New file.
65166         * tests/test-hash.c: New file.
65168 2009-06-17  Eric Blake  <ebb9@byu.net>
65170         strstr-simple: document new module
65171         * MODULES.html.sh: Document new module.
65173         strstr, strcasestr: replace on platforms with broken memchr
65174         * modules/strstr: Split into...
65175         * modules/strstr-simple: ...new module that does not care about
65176         performance, but does care about glibc bug.
65177         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
65178         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
65179         if platform memchr is broken, per Debian bug 521737.
65180         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
65181         memchr.
65182         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
65183         * doc/posix-functions/strstr.texi (strstr): Document the fix.
65184         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
65185         * modules/mountlist (Depends-on): Add strstr-simple.
65186         * modules/gen-uni-tables (Depends-on): Likewise.
65187         * modules/argz (Depends-on): Add strstr.
65189 2009-06-17  Bruno Haible  <bruno@clisp.org>
65191         * modules/posix_spawn-internal (Depends-on): Add errno.
65193 2009-06-17  Bruno Haible  <bruno@clisp.org>
65195         Define missing ESTALE on Interix 3.5.
65196         * lib/errno.in.h (ESTALE): Assign a value if missing.
65197         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
65198         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
65199         missing.
65200         * doc/posix-headers/errno.texi: Mention the Interix bug.
65201         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
65203 2009-06-15  Eric Blake  <ebb9@byu.net>
65205         memchr, memchr2: add valgrind exception
65206         * lib/memchr.valgrind: New file.
65207         * lib/memchr2.valgrind: New file.
65208         * modules/memchr (Files): Distribute valgrind file.
65209         * modules/memchr2 (Files): Likewise.
65211         docs: memchr is no longer obsolete
65212         * MODULES.html.sh: Move memchr from obsolete to string.h section.
65213         * lib/string.in.h (memchr): Simplify logic.
65215 2009-06-14  Jim Meyering  <meyering@redhat.com>
65217         link-follow: fix the "checking..." message to not mention trailing slash
65218         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
65219         never considered trailing slashes.
65221 2009-06-14  Bruno Haible  <bruno@clisp.org>
65223         * m4/memchr.m4: Mention also the bug on IA-64.
65224         * doc/posix-functions/memchr.texi: Likewise.
65226 2009-06-12  Eric Blake  <ebb9@byu.net>
65228         memchr: detect broken x86_64 and alpha implementations
65229         * modules/memchr-tests (Depends-on): Move mmap detection...
65230         * modules/memchr (Depends-on): ...here.
65231         (configure.ac): Set indicator.
65232         * lib/string.in.h (memchr): Declare replacement.
65233         * modules/string (Makefile.am): Trigger replacement.
65234         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
65235         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
65236         bugs.
65237         * doc/posix-functions/memchr.texi (memchr): Document the bug.
65238         * modules/getpagesize (License): Relax license.
65240 2009-06-11  Bruno Haible  <bruno@clisp.org>
65242         * lib/idpriv.h: Add more references.
65244 2009-06-08  Bruno Haible  <bruno@clisp.org>
65246         Tests for module 'idpriv-droptemp'.
65247         * modules/idpriv-droptemp-tests: New file.
65248         * tests/test-idpriv-droptemp.sh: New file.
65249         * tests/test-idpriv-droptemp.su.sh: New file.
65250         * tests/test-idpriv-droptemp.c: New file.
65252         New module 'idpriv-droptemp'.
65253         * lib/idpriv-droptemp.c: New file.
65254         * modules/idpriv-droptemp: New file.
65256 2009-06-08  Bruno Haible  <bruno@clisp.org>
65258         Tests for module 'idpriv-drop'.
65259         * modules/idpriv-drop-tests: New file.
65260         * tests/test-idpriv-drop.sh: New file.
65261         * tests/test-idpriv-drop.su.sh: New file.
65262         * tests/test-idpriv-drop.c: New file.
65264         New module 'idpriv-drop'.
65265         * lib/idpriv.h: New file.
65266         * lib-idpriv-drop.c: New file.
65267         * m4/idpriv.m4: New file.
65268         * modules/idpriv-drop: New file.
65270 2009-06-08  Bruno Haible  <bruno@clisp.org>
65272         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
65273         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
65274         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
65275         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
65276         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
65277         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
65278         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
65280 2009-06-08  Eric Blake  <ebb9@byu.net>
65282         test-strstr: use memory fence, when possible
65283         * tests/test-strstr.c (main): Use memory fence, in order to be
65284         more likely to trigger Debian bug 521737.
65285         * modules/strstr-tests (Files): Pull in additional files.
65287         memchr: no longer obsolete, for wider field testing
65288         * modules/memchr (Status, Notice): Delete, this module is no
65289         longer obsolete.
65290         * modules/vasnprintf (Depends-on): Add memchr.
65292 2009-06-07  Jim Meyering  <meyering@redhat.com>
65294         hash: declare some functions with the warn_unused_result attribute
65295         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
65297 2009-06-07  Bruno Haible  <bruno@clisp.org>
65299         * tests/test-alignof.c: Don't test int64_t if it does not exist.
65300         Reported by Eric Blake.
65302 2009-06-06  Eric Blake  <ebb9@byu.net>
65304         test-alignof: fix typo with long double
65305         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
65306         compiler error.
65308 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
65310         Escape non-texinfo { and }s.
65311         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
65312         markup error.
65314 2009-06-04  Jim Meyering  <meyering@redhat.com>
65316         gitlog-to-changelog: don't infloop on an empty commit log
65317         * build-aux/gitlog-to-changelog: Warn about an empty log message.
65318         Reported by Boris Petersen <transacid@centerim.org>.
65320 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
65322         version-etc: extend for packagers
65323         Add three new configure options, intended for packagers:
65324           --with-packager="packager name"
65325           --with-packager-version="packager-specific version"
65326           --with-packager-bug-reports="packager bug reporting"
65327         An example with coreutils:
65328           $ ./configure \
65329             --with-packager=Gentoo \
65330             --with-packager-bug-report=http://bugs.gentoo.org/ \
65331             --with-packager-version="patchset 1.6"
65332           $ ./src/ls --version | head -n2
65333           ls (GNU coreutils) 7.1-dirty
65334           Packaged by Gentoo (patchset 1.6)
65335         Note that the bug reporting info via --help doesn't show up because
65336         coreutils uses its own custom emit_bug_reporting_address() implementation
65337         in src/system.h.  If it didn't, it'd look like:
65338           $ ./src/ls --help | tail -n4
65339           Report bugs to <bug-coreutils@gnu.org>.
65340           Report Gentoo bugs to <http://bugs.gentoo.org/>.
65341           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
65342           General help using GNU software: <http://www.gnu.org/gethelp/>.
65343         * lib/version-etc.c: Print new information, if provided.
65344         * m4/version-etc.m4: New file.
65345         * modules/version-etc (Files): Add m4/version-etc.m4.
65346         (configure.ac): Add gl_VERSION_ETC.
65348 2009-05-31  Bruno Haible  <bruno@clisp.org>
65350         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
65351         and 'int64_t'.
65352         * modules/alignof-tests (Dependencies): Add stdint.
65353         Reported by Eric Blake.
65355 2009-05-31  Bruno Haible  <bruno@clisp.org>
65357         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
65358         restriction due to compiler bugs.
65359         Reported by Eric Blake.
65361 2009-05-31  Simon Josefsson  <simon@josefsson.org>
65362             Bruno Haible  <bruno@clisp.org>
65364         Fix test-alignof failure.
65365         * lib/alignof.h (alignof_slot): New macro.
65366         (alignof_type): New macro, with the same semantics as the previous
65367         'alignof'.
65368         (alignof): Alias to alignof_slot.
65369         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
65370         check that the results are usable as constant expressions.
65372 2009-05-31  Bruno Haible  <bruno@clisp.org>
65374         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
65375         * tests/test-memchr.c (main): Check that memchr does not read past the
65376         first occurrence of the byte.
65377         * tests/test-strstr.c (main): Update comment.
65378         Suggested by Eric Blake.
65380 2009-05-30  Bruno Haible  <bruno@clisp.org>
65382         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
65383         detail how to use dumpbin.
65384         Reported by David Byron <dbyron@dbyron.com>.
65386 2009-06-02  Simon Josefsson  <simon@josefsson.org>
65388         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
65390 2009-06-02  Simon Josefsson  <simon@josefsson.org>
65392         * m4/manywarnings.m4: Add GCC 4.4 warnings.
65394 2009-05-28  Bruno Haible  <bruno@clisp.org>
65396         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
65397         build-aux/ files.
65399 2009-05-28  Simon Josefsson  <simon@josefsson.org>
65401         * gnulib-tool (func_import): Transform license on build-aux/ files too.
65403 2009-05-27  Simon Josefsson  <simon@josefsson.org>
65405         * gnulib-tool (sed_transform_main_lib_file)
65406         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
65407         regexps.
65409 2009-05-26  Simon Josefsson  <simon@josefsson.org>
65411         * tests/test-strstr.c: Add another self-test.
65412         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
65413         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
65415 2009-05-23  Bruno Haible  <bruno@clisp.org>
65417         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
65418         change.
65420 2009-05-21  Bruno Haible  <bruno@clisp.org>
65422         Simplify use of mode_t varargs.
65423         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
65424         uses 'mode_t' or 'int'.
65425         * lib/openat.c (openat): Likewise.
65426         * lib/open-safer.c (open_safer): Likewise.
65427         * m4/mode_t.m4: New file.
65428         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
65429         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
65430         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
65431         * modules/open (Files): Add m4/mode_t.m4.
65432         * modules/openat (Files): Likewise.
65433         * modules/fcntl-safer (Files): Likewise.
65434         Suggested by Eric Blake.
65436 2009-05-21  Pádraig Brady  <P@draigbrady.com>
65438         * doc/glibc-functions/fallocate.texi: New file.
65439         * doc/gnulib.texi: Include it.
65441 2009-05-21  Eric Blake  <ebb9@byu.net>
65442             Bruno Haible  <bruno@clisp.org>
65444         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
65445         invocations.
65446         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
65448 2009-05-21  Eric Blake  <ebb9@byu.net>
65449             Bruno Haible  <bruno@clisp.org>
65451         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
65452         include_next. Fix of 2008-11-20 commit.
65453         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
65454         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
65455         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
65456         NEXT_MATH_H.
65457         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
65458         instead of NEXT_MATH_H.
65460 2009-05-21  Bruno Haible  <bruno@clisp.org>
65462         Avoid redefinition warnings for SIZE_MAX.
65463         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
65464         Reported by Simon Josefsson.
65466 2009-05-21  Bruno Haible  <bruno@clisp.org>
65468         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
65469         AC_CACHE_VAL.
65471 2009-05-20  Bruno Haible  <bruno@clisp.org>
65473         Make zeroptr.h work on mingw.
65474         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
65475         mprotect.
65476         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
65477         * modules/memchr2-tests (configure.ac): Likewise.
65478         * modules/memcmp-tests (configure.ac): Likewise.
65479         * modules/memmem-tests (configure.ac): Likewise.
65480         * modules/memrchr-tests (configure.ac): Likewise.
65481         Reported by Simon Josefsson.
65483 2009-05-20  Simon Josefsson  <simon@josefsson.org>
65485         * tests/test-glob.c: Include string.h for strcmp prototype.
65487 2009-05-20  Simon Josefsson  <simon@josefsson.org>
65489         * modules/getdelim (Depends-on): Add explicit stdint, although it
65490         was implicitly already pulled in via realloc-posix.
65491         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
65493 2009-05-20  Simon Josefsson  <simon@josefsson.org>
65495         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
65496         G. Christensen" <tgc@jupiterrise.com>.
65497         * m4/sys_socket_h.m4: Check for sa_family_t.
65498         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
65499         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
65500         * tests/test-sys_socket.c: Check that sa_family_t works.
65502 2009-05-18  Eric Blake  <ebb9@byu.net>
65504         maint.mk: allow gnulib_dir in VPATH build
65505         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
65507 2009-05-15  Jim Meyering  <meyering@redhat.com>
65509         maint.mk: Give gnulib_dir a default definition.
65510         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
65511         Thus, most packages no longer need to specify this variable in cfg.mk
65513 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
65515         rename.m4: fix typos that would make non-mingw cross-configure fail
65516         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
65518 2009-05-13  Eric Blake  <ebb9@byu.net>
65520         mmap-anon: avoid out-of-order autoconf expansion
65521         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
65522         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
65523         * modules/memchr-tests (Depends-on): Add extensions.
65524         * modules/memchr2-tests (Depends-on): Add extensions.
65525         * modules/memcmp-tests (Depends-on): Add extensions.
65526         * modules/memmem-tests (Depends-on): Add extensions.
65527         * modules/memrchr-tests (Depends-on): Add extensions.
65529 2009-05-13  Bruno Haible  <bruno@clisp.org>
65531         Make some tests ISO C 99 compliant.
65532         * tests/zerosize-ptr.h: New file.
65533         * tests/test-memchr.c: Include zerosize-ptr.h.
65534         (main): Use a zero-size object pointer instead of NULL.
65535         * tests/test-memchr2.c: Include zerosize-ptr.h.
65536         (main): Use a zero-size object pointer instead of NULL.
65537         * tests/test-memcmp.c: Include zerosize-ptr.h.
65538         (main): Use a zero-size object pointer instead of NULL.
65539         * tests/test-memmem.c: Include zerosize-ptr.h.
65540         (main): Use a zero-size object pointer instead of NULL.
65541         * tests/test-memrchr.c: Include zerosize-ptr.h.
65542         (main): Use a zero-size object pointer instead of NULL.
65543         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
65544         m4/mmap-anon.m4.
65545         (Depends-on): Add getpagesize.
65546         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
65547         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
65548         m4/mmap-anon.m4.
65549         (Depends-on): Add getpagesize.
65550         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
65551         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
65552         m4/mmap-anon.m4.
65553         (Depends-on): Add getpagesize.
65554         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
65555         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
65556         m4/mmap-anon.m4.
65557         (Depends-on): Add getpagesize.
65558         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
65559         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
65560         m4/mmap-anon.m4.
65561         (Depends-on): Add getpagesize.
65562         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
65564 2009-05-12  Bruno Haible  <bruno@clisp.org>
65566         Tests for module 'alignof'.
65567         * modules/alignof-tests: New file.
65568         * tests/test-alignof.c: New file.
65570 2009-05-12  Bruno Haible  <bruno@clisp.org>
65572         Fix alignof macro.
65573         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
65574         vendor compilers that are always correct.
65576 2009-05-12  Bruno Haible  <bruno@clisp.org>
65578         Make the MAP_ANONYMOUS detection work on HP-UX 11.
65579         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
65580         not whether its fully works.
65582 2009-05-12  Bruno Haible  <bruno@clisp.org>
65584         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
65586 2009-05-12  Jim Meyering  <meyering@redhat.com>
65588         * top/maint.mk: Adjust backslash alignment.
65590 2009-05-11  Simon Josefsson  <simon@josefsson.org>
65592         * top/maint.mk: Make $(srcdir)/build-aux configurable.
65594 2009-05-11  Eric Blake  <ebb9@byu.net>
65596         argp: avoid undefined behavior
65597         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
65598         macros.
65600 2009-05-08  Simon Josefsson  <simon@josefsson.org>
65602         * tests/test-vc-list-files-git.sh: Do git config of user.email and
65603         user.name to prevent git commit from complaining.
65605 2009-05-10  Bruno Haible  <bruno@clisp.org>
65607         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
65608         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
65609         it rewrites every file name only once.
65610         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
65612 2009-05-08  Bruno Haible  <bruno@clisp.org>
65614         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
65615         instead of 'max'.
65617 2009-05-08  Simon Josefsson  <simon@josefsson.org>
65619         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
65620         sockaddr_storage test.
65622 2009-05-07  Simon Josefsson  <simon@josefsson.org>
65624         * modules/sys_socket (Makefile.am): Substitute
65625         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
65626         * m4/sys_socket_h.m4: Check for sockaddr_storage.
65627         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
65628         * tests/test-sys_socket.c: Check sockaddr_storage.
65630 2009-05-08  Bruno Haible  <bruno@clisp.org>
65632         New module 'alignof'.
65633         * lib/alignof.h: New file.
65634         * modules/alignof: New file.
65636 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
65637             Bruno Haible  <bruno@clisp.org>
65639         Fix test-file-has-acl on FreeBSD.
65640         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
65641         mask is implicitly added.
65642         * tests/test-file-has-acl.c: Include <signal.h>.
65643         (main): Terminate the test after 5 seconds.
65644         * modules/acl-tests (configure.ac): Check for alarm function.
65646 2009-05-04  Bruno Haible  <bruno@clisp.org>
65648         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
65649         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
65650         * modules/errno (configure.ac): Drop AC_REQUIRE.
65651         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
65652         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
65654 2009-05-04  Simon Josefsson  <simon@josefsson.org>
65656         * modules/glob-tests: New module.
65657         * tests/test-glob.c: Add.
65659 2009-05-04  Simon Josefsson  <simon@josefsson.org>
65661         * modules/fnmatch-tests: New module.
65662         * tests/test-fnmatch.c: Add.
65664 2009-05-04  Eric Blake  <ebb9@byu.net>
65666         maint: make the new no-submodule-changes rule VPATH-safe
65667         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
65669 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
65670             Bruno Haible  <bruno@clisp.org>
65672         acl: Fix infinite loop on FreeBSD.
65673         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
65674         of return value from acl_get_entry.
65675         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
65676         Likewise.
65678 2009-05-03  Bruno Haible  <bruno@clisp.org>
65680         * lib/acl-internal.h (acl_entries): Clarify return value.
65681         * lib/acl_entries.c (acl_entries): Likewise.
65683 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
65685         Bug fix in acl module.
65686         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
65688 2009-05-03  Bruno Haible  <bruno@clisp.org>
65690         Create gperf-generated file in the source dir, not in the build dir.
65691         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
65692         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
65693         * modules/unicase/locale-language (unicase/locale-languages.h):
65694         Likewise.
65695         * modules/unicase/special-casing (unicase/special-casing-table.h):
65696         Likewise.
65697         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
65698         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
65699         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
65700         Reported by Ralf Wildenhues.
65702 2009-05-03  Bruno Haible  <bruno@clisp.org>
65704         * modules/fnmatch (Description, configure.ac): Taken from
65705         fnmatch-posix.
65706         * modules/fnmatch-posix: Turn into a symbolic reference to the
65707         'fnmatch' module, and deprecate.
65708         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
65710 2009-05-03  Bruno Haible  <bruno@clisp.org>
65712         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
65713         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
65714         Reported by Ralf Wildenhues.
65716 2009-05-04  Simon Josefsson  <simon@josefsson.org>
65718         * m4/fnmatch.m4: Fix fnmatch re-define.
65720 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
65722         priv-set: new module and tests; adapt write-any-file
65723         * lib/priv-set.c: New file.
65724         * lib/priv-set.h: New file.
65725         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
65726         * lib/write-any-file.c: Simplify by using priv-set module.
65727         * m4/priv-set.m4: New file.
65728         * modules/priv-set: New file.
65729         * modules/unlinkdir: Add dependency on priv-set module.
65730         * modules/write-any-file: Likewise.
65732         Tests for module 'priv-set'.
65733         * modules/priv-set-tests: New file.
65734         * tests/test-priv-set.c: New file.
65736 2009-05-03  Jim Meyering  <meyering@redhat.com>
65737             Bruno Haible  <bruno@clisp.org>
65739         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
65740         use the converted UTF-8 variant of the name instead.
65742 2009-05-03  Jim Meyering  <meyering@redhat.com>
65744         tests: tighten some getdate tests
65745         * tests/test-getdate.c (main): Tighten tests: require equality,
65746         not just greater than.  Set TZ envvar to UTC0.
65748 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
65750         getdate: correctly interpret "next monday" when run on a Monday
65751         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
65752         that e.g., "next tues" (when run on a tuesday) results in a date
65753         that is one week in the future, and not today's date.
65754         I.e., add a week when the wday is the same as the current one.
65755         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
65756         and earlier by Martin Bernreuther and Jan Minář.
65757         * tests/test-getdate.c (main): Check that "next DAY" is always in
65758         the future and that "last DAY" is always in the past.
65760 2009-05-02  Jim Meyering  <meyering@redhat.com>
65762         build: ensure that a release build fails when a submodule is unclean
65763         * top/maint.mk (no-submodule-changes): New rule.
65764         (alpha beta major): Depend on it.
65766 2009-05-02  Bruno Haible  <bruno@clisp.org>
65768         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
65769         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
65770         shell variable gl_fnmatch_required to detect which variant is
65771         requested.
65772         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
65773         gl_FUNC_FNMATCH_POSIX.
65774         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
65775         exclude fnmatch-posix.
65777 2009-05-02  Bruno Haible  <bruno@clisp.org>
65779         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
65780         * modules/mbsrtowcs (License): Change to LGPLv2+.
65781         * modules/strnlen1 (License): Likewise.
65782         Reported by Simon Josefsson.
65784 2009-05-02  Bruno Haible  <bruno@clisp.org>
65786         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
65787         "cross".
65788         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
65789         gnulib-tool was called with option --source-base=lib.
65791 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65793         Use automake *-local hooks without commands, for extensibility.
65794         * modules/localcharset (Makefile.am): Rename install-exec-local
65795         rule to install-exec-localcharset, and make it a prerequisite of
65796         install-exec-local.  Likewise, rename the uninstall-local rule to
65797         uninstall-localcharset, and make it a prerequisite of the former.
65799 2009-05-01  Bruno Haible  <bruno@clisp.org>
65801         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
65802         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
65803         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
65804         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
65805         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
65806         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
65807         m4/locale-zh.m4, m4/codeset.m4.
65809         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
65810         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
65811         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
65812         m4/locale-zh.m4.
65814         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
65815         REPLACE_WCRTOMB if mbstate_t must be replaced.
65816         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
65817         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
65819 2009-05-01  Bruno Haible  <bruno@clisp.org>
65821         Avoid compiler warnings when redefining macros defined by <libintl.h>.
65822         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
65823         dngettext, dcngettext, textdomain, bindtextdomain,
65824         bind_textdomain_codeset): Undefine before redefining.
65826 2009-04-30  Bruno Haible  <bruno@clisp.org>
65828         Fix bug introduced on 2009-04-25.
65829         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
65830         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
65831         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
65832         is defined.
65833         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
65834         is defined.
65835         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
65836         is defined.
65837         Reported by Elbert_Pol <elbert.pol@gmail.com>.
65839 2009-04-28  Bruno Haible  <bruno@clisp.org>
65841         Comment tweaks.
65842         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
65843         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
65844         * lib/unicase.h (u*_casexfrm): Likewise.
65845         Reported by Paolo Bonzini.
65847 2009-04-28  Bruno Haible  <bruno@clisp.org>
65849         Fix a compilation error.
65850         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
65851         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
65852         Reported by Jim Meyering.
65854 2009-04-27  Bruno Haible  <bruno@clisp.org>
65856         New module 'libunistring'.
65857         * modules/libunistring: New file.
65858         * m4/libunistring.m4: New file.
65859         * MODULES.html.sh (Unicode string functions): Add it.
65861 2009-04-27  Eric Blake  <ebb9@byu.net>
65863         maint.mk: allow package-specific header to provide <config.h>
65864         * top/maint.mk (sc_require_config_h): New variable.
65865         (sc_require_config_h, sc_require_config_h_first): Use it.
65867 2009-04-27  Simon Josefsson  <simon@josefsson.org>
65869         * top/maint.mk (sc_avoid_if_before_free): Except
65870         useless-if-before-free script.
65872 2009-04-27  Eric Blake  <ebb9@byu.net>
65874         maintainer-makefile: depend on all required helper scripts
65875         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
65876         useless-if-before-free.
65877         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
65878         version, rather than assuming gnulib checkout is available.
65879         Reported by Simen Josefsson.
65881 2009-04-26  Bruno Haible  <bruno@clisp.org>
65883         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
65884         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
65885         "../" or "..".
65887 2009-04-26  Bruno Haible  <bruno@clisp.org>
65889         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
65890         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
65891         AC_LIB_HAVE_LINKFLAGS.
65893 2009-04-26  Bruno Haible  <bruno@clisp.org>
65895         Simplify calling convention of u*_conv_from_encoding.
65896         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
65897         u32_conv_from_encoding): Expect a resultbuf argument and return the
65898         result directly as a pointer.
65899         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
65900         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
65901         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
65902         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
65903         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
65904         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
65905         Update.
65906         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
65907         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
65908         * lib/vasnprintf.c (VASNPRINTF): Update.
65909         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
65910         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
65911         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
65912         * NEWS: Mention the change.
65914 2009-04-26  Bruno Haible  <bruno@clisp.org>
65916         Simplify calling convention of u*_conv_to_encoding.
65917         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
65918         u32_conv_to_encoding): Expect a resultbuf argument and return the
65919         result directly as a pointer.
65920         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
65921         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
65922         freeing scaled_offsets if mem_iconveha failed.
65923         * lib/unicase/u-casexfrm.h (FUNC): Update.
65924         * lib/uninorm/u-normxfrm.h (FUNC): Update.
65925         * lib/vasnprintf.c (VASNPRINTF): Update.
65926         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
65927         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
65928         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
65929         * NEWS: Mention the change.
65931 2009-04-26  Bruno Haible  <bruno@clisp.org>
65933         Avoid test failures on AIX and OSF/1.
65934         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
65935         malloc(0).
65936         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
65937         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
65938         Likewise.
65939         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
65940         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
65941         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
65942         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
65943         * doc/posix-functions/malloc.texi: Document the portability problem
65944         related to malloc(0).
65946 2009-04-26  Bruno Haible  <bruno@clisp.org>
65948         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
65949         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
65950         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
65952 2009-04-25  Bruno Haible  <bruno@clisp.org>
65954         Avoid link error when creating a namespace clean library.
65955         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
65956         as macro with arguments if already defined as an alias.
65957         * lib/signbitf.c (gl_signbitf): Don't undefine.
65958         * lib/signbitd.c (gl_signbitd): Don't undefine.
65959         * lib/signbitl.c (gl_signbitl): Don't undefine.
65961 2009-04-25  Jim Meyering  <meyering@redhat.com>
65963         vc-list-files: fix another quoting bug
65964         * build-aux/vc-list-files: Avoid sed backslash expansion
65965         of pathological directory names.
65967 2009-04-25  Eric Blake  <ebb9@byu.net>
65969         vc-list-files: fix shell quoting error
65970         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
65971         timestamp.
65973 2009-04-25  Jim Meyering  <meyering@redhat.com>
65975         vc-list-files: restore lost functionality with subdir argument
65976         * build-aux/vc-list-files: When given a non-"." sub-directory
65977         argument, substitute the $dir/ prefix back onto each resulting name.
65978         Otherwise, coreutils' root_tests check would fail.
65980 2009-04-24  Eric Blake  <ebb9@byu.net>
65982         vc-list-files: ignore git symlinks
65983         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
65984         than ls-files, to ignore git symlinks.
65986         maint.mk: import improvements from m4
65987         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
65988         (move_if_change): Delete unused macro.
65989         (news-date-check, vc-diff-check): Support VPATH builds.
65990         (announcement): Likewise.  Split --bootstrap-tools list...
65991         (boostrap-tools): ...into separate list, which can be overridden
65992         in cfg.mk.
65993         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
65994         requiring dependency on useless-if-before-free module.
65995         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
65996         Support VPATH builds.
65998 2009-04-24  Jim Meyering  <meyering@redhat.com>
66000         maint.mk: remove coreutils-specific rules and variables
66001         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
66002         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
66003         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
66005         maint.mk: remove obsolete rule
66006         * top/maint.mk (rel-check): Remove rule.
66007         (WGET, WGETFLAGS): Remove now-unused variables.
66009 2009-04-24  Simon Josefsson  <simon@josefsson.org>
66011         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
66012         consistency.
66014         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
66015         '$(PATH_SEPARATOR)' instead of ':'.
66017 2009-04-24  Simon Josefsson  <simon@josefsson.org>
66019         * lib/getopt1.c (main): Use 'const' for static array.
66021 2009-04-24  Simon Josefsson  <simon@josefsson.org>
66023         * top/maint.mk: Sync with coreutils.
66024         * NEWS: Explain incompatibilities.
66026 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66027             Bruno Haible  <bruno@clisp.org>
66029         Fix cross-compilation results.
66030         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
66031         statement, as third argument of AC_TRY_RUN.
66032         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
66033         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
66034         Likewise.
66035         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
66036         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
66037         Likewise.
66038         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
66039         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
66040         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
66042 2009-04-20  Bruno Haible  <bruno@clisp.org>
66044         Avoid test failure on mingw.
66045         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
66047 2009-04-20  Bruno Haible  <bruno@clisp.org>
66049         Avoid compilation error on mingw.
66050         * modules/localename-tests (Depends-on): Add locale.
66052 2009-04-19  Bruno Haible  <bruno@clisp.org>
66054         Support for building a shared library on Windows platforms.
66055         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
66056         (main): Test the presence of UNINORM_NFC here.
66057         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
66058         (main): Test the presence of UNINORM_NFD here.
66059         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
66060         (main): Test the presence of UNINORM_NFKC here.
66061         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
66062         (main): Test the presence of UNINORM_NFKD here.
66064 2009-04-19  Bruno Haible  <bruno@clisp.org>
66066         Avoid a compiler warning.
66067         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
66068         Change type of variable 'sequence'.
66070 2009-04-19  Bruno Haible  <bruno@clisp.org>
66072         * modules/configmake (Makefile.am): When the contents of configmake.h
66073         does not change, arrange to preserve its modification time.
66075 2009-04-17  Simon Josefsson  <simon@josefsson.org>
66077         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
66078         gettext domain.
66080 2009-04-16  Jim Meyering  <meyering@redhat.com>
66082         useless-if-before-free: improve conversion code
66083         * build-aux/useless-if-before-free: Adjust code-in-comment to match
66084         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
66086 2009-04-14  Bruno Haible  <bruno@clisp.org>
66088         * modules/fcntl (Depends-on): Add extensions.
66089         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
66091 2009-04-12  Ben Pfaff  <blp@gnu.org>
66093         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
66094         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
66096 2009-03-20  Ben Pfaff  <blp@gnu.org>
66098         Make rename replace existing destinations on Windows.
66099         * m4/rename.m4: Add test for Mingw.
66100         * lib/rename.c: Add rename replacement that uses MoveFileEx with
66101         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
66102         * doc/posix-functions/rename.texi: Document.
66104 2009-04-10  Bruno Haible  <bruno@clisp.org>
66106         New include file "iconveh.h".
66107         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
66108         * lib/striconveh.h: Include it.
66109         (enum iconv_ilseq_handler): Remove definition.
66110         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
66111         striconveh.h.
66112         * lib/striconveha.c: Include striconveh.h.
66113         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
66114         * modules/striconveh (Files): Add lib/iconveh.h.
66115         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
66116         lib/striconveh.h.
66118 2009-04-10  Bruno Haible  <bruno@clisp.org>
66120         * lib/uniconv.h: Update comment.
66122 2009-04-10  Bruno Haible  <bruno@clisp.org>
66124         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
66125         always.
66126         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
66127         * lib/unistr/u16-mbtouc-aux.c: Likewise.
66128         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
66129         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
66130         "unistring-notinline.h", so that the function gets defined always.
66131         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
66132         * lib/unistr/u8-uctomb.c: Likewise.
66133         * lib/unistr/u16-mbtouc.c: Likewise.
66134         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
66135         * lib/unistr/u16-uctomb.c: Likewise.
66136         * lib/unistr/u32-mbtouc.c: Likewise.
66137         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
66138         * lib/unistr/u32-uctomb.c: Likewise.
66140 2009-04-10  Bruno Haible  <bruno@clisp.org>
66142         Mark 'utime' obsolete.
66143         * modules/utime (Status, Notice): New sections.
66144         Suggested by Jim Meyering.
66146         Fix cross-compile guess for utime test.
66147         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
66148         autoconf.
66149         * doc/posix-functions/utime.texi: Give more precisions.
66150         Reported by Jan <ipif@ymail.com>.
66152 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
66154         filevercmp: correct today's change
66155         * lib/filevercmp.c: Also handle coreutils' test inputs.
66156         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
66158         Fix regression in 'filevercmp' module. Thanks Sven Joachim
66159         for reporting it.
66160         * lib/filevercmp.c: Special handle for "", "." and "..".
66161         * tests/test-filevercmp.c: Enlarge the set suite.
66163 2009-04-07  Jim Meyering  <meyering@redhat.com>
66165         useless-if-before-free: show how to remove braced useless free, too
66166         * build-aux/useless-if-before-free: still only in a comment, though.
66168 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
66170         maint.mk: import changes to syntax-check macros from coreutils
66171         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
66172         Use them in the relevant macros.
66174 2009-04-06  Bruno Haible  <bruno@clisp.org>
66176         Fix unportable use of bit-fields.
66177         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
66178         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
66179         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
66181 2009-04-06  Bruno Haible  <bruno@clisp.org>
66183         Avoid test failures on AIX and OSF/1.
66184         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
66185         that malloc(0) = NULL.
66186         * tests/unicase/test-u8-tolower.c (check): Likewise.
66187         * tests/unicase/test-u8-totitle.c (check): Likewise.
66188         * tests/unicase/test-u8-toupper.c (check): Likewise.
66189         * tests/unicase/test-u16-casefold.c (check): Likewise.
66190         * tests/unicase/test-u16-tolower.c (check): Likewise.
66191         * tests/unicase/test-u16-totitle.c (check): Likewise.
66192         * tests/unicase/test-u16-toupper.c (check): Likewise.
66193         * tests/unicase/test-u32-casefold.c (check): Likewise.
66194         * tests/unicase/test-u32-tolower.c (check): Likewise.
66195         * tests/unicase/test-u32-totitle.c (check): Likewise.
66196         * tests/unicase/test-u32-toupper.c (check): Likewise.
66197         * tests/uninorm/test-u8-nfc.c (check): Likewise.
66198         * tests/uninorm/test-u8-nfd.c (check): Likewise.
66199         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
66200         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
66201         * tests/uninorm/test-u16-nfc.c (check): Likewise.
66202         * tests/uninorm/test-u16-nfd.c (check): Likewise.
66203         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
66204         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
66205         * tests/uninorm/test-u32-nfc.c (check): Likewise.
66206         * tests/uninorm/test-u32-nfd.c (check): Likewise.
66207         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
66208         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
66210 2009-04-05  Bruno Haible  <bruno@clisp.org>
66212         Work around an autoconf limitation.
66213         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
66214         comment line if it would be longer than 3 KB.
66216 2009-04-05  Bruno Haible  <bruno@clisp.org>
66218         Avoid test failure with libiconv-1.13.
66219         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
66220         of the expected test results.
66222 2009-04-05  Bruno Haible  <bruno@clisp.org>
66224         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
66225         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
66226         that it should be installed.
66228 2009-04-05  Bruno Haible  <bruno@clisp.org>
66230         * gnulib-tool: New option --copy-file.
66231         (func_usage): Document it.
66232         (func_dest_tmpfilename): Moved out of func_import.
66233         (func_add_file, func_update_file): New functions, extracted from
66234         func_import.
66235         (func_import): Update.
66237 2009-04-05  Karl Berry  <karl@gnu.org>
66239         * README: prominently mention gnulib-tool.
66240         Rearrange sections so getting the code is near the top.
66242 2009-04-05  Bruno Haible  <bruno@clisp.org>
66244         * lib/unicase.h: Mention u*_cmp2.
66245         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
66246         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
66247         * lib/unicase/ulc-casecmp.c: Likewise.
66248         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
66249         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
66250         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
66251         unistr/u8-cmp.
66252         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
66253         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
66254         unistr/u16-cmp.
66255         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
66256         unistr/u32-cmp.
66258         * lib/uninorm.h: Mention u*_cmp2.
66259         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
66260         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
66261         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
66262         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
66263         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
66264         unistr/u8-cmp.
66265         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
66266         unistr/u16-cmp.
66267         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
66268         unistr/u32-cmp.
66270         New module 'unistr/u32-cmp2'.
66271         * lib/unistr/u32-cmp2.c: New file.
66272         * modules/unistr/u32-cmp2: New file.
66274         New module 'unistr/u16-cmp2'.
66275         * lib/unistr/u16-cmp2.c: New file.
66276         * modules/unistr/u16-cmp2: New file.
66278         New module 'unistr/u8-cmp2'.
66279         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
66280         * lib/unistr/u8-cmp2.c: New file.
66281         * lib/unistr/u-cmp2.h: New file.
66282         * modules/unistr/u8-cmp2: New file.
66284 2009-04-05  Bruno Haible  <bruno@clisp.org>
66286         * lib/unictype.h (uc_property_is_valid): New macro.
66287         * tests/unictype/test-pr_byname.c (main): Use it.
66289         * lib/unistr.h: Doc fixes.
66290         * lib/uniconv.h: Doc fixes.
66291         * lib/unictype.h: Doc fixes.
66293 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
66295         Port coreutils 7.2 to Solaris 8.
66297         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
66298         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
66299         for Solaris 8.  This is a bit of a hack, as it means it's the
66300         caller's responsibility to add -lnsl if needed, but most likely it
66301         won't be needed since only getaddrinfo uses this and getaddrinfo
66302         isn't needed on Solaris 8.
66304         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
66305         problem to Solaris 8 encountered with coreutils 7.2, which
66306         resulted in a message "fnmatch.c:292: warning: passing argument 4
66307         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
66308         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
66310 2009-04-03  Simon Josefsson  <simon@josefsson.org>
66312         * m4/ld-version-script.m4: Add FIXME comment.
66314 2009-04-02  Simon Josefsson  <simon@josefsson.org>
66316         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
66317         SOVERSION variable.
66319 2009-04-02  Bruno Haible  <bruno@clisp.org>
66321         * Makefile (info, html, dvi, pdf): Combine the rules.
66322         Suggested by Jim Meyering.
66324 2009-04-01  Bruno Haible  <bruno@clisp.org>
66326         * Makefile (info, html, dvi, pdf): New targets.
66327         Reported by Reuben Thomas <rrt@sc3d.org>.
66329 2009-04-01  Bruno Haible  <bruno@clisp.org>
66331         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
66332         can be put into PATH.
66333         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
66335 2009-04-01  Bruno Haible  <bruno@clisp.org>
66337         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
66339 2009-04-01  Bruno Haible  <bruno@clisp.org>
66341         Rename module 'visibility'.
66342         * modules/lib-symbol-visibility: Renamed from modules/visibility.
66343         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
66344         * doc/gnulib.texi: Update.
66345         * MODULES.html.sh (Misc): Update.
66346         * NEWS: Mention the change.
66348 2009-04-01  Simon Josefsson  <simon@josefsson.org>
66350         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
66351         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
66352         Eric Blake <ebb9@byu.net> for review.
66353         * MODULES.html.sh: Add lib-msvc-compat.
66354         * doc/gnulib.texi: Link to new section.
66355         * m4/ld-output-def.m4: New file.
66356         * doc/ld-output-def.texi: New file.
66358 2009-04-01  Simon Josefsson  <simon@josefsson.org>
66360         Rename ld-version-script to lib-symbol-versions.  Suggested by
66361         Bruno Haible <bruno@clisp.org>.
66362         * modules/ld-version-script: Renamed to lib-symbol-versions.
66363         * doc/ld-version-script.texi: Fix module name.
66364         * MODULES.html.sh: Add lib-symbol-versions.
66366 2009-03-31  Simon Josefsson  <simon@josefsson.org>
66368         * modules/u64-tests: New file.
66369         * tests/test-u64.c: New file.
66371 2009-03-04  Simon Josefsson  <simon@josefsson.org>
66373         * MODULES.html.sh: Mention u64.
66374         * modules/u64: New module.
66375         * modules/crypto/sha512: Depend on u64 module instead of providing
66376         u64.h.
66378 2009-03-27  Eric Blake  <ebb9@byu.net>
66380         test-strerror: make debugging EAI_SYSTEM easier
66381         * modules/getaddrinfo-tests (Depends-on): Add strerror.
66382         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
66383         failure was EAI_SYSTEM.
66385 2009-03-25  Bruno Haible  <bruno@clisp.org>
66387         Fix a problem with --enable-relocatable on Solaris 7.
66388         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
66389         since 2008-02-24.
66391 2009-03-25  Eric Blake  <ebb9@byu.net>
66393         test-sockets: avoid gcc warning
66394         * tests/test-sockets.c (main): Silence compiler warning.
66396 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
66398         New modules nproc, pthread, contributed by Glen Lenker.
66400         * MODULES.html.sh: Add pthread, nproc.
66401         * lib/nproc.c: New file.
66402         * lib/nproc.h: New file.
66403         * lib/pthread.in.h: New file.
66404         * m4/pthread.m4: New file.
66405         * modules/nproc: New file.
66406         * modules/pthread: New file.
66408 2009-03-24  Simon Josefsson  <simon@josefsson.org>
66410         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
66411         New variable.
66413 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
66415         filevercmp: handle simple~ and numbered.~3~ backup suffixes
66416         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
66417         * tests/test-filevercmp.c: Add tests for backup suffixes.
66419 2009-03-24  Simon Josefsson  <simon@josefsson.org>
66421         * modules/stdlib (Depends-on): Add stdint, needed when defining
66422         struct random_data on, for example, HP-UX 10.20.  Reported by
66423         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
66425 2009-03-24  Simon Josefsson  <simon@josefsson.org>
66427         * lib/readline.c (readline): Call fflush on stdout after printing
66428         prompt.
66430 2009-03-20  Bruno Haible  <bruno@clisp.org>
66432         Remove dependency from 'close' module to -lws2_32 on native Windows.
66433         * lib/close-hook.h: New file.
66434         * lib/close-hook.c: New file.
66435         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
66436         w32sock.h.
66437         (_gl_close_fd_maybe_socket): Remove function.
66438         (rpl_close): Invoke execute_all_close_hooks instead of
66439         _gl_close_fd_maybe_socket.
66440         * lib/sockets.c: Include close-hook.h, w32sock.h.
66441         (close_fd_maybe_socket): New function, essentially from lib/close.c.
66442         (close_sockets_hook): New variable.
66443         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
66444         (gl_sockets_cleanup): Unregister it.
66445         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
66446         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
66447         * modules/close-hook: New file.
66448         * modules/close (Files): Remove lib/w32sock.h.
66449         (Depends-on): Add close-hook.
66450         (Link): Remove section.
66451         * modules/sockets (Files): Add lib/w32sock.h.
66452         (Depends-on): Add close-hook.
66453         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
66454         invocation.
66455         * NEWS: Mention that LIB_CLOSE is gone.
66457 2009-03-23  Eric Blake  <ebb9@byu.net>
66459         signal-tests: test previous patch
66460         * tests/test-signal.c: New file.
66461         * modules/signal-tests: Likewise.
66463         signal.h: always support 'volatile sig_atomic_t'
66464         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
66465         (gl_SIGNAL_H_DEFAULTS): Add a default.
66466         * modules/signal (Makefile.am): Substitute if needed.
66467         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
66468         users can blindly add volatile.
66469         * doc/posix-headers/signal.texi (signal.h): Document it.
66470         Reported by Matthew Woehlke.
66472 2009-03-23  Jim Meyering  <meyering@redhat.com>
66474         pathmax: PATH_MAX: use pathconf only when available
66475         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
66476         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
66477         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
66478         This avoids a link failure in a PSP cross-compilation environment
66479         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
66481         * lib/vasnprintf.c (divide): Fix typo in comment.
66483 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66485         * gnulib-tool (func_filter_filelist): Fix comment.
66487 2009-03-20  Bruno Haible  <bruno@clisp.org>
66489         Make sockets.h self-contained.
66490         * lib/sockets.c: Include sockets.h first.
66491         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
66493 2009-03-19  Eric Blake  <ebb9@byu.net>
66495         doc: mention more functions added in cygwin 1.7.0
66496         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
66497         addition.
66498         * doc/posix-functions/log2f.texi: Likewise.
66500 2009-03-19  Jim Meyering  <meyering@redhat.com>
66502         fsusage: avoid syntax error due to statement-before-declaration
66503         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
66504         after all declarations.  Reported by Matthew Woehlke in
66505         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
66507 2009-03-18  Eric Blake  <ebb9@byu.net>
66509         build-aux/compile: sync from automake
66510         * build-aux/compile: New file, from automake.
66511         * config/srclist.txt: Mention build-aux/compile.
66513 2009-03-17  Bruno Haible  <bruno@clisp.org>
66515         * lib/git-merge-changelog.c: Fix typo in comment.
66516         Reported by Reuben Thomas <rrt@sc3d.org>.
66518 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
66520         * m4/regex.m4: update and improve help for
66521         --without-included-regex.
66523 2009-03-17  Simon Josefsson  <simon@josefsson.org>
66525         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
66526         failure on missing include files.
66528 2009-03-17  Eric Blake  <ebb9@byu.net>
66530         doc: mention more functions added in cygwin 1.7.0
66531         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
66532         addition.
66533         * doc/posix-functions/fwscanf.texi: Likewise.
66534         * doc/posix-functions/swprintf.texi: Likewise.
66535         * doc/posix-functions/swscanf.texi: Likewise.
66536         * doc/posix-functions/vfwprintf.texi: Likewise.
66537         * doc/posix-functions/vfwscanf.texi: Likewise.
66538         * doc/posix-functions/vswprintf.texi: Likewise.
66539         * doc/posix-functions/vswscanf.texi: Likewise.
66540         * doc/posix-functions/vwprintf.texi: Likewise.
66541         * doc/posix-functions/vwscanf.texi: Likewise.
66542         * doc/posix-functions/wcscasecmp.texi: Likewise.
66543         * doc/posix-functions/wcsdup.texi: Likewise.
66544         * doc/posix-functions/wcsftime.texi: Likewise.
66545         * doc/posix-functions/wcsncasecmp.texi: Likewise.
66546         * doc/posix-functions/wprintf.texi: Likewise.
66547         * doc/posix-functions/wscanf.texi: Likewise.
66548         * doc/glibc-functions/gethostbyname2.texi: Likewise.
66550 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66552         maint.mk: really add $(AM_MAKEFLAGS)
66553         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
66554         was inadvertently omitted in the last commit.
66555         Spotted by Bruno Haible.
66557         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
66558         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
66559         $(AM_MAKEFLAGS)' rather than plain `make'.
66561         gnulib-tool: execute $MAKE not make
66562         * gnulib-tool: Default $MAKE to 'make'.
66563         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
66564         than make.  Initialize $MAKE in the do-autobuild script.
66566         gnulib-tool: use $MAKE not make in generated files
66567         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
66568         make, in generated files.  Initialize $MAKE in the do-autobuild
66569         script.
66571         * top/GNUmakefile (_have-git-version-gen): Fix typo.
66573         GNUmakefile: disable parallelism only for multiple, recursive targets
66574         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
66575         additions in the Makefile.
66576         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
66577         by Automake.
66578         (.NOTPARALLEL): Only disable parallel builds if multiple targets
66579         are listed on the command line and at least one of them is
66580         listed in $(ALL_RECURSIVE_TARGETS).
66582 2009-03-14  Bruno Haible  <bruno@clisp.org>
66584         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
66585         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
66586         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
66587         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
66588         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
66589         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
66590         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
66591         unistr/u8-uctomb.
66592         * modules/unistr/u8-strchr (Depends-on): Likewise.
66593         * modules/unistr/u8-strrchr (Depends-on): Likewise.
66594         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
66595         unistr/u16-uctomb.
66596         * modules/unistr/u16-strchr (Depends-on): Likewise.
66597         * modules/unistr/u16-strrchr (Depends-on): Likewise.
66599 2009-03-12  Bruno Haible  <bruno@clisp.org>
66601         Work around select() bug on Interix 3.5.
66602         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
66603         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
66604         * m4/select.m4: New file.
66605         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
66606         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
66607         * modules/select (Files): Add m4/select.m4.
66608         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
66609         * modules/nanosleep (Depends-on): Add select.
66610         * modules/poll (Depends-on): Likewise.
66611         * doc/posix-functions/select.texi: Mention the Interix bug.
66612         Reported by Markus Duft <mduft@gentoo.org>.
66614         * lib/select.c: Renamed from lib/winsock-select.c.
66615         * modules/select (Files): Add lib/select.c, remove
66616         lib/winsock-select.c.
66617         (configure.ac): Update.
66619 2009-03-12  Jim Meyering  <meyering@redhat.com>
66621         avoid gcc warnings about unused macro definitions
66622         * lib/readtokens.c (STREQ): Remove unused definition.
66623         * lib/xmalloc.c (SIZE_MAX): Likewise.
66624         * lib/openat-die.c (N_): Likewise.
66625         * lib/mountlist.c (SIZE_MAX): Remove definition.
66626         Instead, include <stdint.h>.
66627         * lib/readutmp.c: Likewise.
66628         * modules/readutmp (Depends-on): Add stdint.
66629         * modules/mountlist (Depends-on): Add stdint.
66630         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
66632 2009-03-10  Bruno Haible  <bruno@clisp.org>
66634         Tests for module 'mbmemcasecoll'.
66635         * modules/mbmemcasecoll-tests: New file.
66636         * tests/test-mbmemcasecoll1.sh: New file.
66637         * tests/test-mbmemcasecoll2.sh: New file.
66638         * tests/test-mbmemcasecoll3.sh: New file.
66639         * tests/test-mbmemcasecoll.c: New file.
66641         New module 'mbmemcasecoll'.
66642         * lib/mbmemcasecoll.h: New file.
66643         * lib/mbmemcasecoll.c: New file.
66644         * modules/mbmemcasecoll: New file.
66646         * tests/test-mbmemcasecmp.h: New file, extracted from
66647         tests/test-mbmemcasecmp.c.
66648         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
66649         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
66650         (main): Update.
66651         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
66653 2009-03-09  Bruno Haible  <bruno@clisp.org>
66655         Tests for module 'mbmemcasecmp'.
66656         * modules/mbmemcasecmp-tests: New file.
66657         * tests/test-mbmemcasecmp1.sh: New file.
66658         * tests/test-mbmemcasecmp2.sh: New file.
66659         * tests/test-mbmemcasecmp3.sh: New file.
66660         * tests/test-mbmemcasecmp.c: New file.
66662         New module 'mbmemcasecmp'.
66663         * lib/mbmemcasecmp.h: New file.
66664         * lib/mbmemcasecmp.c: New file.
66665         * modules/mbmemcasecmp: New file.
66667 2009-03-09  Bruno Haible  <bruno@clisp.org>
66669         Tests for module 'unicase/ulc-casecoll'.
66670         * modules/unicase/ulc-casecoll-tests: New file.
66671         * tests/unicase/test-ulc-casecoll1.sh: New file.
66672         * tests/unicase/test-ulc-casecoll2.sh: New file.
66673         * tests/unicase/test-ulc-casecoll.c: New file.
66675         New module 'unicase/ulc-casecoll'.
66676         * lib/unicase.h (ulc_casecoll): New declaration.
66677         * lib/unicase/ulc-casecoll.c: New file.
66678         * modules/unicase/ulc-casecoll: New file.
66680         New module 'unicase/ulc-casexfrm'.
66681         * lib/unicase.h (ulc_casexfrm): New declaration.
66682         * lib/unicase/ulc-casexfrm.c: New file.
66683         * modules/unicase/ulc-casexfrm: New file.
66685 2009-03-09  Bruno Haible  <bruno@clisp.org>
66687         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
66688         invocations.
66690         * m4/mbscasecmp.m4: Remove file.
66691         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
66692         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
66694         * m4/mbscasestr.m4: Remove file.
66695         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
66696         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
66698         * m4/mbschr.m4: Remove file.
66699         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
66700         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
66702         * m4/mbscspn.m4: Remove file.
66703         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
66704         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
66706         * m4/mbslen.m4: Remove file.
66707         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
66708         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
66710         * m4/mbsncasecmp.m4: Remove file.
66711         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
66712         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
66714         * m4/mbsnlen.m4: Remove file.
66715         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
66716         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
66718         * m4/mbspbrk.m4: Remove file.
66719         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
66720         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
66722         * m4/mbspcasecmp.m4: Remove file.
66723         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
66724         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
66726         * m4/mbsrchr.m4: Remove file.
66727         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
66728         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
66730         * m4/mbssep.m4: Remove file.
66731         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
66732         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
66734         * m4/mbsspn.m4: Remove file.
66735         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
66736         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
66738         * m4/mbsstr.m4: Remove file.
66739         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
66740         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
66742         * m4/mbstok_r.m4: Remove file.
66743         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
66744         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
66746         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
66748         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
66749         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
66751         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
66753 2009-03-08  Bruno Haible  <bruno@clisp.org>
66755         Tests for module 'unicase/ulc-casecmp'.
66756         * modules/unicase/ulc-casecmp-tests: New file.
66757         * tests/unicase/test-ulc-casecmp1.sh: New file.
66758         * tests/unicase/test-ulc-casecmp2.sh: New file.
66759         * tests/unicase/test-ulc-casecmp.c: New file.
66761         New module 'unicase/ulc-casecmp'.
66762         * lib/unicase.h (ulc_casecmp): New declaration.
66763         * lib/unicase/ulc-casecmp.c: New file.
66764         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
66765         'const SRC_UNIT *'.
66766         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
66767         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
66768         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
66769         * modules/unicase/ulc-casecmp: New file.
66771         Tests for module 'unicase/u32-is-cased'.
66772         * modules/unicase/u32-is-cased-tests: New file.
66773         * tests/unicase/test-u32-is-cased.c: New file.
66775         Tests for module 'unicase/u16-is-cased'.
66776         * modules/unicase/u16-is-cased-tests: New file.
66777         * tests/unicase/test-u16-is-cased.c: New file.
66779         Tests for module 'unicase/u8-is-cased'.
66780         * modules/unicase/u8-is-cased-tests: New file.
66781         * tests/unicase/test-u8-is-cased.c: New file.
66782         * tests/unicase/test-is-cased.h: New file.
66784         New module 'unicase/u32-is-cased'.
66785         * lib/unicase/u32-is-cased.c: New file.
66786         * modules/unicase/u32-is-cased: New file.
66788         New module 'unicase/u16-is-cased'.
66789         * lib/unicase/u16-is-cased.c: New file.
66790         * modules/unicase/u16-is-cased: New file.
66792         New module 'unicase/u8-is-cased'.
66793         * lib/unicase/u8-is-cased.c: New file.
66794         * lib/unicase/u-is-cased.h: New file.
66795         * modules/unicase/u8-is-cased: New file.
66797         Tests for module 'unicase/u32-is-casefolded'.
66798         * modules/unicase/u32-is-casefolded-tests: New file.
66799         * tests/unicase/test-u32-is-casefolded.c: New file.
66801         Tests for module 'unicase/u16-is-casefolded'.
66802         * modules/unicase/u16-is-casefolded-tests: New file.
66803         * tests/unicase/test-u16-is-casefolded.c: New file.
66805         Tests for module 'unicase/u8-is-casefolded'.
66806         * modules/unicase/u8-is-casefolded-tests: New file.
66807         * tests/unicase/test-u8-is-casefolded.c: New file.
66808         * tests/unicase/test-is-casefolded.h: New file.
66810         New module 'unicase/u32-is-casefolded'.
66811         * lib/unicase/u32-is-casefolded.c: New file.
66812         * modules/unicase/u32-is-casefolded: New file.
66814         New module 'unicase/u16-is-casefolded'.
66815         * lib/unicase/u16-is-casefolded.c: New file.
66816         * modules/unicase/u16-is-casefolded: New file.
66818         New module 'unicase/u8-is-casefolded'.
66819         * lib/unicase/u8-is-casefolded.c: New file.
66820         * modules/unicase/u8-is-casefolded: New file.
66822         Tests for module 'unicase/u32-is-titlecase'.
66823         * modules/unicase/u32-is-titlecase-tests: New file.
66824         * tests/unicase/test-u32-is-titlecase.c: New file.
66826         Tests for module 'unicase/u16-is-titlecase'.
66827         * modules/unicase/u16-is-titlecase-tests: New file.
66828         * tests/unicase/test-u16-is-titlecase.c: New file.
66830         Tests for module 'unicase/u8-is-titlecase'.
66831         * modules/unicase/u8-is-titlecase-tests: New file.
66832         * tests/unicase/test-u8-is-titlecase.c: New file.
66833         * tests/unicase/test-is-titlecase.h: New file.
66835         New module 'unicase/u32-is-titlecase'.
66836         * lib/unicase/u32-is-titlecase.c: New file.
66837         * modules/unicase/u32-is-titlecase: New file.
66839         New module 'unicase/u16-is-titlecase'.
66840         * lib/unicase/u16-is-titlecase.c: New file.
66841         * modules/unicase/u16-is-titlecase: New file.
66843         New module 'unicase/u8-is-titlecase'.
66844         * lib/unicase/u8-is-titlecase.c: New file.
66845         * modules/unicase/u8-is-titlecase: New file.
66847         Tests for module 'unicase/u32-is-lowercase'.
66848         * modules/unicase/u32-is-lowercase-tests: New file.
66849         * tests/unicase/test-u32-is-lowercase.c: New file.
66851         Tests for module 'unicase/u16-is-lowercase'.
66852         * modules/unicase/u16-is-lowercase-tests: New file.
66853         * tests/unicase/test-u16-is-lowercase.c: New file.
66855         Tests for module 'unicase/u8-is-lowercase'.
66856         * modules/unicase/u8-is-lowercase-tests: New file.
66857         * tests/unicase/test-u8-is-lowercase.c: New file.
66858         * tests/unicase/test-is-lowercase.h: New file.
66860         New module 'unicase/u32-is-lowercase'.
66861         * lib/unicase/u32-is-lowercase.c: New file.
66862         * modules/unicase/u32-is-lowercase: New file.
66864         New module 'unicase/u16-is-lowercase'.
66865         * lib/unicase/u16-is-lowercase.c: New file.
66866         * modules/unicase/u16-is-lowercase: New file.
66868         New module 'unicase/u8-is-lowercase'.
66869         * lib/unicase/u8-is-lowercase.c: New file.
66870         * modules/unicase/u8-is-lowercase: New file.
66872         Tests for module 'unicase/u32-is-uppercase'.
66873         * modules/unicase/u32-is-uppercase-tests: New file.
66874         * tests/unicase/test-u32-is-uppercase.c: New file.
66876         Tests for module 'unicase/u16-is-uppercase'.
66877         * modules/unicase/u16-is-uppercase-tests: New file.
66878         * tests/unicase/test-u16-is-uppercase.c: New file.
66880         Tests for module 'unicase/u8-is-uppercase'.
66881         * modules/unicase/u8-is-uppercase-tests: New file.
66882         * tests/unicase/test-u8-is-uppercase.c: New file.
66883         * tests/unicase/test-is-uppercase.h: New file.
66885         New module 'unicase/u32-is-uppercase'.
66886         * lib/unicase/u32-is-uppercase.c: New file.
66887         * modules/unicase/u32-is-uppercase: New file.
66889         New module 'unicase/u16-is-uppercase'.
66890         * lib/unicase/u16-is-uppercase.c: New file.
66891         * modules/unicase/u16-is-uppercase: New file.
66893         New module 'unicase/u8-is-uppercase'.
66894         * lib/unicase/u8-is-uppercase.c: New file.
66895         * modules/unicase/u8-is-uppercase: New file.
66897         New module 'unicase/u32-is-invariant'.
66898         * lib/unicase/u32-is-invariant.c: New file.
66899         * modules/unicase/u32-is-invariant: New file.
66901         New module 'unicase/u16-is-invariant'.
66902         * lib/unicase/u16-is-invariant.c: New file.
66903         * modules/unicase/u16-is-invariant: New file.
66905         New module 'unicase/u8-is-invariant'.
66906         * lib/unicase/u8-is-invariant.c: New file.
66907         * lib/unicase/invariant.h: New file.
66908         * lib/unicase/u-is-invariant.h: New file.
66909         * modules/unicase/u8-is-invariant: New file.
66911         Tests for module 'unicase/u32-casecoll'.
66912         * modules/unicase/u32-casecoll-tests: New file.
66913         * tests/unicase/test-u32-casecoll.c: New file.
66915         Tests for module 'unicase/u16-casecoll'.
66916         * modules/unicase/u16-casecoll-tests: New file.
66917         * tests/unicase/test-u16-casecoll.c: New file.
66919         Tests for module 'unicase/u8-casecoll'.
66920         * modules/unicase/u8-casecoll-tests: New file.
66921         * tests/unicase/test-u8-casecoll.c: New file.
66923         New module 'unicase/u32-casecoll'.
66924         * lib/unicase/u32-casecoll.c: New file.
66925         * modules/unicase/u32-casecoll: New file.
66927         New module 'unicase/u16-casecoll'.
66928         * lib/unicase/u16-casecoll.c: New file.
66929         * modules/unicase/u16-casecoll: New file.
66931         New module 'unicase/u8-casecoll'.
66932         * lib/unicase/u8-casecoll.c: New file.
66933         * lib/unicase/u-casecoll.h: New file.
66934         * modules/unicase/u8-casecoll: New file.
66936         New module 'unicase/u32-casexfrm'.
66937         * lib/unicase/u32-casexfrm.c: New file.
66938         * modules/unicase/u32-casexfrm: New file.
66940         New module 'unicase/u16-casexfrm'.
66941         * lib/unicase/u16-casexfrm.c: New file.
66942         * modules/unicase/u16-casexfrm: New file.
66944         New module 'unicase/u8-casexfrm'.
66945         * lib/unicase/u8-casexfrm.c: New file.
66946         * lib/unicase/u-casexfrm.h: New file.
66947         * modules/unicase/u8-casexfrm: New file.
66949         Tests for module 'unicase/u32-casecmp'.
66950         * modules/unicase/u32-casecmp-tests: New file.
66951         * tests/unicase/test-u32-casecmp.c: New file.
66953         Tests for module 'unicase/u16-casecmp'.
66954         * modules/unicase/u16-casecmp-tests: New file.
66955         * tests/unicase/test-u16-casecmp.c: New file.
66957         Tests for module 'unicase/u8-casecmp'.
66958         * modules/unicase/u8-casecmp-tests: New file.
66959         * tests/unicase/test-u8-casecmp.c: New file.
66960         * tests/unicase/test-casecmp.h: New file.
66962         New module 'unicase/u32-casecmp'.
66963         * lib/unicase/u32-casecmp.c: New file.
66964         * modules/unicase/u32-casecmp: New file.
66966         New module 'unicase/u16-casecmp'.
66967         * lib/unicase/u16-casecmp.c: New file.
66968         * modules/unicase/u16-casecmp: New file.
66970         New module 'unicase/u8-casecmp'.
66971         * lib/unicase/u8-casecmp.c: New file.
66972         * lib/unicase/u-casecmp.h: New file.
66973         * modules/unicase/u8-casecmp: New file.
66975         Tests for module 'unicase/u32-casefold'.
66976         * modules/unicase/u32-casefold-tests: New file.
66977         * tests/unicase/test-u32-casefold.c: New file.
66979         Tests for module 'unicase/u16-casefold'.
66980         * modules/unicase/u16-casefold-tests: New file.
66981         * tests/unicase/test-u16-casefold.c: New file.
66983         Tests for module 'unicase/u8-casefold'.
66984         * modules/unicase/u8-casefold-tests: New file.
66985         * tests/unicase/test-u8-casefold.c: New file.
66987         New module 'unicase/u32-casefold'.
66988         * lib/unicase/u32-casefold.c: New file.
66989         * modules/unicase/u32-casefold: New file.
66991         New module 'unicase/u16-casefold'.
66992         * lib/unicase/u16-casefold.c: New file.
66993         * modules/unicase/u16-casefold: New file.
66995         New module 'unicase/u8-casefold'.
66996         * lib/unicase/u8-casefold.c: New file.
66997         * lib/unicase/u-casefold.h: New file.
66998         * modules/unicase/u8-casefold: New file.
67000         New module 'unicase/tocasefold'.
67001         * lib/unicase/casefold.h: New file.
67002         * lib/unicase/tocasefold.c: New file.
67003         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
67004         * modules/unicase/tocasefold: New file.
67006         Tests for module 'unicase/u32-totitle'.
67007         * modules/unicase/u32-totitle-tests: New file.
67008         * tests/unicase/test-u32-totitle.c: New file.
67010         Tests for module 'unicase/u16-totitle'.
67011         * modules/unicase/u16-totitle-tests: New file.
67012         * tests/unicase/test-u16-totitle.c: New file.
67014         Tests for module 'unicase/u8-totitle'.
67015         * modules/unicase/u8-totitle-tests: New file.
67016         * tests/unicase/test-u8-totitle.c: New file.
67018         New module 'unicase/u32-totitle'.
67019         * lib/unicase/u32-totitle.c: New file.
67020         * modules/unicase/u32-totitle: New file.
67022         New module 'unicase/u16-totitle'.
67023         * lib/unicase/u16-totitle.c: New file.
67024         * modules/unicase/u16-totitle: New file.
67026         New module 'unicase/u8-totitle'.
67027         * lib/unicase/u8-totitle.c: New file.
67028         * lib/unicase/u-totitle.h: New file.
67029         * modules/unicase/u8-totitle: New file.
67031         Tests for module 'unicase/u32-tolower'.
67032         * modules/unicase/u32-tolower-tests: New file.
67033         * tests/unicase/test-u32-tolower.c: New file.
67035         Tests for module 'unicase/u16-tolower'.
67036         * modules/unicase/u16-tolower-tests: New file.
67037         * tests/unicase/test-u16-tolower.c: New file.
67039         Tests for module 'unicase/u8-tolower'.
67040         * modules/unicase/u8-tolower-tests: New file.
67041         * tests/unicase/test-u8-tolower.c: New file.
67043         New module 'unicase/u32-tolower'.
67044         * lib/unicase/u32-tolower.c: New file.
67045         * modules/unicase/u32-tolower: New file.
67047         New module 'unicase/u16-tolower'.
67048         * lib/unicase/u16-tolower.c: New file.
67049         * modules/unicase/u16-tolower: New file.
67051         New module 'unicase/u8-tolower'.
67052         * lib/unicase/u8-tolower.c: New file.
67053         * modules/unicase/u8-tolower: New file.
67055         Tests for module 'unicase/u32-toupper'.
67056         * modules/unicase/u32-toupper-tests: New file.
67057         * tests/unicase/test-u32-toupper.c: New file.
67059         Tests for module 'unicase/u16-toupper'.
67060         * modules/unicase/u16-toupper-tests: New file.
67061         * tests/unicase/test-u16-toupper.c: New file.
67063         Tests for module 'unicase/u8-toupper'.
67064         * modules/unicase/u8-toupper-tests: New file.
67065         * tests/unicase/test-u8-toupper.c: New file.
67067         New module 'unicase/u32-toupper'.
67068         * lib/unicase/u32-toupper.c: New file.
67069         * modules/unicase/u32-toupper: New file.
67071         New module 'unicase/u16-toupper'.
67072         * lib/unicase/u16-toupper.c: New file.
67073         * modules/unicase/u16-toupper: New file.
67075         New module 'unicase/u8-toupper'.
67076         * lib/unicase/u8-toupper.c: New file.
67077         * modules/unicase/u8-toupper: New file.
67079         New module 'unicase/u32-casemap'.
67080         * lib/unicase/u32-casemap.c: New file.
67081         * modules/unicase/u32-casemap: New file.
67083         New module 'unicase/u16-casemap'.
67084         * lib/unicase/u16-casemap.c: New file.
67085         * modules/unicase/u16-casemap: New file.
67087         New module 'unicase/u8-casemap'.
67088         * lib/unicase/unicasemap.h: New file.
67089         * lib/unicase/u8-casemap.c: New file.
67090         * lib/unicase/u-casemap.h: New file.
67091         * modules/unicase/u8-casemap: New file.
67093         New module 'unicase/special-casing'.
67094         * lib/unicase/special-casing.h: New file.
67095         * lib/unicase/special-casing.c: New file.
67096         * lib/unicase/special-casing-table.gperf: New file, generated by
67097         gen-uni-tables.c.
67098         * modules/unicase/special-casing: New file.
67100         Tests for module 'unicase/locale-language'.
67101         * modules/unicase/locale-language-tests: New file.
67102         * tests/unicase/test-locale-language.sh: New file.
67103         * tests/unicase/test-locale-language.c: New file.
67105         New module 'unicase/locale-language'.
67106         * lib/unicase/locale-language.c: New file.
67107         * lib/unicase/locale-languages.gperf: New file.
67108         * modules/unicase/locale-language: New file.
67110         Generate more tables for case conversion and case folding.
67111         * lib/gen-uni-tables.c (SCC_*): New enum items.
67112         (struct special_casing_rule): New type.
67113         (casing_rules, num_casing_rules, allocated_casing_rules): New
67114         variables.
67115         (add_casing_rule, fill_casing_rules): New functions.
67116         (struct casefold_rule): New type.
67117         (casefolding_rules, num_casefolding_rules,
67118         allocated_casefolding_rules): New variables.
67119         (fill_casefolding_rules): New function.
67120         (unicode_casefold): New variable.
67121         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
67122         sort_casing_rules, output_casing_rules): New functions.
67123         (main): Accept to more arguments: SpecialCasing.txt and
67124         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
67125         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
67126         Output mapping for casefolding.
67128         * lib/unicase.h: Include stdbool.h, uninorm.h.
67129         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
67130         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
67131         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
67132         arguments.
67133         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
67134         resultp arguments.
67135         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
67136         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
67137         resultp arguments.
67138         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
67139         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
67140         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
67141         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
67142         declarations.
67143         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
67145 2009-03-08  Bruno Haible  <bruno@clisp.org>
67147         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
67148         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
67149         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
67150         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
67152 2009-03-07  Bruno Haible  <bruno@clisp.org>
67154         Adjust u*_normcmp, u*_normcoll API.
67155         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
67156         u16_normcoll, u32_normcoll): Change failure conventions.
67157         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
67158         errno and return -1.
67159         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
67161 2009-03-07  Bruno Haible  <bruno@clisp.org>
67163         Tests for module 'uninorm/u32-normcoll'.
67164         * modules/uninorm/u32-normcoll-tests: New file.
67165         * tests/uninorm/test-u32-normcoll.c: New file.
67167         Tests for module 'uninorm/u16-normcoll'.
67168         * modules/uninorm/u16-normcoll-tests: New file.
67169         * tests/uninorm/test-u16-normcoll.c: New file.
67171         Tests for module 'uninorm/u8-normcoll'.
67172         * modules/uninorm/u8-normcoll-tests: New file.
67173         * tests/uninorm/test-u8-normcoll.c: New file.
67175 2009-03-07  Bruno Haible  <bruno@clisp.org>
67177         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
67178         tests/uninorm/test-u32-normcmp.c.
67179         * tests/uninorm/test-u32-normcmp.c: Include it.
67180         (test_nonascii): New function, extracted from main. Add some more
67181         tests.
67182         (main): Invoke test_ascii and test_nonascii.
67183         * modules/uninorm/u32-normcmp-tests (Files): Add
67184         tests/uninorm/test-u32-normcmp.h.
67185         (Depends-on): Remove uninorm/u32-normcmp.
67187         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
67188         tests/uninorm/test-u16-normcmp.c.
67189         * tests/uninorm/test-u16-normcmp.c: Include it.
67190         (test_nonascii): New function, extracted from main. Add some more
67191         tests.
67192         (main): Invoke test_ascii and test_nonascii.
67193         * modules/uninorm/u16-normcmp-tests (Files): Add
67194         tests/uninorm/test-u16-normcmp.h.
67195         (Depends-on): Remove uninorm/u16-normcmp.
67197         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
67198         tests/uninorm/test-u8-normcmp.c.
67199         * tests/uninorm/test-u8-normcmp.c: Include it.
67200         (test_nonascii): New function, extracted from main. Add some more
67201         tests.
67202         (main): Invoke test_ascii and test_nonascii.
67203         * modules/uninorm/u8-normcmp-tests (Files): Add
67204         tests/uninorm/test-u8-normcmp.h.
67205         (Depends-on): Remove uninorm/u8-normcmp.
67207 2009-03-07  Bruno Haible  <bruno@clisp.org>
67209         New module 'uninorm/u32-normcoll'.
67210         * lib/uninorm/u32-normcoll.c: New file.
67211         * modules/uninorm/u32-normcoll: New file.
67213         New module 'uninorm/u16-normcoll'.
67214         * lib/uninorm/u16-normcoll.c: New file.
67215         * modules/uninorm/u16-normcoll: New file.
67217         New module 'uninorm/u8-normcoll'.
67218         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
67219         declarations.
67220         * lib/uninorm/u8-normcoll.c: New file.
67221         * lib/uninorm/u-normcoll.h: New file.
67222         * modules/uninorm/u8-normcoll: New file.
67224         New module 'uninorm/u32-normxfrm'.
67225         * lib/uninorm/u32-normxfrm.c: New file.
67226         * modules/uninorm/u32-normxfrm: New file.
67228         New module 'uninorm/u16-normxfrm'.
67229         * lib/uninorm/u16-normxfrm.c: New file.
67230         * modules/uninorm/u16-normxfrm: New file.
67232         New module 'uninorm/u8-normxfrm'.
67233         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
67234         declarations.
67235         * lib/uninorm/u8-normxfrm.c: New file.
67236         * lib/uninorm/u-normxfrm.h: New file.
67237         * modules/uninorm/u8-normxfrm: New file.
67239 2009-03-07  Bruno Haible  <bruno@clisp.org>
67241         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
67242         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
67243         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
67245 2009-03-07  Bruno Haible  <bruno@clisp.org>
67247         New module 'memxfrm'.
67248         * lib/memxfrm.h: New file.
67249         * lib/memxfrm.c: New file.
67250         * modules/memxfrm: New file.
67252 2009-03-07  Bruno Haible  <bruno@clisp.org>
67254         New module 'memcmp2'.
67255         * lib/memcmp2.h: New file.
67256         * lib/memcmp2.c: New file.
67257         * modules/memcmp2: New file.
67259 2009-03-07  Bruno Haible  <bruno@clisp.org>
67261         Tests for module 'uninorm/decomposing-form'.
67262         * modules/uninorm/decomposing-form-tests: New file.
67263         * tests/uninorm/test-decomposing-form.c: New file.
67265         New module 'uninorm/decomposing-form'.
67266         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
67267         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
67268         Add 'decomposing_variant' field.
67269         * lib/uninorm/decomposing-form.c: New file.
67270         * lib/uninorm/nfc.c (uninorm_nfc): Update.
67271         * lib/uninorm/nfd.c (uninorm_nfd): Update.
67272         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
67273         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
67274         * modules/uninorm/decomposing-form: New file.
67275         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
67276         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
67278 2009-03-07  Bruno Haible  <bruno@clisp.org>
67280         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
67281         strings.
67283 2009-03-06  Bruno Haible  <bruno@clisp.org>
67285         Tests for module 'uninorm/u32-normcmp'.
67286         * tests/uninorm/test-u32-normcmp.c: New file.
67287         * modules/uninorm/u32-normcmp-tests: New file.
67289         Tests for module 'uninorm/u16-normcmp'.
67290         * tests/uninorm/test-u16-normcmp.c: New file.
67291         * modules/uninorm/u16-normcmp-tests: New file.
67293         Tests for module 'uninorm/u8-normcmp'.
67294         * tests/uninorm/test-u8-normcmp.c: New file.
67295         * modules/uninorm/u8-normcmp-tests: New file.
67297         New module 'uninorm/u32-normcmp'.
67298         * lib/uninorm/u32-normcmp.c: New file.
67299         * modules/uninorm/u32-normcmp: New file.
67301         New module 'uninorm/u16-normcmp'.
67302         * lib/uninorm/u16-normcmp.c: New file.
67303         * modules/uninorm/u16-normcmp: New file.
67305         New module 'uninorm/u8-normcmp'.
67306         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
67307         declarations.
67308         * lib/uninorm/u8-normcmp.c: New file.
67309         * lib/uninorm/u-normcmp.h: New file.
67310         * modules/uninorm/u8-normcmp: New file.
67312 2009-03-06  Bruno Haible  <bruno@clisp.org>
67314         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
67315         Reported by Eric Blake.
67317 2009-03-06  Eric Blake  <ebb9@byu.net>
67318             Bruno Haible  <bruno@clisp.org>
67320         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
67321         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
67322         condition.
67323         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
67324         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
67325         condition.
67326         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
67328 2009-03-06  Eric Blake  <ebb9@byu.net>
67330         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
67331         to avoid compiler warnings.
67332         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
67334 2009-03-05  Bruno Haible  <bruno@clisp.org>
67336         * tests/test-ftell.c (main): Disable test beyond end of file on
67337         FreeMiNT.
67338         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
67340 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
67342         * lib/filevercmp.c: Move hidden files up in ordering.
67343         * tests/test-filevercmp.c: Add tests for hidden files.
67345 2009-03-04  Bruno Haible  <bruno@clisp.org>
67347         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
67348         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
67349         AM_CFLAGS.
67350         Reported by Simon Josefsson.
67352 2009-03-03  Bruno Haible  <bruno@clisp.org>
67354         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
67355         Reported by Simon Josefsson.
67357         * doc/ld-version-script.texi: Update node reference.
67359 2009-03-03  Bruno Haible  <bruno@clisp.org>
67361         * modules/visibility (License): Change to 'unlimited'.
67362         Suggested by Simon Josefsson.
67364 2009-03-03  Jim Meyering  <meyering@redhat.com>
67366         unlinkdir: cannot_unlink_dir may modify process state
67367         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
67368         it's neither thread-safe nor appropriate for use in a library.
67370 2009-03-03  Eric Blake  <ebb9@byu.net>
67372         test-closein: silence test under Darwin
67373         * tests/test-closein.sh: Ignore stderr from cat, since we don't
67374         care if it dies from EPIPE or EBADF.
67376 2009-03-03  Bruno Haible  <bruno@clisp.org>
67378         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
67379         earlier.
67380         * doc/visibility.texi: Fix @node and @section.
67382 2009-03-03  Simon Josefsson  <simon@josefsson.org>
67384         * doc/gnulib.texi: Link to sections for ld version script and
67385         visibility.
67386         * doc/visibility.texi: Add @node and @section.
67387         * modules/ld-version-script: New module.
67388         * m4/ld-version-script.m4: New file.
67389         * doc/ld-version-script.texi: New file.
67391 2009-03-02  David Lutterkort  <lutter@redhat.com>
67393         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
67394         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
67396 2009-03-02  Bruno Haible  <bruno@clisp.org>
67398         * doc/visibility.texi: Mention libtool's -export-symbols option.
67400 2009-03-02  Jim Meyering  <meyering@redhat.com>
67402         announce-gen: new option: --no-print-checksums
67403         * build-aux/announce-gen (usage): Describe it.
67404         (print_checksums): Print a newline here, not in the [*] footnote.
67405         (main): Honor it.
67407 2009-03-01  Bruno Haible  <bruno@clisp.org>
67409         Use socklen_t in the native Windows replacements prototypes.
67410         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
67411         instead of 'int'.
67412         * lib/getsockopt.c (rpl_getsockopt): Likewise.
67413         * lib/setsockopt.c (rpl_setsockopt): Likewise.
67414         * modules/getsockopt (Depends-on): Add socklen.
67415         * modules/setsockopt (Depends-on): Add socklen.
67417 2009-03-01  Bruno Haible  <bruno@clisp.org>
67419         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
67420         least 4.2.
67422 2009-03-01  Eric Blake  <ebb9@byu.net>
67423             Bruno Haible  <bruno@clisp.org>
67425         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
67426         error messages.
67427         * lib/wait-process.c (wait_subprocess): Omit error message about
67428         deadly signal sent to the child of termsigp != NULL.
67430 2009-03-01  Eric Blake  <ebb9@byu.net>
67432         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
67434 2009-03-01  Bruno Haible  <bruno@clisp.org>
67436         Avoid a gcc warning.
67437         * tests/test-sched.c (b): Make global.
67438         Reported by Eric Blake.
67440 2009-01-19  Martin Lambers  <marlam@marlam.de>
67442         Provide POSIX semantics for socket timeout options on W32.
67443         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
67444         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
67445         * modules/setsockopt: Depend on sys_time module for struct timeval.
67446         * modules/getsockopt: Depend on sys_time module for struct timeval.
67448 2009-03-01  Simon Josefsson  <simon@josefsson.org>
67450         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
67451         __USE_GNU, for consistency with netdb.in.h.
67452         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
67454 2009-03-01  Bruno Haible  <bruno@clisp.org>
67456         More support for FreeMiNT.
67457         * lib/fseeko.c (rpl_fseeko): Complete last commit.
67458         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
67460 2009-03-01  Bruno Haible  <bruno@clisp.org>
67462         More support for FreeMiNT.
67463         * lib/fpurge.c (fpurge): Correct last commit.
67464         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
67466 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67468         Fix unportable awk script in vc-list-files.
67469         * build-aux/vc-list-files: In the replacement awk script, use
67470         substr with a second argument of 1, not zero.
67471         Report by Simon Josefsson.
67473 2009-02-28  Bruno Haible  <bruno@clisp.org>
67475         More support for FreeMiNT.
67476         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
67477         to FreeMiNT today.
67478         * lib/fwriting.c (fwriting): Likewise.
67479         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
67481 2009-02-28  Bruno Haible  <bruno@clisp.org>
67483         * tests/test-freadseek.c (main): Disable test beyond end of file on
67484         FreeMiNT.
67485         * tests/test-ftello.c (main): Likewise.
67486         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
67488 2009-02-28  Bruno Haible  <bruno@clisp.org>
67490         Add tentative support for FreeMiNT.
67491         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
67492         * lib/fpurge.c (fpurge): Likewise.
67493         * lib/freadable.c (freadable): Likewise.
67494         * lib/freading.c (freading): Likewise.
67495         * lib/freadptr.c (freadptr): Likewise.
67496         * lib/freadseek.c (freadptrinc): Likewise.
67497         * lib/fseeko.c (rpl_fseeko): Likewise.
67498         * lib/fseterr.c (fseterr): Likewise.
67499         * lib/fwritable.c (fwritable): Likewise.
67500         * lib/fwriting.c (fwriting): Likewise.
67501         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
67502         Hourihane.
67503         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
67505 2009-02-28  Bruno Haible  <bruno@clisp.org>
67507         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
67508         SIGCHLD.
67509         Reported by Jim Meyering.
67511 2009-02-28  Bruno Haible  <bruno@clisp.org>
67513         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
67514         Mention the results of these tests on various platforms.
67515         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
67516         order.
67517         * doc/posix-functions/printf.texi: Likewise.
67518         * doc/posix-functions/snprintf.texi: Likewise.
67519         * doc/posix-functions/sprintf.texi: Likewise.
67520         * doc/posix-functions/vfprintf.texi: Likewise.
67521         * doc/posix-functions/vprintf.texi: Likewise.
67522         * doc/posix-functions/vsnprintf.texi: Likewise.
67523         * doc/posix-functions/vsprintf.texi: Likewise.
67524         * doc/glibc-functions/obstack_printf.texi: Likewise.
67525         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
67527 2009-02-28  Bruno Haible  <bruno@clisp.org>
67529         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
67530         Reported by Loïc Minier <lool@dooz.org>.
67532 2009-02-27  Bruno Haible  <bruno@clisp.org>
67534         * gnulib-tool (func_import): Make the sed expression used to create the
67535         sed script for updating the .gitignore file POSIX compliant.
67536         Reported by Eric Blake.
67538 2009-02-27  Bruno Haible  <bruno@clisp.org>
67540         * gnulib-tool (sed): Don't alias as "sed --posix".
67541         Reported by Eric Blake.
67543 2009-02-27  Bruno Haible  <bruno@clisp.org>
67545         Avoid test link errors.
67546         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
67547         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
67548         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
67549         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
67550         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
67552 2009-02-27  Bruno Haible  <bruno@clisp.org>
67554         Avoid spurious "(cached)" in configure output.
67555         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
67556         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
67557         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
67558         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
67559         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
67560         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
67561         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
67562         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
67563         Reported by Eric Blake.
67565 2009-02-27  Eric Blake  <ebb9@byu.net>
67567         printf: fix regression in previous patch
67568         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
67570 2009-02-27  Bruno Haible  <bruno@clisp.org>
67572         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
67573         value.
67574         * lib/stdint.in.h: Likewise.
67575         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
67577 2009-02-27  Eric Blake  <ebb9@byu.net>
67579         doc: mention more functions added in cygwin 1.7.0
67580         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
67581         addition.
67582         * doc/posix-functions/open_wmemstream.texi: Likewise.
67583         * doc/posix-functions/wcsnlen.texi: Likewise.
67584         * doc/posix-functions/wcsnrtombs.texi: Likewise.
67585         * doc/posix-functions/wcstod.texi: Likewise.
67586         * doc/posix-functions/wcstof.texi: Likewise.
67587         * doc/posix-functions/wcstoimax.texi: Likewise.
67588         * doc/posix-functions/wcstok.texi: Likewise.
67589         * doc/posix-functions/wcstoumax.texi: Likewise.
67591         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
67592         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
67593         * doc/posix-functions/fprintf.texi: Update.
67594         * doc/posix-functions/printf.texi: Update.
67595         * doc/posix-functions/snprintf.texi: Update.
67596         * doc/posix-functions/sprintf.texi: Update.
67597         * doc/posix-functions/vfprintf.texi: Update.
67598         * doc/posix-functions/vprintf.texi: Update.
67599         * doc/posix-functions/vsnprintf.texi: Update.
67600         * doc/posix-functions/vsprintf.texi: Update.
67601         * doc/glibc-functions/obstack_printf.texi: Update.
67602         * doc/glibc-functions/obstack_vprintf.texi: Update.
67604 2009-02-26  Eric Blake  <ebb9@byu.net>
67606         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
67607         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
67608         compilation bug by using runtime conversion.
67609         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
67610         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
67611         * modules/ceill-tests (Files): Use nan.h.
67612         * modules/floorl-tests (Files): Likewise.
67613         * modules/frexpl-tests (Files): Likewise.
67614         * modules/isnanl-tests (Files): Likewise.
67615         * modules/ldexpl-tests (Files): Likewise.
67616         * modules/roundl-tests (Files): Likewise.
67617         * modules/truncl-tests (Files): Likewise.
67618         * tests/test-ceill.c (main): Use a working NaN.
67619         * tests/test-floorl.c (main): Likewise.
67620         * tests/test-frexpl.c (main): Likewise.
67621         * tests/test-isnan.c (test_long_double): Likewise.
67622         * tests/test-isnanl.h (main): Likewise.
67623         * tests/test-ldexpl.h (main): Likewise.
67624         * tests/test-roundl.h (main): Likewise.
67625         * tests/test-truncl.h (main): Likewise.
67626         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
67628 2009-02-26  Eric Blake  <ebb9@byu.net>
67629             Bruno Haible  <bruno@clisp.org>
67631         Work around a *printf bug with %ls on Solaris.
67632         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
67633         precision is specified, sprintf stops converting the wide string
67634         argument when the number of bytes that have been produced by this
67635         conversion equals or exceeds the precision.
67636         * doc/posix-functions/fprintf.texi: Update.
67637         * doc/posix-functions/printf.texi: Update.
67638         * doc/posix-functions/snprintf.texi: Update.
67639         * doc/posix-functions/sprintf.texi: Update.
67640         * doc/posix-functions/vfprintf.texi: Update.
67641         * doc/posix-functions/vprintf.texi: Update.
67642         * doc/posix-functions/vsnprintf.texi: Update.
67643         * doc/posix-functions/vsprintf.texi: Update.
67644         * doc/glibc-functions/obstack_printf.texi: Update.
67645         * doc/glibc-functions/obstack_vprintf.texi: Update.
67647 2009-02-26  Eric Blake  <ebb9@byu.net>
67649         stdlib: favor compiler check of random.h
67650         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
67651         to avoid an ObjC random.h installed by Swarm.
67653 2009-02-26  Bruno Haible  <bruno@clisp.org>
67655         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
67656         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
67657         Reported by Gary V. Vaughan <gary@gnu.org>.
67659 2009-02-26  Bruno Haible  <bruno@clisp.org>
67661         Fix *printf behaviour regarding the %ls directive.
67662         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
67663         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
67664         NEED_PRINTF_DIRECTIVE_LS.
67665         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
67666         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
67667         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67668         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
67669         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
67670         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
67671         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
67672         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67673         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67674         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67675         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67676         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
67677         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67678         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67679         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67680         * doc/posix-functions/fprintf.texi: Update.
67681         * doc/posix-functions/printf.texi: Update.
67682         * doc/posix-functions/snprintf.texi: Update.
67683         * doc/posix-functions/sprintf.texi: Update.
67684         * doc/posix-functions/vfprintf.texi: Update.
67685         * doc/posix-functions/vprintf.texi: Update.
67686         * doc/posix-functions/vsnprintf.texi: Update.
67687         * doc/posix-functions/vsprintf.texi: Update.
67688         * doc/glibc-functions/obstack_printf.texi: Update.
67689         * doc/glibc-functions/obstack_vprintf.texi: Update.
67690         Reported by Eric Blake.
67692 2009-02-25  Bruno Haible  <bruno@clisp.org>
67694         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
67695         with known value.
67696         Reported by Gary V. Vaughan <gary@gnu.org>.
67698 2009-02-25  Bruno Haible  <bruno@clisp.org>
67700         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
67701         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
67702         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
67703         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
67704         Reported by Gary V. Vaughan <gary@gnu.org>.
67706 2009-02-25  Bruno Haible  <bruno@clisp.org>
67708         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
67709         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
67710         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
67711         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
67712         Reported by Gary V. Vaughan <gary@gnu.org>.
67714 2009-02-25  Eric Blake  <ebb9@byu.net>
67716         tests: skip fseek/ftell tests if ungetc is broken
67717         * m4/ungetc.m4: New file.
67718         * modules/fseek-tests: Split test, so ungetc dependency is
67719         separate from rest of test.
67720         * modules/fseeko-tests: Likewise.
67721         * modules/ftell-tests: Likewise.
67722         * modules/ftello-tests: Likewise.
67723         * tests/test-fseek.c (main): Isolate ungetc dependency.
67724         * tests/test-fseeko.c (main): Likewise.
67725         * tests/test-ftell.c (main): Likewise.
67726         * tests/test-ftello.c (main): Likewise.
67727         * tests/test-fseek2.sh: New file.
67728         * tests/test-fseeko2.sh: Likewise.
67729         * tests/test-ftell2.sh: Likewise.
67730         * tests/test-ftello2.sh: Likewise.
67732 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
67734         test-getaddrinfo: fix usage of skip return code 77
67735         * tests/test-gettaddrinfo.c: Return skip code 77 only
67736         for first occurrence of skip (4x77 is not 77)
67738 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
67740         strtod: avoid C99 decl-after-statement
67741         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
67743 2009-02-24  Eric Blake  <ebb9@byu.net>
67745         strtod: detect HP-UX 11.31 bug
67746         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
67747         Reported by Gary V. Vaughan.
67749 2009-02-23  Bruno Haible  <bruno@clisp.org>
67751         Fix invalid read past end of memory block.
67752         * lib/vasnprintf.c (DCHAR_SET): Define.
67753         (local_wcslen): Define only when needed.
67754         (local_strnlen, local_wcsnlen): New functions.
67755         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
67756         directives that involve a conversion ourselves.
67757         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
67758         wcsnlen, mbrtowc, wcrtomb.
67759         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
67760         * tests/test-vasprintf-posix.c (test_function): Likewise.
67761         * tests/test-snprintf-posix.h (test_function): Likewise.
67762         * tests/test-sprintf-posix.h (test_function): Likewise.
67763         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67765 2009-02-22  Bruno Haible  <bruno@clisp.org>
67767         Implement new clarified decomposition of Hangul syllables.
67768         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
67769         of type LTV, return only a pairwise decomposition.
67770         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
67771         Likewise.
67772         * tests/uninorm/test-decomposition.c (main): Updated expected result.
67773         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
67774         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
67776 2009-02-22  Bruno Haible  <bruno@clisp.org>
67778         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
67779         zero-length results and shrink excess allocated memory.
67780         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
67781         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
67782         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
67783         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
67784         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
67785         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
67786         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
67787         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
67788         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
67789         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
67790         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
67791         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
67793 2009-02-21  Bruno Haible  <bruno@clisp.org>
67795         * doc/gnulib.texi: Include safe-alloc.texi earlier.
67796         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
67797         spaces after a period. Put a space between a macro name and its
67798         argument list. Trivial rewordings.
67799         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
67800         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
67801         (main): Return 0 explicitly.
67803 2009-02-21  Bruno Haible  <bruno@clisp.org>
67805         Tests for module 'uninorm/filter'.
67806         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
67807         * modules/uninorm/filter-tests: New file.
67809         New module 'uninorm/filter'.
67810         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
67811         uninorm_filter_flush, uninorm_filter_free): New declarations.
67812         * lib/uninorm/uninorm-filter.c: New file.
67813         * modules/uninorm/filter: New file.
67815 2009-02-21  Bruno Haible  <bruno@clisp.org>
67817         Tests for module 'uninorm/nfkc'.
67818         * tests/uninorm/test-nfkc.c: New file.
67819         * tests/uninorm/test-u8-nfkc.c: New file.
67820         * tests/uninorm/test-u16-nfkc.c: New file.
67821         * tests/uninorm/test-u32-nfkc.c: New file.
67822         * tests/uninorm/test-u32-nfkc-big.sh: New file.
67823         * tests/uninorm/test-u32-nfkc-big.c: New file.
67824         * modules/uninorm/nfkc-tests: New file.
67826         New module 'uninorm/nfkc'.
67827         * lib/uninorm/nfkc.c: New file.
67828         * modules/uninorm/nfkc: New file.
67830         Tests for module 'uninorm/nfkd'.
67831         * tests/uninorm/test-nfkd.c: New file.
67832         * tests/uninorm/test-u8-nfkd.c: New file.
67833         * tests/uninorm/test-u16-nfkd.c: New file.
67834         * tests/uninorm/test-u32-nfkd.c: New file.
67835         * tests/uninorm/test-u32-nfkd-big.sh: New file.
67836         * tests/uninorm/test-u32-nfkd-big.c: New file.
67837         * modules/uninorm/nfkd-tests: New file.
67839         New module 'uninorm/nfkd'.
67840         * lib/uninorm/nfkd.c: New file.
67841         * modules/uninorm/nfkd: New file.
67843         Tests for module 'uninorm/nfc'.
67844         * tests/uninorm/test-nfc.c: New file.
67845         * tests/uninorm/test-u8-nfc.c: New file.
67846         * tests/uninorm/test-u16-nfc.c: New file.
67847         * tests/uninorm/test-u32-nfc.c: New file.
67848         * tests/uninorm/test-u32-nfc-big.sh: New file.
67849         * tests/uninorm/test-u32-nfc-big.c: New file.
67850         * modules/uninorm/nfc-tests: New file.
67852         New module 'uninorm/nfc'.
67853         * lib/uninorm/nfc.c: New file.
67854         * modules/uninorm/nfc: New file.
67856         Tests for module 'uninorm/nfd'.
67857         * tests/uninorm/test-nfd.c: New file.
67858         * tests/uninorm/test-u8-nfd.c: New file.
67859         * tests/uninorm/test-u16-nfd.c: New file.
67860         * tests/uninorm/test-u32-nfd.c: New file.
67861         * tests/uninorm/test-u32-nfd-big.sh: New file.
67862         * tests/uninorm/test-u32-nfd-big.c: New file.
67863         * tests/uninorm/test-u32-normalize-big.h: New file.
67864         * tests/uninorm/test-u32-normalize-big.c: New file.
67865         * tests/uninorm/NormalizationTest.txt: New file, created from
67866         Unicode 5.1.0 NormalizationTest.txt.
67867         * modules/uninorm/nfd-tests: New file.
67869         New module 'uninorm/nfd'.
67870         * lib/uninorm/nfd.c: New file.
67871         * modules/uninorm/nfd: New file.
67873         New module 'uninorm/u32-normalize'.
67874         * lib/uninorm/u32-normalize.c: New file.
67875         * modules/uninorm/u32-normalize: New file.
67877         New module 'uninorm/u16-normalize'.
67878         * lib/uninorm/u16-normalize.c: New file.
67879         * modules/uninorm/u16-normalize: New file.
67881         New module 'uninorm/u8-normalize'.
67882         * lib/uninorm/u8-normalize.c: New file.
67883         * lib/uninorm/normalize-internal.h: New file.
67884         * lib/uninorm/u-normalize-internal.h: New file.
67885         * modules/uninorm/u8-normalize: New file.
67887         New module 'uninorm/decompose-internal'.
67888         * lib/uninorm/decompose-internal.c: New file.
67889         * modules/uninorm/decompose-internal: New file.
67891         Tests for module 'uninorm/composition'.
67892         * tests/uninorm/test-composition.c: New file.
67893         * modules/uninorm/composition-tests: New file.
67895         New module 'uninorm/composition'.
67896         * lib/uninorm/composition.c: New file.
67897         * lib/uninorm/composition-table.gperf: New file, generated by
67898         gen-uni-tables.
67899         * modules/uninorm/composition: New file.
67901         Tests for module 'uninorm/compat-decomposition'.
67902         * tests/uninorm/test-compat-decomposition.c: New file.
67903         * modules/uninorm/compat-decomposition-tests: New file.
67905         New module 'uninorm/compat-decomposition'.
67906         * lib/uninorm/decompose-internal.h: New file.
67907         * lib/uninorm/compat-decomposition.c: New file.
67908         * modules/uninorm/compat-decomposition: New file.
67910         Tests for module 'uninorm/canonical-decomposition'.
67911         * tests/uninorm/test-canonical-decomposition.c: New file.
67912         * modules/uninorm/canonical-decomposition-tests: New file.
67914         New module 'uninorm/canonical-decomposition'.
67915         * lib/uninorm/canonical-decomposition.c: New file.
67916         * modules/uninorm/canonical-decomposition: New file.
67918         Tests for module 'uninorm/decomposition'.
67919         * tests/uninorm/test-decomposition.c: New file.
67920         * modules/uninorm/decomposition-tests: New file.
67922         New module 'uninorm/decomposition'.
67923         * lib/uninorm/decomposition.c: New file.
67924         * modules/uninorm/decomposition: New file.
67926         New module 'uninorm/decomposition-table'.
67927         * lib/uninorm/decomposition-table.h: New file.
67928         * lib/uninorm/decomposition-table.c: New file.
67929         * lib/uninorm/decomposition-table1.h: New file, generated by
67930         gen-uni-tables.
67931         * lib/uninorm/decomposition-table2.h: New file, generated by
67932         gen-uni-tables.
67933         * modules/uninorm/decomposition-table: New file.
67935         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
67936         (UC_DECOMP_*): New enumeration items.
67937         (get_decomposition): New function.
67938         (struct decomp_table): New type.
67939         (output_decomposition, output_decomposition_tables): New functions.
67940         (unicode_composition_exclusions): New variable.
67941         (fill_composition_exclusions, debug_output_composition_tables): New
67942         functions.
67943         (main): Accept one more argument. Invoke fill_composition_exclusions.
67944         Output decomposition and composition tables.
67946         New module 'uninorm/base'.
67947         * lib/uninorm.h: New file.
67948         * lib/unictype.h: Update comment.
67949         * modules/uninorm/base: New file.
67951 2009-02-21  David Lutterkort  <lutter@redhat.com>
67953         Tests for module 'safe-alloc'.
67954         * tests/test-safe-alloc.c: New file.
67955         * modules/safe-alloc-tests: New file.
67957         New module 'safe-alloc'.
67958         * lib/safe-alloc.h: New file.
67959         * lib/safe-alloc.c: New file.
67960         * m4/safe-alloc.m4: New file.
67961         * modules/safe-alloc: New file.
67962         * doc/safe-alloc.texi: New file.
67963         * doc/gnulib.texi: Include it.
67964         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
67965         safe-alloc.
67967 2009-02-18  Bruno Haible  <bruno@clisp.org>
67969         Fix link error on non-glibc systems.
67970         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
67971         variable.
67972         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
67974 2009-02-18  Jim Meyering  <meyering@redhat.com>
67976         fts: avoid used-uninitialized error due to recent change
67977         * lib/fts.c (fts_read): Guard uses of the new member,
67978         parent->fts_n_dirs_remaining, since it's not relevant for
67979         the parent of a directory specified on the command-line.
67981 2009-02-17  James Youngman  <jay@gnu.org>
67982             Bruno Haible  <bruno@clisp.org>
67984         * m4/include_next.m4: Reformulate comment.
67986 2009-02-16  Jim Meyering  <meyering@redhat.com>
67988         fts: add #if guards so that the fts_lgpl module still builds
67989         * lib/fts.c: Guard just-added hash-table-using parts with
67990         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
67991         Reported by Simon Josefsson.
67993 2009-02-15  Bruno Haible  <bruno@clisp.org>
67995         * modules/array-mergesort-tests: New file.
67996         * tests/test-array-mergesort.c: New file.
67998         New module 'array-mergesort'.
67999         * modules/array-mergesort: New file.
68000         * lib/array-mergesort.h: New file.
68002 2009-02-15  Bruno Haible  <bruno@clisp.org>
68004         Fix 2009-02-07 commit.
68005         * lib/gen-uni-tables.c (output_predicate, output_category,
68006         output_combclass, output_bidi_category, output_decimal_digit,
68007         output_digit, output_numeric, output_mirror, output_scripts,
68008         output_ident_category, output_simple_mapping): Fix format directives.
68009         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
68011 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
68013         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
68014         fixes are available from IBM.
68016 2009-02-13  Jim Meyering  <meyering@redhat.com>
68018         fts: arrange not to stat non-directories in more cases
68019         This makes GNU find (when it doesn't need to stat each file)
68020         *much* more efficient at traversing reiserfs file systems.
68021         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
68022         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
68023         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
68024         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
68025         (leaf_optimization_applies): New function.
68026         (LCO_hash, LCO_compare): New helper functions.
68027         (link_count_optimize_ok): New function.
68028         (fts_stat): Initialize new member (if dir).
68029         (fts_read): Decrement parent's fts_n_dirs_remaining count if
68030         we've just stat'ed a directory.  Skip the stat call when possible.
68031         ---
68032         Note this AFS-related exchange:
68033         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
68034         and note find's pioctl call in find/fstype.c.
68035         But that is necessary only if you want to enable the
68036         optimization for AFS, and for now, I don't.
68038         fts: move a function definition "up" (no semantic change)
68039         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
68040         "up" to precede upcoming use of a related function.
68042 2009-02-11  Jim Meyering  <meyering@redhat.com>
68044         fts: correct internal computation of nlinks (optimization-related)
68045         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
68046         whether the current entry is a directory, so don't test it.
68048 2009-02-10  Bruno Haible  <bruno@clisp.org>
68050         Tests for module 'uniwbrk/ulc-wordbreaks'.
68051         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
68052         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
68053         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
68055         Tests for module 'uniwbrk/u32-wordbreaks'.
68056         * modules/uniwbrk/u32-wordbreaks-tests: New file.
68057         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
68059         Tests for module 'uniwbrk/u16-wordbreaks'.
68060         * modules/uniwbrk/u16-wordbreaks-tests: New file.
68061         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
68063         Tests for module 'uniwbrk/u8-wordbreaks'.
68064         * modules/uniwbrk/u8-wordbreaks-tests: New file.
68065         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
68067 2009-02-10  Bruno Haible  <bruno@clisp.org>
68069         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
68070         property.
68071         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
68072         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
68073         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
68075 2009-02-10  Simon Josefsson  <simon@josefsson.org>
68077         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
68078         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
68080 2009-02-10  Bruno Haible  <bruno@clisp.org>
68082         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
68083         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
68084         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
68085         * lib/unilbrk/u8-possible-linebreaks.c: Update.
68086         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
68087         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
68089 2009-02-09  Simon Josefsson  <simon@josefsson.org>
68091         * lib/sockets.h (gl_fd_to_handle): New function.
68093         * tests/test-sockets.c: Call gl_fd_to_handle.
68095 2009-02-09  Bruno Haible  <bruno@clisp.org>
68097         * doc/havelib.texi: Document the conventions on bi-arch systems.
68099 2009-02-08  Bruno Haible  <bruno@clisp.org>
68101         Document the AC_LIB_LINKFLAGS macro.
68102         * doc/havelib.texi: New file, mostly written on 2005-05-24.
68103         * doc/gnulib.texi: Include it.
68105 2009-02-08  Bruno Haible  <bruno@clisp.org>
68107         Fix wrong order of sections, compared to TOC.
68108         * doc/gnulib.texi: Include relocatable-maint.texi after the
68109         "Regular expressions" node, not before.
68111 2009-02-08  Bruno Haible  <bruno@clisp.org>
68113         Tests for module 'unicase/totitle'.
68114         * modules/unicase/totitle-tests: New file.
68116         Tests for module 'unicase/tolower'.
68117         * modules/unicase/tolower-tests: New file.
68119         Tests for module 'unicase/toupper'.
68120         * modules/unicase/toupper-tests: New file.
68121         * tests/unicase/test-mapping-part1.h: New file.
68122         * tests/unicase/test-mapping-part2.h: New file.
68124         New module 'unicase/totitle'.
68125         * modules/unicase/totitle: New file.
68126         * lib/unicase/totitle.c: New file.
68128         New module 'unicase/tolower'.
68129         * modules/unicase/tolower: New file.
68130         * lib/unicase/tolower.c: New file.
68132         New module 'unicase/toupper'.
68133         * modules/unicase/toupper: New file.
68134         * lib/unicase/toupper.c: New file.
68135         * lib/unicase/simple-mapping.h: New file.
68137         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
68138         (mapping_table): New structure.
68139         (output_simple_mapping): New function.
68140         (main): Invoke output_simple_mapping_test and output_simple_mapping.
68141         * modules/gen-uni-tables (Description): Update.
68142         * lib/unicase/toupper.h: New file, automatically generated by
68143         gen-uni-tables.
68144         * lib/unicase/tolower.h: New file, automatically generated by
68145         gen-uni-tables.
68146         * lib/unicase/totitle.h: New file, automatically generated by
68147         gen-uni-tables.
68148         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
68149         gen-uni-tables.
68150         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
68151         gen-uni-tables.
68152         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
68153         gen-uni-tables.
68155         New module 'unicase/base'.
68156         * modules/unicase/base: New file.
68157         * lib/unicase.h: New file.
68159 2009-02-08  Bruno Haible  <bruno@clisp.org>
68161         New module 'uniwbrk/ulc-wordbreaks'.
68162         * modules/uniwbrk/ulc-wordbreaks: New file.
68163         * lib/uniwbrk/ulc-wordbreaks.c: New file.
68165         New module 'uniwbrk/u32-wordbreaks'.
68166         * modules/uniwbrk/u32-wordbreaks: New file.
68167         * lib/uniwbrk/u32-wordbreaks.c: New file.
68169         New module 'uniwbrk/u16-wordbreaks'.
68170         * modules/uniwbrk/u16-wordbreaks: New file.
68171         * lib/uniwbrk/u16-wordbreaks.c: New file.
68173         New module 'uniwbrk/u8-wordbreaks'.
68174         * modules/uniwbrk/u8-wordbreaks: New file.
68175         * lib/uniwbrk/u8-wordbreaks.c: New file.
68176         * lib/uniwbrk/u-wordbreaks.h: New file.
68178         New module 'uniwbrk/table'.
68179         * modules/uniwbrk/table: New file.
68180         * lib/uniwbrk/wbrktable.h: New file.
68181         * lib/uniwbrk/wbrktable.c: New file.
68183         New module 'uniwbrk/wordbreak-property'.
68184         * modules/uniwbrk/wordbreak-property: New file.
68185         * lib/uniwbrk/wordbreak-property.c: New file.
68187         * lib/gen-uni-tables.c (WBP_*): New enum items.
68188         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
68189         (unicode_org_wbp): New variable.
68190         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
68191         New functions.
68192         (wbp_table): New structure.
68193         (output_wbp, output_wbrk_tables): New functions.
68194         (main): Accept additional argument. Invoke fill_org_wbp,
68195         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
68196         output_wbrk_tables.
68197         * modules/gen-uni-tables (Description): Update.
68198         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
68199         gen-uni-tables.
68201         New module 'uniwbrk/base'.
68202         * modules/uniwbrk/base: New file.
68203         * lib/uniwbrk.h: New file.
68205 2009-02-08  Bruno Haible  <bruno@clisp.org>
68207         Update to Unicode 5.1.0.
68208         * lib/gen-uni-tables.c (is_property_alphabetic): Include
68209         U+2185..U+2188.
68210         (is_property_default_ignorable_code_point): Don't include characters
68211         of category Cc or Cs and not-a-characters.
68212         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
68213         U+0D79, U+109E, U+109F, U+A60C.
68214         * lib/unictype/bidi_of.h: Regenerated.
68215         * lib/unictype/blocks.h: Regenerated.
68216         * lib/unictype/categ_C.h: Regenerated.
68217         * lib/unictype/categ_Cf.h: Regenerated.
68218         * lib/unictype/categ_Cn.h: Regenerated.
68219         * lib/unictype/categ_L.h: Regenerated.
68220         * lib/unictype/categ_Ll.h: Regenerated.
68221         * lib/unictype/categ_Lm.h: Regenerated.
68222         * lib/unictype/categ_Lo.h: Regenerated.
68223         * lib/unictype/categ_Lu.h: Regenerated.
68224         * lib/unictype/categ_M.h: Regenerated.
68225         * lib/unictype/categ_Mc.h: Regenerated.
68226         * lib/unictype/categ_Me.h: Regenerated.
68227         * lib/unictype/categ_Mn.h: Regenerated.
68228         * lib/unictype/categ_N.h: Regenerated.
68229         * lib/unictype/categ_Nd.h: Regenerated.
68230         * lib/unictype/categ_Nl.h: Regenerated.
68231         * lib/unictype/categ_No.h: Regenerated.
68232         * lib/unictype/categ_P.h: Regenerated.
68233         * lib/unictype/categ_Pd.h: Regenerated.
68234         * lib/unictype/categ_Pe.h: Regenerated.
68235         * lib/unictype/categ_Pf.h: Regenerated.
68236         * lib/unictype/categ_Pi.h: Regenerated.
68237         * lib/unictype/categ_Po.h: Regenerated.
68238         * lib/unictype/categ_Ps.h: Regenerated.
68239         * lib/unictype/categ_S.h: Regenerated.
68240         * lib/unictype/categ_Sk.h: Regenerated.
68241         * lib/unictype/categ_Sm.h: Regenerated.
68242         * lib/unictype/categ_So.h: Regenerated.
68243         * lib/unictype/categ_of.h: Regenerated.
68244         * lib/unictype/combining.h: Regenerated.
68245         * lib/unictype/ctype_alnum.h: Regenerated.
68246         * lib/unictype/ctype_alpha.h: Regenerated.
68247         * lib/unictype/ctype_graph.h: Regenerated.
68248         * lib/unictype/ctype_lower.h: Regenerated.
68249         * lib/unictype/ctype_print.h: Regenerated.
68250         * lib/unictype/ctype_punct.h: Regenerated.
68251         * lib/unictype/ctype_upper.h: Regenerated.
68252         * lib/unictype/decdigit.h: Regenerated.
68253         * lib/unictype/digit.h: Regenerated.
68254         * lib/unictype/mirror.h: Regenerated.
68255         * lib/unictype/numeric.h: Regenerated.
68256         * lib/unictype/pr_alphabetic.h: Regenerated.
68257         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
68258         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
68259         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
68260         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
68261         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
68262         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
68263         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
68264         * lib/unictype/pr_combining.h: Regenerated.
68265         * lib/unictype/pr_dash.h: Regenerated.
68266         * lib/unictype/pr_decimal_digit.h: Regenerated.
68267         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
68268         * lib/unictype/pr_deprecated.h: Regenerated.
68269         * lib/unictype/pr_diacritic.h: Regenerated.
68270         * lib/unictype/pr_extender.h: Regenerated.
68271         * lib/unictype/pr_format_control.h: Regenerated.
68272         * lib/unictype/pr_grapheme_base.h: Regenerated.
68273         * lib/unictype/pr_grapheme_extend.h: Regenerated.
68274         * lib/unictype/pr_grapheme_link.h: Regenerated.
68275         * lib/unictype/pr_id_continue.h: Regenerated.
68276         * lib/unictype/pr_id_start.h: Regenerated.
68277         * lib/unictype/pr_ideographic.h: Regenerated.
68278         * lib/unictype/pr_ignorable_control.h: Regenerated.
68279         * lib/unictype/pr_lowercase.h: Regenerated.
68280         * lib/unictype/pr_math.h: Regenerated.
68281         * lib/unictype/pr_numeric.h: Regenerated.
68282         * lib/unictype/pr_other_alphabetic.h: Regenerated.
68283         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
68284         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
68285         * lib/unictype/pr_other_id_continue.h: Regenerated.
68286         * lib/unictype/pr_other_lowercase.h: Regenerated.
68287         * lib/unictype/pr_other_math.h: Regenerated.
68288         * lib/unictype/pr_punctuation.h: Regenerated.
68289         * lib/unictype/pr_sentence_terminal.h: Regenerated.
68290         * lib/unictype/pr_soft_dotted.h: Regenerated.
68291         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
68292         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
68293         * lib/unictype/pr_unified_ideograph.h: Regenerated.
68294         * lib/unictype/pr_uppercase.h: Regenerated.
68295         * lib/unictype/pr_xid_continue.h: Regenerated.
68296         * lib/unictype/pr_xid_start.h: Regenerated.
68297         * lib/unictype/pr_zero_width.h: Regenerated.
68298         * lib/unictype/scripts.h: Regenerated.
68299         * lib/unictype/scripts_byname.gperf: Regenerated.
68300         * lib/unictype/sy_java_ident.h: Regenerated.
68301         * lib/unilbrk/lbrkprop1.h: Regenerated.
68302         * lib/unilbrk/lbrkprop2.h: Regenerated.
68303         * tests/unictype/test-categ_C.c: Regenerated.
68304         * tests/unictype/test-categ_Cf.c: Regenerated.
68305         * tests/unictype/test-categ_Cn.c: Regenerated.
68306         * tests/unictype/test-categ_L.c: Regenerated.
68307         * tests/unictype/test-categ_Ll.c: Regenerated.
68308         * tests/unictype/test-categ_Lm.c: Regenerated.
68309         * tests/unictype/test-categ_Lo.c: Regenerated.
68310         * tests/unictype/test-categ_Lu.c: Regenerated.
68311         * tests/unictype/test-categ_M.c: Regenerated.
68312         * tests/unictype/test-categ_Mc.c: Regenerated.
68313         * tests/unictype/test-categ_Me.c: Regenerated.
68314         * tests/unictype/test-categ_Mn.c: Regenerated.
68315         * tests/unictype/test-categ_N.c: Regenerated.
68316         * tests/unictype/test-categ_Nd.c: Regenerated.
68317         * tests/unictype/test-categ_Nl.c: Regenerated.
68318         * tests/unictype/test-categ_No.c: Regenerated.
68319         * tests/unictype/test-categ_P.c: Regenerated.
68320         * tests/unictype/test-categ_Pd.c: Regenerated.
68321         * tests/unictype/test-categ_Pe.c: Regenerated.
68322         * tests/unictype/test-categ_Pf.c: Regenerated.
68323         * tests/unictype/test-categ_Pi.c: Regenerated.
68324         * tests/unictype/test-categ_Po.c: Regenerated.
68325         * tests/unictype/test-categ_Ps.c: Regenerated.
68326         * tests/unictype/test-categ_S.c: Regenerated.
68327         * tests/unictype/test-categ_Sk.c: Regenerated.
68328         * tests/unictype/test-categ_Sm.c: Regenerated.
68329         * tests/unictype/test-categ_So.c: Regenerated.
68330         * tests/unictype/test-ctype_alnum.c: Regenerated.
68331         * tests/unictype/test-ctype_alpha.c: Regenerated.
68332         * tests/unictype/test-ctype_graph.c: Regenerated.
68333         * tests/unictype/test-ctype_lower.c: Regenerated.
68334         * tests/unictype/test-ctype_print.c: Regenerated.
68335         * tests/unictype/test-ctype_punct.c: Regenerated.
68336         * tests/unictype/test-ctype_upper.c: Regenerated.
68337         * tests/unictype/test-decdigit.h: Regenerated.
68338         * tests/unictype/test-digit.h: Regenerated.
68339         * tests/unictype/test-numeric.h: Regenerated.
68340         * tests/unictype/test-pr_alphabetic.c: Regenerated.
68341         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
68342         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
68343         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
68344         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
68345         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
68346         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
68347         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
68348         * tests/unictype/test-pr_combining.c: Regenerated.
68349         * tests/unictype/test-pr_dash.c: Regenerated.
68350         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
68351         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
68352         * tests/unictype/test-pr_deprecated.c: Regenerated.
68353         * tests/unictype/test-pr_diacritic.c: Regenerated.
68354         * tests/unictype/test-pr_extender.c: Regenerated.
68355         * tests/unictype/test-pr_format_control.c: Regenerated.
68356         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
68357         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
68358         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
68359         * tests/unictype/test-pr_id_continue.c: Regenerated.
68360         * tests/unictype/test-pr_id_start.c: Regenerated.
68361         * tests/unictype/test-pr_ideographic.c: Regenerated.
68362         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
68363         * tests/unictype/test-pr_lowercase.c: Regenerated.
68364         * tests/unictype/test-pr_math.c: Regenerated.
68365         * tests/unictype/test-pr_numeric.c: Regenerated.
68366         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
68367         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
68368         Regenerated.
68369         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
68370         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
68371         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
68372         * tests/unictype/test-pr_other_math.c: Regenerated.
68373         * tests/unictype/test-pr_punctuation.c: Regenerated.
68374         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
68375         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
68376         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
68377         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
68378         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
68379         * tests/unictype/test-pr_uppercase.c: Regenerated.
68380         * tests/unictype/test-pr_xid_continue.c: Regenerated.
68381         * tests/unictype/test-pr_xid_start.c: Regenerated.
68382         * tests/unictype/test-pr_zero_width.c: Regenerated.
68384         Update to Unicode 5.1.0.
68385         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
68386         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
68387         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
68388         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
68389         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
68390         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
68391         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
68392         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
68393         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
68394         (nonspacing_table_ind): Update.
68395         * tests/uniwidth/test-uc_width2.sh: Update expected result.
68397         Update to Unicode 5.1.0.
68398         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
68399         code transform.
68400         * lib/uniname/uniname.c (unicode_character_name,
68401         unicode_name_character): Add the range 0x1Fxxx to the code transform.
68402         * lib/uniname/uninames.h: Regenerated.
68403         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
68405 2009-02-07  Bruno Haible  <bruno@clisp.org>
68407         Merge gen-ctype and gen-lbrk into a single program.
68408         * lib/gen-uni-tables.c: New file, incorporating
68409         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
68410         Add directory prefixes to the names of the generated files.
68411         * lib/unictype/gen-ctype.c: Remove file.
68412         * lib/unilbrk/gen-lbrk.c: Remove file.
68413         * modules/gen-uni-tables: New file.
68414         * modules/unictype/gen-ctype: Remove file.
68415         * modules/unilbrk/gen-lbrk: Remove file.
68417 2009-02-07  Bruno Haible  <bruno@clisp.org>
68419         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
68421         New module 'unistr/u32-strcoll'.
68422         * modules/unistr/u32-strcoll: New file.
68423         * lib/unistr/u32-strcoll.c: New file.
68425         New module 'unistr/u16-strcoll'.
68426         * modules/unistr/u16-strcoll: New file.
68427         * lib/unistr/u16-strcoll.c: New file.
68429         New module 'unistr/u8-strcoll'.
68430         * modules/unistr/u8-strcoll: New file.
68431         * lib/unistr/u8-strcoll.c: New file.
68432         * lib/unistr/u-strcoll.h: New file.
68434 2009-02-07  Bruno Haible  <bruno@clisp.org>
68436         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
68437         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
68438         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
68439         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
68440         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
68441         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
68443 2009-02-07  Bruno Haible  <bruno@clisp.org>
68445         Make 64-bit clean.
68446         * lib/unictype/gen-ctype.c (output_predicate, output_category,
68447         output_combclass, output_bidi_category, output_decimal_digit,
68448         output_digit, output_numeric, output_mirror, output_scripts,
68449         output_ident_category): Use proper width specifier in format strings.
68451 2009-02-07  Bruno Haible  <bruno@clisp.org>
68453         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
68454         failure behaviour.
68456 2009-02-07  Jim Meyering  <meyering@redhat.com>
68458         regex: avoid compilation failure with upcoming gcc-4.4
68459         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
68460         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
68461         "... error: integer overflow in preprocessor expression".
68463 2009-02-05  Ben Pfaff  <blp@gnu.org>
68465         Fix link errors on Windows when close module is used.
68466         * modules/close: Add $(LIB_CLOSE) to Link section.
68467         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
68468         $(LIB_CLOSE) on Windows.
68470 2009-02-05  Jim Meyering  <meyering@redhat.com>
68472         still avoid unused-parameter warnings, but do it cleanly
68473         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
68474         (get_fs_usage): Cast to void instead.
68475         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
68476         (dev_from_mount_options, read_file_system_list): Cast to void.
68477         Prompted by Bruno Haible.
68479 2009-02-04  Jim Meyering  <meyering@redhat.com>
68481         fsusage.c: correct copyright year
68482         * lib/fsusage.c: Reflect year in which the change is pushed into
68484         avoid misc. warnings
68485         * lib/fsusage.c (UNUSED_PARAM): Define.
68486         (get_fs_usage): Mark parameter "disk" as unused.
68487         * lib/getugroups.c (getgrent): Use "void" in prototype.
68488         * lib/mountlist.c: Mark unused parameters.
68489         (read_file_system_list): Declare a local with "const".
68490         * lib/nanosleep.c (getnow): Declare static.
68491         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
68493         dirfd: set errno upon failure
68494         * lib/dirfd.c: Include <errno.h>.
68495         Set errno to ENOTSUP when returning -1.
68496         * modules/dirfd (Depends-on): Add errno.
68497         Suggested by John Kodis <kodis@comcast.net>.
68499 2009-02-01  Bruno Haible  <bruno@clisp.org>
68501         Don't assume sizeof (long) >= sizeof (void *).
68502         * lib/memcmp.c: Include stdint.h.
68503         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
68504         srcp2 to 'const byte *'.
68505         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
68506         types to uintptr_t.
68507         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
68508         * modules/memcmp (Depends-on): Add stdint.
68509         Reported by Ozkan Sezer <sezeroz@gmail.com>.
68511 2009-01-30  Eric Blake  <ebb9@byu.net>
68513         fix more require-before-expand issues
68514         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
68515         expand, AC_PROG_AWK.
68516         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
68518 2009-01-28  Eric Blake  <ebb9@byu.net>
68520         version-etc: use consistent URL formatting
68521         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
68522         Improve formatting.  Use fputs for string without %.
68524 2009-01-28  Jim Meyering  <meyering@redhat.com>
68526         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
68527         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
68528         "underquoted definition of NAME" from autoconf-2.59.
68530 2009-01-28  Bruno Haible  <bruno@clisp.org>
68532         * doc/gnulib.texi: Add "Obsolete modules" to index.
68534 2009-01-28  Jim Meyering  <meyering@redhat.com>
68536         useless-if-before-free: recognize more variants
68537         * build-aux/useless-if-before-free: Also recognize e.g.,
68538         if (NULL != p) free (p);
68540 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
68542         test-getaddrinfo: skip (don't fail) this test when there's no network
68543         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
68544         on the presumption that it means you lack network access.
68546 2009-01-26  Jim Meyering  <meyering@redhat.com>
68548         fflush: avoid warnings on modern systems
68549         * lib/fflush.c (rpl_fflush): Move declarations of locals,
68550         pos and result, into scopes where they're used.
68552 2009-01-26  Eric Blake  <ebb9@byu.net>
68554         Silence warning reintroduced by recent extensions patch.
68555         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
68556         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
68557         autoconf.
68559         Backport improved autoconf semantics of AC_DEFUN_ONCE.
68560         * m4/00gnulib.m4: New file.
68561         * gnulib-tool (func_get_filelist): Always use it.
68562         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
68563         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
68565 2009-01-25  Bruno Haible  <bruno@clisp.org>
68567         Make test-quotearg work on MacOS X and AIX.
68568         * tests/test-quotearg.sh: New file.
68569         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
68570         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
68571         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
68572         include <libintl.h>.
68573         (fake_locale): Remove variable.
68574         (gettext, dgettext, dcgettext): Remove functions.
68575         (main): Instead of setting a fake locale, set a real locale. Call
68576         textdomain and bindtextdomain.
68577         * modules/quotearg-tests (Files): Add the new files.
68578         (Depends-on): Add gettext, setenv, unsetenv.
68579         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
68580         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
68581         Augment TESTS_ENVIRONMENT.
68583 2009-01-25  Bruno Haible  <bruno@clisp.org>
68585         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
68586         fr_FR.ISO8859-1 locale on MacOS X.
68587         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
68588         ja_JP.eucJP locale on MacOS X.
68589         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
68590         zh_CN.GB18030 locale on MacOS X.
68592 2009-01-25  Bruno Haible  <bruno@clisp.org>
68594         Avoid link errors on MacOS X 10.3.
68595         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
68596         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
68598 2009-01-25  Bruno Haible  <bruno@clisp.org>
68600         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
68601         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
68602         * modules/pipe (Files): Remove m4/posix_spawn.m4.
68603         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
68604         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
68605         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
68606         posix_spawnattr_init, posix_spawnattr_setsigmask,
68607         posix_spawnattr_setflags, posix_spawnattr_destroy.
68609         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
68610         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
68611         * modules/execute (Files): Remove m4/posix_spawn.m4.
68612         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
68613         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
68614         posix_spawnattr_init, posix_spawnattr_setsigmask,
68615         posix_spawnattr_setflags, posix_spawnattr_destroy.
68617 2009-01-25  Bruno Haible  <bruno@clisp.org>
68619         * lib/glthread/threadlib.c: Include <stdlib.h>.
68621 2009-01-25  Bruno Haible  <bruno@clisp.org>
68623         * lib/glthread/threadlib.c (dummy): New declaration.
68625 2009-01-25  Bruno Haible  <bruno@clisp.org>
68627         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
68628         multibyte characters also for the GB18030 encoding. Don't crash when
68629         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
68631 2009-01-25  Bruno Haible  <bruno@clisp.org>
68633         Avoid redefining 'struct random_data' on OSF/1 5.1.
68634         * lib/stdlib.in.h: Include <random.h> if it exists.
68635         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
68636         HAVE_RANDOM_H. Include <random.h> when testing whether
68637         'struct random_data' exists.
68638         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
68640 2009-01-25  Bruno Haible  <bruno@clisp.org>
68642         Don't install charset.alias on MacOS X >= 10.3.
68643         * lib/localcharset.c (DARWIN7): New macro.
68644         (get_charset_aliases): Hardcode the result for Darwin7.
68645         * modules/localcharset (install-exec-local): Don't install
68646         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
68648 2009-01-25  Bruno Haible  <bruno@clisp.org>
68650         Don't install charset.alias on mingw and Cygwin.
68651         * modules/localcharset (install-exec-local): Don't install
68652         charset.alias on mingw and Cygwin, if the file does not yet exist.
68653         The result for these platforms is hardcoded in localcharset.c.
68655 2009-01-25  Bruno Haible  <bruno@clisp.org>
68657         Make it possible again to use AC_GNU_SOURCE together with gnulib.
68658         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
68659         before requiring AC_USE_SYSTEM_EXTENSIONS.
68661 2009-01-25  Jim Meyering  <meyering@redhat.com>
68663         c-strtod: avoid warnings
68664         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
68665         "assignment discards qualifiers from pointer target type" warnings.
68667 2009-01-24  Bruno Haible  <bruno@clisp.org>
68669         Add support for non-UTF-8 locales on MacOS X.
68670         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
68671         canonical encodings. For Darwin 7 and newer, don't map traditional
68672         encodings to UTF-8.
68673         Reported by Vincent Lefevre <vincent@vinc17.org>
68674         at <http://savannah.gnu.org/bugs/?25235>.
68676 2009-01-24  Bruno Haible  <bruno@clisp.org>
68678         * doc/gnulib.texi (Obsolete modules): New section.
68679         Reported by Mike Frysinger <vapier@gentoo.org>.
68681 2009-01-24  Bruno Haible  <bruno@clisp.org>
68683         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
68684         (%.dvi): New rule.
68686 2009-01-24  Bruno Haible  <bruno@clisp.org>
68688         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
68689         Reported by Eric Blake.
68691 2009-01-24  Bruno Haible  <bruno@clisp.org>
68693         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
68694         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
68695         Reported by Gary V. Vaughan <gary@gnu.org>.
68697 2009-01-24  Bruno Haible  <bruno@clisp.org>
68699         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
68701 2009-01-23  Bruno Haible  <bruno@clisp.org>
68703         Make c-strtod, c-strtold usable in libraries.
68704         * lib/c-strtod.c: Include string.h instead of xalloc.h.
68705         (C_STRTOD): Call strdup instead of xstrdup.
68706         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
68707         * modules/c-strtold (Depends-on): Likewise.
68708         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
68709         * NEWS: Mention the change.
68710         Reported by Michael Gold <mgold@ncf.ca>.
68712 2009-01-23  Jim Meyering  <meyering@redhat.com>
68714         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
68715         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
68716         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
68718 2009-01-23  Simon Josefsson  <simon@josefsson.org>
68720         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
68721         GNU CoreUtils.
68722         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
68723         * modules/version-etc (Description): Update.
68725 2009-01-22  Bruno Haible  <bruno@clisp.org>
68727         Cache the C locale object.
68728         * lib/c-strtod.c (c_locale_cache): New variable.
68729         (c_locale): New function.
68730         (C_STRTOD): Use it, and don't call freelocale.
68731         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
68732         Suggested by Paolo Bonzini.
68734 2009-01-21  Bruno Haible  <bruno@clisp.org>
68736         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
68737         conditions other than overflow.
68739 2009-01-21  Bruno Haible  <bruno@clisp.org>
68741         * lib/c-strtod.c: Include errno.h.
68742         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
68743         value from STRTOD_L and STRTOD.
68745 2009-01-21  Bruno Haible  <bruno@clisp.org>
68746         and Jim Meyering  <meyering@redhat.com>
68748         nanosleep: skip configure test (fail it) for apple universal builds
68749         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
68750         universal builds, assume that nanosleep does not work.
68751         * modules/nanosleep (Depends-on): Add multiarch.
68753         mktime: skip configure test (fail it) for apple universal builds
68754         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
68755         universal builds, assume that mktime does not work.
68756         * modules/mktime (Depends-on): Add multiarch.
68758 2009-01-21  Eric Blake  <ebb9@byu.net>
68760         multiarch: avoid expand-before-require warning
68761         * modules/multiarch (configure.ac): Require, rather than expand,
68762         gl_MULTIARCH.
68763         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
68764         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
68765         enforce that all clients require it.  Partial reversion of
68766         2008-12-29 patch.
68768         error: avoid expand-before-require warning
68769         * modules/errno (configure.ac): Require, rather than expand,
68770         gl_HEADER_ERRNO_H.
68771         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
68772         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
68773         enforce that all clients require it.
68775         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
68776         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
68777         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
68778         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
68780 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
68782         Revert:
68783         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
68785         regex: do not depend on obsolete modules.
68786         * modules/regex: Remove memcmp and memmove.
68788 2009-01-20  Bruno Haible  <bruno@clisp.org>
68790         Make the 'link' module link on Windows NT 4.
68791         * lib/link.c (_WIN32_WINNT): Don't define.
68792         (CreateHardLinkFuncType): New type.
68793         (CreateHardLinkFunc, initialized): New variables.
68794         (initialize): New function.
68795         (link): Invoke CreateHardLink indirectly through the function pointer.
68797 2009-01-20  Bruno Haible  <bruno@clisp.org>
68799         Fix compilation failure on mingw.
68800         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
68802 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
68804         * doc/c-strtod.texi: Mention a couple of restrictions.
68806 2009-01-20  Jim Meyering  <meyering@redhat.com>
68808         gettimeofday: move more declarations out of functions
68809         * lib/gettimeofday.c: Move extern declarations of tzset and
68810         gmtime out of containing functions.  Prompted by Bruno Haible.
68812 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
68814         regex: do not depend on obsolete modules.
68815         * modules/regex: Remove memcmp and memmove.
68817 2009-01-19  Bruno Haible  <bruno@clisp.org>
68819         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
68820         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
68821         gl_BIGENDIAN, not AC_C_BIGENDIAN.
68822         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
68823         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
68825 2009-01-19  Bruno Haible  <bruno@clisp.org>
68827         * tests/test-link.c: Include <errno.h>.
68828         (main): Exit with code 77 when a hard link cannot be created due to
68829         the file system.
68830         * tests/test-link.sh: Skip test when a hard link cannot be created due
68831         to the file system.
68832         Suggested by Eric Blake.
68834 2009-01-19  Martin Lambers  <marlam@marlam.de>
68836         * modules/link-tests: New file.
68837         * tests/test-link.sh: New file.
68838         * tests/test-link.c: New file.
68840 2009-01-19  Eric Blake  <ebb9@byu.net>
68842         doc: mention another function added in cygwin 1.7.0
68843         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
68844         Another new function in cygwin 1.7.
68846 2009-01-19  Bruno Haible  <bruno@clisp.org>
68848         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
68849         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
68850         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
68851         gl_BIGENDIAN, not AC_C_BIGENDIAN.
68852         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
68853         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
68854         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
68855         * m4/md4.m4 (gl_MD4): Likewise.
68856         * m4/md5.m4 (gl_MD5): Likewise.
68857         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
68858         * m4/sha1.m4 (gl_SHA1): Likewise.
68859         * m4/sha256.m4 (gl_SHA256): Likewise.
68860         * m4/sha512.m4 (gl_SHA512): Likewise.
68862 2009-01-19  Bruno Haible  <bruno@clisp.org>
68864         * modules/uniname/uniname-tests (Depends-on): Add progname.
68865         * tests/uniname/test-uninames.c: Include progname.h.
68866         (main): Call set_program_name.
68868         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
68869         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
68870         (main): Call set_program_name.
68872         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
68873         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
68874         (main): Call set_program_name.
68876         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
68877         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
68878         (main): Call set_program_name.
68880         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
68881         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
68882         (main): Call set_program_name.
68884         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
68885         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
68886         (main): Call set_program_name.
68888         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
68889         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
68890         (main): Call set_program_name.
68892         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
68893         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
68894         (main): Call set_program_name.
68896         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
68897         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
68898         (main): Call set_program_name.
68900 2009-01-19  Eric Blake  <ebb9@byu.net>
68902         test-unistd: test previous patch
68903         * tests/test-unistd.c: Test *_FILENO macros.
68905         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
68906         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
68907         Guarantee a definition.
68908         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
68909         * modules/unistd-safer (Depends-on): Add dependency on unistd.
68910         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
68911         * lib/dup-safer.c (STDERR_FILENO): Likewise.
68912         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
68913         Likewise.
68914         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
68915         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
68916         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
68917         Likewise.
68918         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
68919         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
68920         (STDERR_FILENO): Likewise.
68921         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
68922         (STDERR_FILENO): Likewise.
68923         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
68924         (STDERR_FILENO): Likewise.
68925         Reported by Elbert Pol.
68927 2009-01-19  Eric Blake  <ebb9@byu.net>
68929         doc: mention more functions added in cygwin 1.7.0
68930         * doc/posix-functions/abort.texi (abort): Update wording related
68931         to cygwin.
68932         * doc/posix-functions/daylight.texi (daylight): Likewise.
68933         * doc/posix-functions/optarg.texi (optarg): Likewise.
68934         * doc/posix-functions/optarg.texi (opterr): Likewise.
68935         * doc/posix-functions/optarg.texi (optind): Likewise.
68936         * doc/posix-functions/optarg.texi (optopt): Likewise.
68937         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
68938         worked in 1.5.x, and was withdrawn in 1.7.
68939         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
68940         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
68941         cygwin versions.
68942         * doc/posix-functions/perror.texi (perror): Likewise.
68943         * doc/posix-functions/printf.texi (printf): Likewise.
68944         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
68945         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
68946         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
68947         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
68948         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
68949         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
68950         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
68951         Likewise.
68952         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
68953         Likewise.
68954         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
68955         this function.
68956         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
68957         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
68958         Likewise.
68959         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
68960         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
68961         * doc/posix-functions/confstr.texi (confstr): Likewise.
68962         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
68963         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
68964         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
68965         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
68966         * doc/posix-functions/fputws.texi (fputws): Likewise.
68967         * doc/posix-functions/fwide.texi (fwide): Likewise.
68968         * doc/posix-functions/getwc.texi (getwc): Likewise.
68969         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
68970         * doc/posix-functions/putwc.texi (putwc): Likewise.
68971         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
68972         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
68973         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
68974         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
68975         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
68976         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
68977         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
68978         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
68979         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
68980         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
68981         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
68983 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
68985         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
68986         * lib/ioctl.c: Include <sys/ioctl.h>.
68988 2009-01-19  Simon Josefsson  <simon@josefsson.org>
68990         * modules/getdate-tests (Depends-on): Add progname.
68991         * tests/test-getdate.c: Use progname module, to avoid link errors
68992         on non-glibc systems.
68994 2009-01-18  Simon Josefsson  <simon@josefsson.org>
68996         * modules/filenamecat-tests (Depends-on): Add progname.
68997         * modules/fstrcmp-tests (Depends-on): Likewise.
68999         * tests/test-filenamecat.c: Use progname module, to avoid link
69000         errors on non-glibc systems.
69001         * tests/test-fstrcmp.c: Likewise.
69003 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
69005         gettimeofday: avoid warning: nested extern declaration of 'localtime'
69006         * lib/gettimeofday.c: Move extern declaration out of function.
69008 2009-01-18  Bruno Haible  <bruno@clisp.org>
69010         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
69011         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
69012         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
69014 2009-01-18  Bruno Haible  <bruno@clisp.org>
69016         * lib/strftime.c (MEMPCPY): Remove unused macro.
69017         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
69019 2009-01-18  Martin Lambers  <marlam@marlam.de>
69021         New module 'link'.
69022         * lib/unistd.in.h (link): New declaration.
69023         * lib/link.c: New file.
69024         * m4/link.m4: New file.
69025         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
69026         HAVE_LINK.
69027         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
69028         * modules/link: New file.
69029         * doc/posix-functions/link.texi: Mention the new module.
69031 2009-01-18  Bruno Haible  <bruno@clisp.org>
69033         * tests/test-avltree_list.c (main): Call set_program_name.
69034         * tests/test-avltree_oset.c (main): Likewise.
69035         * tests/test-obstack-printf.c: Include progname.h.
69036         (main): Call set_program_name.
69037         * tests/test-quotearg.c: Include progname.h.
69038         (main): Call set_program_name.
69039         * tests/test-xmemdup0.c: Include progname.h.
69040         (main): Call set_program_name.
69042 2009-01-18  Bruno Haible  <bruno@clisp.org>
69044         New module 'alphasort'.
69045         * lib/dirent.in.h (alphasort): New declaration.
69046         * lib/alphasort.c: New file, from glibc with modifications.
69047         * m4/alphasort.m4: New file.
69048         * modules/alphasort: New file.
69049         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
69050         HAVE_ALPHASORT.
69051         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
69052         HAVE_ALPHASORT.
69053         * doc/posix-functions/alphasort.texi: Mention the new module and the
69054         portability problems.
69056 2009-01-18  Bruno Haible  <bruno@clisp.org>
69058         New module 'scandir'.
69059         * lib/dirent.in.h (scandir): New declaration.
69060         * lib/scandir.c: New file, from glibc with modifications.
69061         * m4/scandir.m4: New file.
69062         * modules/scandir: New file.
69063         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
69064         HAVE_SCANDIR.
69065         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
69066         HAVE_SCANDIR.
69067         * doc/posix-functions/scandir.texi: Mention the new module and the
69068         portability problems.
69070 2009-01-17  Bruno Haible  <bruno@clisp.org>
69072         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
69073         Update documentation.
69074         (func_remove_suffix): Escape all dots in the suffix. Update
69075         documentation.
69076         (func_filter_filelist): Update documentation.
69077         Reported by Ralf Wildenhues.
69079 2009-01-17  Bruno Haible  <bruno@clisp.org>
69081         * modules/dprintf-posix-tests: New file.
69082         * tests/test-dprintf-posix.sh: New file.
69083         * tests/test-dprintf-posix.c: New file.
69085         New modules 'dprintf', 'dprintf-posix'.
69086         * lib/stdio.in.h (dprintf): New declaration.
69087         * lib/dprintf.c: New file.
69088         * m4/dprintf.m4: New file.
69089         * m4/dprintf-posix.m4: New file.
69090         * modules/dprintf: New file.
69091         * modules/dprintf-posix: New file.
69092         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
69093         HAVE_DPRINTF, REPLACE_DPRINTF.
69094         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
69095         HAVE_DPRINTF, REPLACE_DPRINTF.
69096         * doc/posix-functions/dprintf.texi: Mention the new modules.
69098 2009-01-17  Bruno Haible  <bruno@clisp.org>
69100         * modules/vdprintf-posix-tests: New file.
69101         * tests/test-vdprintf-posix.sh: New file.
69102         * tests/test-vdprintf-posix.c: New file.
69104         New modules 'vdprintf', 'vdprintf-posix'.
69105         * lib/stdio.in.h (vdprintf): New declaration.
69106         * lib/vdprintf.c: New file.
69107         * m4/vdprintf.m4: New file.
69108         * m4/vdprintf-posix.m4: New file.
69109         * modules/vdprintf: New file.
69110         * modules/vdprintf-posix: New file.
69111         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
69112         HAVE_VDPRINTF, REPLACE_VDPRINTF.
69113         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
69114         HAVE_VDPRINTF, REPLACE_VDPRINTF.
69115         * doc/posix-functions/vdprintf.texi: Mention the new modules.
69117 2009-01-17  Bruno Haible  <bruno@clisp.org>
69119         Fix replacement of fopen on mingw.
69120         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
69121         mingw.
69123 2009-01-17  Bruno Haible  <bruno@clisp.org>
69125         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
69126         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
69128 2009-01-17  Bruno Haible  <bruno@clisp.org>
69130         Avoid test-fflush2.sh failure on mingw.
69131         * tests/test-fflush2.c: Include binary-io.h.
69132         (main): Put standard input into binary mode.
69133         * modules/fflush-tests (Depends-on): Add binary-io.
69135 2009-01-17  Bruno Haible  <bruno@clisp.org>
69137         * lib/wchar.in.h: In another particular situation, include only the
69138         system's <wchar.h> file.
69139         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
69140         Reported by Albert Chin-A-Young <china@thewrittenword.com>
69141         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
69143 2009-01-17  Bruno Haible  <bruno@clisp.org>
69145         Support for stripping executables in --enable-relocatable.
69146         * build-aux/install-reloc: Expect one more argument, or an environment
69147         variable RELOC_STRIP_PROG. If set, strip the destination program and
69148         its wrapper.
69149         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
69150         RELOC_STRIP_PROG.
69151         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
69152         to set RELOCATABLE_STRIP.
69153         * NEWS: Mention the new Makefile requirement.
69155 2009-01-17  Bruno Haible  <bruno@clisp.org>
69157         * build-aux/install-reloc: Remove debugging information left over by
69158         C compiler on MacOS X.
69160 2009-01-17  Bruno Haible  <bruno@clisp.org>
69162         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
69163         * lib/progreloc.c (find_executable): Fix type of pointer passed to
69164         _NSGetExecutablePath.
69166 2009-01-16  Jim Meyering  <meyering@redhat.com>
69168         strerror: avoid warnings about discarding "const"
69169         * lib/strerror.c (rpl_strerror): Instead of returning a const
69170         string from each and every "case", use a variable, and add a single
69171         cast after the switch.
69173 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
69175         * lib/arpa_inet.in.h: Add extern "C" block for C++.
69177 2009-01-16  Bruno Haible  <bruno@clisp.org>
69179         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
69180         array initializer syntax that also works in C++ mode.
69181         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
69183 2009-01-16  Jim Meyering  <meyering@redhat.com>
69185         poll: suppress a warning
69186         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
69187         to ignore "...unsigned expression < 0 is always false" warnings.
69189 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
69191         poll: remove declarations of unused variables
69192         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
69193         sockbuf and optlen.
69195 2009-01-15  Bruno Haible  <bruno@clisp.org>
69197         Make fflush-after-ungetc POSIX compliant on BSD systems.
69198         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
69199         (clear_ungetc_buffer): Implement also for other systems.
69200         (rpl_fflush): On glibc systems, invoke
69201         clear_ungetc_buffer_preserving_position. Otherwise, invoke
69202         clear_ungetc_buffer after fetching the stream's position, not before.
69204 2009-01-15  Bruno Haible  <bruno@clisp.org>
69206         Make fflush-after-ungetc POSIX compliant on glibc systems.
69207         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
69208         after ungetc.
69209         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
69210         (rpl_fflush): On glibc systems, simply call the system's fflush
69211         function after clearing the ungetc buffer.
69212         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
69213         Instead, lseek only to the end of file, then use the system's fseeko
69214         for the rest. On glibc systems, reset the EOF indicator bit.
69216 2009-01-15  Jim Meyering  <meyering@redhat.com>
69218         openmp.m4: revert quote-adding change, for portability to older autoconf
69219         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
69220         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
69221         Simon Josefsson noticed the problem when using autoconf-2.61.
69223 2009-01-15  Bruno Haible  <bruno@clisp.org>
69225         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
69226         * tests/test-fflush2.c (ASSERT): Always fail.
69227         (main): Add two tests for fflush() after ungetc(), taking into account
69228         the Austin Group's clarification.
69229         Suggested by Eric Blake.
69231 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
69233         mktime.m4: remove K&R-style function prototypes
69234         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
69235         for the Sun C++ compiler.
69237 2009-01-14  Bruno Haible  <bruno@clisp.org>
69239         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
69240         while including <wchar.h>.
69241         * lib/wchar.in.h: In two particular situations on HP-UX, include only
69242         the system's <wchar.h> file.
69243         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
69245 2009-01-14  Bruno Haible  <bruno@clisp.org>
69247         * m4/csharp.m4: Don't mention gettext on the serial number line.
69248         * m4/csharpexec.m4: Likewise.
69249         * m4/eaccess.m4: Likewise.
69250         * m4/javaexec.m4: Likewise.
69251         * m4/sig_atomic_t.m4: Likewise.
69252         * m4/tmpdir.m4: Likewise.
69253         * m4/intldir.m4: Bump gettext version.
69254         * m4/lib-ld.m4: Likewise.
69256 2009-01-14  Bruno Haible  <bruno@clisp.org>
69258         * lib/progname.c (set_program_name): Add more comments.
69259         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
69261 2009-01-14  Simon Josefsson  <simon@josefsson.org>
69263         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
69264         were sys/stat.h does not define it.
69266 2009-01-14  Jim Meyering  <meyering@redhat.com>
69268         many *.m4 files: improve m4 quoting
69269         99% of this change was performed by running the following commands:
69270         git ls-files | grep '\.m4$' | xargs perl -pi \
69271           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
69272           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
69273           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
69274           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
69275         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
69276         The remainder were to add Copyright dates, increment serial numbers,
69277         undo some changes in comments, exclude m4/intl.m4, and add quotes
69278         around the "1" in ",1" where the unusual spacing prohibited the
69279         above regexps from doing the job.  For more details, see
69280         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
69281         * m4/acl.m4: Modified.
69282         * m4/afs.m4: Likewise.
69283         * m4/alloca.m4: Likewise.
69284         * m4/argp.m4: Likewise.
69285         * m4/argz.m4: Likewise.
69286         * m4/atexit.m4: Likewise.
69287         * m4/bison-i18n.m4: Likewise.
69288         * m4/bison.m4: Likewise.
69289         * m4/byteswap.m4: Likewise.
69290         * m4/c-stack.m4: Likewise.
69291         * m4/c-strtod.m4: Likewise.
69292         * m4/calloc.m4: Likewise.
69293         * m4/canonicalize-lgpl.m4: Likewise.
69294         * m4/chown.m4: Likewise.
69295         * m4/clock_time.m4: Likewise.
69296         * m4/codeset.m4: Likewise.
69297         * m4/copy-file.m4: Likewise.
69298         * m4/csharp.m4: Likewise.
69299         * m4/csharpcomp.m4: Likewise.
69300         * m4/csharpexec.m4: Likewise.
69301         * m4/d-ino.m4: Likewise.
69302         * m4/d-type.m4: Likewise.
69303         * m4/dirfd.m4: Likewise.
69304         * m4/double-slash-root.m4: Likewise.
69305         * m4/eaccess.m4: Likewise.
69306         * m4/eealloc.m4: Likewise.
69307         * m4/environ.m4: Likewise.
69308         * m4/errno_h.m4: Likewise.
69309         * m4/euidaccess.m4: Likewise.
69310         * m4/execute.m4: Likewise.
69311         * m4/fatal-signal.m4: Likewise.
69312         * m4/fchdir.m4: Likewise.
69313         * m4/fcntl_h.m4: Likewise.
69314         * m4/fileblocks.m4: Likewise.
69315         * m4/filenamecat.m4: Likewise.
69316         * m4/findprog.m4: Likewise.
69317         * m4/flexmember.m4: Likewise.
69318         * m4/fnmatch.m4: Likewise.
69319         * m4/fopen.m4: Likewise.
69320         * m4/fpending.m4: Likewise.
69321         * m4/fprintf-posix.m4: Likewise.
69322         * m4/free.m4: Likewise.
69323         * m4/frexp.m4: Likewise.
69324         * m4/frexpl.m4: Likewise.
69325         * m4/fsusage.m4: Likewise.
69326         * m4/ftruncate.m4: Likewise.
69327         * m4/gc-camellia.m4: Likewise.
69328         * m4/gc-random.m4: Likewise.
69329         * m4/gc.m4: Likewise.
69330         * m4/getaddrinfo.m4: Likewise.
69331         * m4/getcwd-abort-bug.m4: Likewise.
69332         * m4/getcwd-path-max.m4: Likewise.
69333         * m4/getdate.m4: Likewise.
69334         * m4/getdomainname.m4: Likewise.
69335         * m4/getgroups.m4: Likewise.
69336         * m4/gethostname.m4: Likewise.
69337         * m4/gethrxtime.m4: Likewise.
69338         * m4/getline.m4: Likewise.
69339         * m4/getloadavg.m4: Likewise.
69340         * m4/getndelim2.m4: Likewise.
69341         * m4/getpass.m4: Likewise.
69342         * m4/gettext.m4: Likewise.
69343         * m4/gettime.m4: Likewise.
69344         * m4/gettimeofday.m4: Likewise.
69345         * m4/gnulib-common.m4: Likewise.
69346         * m4/group-member.m4: Likewise.
69347         * m4/host-os.m4: Likewise.
69348         * m4/iconv.m4: Likewise.
69349         * m4/iconv_open.m4: Likewise.
69350         * m4/inet_ntop.m4: Likewise.
69351         * m4/inet_pton.m4: Likewise.
69352         * m4/inline.m4: Likewise.
69353         * m4/intldir.m4: Likewise.
69354         * m4/intlmacosx.m4: Likewise.
69355         * m4/intmax.m4: Likewise.
69356         * m4/intmax_t.m4: Likewise.
69357         * m4/inttypes.m4: Likewise.
69358         * m4/inttypes_h.m4: Likewise.
69359         * m4/inttypes-pri.m4: Likewise.
69360         * m4/isapipe.m4: Likewise.
69361         * m4/isnand.m4: Likewise.
69362         * m4/isnanf.m4: Likewise.
69363         * m4/isnanl.m4: Likewise.
69364         * m4/javacomp.m4: Likewise.
69365         * m4/javaexec.m4: Likewise.
69366         * m4/jm-winsz1.m4: Likewise.
69367         * m4/jm-winsz2.m4: Likewise.
69368         * m4/lchown.m4: Likewise.
69369         * m4/lcmessage.m4: Likewise.
69370         * m4/ldexpl.m4: Likewise.
69371         * m4/lib-ld.m4: Likewise.
69372         * m4/lib-link.m4: Likewise.
69373         * m4/libsigsegv.m4: Likewise.
69374         * m4/link-follow.m4: Likewise.
69375         * m4/localcharset.m4: Likewise.
69376         * m4/locale-fr.m4: Likewise.
69377         * m4/locale-ja.m4: Likewise.
69378         * m4/locale-tr.m4: Likewise.
69379         * m4/locale-zh.m4: Likewise.
69380         * m4/lock.m4: Likewise.
69381         * m4/longlong.m4: Likewise.
69382         * m4/ls-mntd-fs.m4: Likewise.
69383         * m4/lstat.m4: Likewise.
69384         * m4/malloc.m4: Likewise.
69385         * m4/mathl.m4: Likewise.
69386         * m4/mbrtowc.m4: Likewise.
69387         * m4/mbstate_t.m4: Likewise.
69388         * m4/mbswidth.m4: Likewise.
69389         * m4/memchr.m4: Likewise.
69390         * m4/memcmp.m4: Likewise.
69391         * m4/memcpy.m4: Likewise.
69392         * m4/memmem.m4: Likewise.
69393         * m4/memmove.m4: Likewise.
69394         * m4/mempcpy.m4: Likewise.
69395         * m4/memrchr.m4: Likewise.
69396         * m4/memset.m4: Likewise.
69397         * m4/minmax.m4: Likewise.
69398         * m4/mkdir-slash.m4: Likewise.
69399         * m4/mkdtemp.m4: Likewise.
69400         * m4/mktime.m4: Likewise.
69401         * m4/mmap-anon.m4: Likewise.
69402         * m4/mountlist.m4: Likewise.
69403         * m4/nanosleep.m4: Likewise.
69404         * m4/nls.m4: Likewise.
69405         * m4/nocrash.m4: Likewise.
69406         * m4/open.m4: Likewise.
69407         * m4/openat.m4: Likewise.
69408         * m4/openmp.m4: Likewise.
69409         * m4/pathmax.m4: Likewise.
69410         * m4/perl.m4: Likewise.
69411         * m4/physmem.m4: Likewise.
69412         * m4/pipe.m4: Likewise.
69413         * m4/po.m4: Likewise.
69414         * m4/poll.m4: Likewise.
69415         * m4/posixtm.m4: Likewise.
69416         * m4/posixver.m4: Likewise.
69417         * m4/printf-frexp.m4: Likewise.
69418         * m4/printf-frexpl.m4: Likewise.
69419         * m4/printf-posix.m4: Likewise.
69420         * m4/printf-posix-rpl.m4: Likewise.
69421         * m4/printf.m4: Likewise.
69422         * m4/progtest.m4: Likewise.
69423         * m4/putenv.m4: Likewise.
69424         * m4/readline.m4: Likewise.
69425         * m4/readlink.m4: Likewise.
69426         * m4/readutmp.m4: Likewise.
69427         * m4/realloc.m4: Likewise.
69428         * m4/regex.m4: Likewise.
69429         * m4/relocatable.m4: Likewise.
69430         * m4/relocatable-lib.m4: Likewise.
69431         * m4/rename-dest-slash.m4: Likewise.
69432         * m4/rename.m4: Likewise.
69433         * m4/rmdir-errno.m4: Likewise.
69434         * m4/rmdir.m4: Likewise.
69435         * m4/roundf.m4: Likewise.
69436         * m4/roundl.m4: Likewise.
69437         * m4/rpmatch.m4: Likewise.
69438         * m4/save-cwd.m4: Likewise.
69439         * m4/selinux-selinux-h.m4: Likewise.
69440         * m4/setenv.m4: Likewise.
69441         * m4/settime.m4: Likewise.
69442         * m4/sig2str.m4: Likewise.
69443         * m4/sig_atomic_t.m4: Likewise.
69444         * m4/signalblocking.m4: Likewise.
69445         * m4/signbit.m4: Likewise.
69446         * m4/sigpipe.m4: Likewise.
69447         * m4/sockets.m4: Likewise.
69448         * m4/sockpfaf.m4: Likewise.
69449         * m4/st_dm_mode.m4: Likewise.
69450         * m4/stat-time.m4: Likewise.
69451         * m4/stdbool.m4: Likewise.
69452         * m4/stdint.m4: Likewise.
69453         * m4/stdint_h.m4: Likewise.
69454         * m4/stpcpy.m4: Likewise.
69455         * m4/stpncpy.m4: Likewise.
69456         * m4/strcase.m4: Likewise.
69457         * m4/strchrnul.m4: Likewise.
69458         * m4/strcspn.m4: Likewise.
69459         * m4/strdup.m4: Likewise.
69460         * m4/strftime.m4: Likewise.
69461         * m4/strndup.m4: Likewise.
69462         * m4/strnlen.m4: Likewise.
69463         * m4/strpbrk.m4: Likewise.
69464         * m4/strptime.m4: Likewise.
69465         * m4/strsep.m4: Likewise.
69466         * m4/strtod.m4: Likewise.
69467         * m4/strtoimax.m4: Likewise.
69468         * m4/strtok_r.m4: Likewise.
69469         * m4/strtol.m4: Likewise.
69470         * m4/strtoll.m4: Likewise.
69471         * m4/strtoul.m4: Likewise.
69472         * m4/strtoull.m4: Likewise.
69473         * m4/strtoumax.m4: Likewise.
69474         * m4/strverscmp.m4: Likewise.
69475         * m4/threadlib.m4: Likewise.
69476         * m4/timegm.m4: Likewise.
69477         * m4/tm_gmtoff.m4: Likewise.
69478         * m4/tmpdir.m4: Likewise.
69479         * m4/tmpfile.m4: Likewise.
69480         * m4/tzset.m4: Likewise.
69481         * m4/uintmax_t.m4: Likewise.
69482         * m4/unlinkdir.m4: Likewise.
69483         * m4/unlocked-io.m4: Likewise.
69484         * m4/uptime.m4: Likewise.
69485         * m4/userspec.m4: Likewise.
69486         * m4/utimbuf.m4: Likewise.
69487         * m4/utime.m4: Likewise.
69488         * m4/utimes-null.m4: Likewise.
69489         * m4/utimes.m4: Likewise.
69490         * m4/vararrays.m4: Likewise.
69491         * m4/vasnprintf.m4: Likewise.
69492         * m4/vfprintf-posix.m4: Likewise.
69493         * m4/vprintf-posix.m4: Likewise.
69494         * m4/wait-process.m4: Likewise.
69495         * m4/wchar_t.m4: Likewise.
69496         * m4/wint_t.m4: Likewise.
69497         * m4/write-any-file.m4: Likewise.
69498         * m4/yield.m4: Likewise.
69500 2009-01-13  Bruno Haible  <bruno@clisp.org>
69502         Avoid test-copy-file.sh failures when ACL support insufficient.
69503         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
69504         TESTS_ENVIRONMENT.
69505         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
69506         Reported by Jim Meyering.
69508 2009-01-13  Bruno Haible  <bruno@clisp.org>
69510         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
69511         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
69512         * modules/unistdio/u8-printf-parse (Files): Likewise.
69513         * modules/unistdio/u32-printf-parse (Files): Likewise.
69514         * modules/unistdio/ulc-printf-parse (Files): Likewise.
69516 2009-01-13  Simon Josefsson  <simon@josefsson.org>
69518         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
69519         and m4/inttypes_h.m4 too.
69521 2009-01-12  Eric Blake  <ebb9@byu.net>
69523         tests: IRIX 6.2 cc can't compile -0.0 into .data
69524         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
69525         rather than at compile-time.
69526         * tests/test-floorl.c (minus_zero): Likewise.
69527         * tests/test-frexpl.c (minus_zero): Likewise.
69528         * tests/test-isnan.c (minus_zerol): Likewise.
69529         * tests/test-isnanl.h (minus_zero): Likewise.
69530         * tests/test-ldexpl.c (minus_zero): Likewise.
69531         * tests/test-roundl.c (minus_zero): Likewise.
69532         * tests/test-signbit.c (minus_zerol): Likewise.
69533         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
69534         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
69535         * tests/test-truncl.c (minus_zero): Likewise.
69536         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
69537         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
69538         Reported by Tom G. Christensen and Nelson H. F. Beebe.
69540 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
69542         regex: fix glibc bug 9697
69543         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
69544         handling.
69546 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
69548         regex: fix glibc bug 697
69549         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
69550         being NULL also if there are no backreferences.
69552 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
69554         regex: merge glibc changes
69555         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
69556         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
69557         re_string_skip_chars, re_string_reconstruct): Likewise.
69558         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
69560 2009-01-07  Jim Meyering  <meyering@redhat.com>
69562         poll: filter through cppi
69563         * lib/poll.c: Indent cpp directives to reflect nesting.
69565 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
69567         poll: don't return uninitialized
69568         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
69570 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
69572         avoid compile failure on AIX 6.1
69573         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
69574         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
69576 2009-01-04  Jim Meyering  <meyering@redhat.com>
69578         remove duplicate inclusion of <stdio.h>
69579         * tests/test-fprintf-posix.c: Likewise.
69580         * tests/test-printf-posix.c: Likewise.
69581         * tests/test-snprintf-posix.c: Likewise.
69582         * tests/test-sprintf-posix.c: Likewise.
69583         * tests/test-vasprintf-posix.c: Likewise.
69584         * tests/test-vfprintf-posix.c: Likewise.
69585         * tests/test-vprintf-posix.c: Likewise.
69586         * tests/test-vsnprintf-posix.c: Likewise.
69587         * tests/test-vsprintf-posix.c: Likewise.
69589 2009-01-03  Jim Meyering  <meyering@redhat.com>
69591         gnulib-tool: fix sed-based filtering
69592         * gnulib-tool (func_filter_filelist): Remove extra backslash
69593         in sed_fff_filter definition.
69595 2009-01-02  Jim Meyering  <meyering@redhat.com>
69597         strftime: avoid compilation failure on Solaris 2.6
69598         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
69599         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
69600         Don't #define mbrlen or mbsinit, since now they're guaranteed to
69601         be available.  Reported by Tom G. Christensen.  Details in
69602         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
69604 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69605             Bruno Haible  <bruno@clisp.org>
69607         Speed up gnulib-tool by doing more string processing through shell
69608         built-ins.
69609         * gnulib-tool (fast_func_append): New variable.
69610         (func_remove_prefix, func_remove_suffix): New functions.
69611         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
69612         (func_filter_filelist): New function.
69613         (func_get_dependencies): Use func_remove_suffix instead of sed.
69614         (func_get_automake_snippet): Use func_filter_filelist instead of a
69615         subshell and sed invocation.
69617 2009-01-01  Bruno Haible  <bruno@clisp.org>
69619         Fix a security bug.
69620         * gnulib-tool (func_import, import, update): Don't allow the characters
69621         '"', '$', '`', '\' in macro arguments that become part of commands that
69622         are evaluated.
69624 2009-01-01  Bruno Haible  <bruno@clisp.org>
69626         * gnulib-tool (func_reset_sigpipe): Add more comments.
69628 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69630         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
69631         func_emit_tests_Makefile_am, func_import): Abort loops early if we
69632         already know the answer.
69634 2009-01-01  Jim Meyering  <meyering@redhat.com>
69636         * lib/version-etc.c (version_etc_va): Update copyright year.
69638 2008-12-30  Bruno Haible  <bruno@clisp.org>
69640         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
69641         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
69642         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
69644 2008-12-29  Eric Blake  <ebb9@byu.net>
69646         multiarch: avoid autoconf AC_REQUIRE bug
69647         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
69648         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
69649         2.63 and older.
69650         Reported by Bruno Haible, and analyzed in
69651         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
69653 2008-12-29  Bruno Haible  <bruno@clisp.org>
69655         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
69656         files in subdirectories correctly.
69657         Reported by Ralf Wildenhues.
69659 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69661         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
69662         rather than 'join FILE -', for Solaris join.
69664 2008-12-29  Bruno Haible  <bruno@clisp.org>
69666         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
69667         quoting.
69668         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
69669         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
69670         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
69671         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
69672         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
69673         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
69674         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
69675         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
69676         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
69677         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
69678         * m4/nls.m4 (AM_NLS): Likewise.
69679         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
69680         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
69681         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
69682         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
69683         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
69684         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
69685         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
69686         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
69687         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
69688         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
69689         * m4/xsize.m4 (gl_XSIZE): Likewise.
69690         Suggested by Jim Meyering.
69692 2008-11-17  Bruce Korb  <bkorb@gnu.org>
69694         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
69695         * lib/parse-duration.c: use a switch instead of cascading if's.
69697 2008-12-29  Eric Blake  <ebb9@byu.net>
69699         wchar.h: supply WEOF on Irix 5.3
69700         * lib/wchar.in.h (wint_t): Also supply WEOF.
69701         * lib/wctype.in.h (wint_t): Likewise.
69702         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
69703         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
69704         Reported by Tom G. Christensen.
69706 2008-12-26  Bruno Haible  <bruno@clisp.org>
69708         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
69709         i486, i586, i686.
69711 2008-12-26  Bruno Haible  <bruno@clisp.org>
69713         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
69715 2008-12-26  Bruno Haible  <bruno@clisp.org>
69717         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
69718         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
69719         not __STDC_CONSTANT_MACROS.
69720         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
69722 2008-12-25  Bruno Haible  <bruno@clisp.org>
69724         Add support for universal builds to vasnprintf.
69725         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
69726         universal builds, guess no.
69727         * modules/vasnprintf-posix (Depends-on): Add multiarch.
69728         * modules/vasprintf-posix (Depends-on): Likewise.
69729         * modules/fprintf-posix (Depends-on): Likewise.
69730         * modules/vfprintf-posix (Depends-on): Likewise.
69731         * modules/snprintf-posix (Depends-on): Likewise.
69732         * modules/vsnprintf-posix (Depends-on): Likewise.
69733         * modules/sprintf-posix (Depends-on): Likewise.
69734         * modules/vsprintf-posix (Depends-on): Likewise.
69735         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
69736         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
69737         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
69738         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
69739         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
69740         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
69741         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
69743         Add support for universal builds to <inttypes.h>.
69744         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
69745         _SCNu64_PREFIX): In Apple
69746         universal builds, define directly, using _LP64.
69747         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
69748         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
69749         * modules/inttypes (Depends-on): Add multiarch.
69750         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
69752         Add support for universal builds to <stdint.h>.
69753         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
69754         universal builds, define directly, using _LP64.
69755         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
69756         Apple universal builds, don't test for the size and suffix of ptrdiff_t
69757         and size_t.
69758         * modules/stdint (Depends-on): Add multiarch.
69759         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
69761         New module 'multiarch'.
69762         * modules/multiarch: New file.
69763         * m4/multiarch.m4: New file.
69765 2008-12-25  Bruno Haible  <bruno@clisp.org>
69767         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
69769 2008-12-25  Bruno Haible  <bruno@clisp.org>
69771         * modules/btowc (License): Relicense under LGPLv2+.
69772         * modules/mbsinit (License): Likewise.
69773         * modules/mbrtowc (License): Likewise.
69774         * modules/wcrtomb (License): Likewise.
69775         * modules/streq (License): Likewise.
69776         Reported by David Lutterkort <lutter@redhat.com>.
69778 2008-12-23  Bruno Haible  <bruno@clisp.org>
69780         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
69782 2008-12-23  Bruno Haible  <bruno@clisp.org>
69784         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
69785         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
69786         GETADDRINFO_LIB, not in LIBS.
69787         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
69788         * modules/canon-host (Link): Likewise.
69789         * NEWS: Mention the change.
69790         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
69791         GETADDRINFO_LIB.
69793 2008-12-22  Bruno Haible  <bruno@clisp.org>
69795         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
69796         * doc/posix-functions/iswalpha_l.texi: Likewise.
69797         * doc/posix-functions/iswblank_l.texi: Likewise.
69798         * doc/posix-functions/iswcntrl_l.texi: Likewise.
69799         * doc/posix-functions/iswctype_l.texi: Likewise.
69800         * doc/posix-functions/iswdigit_l.texi: Likewise.
69801         * doc/posix-functions/iswgraph_l.texi: Likewise.
69802         * doc/posix-functions/iswlower_l.texi: Likewise.
69803         * doc/posix-functions/iswprint_l.texi: Likewise.
69804         * doc/posix-functions/iswpunct_l.texi: Likewise.
69805         * doc/posix-functions/iswspace_l.texi: Likewise.
69806         * doc/posix-functions/iswupper_l.texi: Likewise.
69807         * doc/posix-functions/iswxdigit_l.texi: Likewise.
69808         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
69809         * doc/posix-functions/open_wmemstream.texi: Likewise.
69810         * doc/posix-functions/swscanf.texi: Likewise.
69811         * doc/posix-functions/towctrans_l.texi: Likewise.
69812         * doc/posix-functions/towlower.texi: Likewise.
69813         * doc/posix-functions/towlower_l.texi: Likewise.
69814         * doc/posix-functions/towupper.texi: Likewise.
69815         * doc/posix-functions/towupper_l.texi: Likewise.
69816         * doc/posix-functions/vfwprintf.texi: Likewise.
69817         * doc/posix-functions/vfwscanf.texi: Likewise.
69818         * doc/posix-functions/vswscanf.texi: Likewise.
69819         * doc/posix-functions/vwprintf.texi: Likewise.
69820         * doc/posix-functions/vwscanf.texi: Likewise.
69821         * doc/posix-functions/wcpcpy.texi: Likewise.
69822         * doc/posix-functions/wcpncpy.texi: Likewise.
69823         * doc/posix-functions/wcscasecmp.texi: Likewise.
69824         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
69825         * doc/posix-functions/wcscoll_l.texi: Likewise.
69826         * doc/posix-functions/wcsdup.texi: Likewise.
69827         * doc/posix-functions/wcsncasecmp.texi: Likewise.
69828         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
69829         * doc/posix-functions/wcsnlen.texi: Likewise.
69830         * doc/posix-functions/wcsnrtombs.texi: Likewise.
69831         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
69832         * doc/posix-functions/wctrans_l.texi: Likewise.
69833         * doc/posix-functions/wctype_l.texi: Likewise.
69834         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
69835         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
69836         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
69837         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
69838         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
69839         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
69840         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
69841         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
69842         * doc/glibc-functions/wcschrnul.texi: Likewise.
69843         * doc/glibc-functions/wcsftime_l.texi: Likewise.
69844         * doc/glibc-functions/wcstod_l.texi: Likewise.
69845         * doc/glibc-functions/wcstof_l.texi: Likewise.
69846         * doc/glibc-functions/wcstol_l.texi: Likewise.
69847         * doc/glibc-functions/wcstold_l.texi: Likewise.
69848         * doc/glibc-functions/wcstoll_l.texi: Likewise.
69849         * doc/glibc-functions/wcstoq.texi: Likewise.
69850         * doc/glibc-functions/wcstoul_l.texi: Likewise.
69851         * doc/glibc-functions/wcstoull_l.texi: Likewise.
69852         * doc/glibc-functions/wcstouq.texi: Likewise.
69853         * doc/glibc-functions/wmempcpy.texi: Likewise.
69855 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
69856             Eric Blake  <ebb9@byu.net>
69857             Paolo Bonzini  <bonzini@gnu.org>
69858             Bruno Haible  <bruno@clisp.org>
69860         Make c-stack work on Haiku.
69861         * lib/c-stack.c (SA_ONSTACK): Define fallback.
69862         (c_stack_action): Use SA_ONSTACK flag.
69864 2008-12-22  Bruno Haible  <bruno@clisp.org>
69866         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
69868 2008-12-22  Bruno Haible  <bruno@clisp.org>
69870         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
69871         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
69872         being overridden.
69873         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
69874         New macros.
69875         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
69876         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
69877         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
69878         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
69880 2008-12-22  Bruno Haible  <bruno@clisp.org>
69882         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
69883         from test code.
69885 2008-12-22  Eric Blake  <ebb9@byu.net>
69887         Avoid gcc warnings on cygwin.
69888         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
69889         Avoid unused variable.
69890         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
69891         Likewise.
69893 2008-12-22  Bruno Haible  <bruno@clisp.org>
69895         Remove HAVE_MBRTOWC conditionals.
69896         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
69897         (mbscasecmp): Assume mbrtowc function.
69898         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
69899         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
69900         * lib/mbschr.c: Include mbuiter.h unconditionally.
69901         (mbschr): Assume mbrtowc function.
69902         * lib/mbscspn.c: Include mbuiter.h unconditionally.
69903         (mbscspn): Assume mbrtowc function.
69904         * lib/mbslen.c: Include mbuiter.h unconditionally.
69905         (mbslen): Assume mbrtowc function.
69906         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
69907         (mbsncasecmp): Assume mbrtowc function.
69908         * lib/mbsnlen.c: Include mbiter.h unconditionally.
69909         (mbsnlen): Assume mbrtowc function.
69910         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
69911         (mbspbrk): Assume mbrtowc function.
69912         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
69913         (mbspcasecmp): Assume mbrtowc function.
69914         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
69915         (mbsrchr): Assume mbrtowc function.
69916         * lib/mbssep.c: Include mbuiter.h unconditionally.
69917         (mbssep): Assume mbrtowc function.
69918         * lib/mbsspn.c: Include mbuiter.h unconditionally.
69919         (mbsspn): Assume mbrtowc function.
69920         * lib/mbsstr.c: Include mbuiter.h unconditionally.
69921         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
69922         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
69923         (mbstok_r): Assume mbrtowc function.
69924         * lib/propername.c: Include mbuiter.h unconditionally.
69925         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
69926         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
69927         (trim2): Assume mbrtowc function.
69928         * lib/mbswidth.c (mbsinit): Remove fallback definition.
69929         (mbsnwidth): Assume mbrtowc function.
69930         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
69931         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
69932         fallback definitions.
69933         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
69935 2008-12-22  Bruno Haible  <bruno@clisp.org>
69937         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
69939 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
69941         * modules/regex: Request emulations for the mb*/wc* functions we need.
69942         * m4/regex.m4: Don't look for those functions here.
69943         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
69945 2008-12-22  Bruno Haible  <bruno@clisp.org>
69947         * modules/fnmatch (Depends-on): Remove duplicated dependency.
69949 2008-12-21  Bruno Haible  <bruno@clisp.org>
69951         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
69952         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
69953         (Include): Remove conditionalization.
69954         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
69955         (Include): Remove conditionalization.
69956         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
69957         (Include): Remove conditionalization.
69958         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
69959         * m4/mbfile.m4 (gl_MBFILE): Likewise.
69960         * NEWS: Mention the change.
69961         Reported by Alan Hourihane <alanh@fairlite.co.uk>
69962         via Sergey Poznyakoff <gray@gnu.org.ua>.
69964 2008-12-21  Bruno Haible  <bruno@clisp.org>
69966         * MODULES.html.sh (Extended multibyte and wide character utilities
69967         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
69968         wcrtomb, wcsrtombs.
69969         (Support for systems lacking POSIX:2008): Add accept, bind, close,
69970         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
69971         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
69972         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
69974 2008-12-21  Bruno Haible  <bruno@clisp.org>
69976         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
69978 2008-12-21  Bruno Haible  <bruno@clisp.org>
69980         * modules/wcsnrtombs-tests: New file.
69981         * tests/test-wcsnrtombs1.sh: New file.
69982         * tests/test-wcsnrtombs2.sh: New file.
69983         * tests/test-wcsnrtombs3.sh: New file.
69984         * tests/test-wcsnrtombs4.sh: New file.
69985         * tests/test-wcsnrtombs.c: New file.
69987         New module 'wcsnrtombs'.
69988         * lib/wchar.in.h (wcsnrtombs): New declaration.
69989         * lib/wcsnrtombs.c: New file.
69990         * lib/wcsrtombs-state.c: New file.
69991         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
69992         (internal_state): Remove variable.
69993         * m4/wcsnrtombs.m4: New file.
69994         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
69995         compilation units.
69996         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
69997         HAVE_WCSNRTOMBS.
69998         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
69999         HAVE_WCSNRTOMBS.
70000         * modules/wcsnrtombs: New file.
70001         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
70002         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
70004 2008-12-21  Bruno Haible  <bruno@clisp.org>
70006         * modules/wcsrtombs-tests: New file.
70007         * tests/test-wcsrtombs1.sh: New file.
70008         * tests/test-wcsrtombs2.sh: New file.
70009         * tests/test-wcsrtombs3.sh: New file.
70010         * tests/test-wcsrtombs4.sh: New file.
70011         * tests/test-wcsrtombs.c: New file.
70013         New module 'wcsrtombs'.
70014         * lib/wchar.in.h (wcsrtombs): New declaration.
70015         * lib/wcsrtombs.c: New file.
70016         * m4/wcsrtombs.m4: New file.
70017         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
70018         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
70019         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
70020         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
70021         * modules/wcsrtombs: New file.
70022         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
70023         bugs.
70025 2008-12-21  Bruno Haible  <bruno@clisp.org>
70027         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
70028         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
70029         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
70030         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
70031         if not correct.
70032         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
70033         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
70034         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
70035         m4/locale-zh.m4, m4/codeset.m4.
70036         * doc/posix-functions/wcrtomb.texi: Document the bug.
70038 2008-12-21  Bruno Haible  <bruno@clisp.org>
70040         Work around a btowc() bug on IRIX 6.5.
70041         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
70042         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
70043         REPLACE_WTOBC if not.
70044         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
70045         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
70046         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
70048 2008-12-21  Bruno Haible  <bruno@clisp.org>
70050         * modules/wcrtomb-tests: New file.
70051         * tests/test-wcrtomb.sh: New file.
70052         * tests/test-wcrtomb.c: New file.
70054         New module 'wcrtomb'.
70055         * lib/wchar.in.h (wcrtomb): New declaration.
70056         * lib/wcrtomb.c: New file.
70057         * m4/wcrtomb.m4: New file.
70058         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
70059         HAVE_WCRTOMB.
70060         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
70061         HAVE_WCRTOMB.
70062         * modules/wcrtomb: New file.
70063         * doc/posix-functions/wcrtomb.texi: Mention the new module.
70065 2008-12-21  Bruno Haible  <bruno@clisp.org>
70067         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
70068         * modules/mbsrtowcs (Files): Likewise.
70069         * modules/wctob (Files): Likewise.
70070         * modules/c-strcase-tests (Files): Likewise.
70071         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
70072         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
70073         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
70074         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
70075         * modules/vasnprintf-posix-tests (Files): Likewise.
70077 2008-12-21  William Pursell  <bill.pursell@gmail.com>
70079         gitlog-to-changelog: pass all command-line arguments to git-log
70080         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
70081         it is sometimes convenient to filter the commits in various ways.
70082         gitlog-to-changelog only allows --since to specify a start date,
70083         but git-log itself supports many other filtering mechanisms.
70084         At the moment, I want to filter by branch name.  Rather than
70085         adding a --branch option to gitlog-to-changelog, it seems more
70086         flexible to simply pass all options directly to git-log and let
70087         git do the work.  Notice that this effectively makes --since a
70088         redundant option for gitlog-to-changelog, but removing it would
70089         require current usage to change since calls would then require
70090         an additional '--'.
70092 2008-12-21  Bruno Haible  <bruno@clisp.org>
70094         * modules/mbsnrtowcs-tests: New file.
70095         * tests/test-mbsnrtowcs1.sh: New file.
70096         * tests/test-mbsnrtowcs2.sh: New file.
70097         * tests/test-mbsnrtowcs3.sh: New file.
70098         * tests/test-mbsnrtowcs4.sh: New file.
70099         * tests/test-mbsnrtowcs.c: New file.
70101         New module 'mbsnrtowcs'.
70102         * lib/wchar.in.h (mbsnrtowcs): New declaration.
70103         * lib/mbsnrtowcs.c: New file.
70104         * lib/mbsrtowcs-state.c: New file.
70105         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
70106         (internal_state): Remove variable.
70107         * m4/mbsnrtowcs.m4: New file.
70108         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
70109         compilation units.
70110         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
70111         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
70112         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
70113         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
70114         * modules/mbsnrtowcs: New file.
70115         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
70116         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
70117         portability problem.
70119 2008-12-21  Bruno Haible  <bruno@clisp.org>
70121         Work around mbsrtowcs bug.
70122         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
70123         (gl_FUNC_MBSRTOWCS): Invoke it.
70124         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
70125         m4/locale-zh.m4.
70126         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
70128 2008-12-21  Bruno Haible  <bruno@clisp.org>
70130         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
70132 2008-12-21  Bruno Haible  <bruno@clisp.org>
70134         Update doc for AIX.
70135         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
70136         16-bit wchar_t type.
70137         * doc/posix-functions/btowc.texi: Likewise.
70138         * doc/posix-functions/fgetwc.texi: Likewise.
70139         * doc/posix-functions/fgetws.texi: Likewise.
70140         * doc/posix-functions/fputwc.texi: Likewise.
70141         * doc/posix-functions/fputws.texi: Likewise.
70142         * doc/posix-functions/fwide.texi: Likewise.
70143         * doc/posix-functions/fwprintf.texi: Likewise.
70144         * doc/posix-functions/fwscanf.texi: Likewise.
70145         * doc/posix-functions/getwchar.texi: Likewise.
70146         * doc/posix-functions/getwc.texi: Likewise.
70147         * doc/posix-functions/iswalnum.texi: Likewise.
70148         * doc/posix-functions/iswalpha.texi: Likewise.
70149         * doc/posix-functions/iswblank.texi: Likewise.
70150         * doc/posix-functions/iswcntrl.texi: Likewise.
70151         * doc/posix-functions/iswctype.texi: Likewise.
70152         * doc/posix-functions/iswdigit.texi: Likewise.
70153         * doc/posix-functions/iswgraph.texi: Likewise.
70154         * doc/posix-functions/iswlower.texi: Likewise.
70155         * doc/posix-functions/iswprint.texi: Likewise.
70156         * doc/posix-functions/iswpunct.texi: Likewise.
70157         * doc/posix-functions/iswspace.texi: Likewise.
70158         * doc/posix-functions/iswupper.texi: Likewise.
70159         * doc/posix-functions/iswxdigit.texi: Likewise.
70160         * doc/posix-functions/mbrtowc.texi: Likewise.
70161         * doc/posix-functions/mbsrtowcs.texi: Likewise.
70162         * doc/posix-functions/mbstowcs.texi: Likewise.
70163         * doc/posix-functions/mbtowc.texi: Likewise.
70164         * doc/posix-functions/putwchar.texi: Likewise.
70165         * doc/posix-functions/putwc.texi: Likewise.
70166         * doc/posix-functions/swprintf.texi: Likewise.
70167         * doc/posix-functions/tolower.texi: Likewise.
70168         * doc/posix-functions/toupper.texi: Likewise.
70169         * doc/posix-functions/towctrans.texi: Likewise.
70170         * doc/posix-functions/ungetwc.texi: Likewise.
70171         * doc/posix-functions/vswprintf.texi: Likewise.
70172         * doc/posix-functions/wcrtomb.texi: Likewise.
70173         * doc/posix-functions/wcscat.texi: Likewise.
70174         * doc/posix-functions/wcschr.texi: Likewise.
70175         * doc/posix-functions/wcscmp.texi: Likewise.
70176         * doc/posix-functions/wcscoll.texi: Likewise.
70177         * doc/posix-functions/wcscpy.texi: Likewise.
70178         * doc/posix-functions/wcscspn.texi: Likewise.
70179         * doc/posix-functions/wcsftime.texi: Likewise.
70180         * doc/posix-functions/wcslen.texi: Likewise.
70181         * doc/posix-functions/wcsncat.texi: Likewise.
70182         * doc/posix-functions/wcsncmp.texi: Likewise.
70183         * doc/posix-functions/wcsncpy.texi: Likewise.
70184         * doc/posix-functions/wcspbrk.texi: Likewise.
70185         * doc/posix-functions/wcsrchr.texi: Likewise.
70186         * doc/posix-functions/wcsrtombs.texi: Likewise.
70187         * doc/posix-functions/wcsspn.texi: Likewise.
70188         * doc/posix-functions/wcsstr.texi: Likewise.
70189         * doc/posix-functions/wcstod.texi: Likewise.
70190         * doc/posix-functions/wcstof.texi: Likewise.
70191         * doc/posix-functions/wcstoimax.texi: Likewise.
70192         * doc/posix-functions/wcstok.texi: Likewise.
70193         * doc/posix-functions/wcstold.texi: Likewise.
70194         * doc/posix-functions/wcstoll.texi: Likewise.
70195         * doc/posix-functions/wcstol.texi: Likewise.
70196         * doc/posix-functions/wcstombs.texi: Likewise.
70197         * doc/posix-functions/wcstoull.texi: Likewise.
70198         * doc/posix-functions/wcstoul.texi: Likewise.
70199         * doc/posix-functions/wcstoumax.texi: Likewise.
70200         * doc/posix-functions/wcswidth.texi: Likewise.
70201         * doc/posix-functions/wcsxfrm.texi: Likewise.
70202         * doc/posix-functions/wctob.texi: Likewise.
70203         * doc/posix-functions/wctomb.texi: Likewise.
70204         * doc/posix-functions/wctrans.texi: Likewise.
70205         * doc/posix-functions/wctype.texi: Likewise.
70206         * doc/posix-functions/wcwidth.texi: Likewise.
70207         * doc/posix-functions/wmemchr.texi: Likewise.
70208         * doc/posix-functions/wmemcmp.texi: Likewise.
70209         * doc/posix-functions/wmemcpy.texi: Likewise.
70210         * doc/posix-functions/wmemmove.texi: Likewise.
70211         * doc/posix-functions/wmemset.texi: Likewise.
70212         * doc/posix-functions/wprintf.texi: Likewise.
70213         * doc/posix-functions/wscanf.texi: Likewise.
70215 2008-12-21  Bruno Haible  <bruno@clisp.org>
70217         Update doc for HP-UX 11.11.
70218         * doc/posix-functions/btowc.texi: Clarify that the function is missing
70219         in HP-UX version 11.00, not in all versions of HP-UX 11.
70220         * doc/posix-functions/fwide.texi: Likewise.
70221         * doc/posix-functions/fwprintf.texi: Likewise.
70222         * doc/posix-functions/fwscanf.texi: Likewise.
70223         * doc/posix-functions/inet_ntop.texi: Likewise.
70224         * doc/posix-functions/inet_pton.texi: Likewise.
70225         * doc/posix-functions/mbrlen.texi: Likewise.
70226         * doc/posix-functions/mbrtowc.texi: Likewise.
70227         * doc/posix-functions/mbsinit.texi: Likewise.
70228         * doc/posix-functions/mbsrtowcs.texi: Likewise.
70229         * doc/posix-functions/swprintf.texi: Likewise.
70230         * doc/posix-functions/swscanf.texi: Likewise.
70231         * doc/posix-functions/towctrans.texi: Likewise.
70232         * doc/posix-functions/vfwprintf.texi: Likewise.
70233         * doc/posix-functions/vswprintf.texi: Likewise.
70234         * doc/posix-functions/vwprintf.texi: Likewise.
70235         * doc/posix-functions/wcrtomb.texi: Likewise.
70236         * doc/posix-functions/wcsrtombs.texi: Likewise.
70237         * doc/posix-functions/wcsstr.texi: Likewise.
70238         * doc/posix-functions/wctob.texi: Likewise.
70239         * doc/posix-functions/wctrans.texi: Likewise.
70240         * doc/posix-functions/wmemchr.texi: Likewise.
70241         * doc/posix-functions/wmemcmp.texi: Likewise.
70242         * doc/posix-functions/wmemcpy.texi: Likewise.
70243         * doc/posix-functions/wmemmove.texi: Likewise.
70244         * doc/posix-functions/wmemset.texi: Likewise.
70245         * doc/posix-functions/wprintf.texi: Likewise.
70246         * doc/posix-functions/wscanf.texi: Likewise.
70248 2008-12-21  Bruno Haible  <bruno@clisp.org>
70250         Work around a portability problem.
70251         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
70252         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
70254 2008-12-20  Bruno Haible  <bruno@clisp.org>
70256         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
70257         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
70258         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
70259         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
70260         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
70262         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
70263         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
70264         set.
70265         (GNULIB_defined_mbstate_t): New macro.
70266         (mbsinit): Redefine if REPLACE_MBSINIT is set.
70267         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
70268         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
70269         reuses the system's mbrtowc function but works around the bugs.
70270         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
70271         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
70272         macros.
70273         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
70274         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
70275         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
70276         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
70277         REPLACE_MBSINIT if mbsinit needs to be overridden.
70278         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
70279         REPLACE_MBSINIT, REPLACE_MBRTOWC.
70280         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
70281         REPLACE_MBSINIT, REPLACE_MBRTOWC.
70282         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
70283         m4/locale-zh.m4.
70284         (Depends): Add mbsinit.
70285         * modules/mbsinit (Depends): Add mbrtowc.
70286         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
70288 2008-12-20  Bruno Haible  <bruno@clisp.org>
70290         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
70291         so that there are no conversion errors on AIX.
70292         * tests/test-mbsrtowcs.c (main): LIkewise.
70294 2008-12-20  Bruno Haible  <bruno@clisp.org>
70296         Work around wctob bug on Solaris <= 9.
70297         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
70298         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
70299         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
70300         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
70301         * modules/wctob (Files): Add m4/locale-fr.m4.
70302         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
70304 2008-12-20  Bruno Haible  <bruno@clisp.org>
70306         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
70307         /dev/null.
70308         * tests/test-select-in.sh: Likewise.
70309         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
70311 2008-12-20  Bruno Haible  <bruno@clisp.org>
70313         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
70314         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
70315         Cygwin 1.5.x.
70317 2008-12-20  Bruno Haible  <bruno@clisp.org>
70319         Ensure mbstate_t is defined on HP-UX 11.11.
70320         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
70321         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
70322         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
70323         AC_USE_SYSTEM_EXTENSIONS.
70324         * modules/fnmatch (Depends-on): Add extensions.
70325         * modules/mbrlen (Depends-on): Likewise.
70326         * modules/mbrtowc (Depends-on): Likewise.
70327         * modules/mbsinit (Depends-on): Likewise.
70328         * modules/mbsrtowcs (Depends-on): Likewise.
70329         * modules/mbswidth (Depends-on): Likewise.
70330         * modules/quotearg (Depends-on): Likewise.
70331         * modules/strftime (Depends-on): Likewise.
70333 2008-12-20  Bruno Haible  <bruno@clisp.org>
70335         Ensure wctob is declared on IRIX 6.5.
70336         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
70337         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
70338         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
70339         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
70340         of HAVE_WCTOB.
70341         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
70342         HAVE_WCTOB.
70343         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
70345 2008-12-19  Bruno Haible  <bruno@clisp.org>
70347         * modules/mbsrtowcs-tests: New file.
70348         * tests/test-mbsrtowcs1.sh: New file.
70349         * tests/test-mbsrtowcs2.sh: New file.
70350         * tests/test-mbsrtowcs3.sh: New file.
70351         * tests/test-mbsrtowcs4.sh: New file.
70352         * tests/test-mbsrtowcs.c: New file.
70354         New module 'mbsrtowcs'.
70355         * lib/wchar.in.h (mbsrtowcs): New declaration.
70356         * lib/mbsrtowcs.c: New file.
70357         * m4/mbsrtowcs.m4: New file.
70358         * modules/mbsrtowcs: New file.
70359         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
70360         HAVE_MBSRTOWCS.
70361         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
70362         HAVE_MBSRTOWCS.
70363         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
70365 2008-12-19  Bruno Haible  <bruno@clisp.org>
70367         New module 'mbrlen'.
70368         * lib/wchar.in.h (mbrlen): New declaration.
70369         * lib/mbrlen.c: New file.
70370         * m4/mbrlen.m4: New file.
70371         * modules/mbrlen: New file.
70372         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
70373         HAVE_MBRLEN.
70374         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
70375         HAVE_MBRLEN.
70376         * doc/posix-functions/mbrlen.texi: Document the new module.
70378 2008-12-19  Bruno Haible  <bruno@clisp.org>
70380         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
70381         * modules/mbrtowc (Depends-on): Add verify.
70382         Suggested by Paul Eggert.
70384 2008-12-18  Bruno Haible  <bruno@clisp.org>
70386         * modules/mbsinit-tests: New file.
70387         * tests/test-mbsinit.sh: New file.
70388         * tests/test-mbsinit.c: New file.
70390 2008-12-18  Bruno Haible  <bruno@clisp.org>
70392         * modules/mbrtowc-tests: New file.
70393         * tests/test-mbrtowc1.sh: New file.
70394         * tests/test-mbrtowc2.sh: New file.
70395         * tests/test-mbrtowc3.sh: New file.
70396         * tests/test-mbrtowc4.sh: New file.
70397         * tests/test-mbrtowc.c: New file.
70399         New module 'mbrtowc'.
70400         * lib/wchar.in.h (mbstate_t): Override when the system does not have
70401         mbsinit and mbrtowc.
70402         (mbrtowc): New declaration.
70403         * lib/mbrtowc.c: New file.
70404         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
70405         * modules/mbrtowc: New file.
70406         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
70407         HAVE_MBRTOWC.
70408         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
70409         HAVE_MBRTOWC.
70410         * doc/posix-functions/mbrtowc.texi: Document the new module.
70412 2008-12-18  Bruno Haible  <bruno@clisp.org>
70414         New module 'wctob'.
70415         * lib/wchar.in.h (wctob): New declaration.
70416         * lib/wctob.c: New file.
70417         * m4/wctob.m4: New file.
70418         * modules/wctob: New file.
70419         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
70420         HAVE_WCTOB.
70421         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
70422         * doc/posix-functions/wctob.texi: Document the new module.
70424 2008-12-18  Bruno Haible  <bruno@clisp.org>
70426         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
70427         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
70429 2008-12-18  Simon Josefsson  <simon@josefsson.org>
70431         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
70432         G. Christensen" <tgc@jupiterrise.com>.
70434         * lib/flock.c: Need to include errno.h.  Reported by "Tom
70435         G. Christensen" <tgc@jupiterrise.com>.
70437         * lib/flock.c: Need to include string.h.  Reported by "Tom
70438         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
70439         <ebb9@byu.net>.
70441 2008-12-18  Bruno Haible  <bruno@clisp.org>
70443         * m4/locale-ja.m4: New file, from GNU gettext.
70445 2008-12-17  Bruno Haible  <bruno@clisp.org>
70447         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
70448         Suggested by Eric Blake.
70450 2008-12-17  Bruno Haible  <bruno@clisp.org>
70452         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
70454 2008-12-17  Bruno Haible  <bruno@clisp.org>
70456         * lib/mbsinit.c: Include verify.h. Verify an assumption.
70457         * modules/mbsinit (Depends-on): Add verify.
70458         Suggested by Paul Eggert.
70460 2008-12-17  Bruno Haible  <bruno@clisp.org>
70462         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
70463         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
70464         gl_FUNC_MBRTOWC.
70465         * m4/mbiter.m4 (gl_MBITER): LIkewise.
70466         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
70467         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
70468         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
70469         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
70470         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
70471         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
70472         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
70473         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
70474         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
70475         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
70476         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
70477         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
70478         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
70479         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
70480         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70481         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
70482         * modules/trim (configure.ac): Likewise.
70484 2008-12-17  Bruno Haible  <bruno@clisp.org>
70486         * modules/btowc-tests: New file.
70487         * tests/test-btowc1.sh: New file.
70488         * tests/test-btowc2.sh: New file.
70489         * tests/test-btowc.c: New file.
70491         New module 'btowc'.
70492         * lib/wchar.in.h (btowc): New declaration.
70493         * lib/btowc.c: New file.
70494         * m4/btowc.m4: New file.
70495         * modules/btowc: New file.
70496         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
70497         HAVE_BTOWC.
70498         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
70499         * doc/posix-functions/btowc.texi: Document the new module.
70501 2008-12-17  Bruno Haible  <bruno@clisp.org>
70503         New module 'mbsinit'.
70504         * lib/wchar.in.h (mbsinit): New declaration.
70505         * lib/mbsinit.c: New file.
70506         * m4/mbsinit.m4: New file.
70507         * modules/mbsinit: New file.
70508         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
70509         HAVE_MBSINIT.
70510         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
70511         HAVE_MBSINIT.
70512         * doc/posix-functions/mbsinit.texi: Document the new module.
70514 2008-12-16  Bruno Haible  <bruno@clisp.org>
70516         * lib/unistd.in.h: Add comment.
70517         * tests/test-environ.c: Don't include <stdlib.h>.
70519 2008-12-16  Bruno Haible  <bruno@clisp.org>
70521         * lib/parse-duration.h (parse_duration): Document return value
70522         convention.
70523         * lib/parse-duration.c: Include specification header first. Add
70524         comments.
70525         (_): Remove macro.
70526         (parse_year_month_day, parse_hour_minute_second): Move side effects
70527         outside of strchr call.
70528         (parse_non_iso8601): Move side effects outside of isspace call.
70529         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
70530         call.
70532 2008-12-16  Bruno Haible  <bruno@clisp.org>
70534         * tests/test-parse-duration.sh: Produce no output when the test
70535         succeeds.
70537 2008-12-16  Bruno Haible  <bruno@clisp.org>
70539         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
70540         expressions.
70542 2008-12-15  Bruno Haible  <bruno@clisp.org>
70544         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
70545         * doc/glibc-functions/flistxattr.texi: Likewise.
70546         * doc/glibc-functions/fopencookie.texi: Likewise.
70547         * doc/glibc-functions/fremovexattr.texi: Likewise.
70548         * doc/glibc-functions/fsetxattr.texi: Likewise.
70549         * doc/glibc-functions/getxattr.texi: Likewise.
70550         * doc/glibc-functions/lgetxattr.texi: Likewise.
70551         * doc/glibc-functions/listxattr.texi: Likewise.
70552         * doc/glibc-functions/llistxattr.texi: Likewise.
70553         * doc/glibc-functions/lremovexattr.texi: Likewise.
70554         * doc/glibc-functions/lsetxattr.texi: Likewise.
70555         * doc/glibc-functions/removexattr.texi: Likewise.
70556         * doc/glibc-functions/setxattr.texi: Likewise.
70557         * doc/posix-functions/open_memstream.texi: Likewise.
70559 2008-12-15  Eric Blake  <ebb9@byu.net>
70561         Update doc for cygwin 1.7.
70562         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
70563         functions.
70564         * doc/posix-functions/fchmodat.texi: Likewise.
70565         * doc/posix-functions/fchownat.texi: Likewise.
70566         * doc/posix-functions/fdopendir.texi: Likewise.
70567         * doc/posix-functions/fmemopen.texi: Likewise.
70568         * doc/posix-functions/freeaddrinfo.texi: Likewise.
70569         * doc/posix-functions/fstatat.texi: Likewise.
70570         * doc/posix-functions/futimens.texi: Likewise.
70571         * doc/posix-functions/gai_strerror.texi: Likewise.
70572         * doc/posix-functions/getaddrinfo.texi: Likewise.
70573         * doc/posix-functions/getnameinfo.texi: Likewise.
70574         * doc/posix-functions/if_freenameindex.texi: Likewise.
70575         * doc/posix-functions/if_indextoname.texi: Likewise.
70576         * doc/posix-functions/if_nameindex.texi: Likewise.
70577         * doc/posix-functions/if_nametoindex.texi: Likewise.
70578         * doc/posix-functions/insque.texi: Likewise.
70579         * doc/posix-functions/linkat.texi: Likewise.
70580         * doc/posix-functions/llrint.texi: Likewise.
70581         * doc/posix-functions/llrintf.texi: Likewise.
70582         * doc/posix-functions/llrintl.texi: Likewise.
70583         * doc/posix-functions/lockf.texi: Likewise.
70584         * doc/posix-functions/lrintl.texi: Likewise.
70585         * doc/posix-functions/mkdirat.texi: Likewise.
70586         * doc/posix-functions/mkfifoat.texi: Likewise.
70587         * doc/posix-functions/mknodat.texi: Likewise.
70588         * doc/posix-functions/mq_close.texi: Likewise.
70589         * doc/posix-functions/mq_getattr.texi: Likewise.
70590         * doc/posix-functions/mq_notify.texi: Likewise.
70591         * doc/posix-functions/mq_open.texi: Likewise.
70592         * doc/posix-functions/mq_receive.texi: Likewise.
70593         * doc/posix-functions/mq_send.texi: Likewise.
70594         * doc/posix-functions/mq_setattr.texi: Likewise.
70595         * doc/posix-functions/mq_timedreceive.texi: Likewise.
70596         * doc/posix-functions/mq_timedsend.texi: Likewise.
70597         * doc/posix-functions/mq_unlink.texi: Likewise.
70598         * doc/posix-functions/open_memstream.texi: Likewise.
70599         * doc/posix-functions/openat.texi: Likewise.
70600         * doc/posix-functions/posix_fadvise.texi: Likewise.
70601         * doc/posix-functions/posix_fallocate.texi: Likewise.
70602         * doc/posix-functions/posix_madvise.texi: Likewise.
70603         * doc/posix-functions/posix_memalign.texi: Likewise.
70604         * doc/posix-functions/posix_openpt.texi: Likewise.
70605         * doc/posix-functions/readlinkat.texi: Likewise.
70606         * doc/posix-functions/remque.texi: Likewise.
70607         * doc/posix-functions/renameat.texi: Likewise.
70608         * doc/posix-functions/rintl.texi: Likewise.
70609         * doc/posix-functions/sem_unlink.texi: Likewise.
70610         * doc/posix-functions/shm_open.texi: Likewise.
70611         * doc/posix-functions/shm_unlink.texi: Likewise.
70612         * doc/posix-functions/signgam.texi: Likewise.
70613         * doc/posix-functions/sigset.texi: Likewise.
70614         * doc/posix-functions/stpcpy.texi: Likewise.
70615         * doc/posix-functions/stpncpy.texi: Likewise.
70616         * doc/posix-functions/strerror.texi: Likewise.
70617         * doc/posix-functions/strtod.texi: Likewise.
70618         * doc/posix-functions/symlinkat.texi: Likewise.
70619         * doc/posix-functions/unlinkat.texi: Likewise.
70620         * doc/posix-functions/utimensat.texi: Likewise.
70621         * doc/glibc-functions/bindresvport.texi: Likewise.
70622         * doc/glibc-functions/dn_expand.texi: Likewise.
70623         * doc/glibc-functions/exp10.texi: Likewise.
70624         * doc/glibc-functions/exp10f.texi: Likewise.
70625         * doc/glibc-functions/fgetxattr.texi: Likewise.
70626         * doc/glibc-functions/flistxattr.texi: Likewise.
70627         * doc/glibc-functions/fopencookie.texi: Likewise.
70628         * doc/glibc-functions/freeifaddrs.texi: Likewise.
70629         * doc/glibc-functions/fremovexattr.texi: Likewise.
70630         * doc/glibc-functions/fsetxattr.texi: Likewise.
70631         * doc/glibc-functions/getifaddrs.texi: Likewise.
70632         * doc/glibc-functions/getxattr.texi: Likewise.
70633         * doc/glibc-functions/lgetxattr.texi: Likewise.
70634         * doc/glibc-functions/listxattr.texi: Likewise.
70635         * doc/glibc-functions/llistxattr.texi: Likewise.
70636         * doc/glibc-functions/lremovexattr.texi: Likewise.
70637         * doc/glibc-functions/lsetxattr.texi: Likewise.
70638         * doc/glibc-functions/pow10.texi: Likewise.
70639         * doc/glibc-functions/pow10f.texi: Likewise.
70640         * doc/glibc-functions/rcmd_af.texi: Likewise.
70641         * doc/glibc-functions/removexattr.texi: Likewise.
70642         * doc/glibc-functions/res_init.texi: Likewise.
70643         * doc/glibc-functions/res_mkquery.texi: Likewise.
70644         * doc/glibc-functions/res_query.texi: Likewise.
70645         * doc/glibc-functions/res_querydomain.texi: Likewise.
70646         * doc/glibc-functions/res_send.texi: Likewise.
70647         * doc/glibc-functions/rresvport_af.texi: Likewise.
70648         * doc/glibc-functions/setxattr.texi: Likewise.
70649         * doc/glibc-functions/strcasestr.texi: Likewise.
70651 2008-12-15  Bruno Haible  <bruno@clisp.org>
70653         Fix compilation error on OSF/1 4.0.
70654         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
70655         <sys/time.h>, simply delegate to the system header.
70656         Reported by Daniel Richard G. <oss@teragram.com>.
70658 2008-12-15  Bruno Haible  <bruno@clisp.org>
70660         * doc/posix-functions/openat.texi: Mention the 'openat' module.
70661         * doc/posix-functions/fchmodat.texi: Likewise.
70662         * doc/posix-functions/fchownat.texi: Likewise.
70663         * doc/posix-functions/fdopendir.texi: Likewise.
70664         * doc/posix-functions/fstatat.texi: Likewise.
70665         * doc/posix-functions/mkdirat.texi: Likewise.
70666         * doc/posix-functions/unlinkat.texi: Likewise.
70668 2008-12-14  Bruno Haible  <bruno@clisp.org>
70670         Update doc for POSIX:2008.
70671         * doc/posix-functions/faccessat.texi: New file.
70672         * doc/posix-functions/fchmodat.texi: New file.
70673         * doc/posix-functions/fchownat.texi: New file.
70674         * doc/posix-functions/fdopendir.texi: New file.
70675         * doc/posix-functions/fstatat.texi: New file.
70676         * doc/posix-functions/futimens.texi: New file.
70677         * doc/posix-functions/linkat.texi: New file.
70678         * doc/posix-functions/mkdirat.texi: New file.
70679         * doc/posix-functions/mkfifoat.texi: New file.
70680         * doc/posix-functions/mknodat.texi: New file.
70681         * doc/posix-functions/open_wmemstream.texi: New file.
70682         * doc/posix-functions/openat.texi: New file.
70683         * doc/posix-functions/psiginfo.texi: New file.
70684         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
70685         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
70686         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
70687         * doc/posix-functions/readlinkat.texi: New file.
70688         * doc/posix-functions/renameat.texi: New file.
70689         * doc/posix-functions/strerror_l.texi: New file.
70690         * doc/posix-functions/symlinkat.texi: New file.
70691         * doc/posix-functions/unlinkat.texi: New file.
70692         * doc/posix-functions/utimensat.texi: New file.
70693         * doc/gnulib.texi (Function Substitutes): Add these subsections.
70695 2008-12-14  Bruno Haible  <bruno@clisp.org>
70697         Update doc for POSIX:2008.
70698         * doc/posix-functions/alphasort.texi: Renamed from
70699         doc/glibc-functions/alphasort.texi.
70700         * doc/posix-functions/dirfd.texi: Renamed from
70701         doc/glibc-functions/dirfd.texi.
70702         * doc/posix-functions/dprintf.texi: Renamed from
70703         doc/glibc-functions/dprintf.texi.
70704         * doc/posix-functions/duplocale.texi: Renamed from
70705         doc/glibc-functions/duplocale.texi.
70706         * doc/posix-functions/fexecve.texi: Renamed from
70707         doc/glibc-functions/fexecve.texi.
70708         * doc/posix-functions/fmemopen.texi: Renamed from
70709         doc/glibc-functions/fmemopen.texi.
70710         * doc/posix-functions/freelocale.texi: Renamed from
70711         doc/glibc-functions/freelocale.texi.
70712         * doc/posix-functions/getdate_err.texi: Renamed from
70713         doc/glibc-functions/getdate_err.texi.
70714         * doc/posix-functions/isalnum_l.texi: Renamed from
70715         doc/glibc-functions/isalnum_l.texi.
70716         * doc/posix-functions/isalpha_l.texi: Renamed from
70717         doc/glibc-functions/isalpha_l.texi.
70718         * doc/posix-functions/isblank_l.texi: Renamed from
70719         doc/glibc-functions/isblank_l.texi.
70720         * doc/posix-functions/iscntrl_l.texi: Renamed from
70721         doc/glibc-functions/iscntrl_l.texi.
70722         * doc/posix-functions/isdigit_l.texi: Renamed from
70723         doc/glibc-functions/isdigit_l.texi.
70724         * doc/posix-functions/isgraph_l.texi: Renamed from
70725         doc/glibc-functions/isgraph_l.texi.
70726         * doc/posix-functions/islower_l.texi: Renamed from
70727         doc/glibc-functions/islower_l.texi.
70728         * doc/posix-functions/isprint_l.texi: Renamed from
70729         doc/glibc-functions/isprint_l.texi.
70730         * doc/posix-functions/ispunct_l.texi: Renamed from
70731         doc/glibc-functions/ispunct_l.texi.
70732         * doc/posix-functions/isspace_l.texi: Renamed from
70733         doc/glibc-functions/isspace_l.texi.
70734         * doc/posix-functions/isupper_l.texi: Renamed from
70735         doc/glibc-functions/isupper_l.texi.
70736         * doc/posix-functions/iswalnum_l.texi: Renamed from
70737         doc/glibc-functions/iswalnum_l.texi.
70738         * doc/posix-functions/iswalpha_l.texi: Renamed from
70739         doc/glibc-functions/iswalpha_l.texi.
70740         * doc/posix-functions/iswblank_l.texi: Renamed from
70741         doc/glibc-functions/iswblank_l.texi.
70742         * doc/posix-functions/iswcntrl_l.texi: Renamed from
70743         doc/glibc-functions/iswcntrl_l.texi.
70744         * doc/posix-functions/iswctype_l.texi: Renamed from
70745         doc/glibc-functions/iswctype_l.texi.
70746         * doc/posix-functions/iswdigit_l.texi: Renamed from
70747         doc/glibc-functions/iswdigit_l.texi.
70748         * doc/posix-functions/iswgraph_l.texi: Renamed from
70749         doc/glibc-functions/iswgraph_l.texi.
70750         * doc/posix-functions/iswlower_l.texi: Renamed from
70751         doc/glibc-functions/iswlower_l.texi.
70752         * doc/posix-functions/iswprint_l.texi: Renamed from
70753         doc/glibc-functions/iswprint_l.texi.
70754         * doc/posix-functions/iswpunct_l.texi: Renamed from
70755         doc/glibc-functions/iswpunct_l.texi.
70756         * doc/posix-functions/iswspace_l.texi: Renamed from
70757         doc/glibc-functions/iswspace_l.texi.
70758         * doc/posix-functions/iswupper_l.texi: Renamed from
70759         doc/glibc-functions/iswupper_l.texi.
70760         * doc/posix-functions/iswxdigit_l.texi: Renamed from
70761         doc/glibc-functions/iswxdigit_l.texi.
70762         * doc/posix-functions/isxdigit_l.texi: Renamed from
70763         doc/glibc-functions/isxdigit_l.texi.
70764         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
70765         doc/glibc-functions/mbsnrtowcs.texi.
70766         * doc/posix-functions/mkdtemp.texi: Renamed from
70767         doc/glibc-functions/mkdtemp.texi.
70768         * doc/posix-functions/newlocale.texi: Renamed from
70769         doc/glibc-functions/newlocale.texi.
70770         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
70771         doc/glibc-functions/nl_langinfo_l.texi.
70772         * doc/posix-functions/open_memstream.texi: Renamed from
70773         doc/glibc-functions/open_memstream.texi.
70774         * doc/posix-functions/opterr.texi: Renamed from
70775         doc/glibc-functions/opterr.texi.
70776         * doc/posix-functions/optind.texi: Renamed from
70777         doc/glibc-functions/optind.texi.
70778         * doc/posix-functions/optopt.texi: Renamed from
70779         doc/glibc-functions/optopt.texi.
70780         * doc/posix-functions/psignal.texi: Renamed from
70781         doc/glibc-functions/psignal.texi.
70782         * doc/posix-functions/scandir.texi: Renamed from
70783         doc/glibc-functions/scandir.texi.
70784         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
70785         doc/glibc-functions/sched_get_priority_min.texi.
70786         * doc/posix-functions/signgam.texi: Renamed from
70787         doc/glibc-functions/signgam.texi.
70788         * doc/posix-functions/stpcpy.texi: Renamed from
70789         doc/glibc-functions/stpcpy.texi.
70790         * doc/posix-functions/stpncpy.texi: Renamed from
70791         doc/glibc-functions/stpncpy.texi.
70792         * doc/posix-functions/strcasecmp_l.texi: Renamed from
70793         doc/glibc-functions/strcasecmp_l.texi.
70794         * doc/posix-functions/strcoll_l.texi: Renamed from
70795         doc/glibc-functions/strcoll_l.texi.
70796         * doc/posix-functions/strfmon_l.texi: Renamed from
70797         doc/glibc-functions/strfmon_l.texi.
70798         * doc/posix-functions/strftime_l.texi: Renamed from
70799         doc/glibc-functions/strftime_l.texi.
70800         * doc/posix-functions/strncasecmp_l.texi: Renamed from
70801         doc/glibc-functions/strncasecmp_l.texi.
70802         * doc/posix-functions/strndup.texi: Renamed from
70803         doc/glibc-functions/strndup.texi.
70804         * doc/posix-functions/strnlen.texi: Renamed from
70805         doc/glibc-functions/strnlen.texi.
70806         * doc/posix-functions/strsignal.texi: Renamed from
70807         doc/glibc-functions/strsignal.texi.
70808         * doc/posix-functions/strxfrm_l.texi: Renamed from
70809         doc/glibc-functions/strxfrm_l.texi.
70810         * doc/posix-functions/timer_gettime.texi: Renamed from
70811         doc/glibc-functions/timer_gettime.texi.
70812         * doc/posix-functions/tolower_l.texi: Renamed from
70813         doc/glibc-functions/tolower_l.texi.
70814         * doc/posix-functions/toupper_l.texi: Renamed from
70815         doc/glibc-functions/toupper_l.texi.
70816         * doc/posix-functions/towctrans_l.texi: Renamed from
70817         doc/glibc-functions/towctrans_l.texi.
70818         * doc/posix-functions/towlower_l.texi: Renamed from
70819         doc/glibc-functions/towlower_l.texi.
70820         * doc/posix-functions/towupper_l.texi: Renamed from
70821         doc/glibc-functions/towupper_l.texi.
70822         * doc/posix-functions/uselocale.texi: Renamed from
70823         doc/glibc-functions/uselocale.texi.
70824         * doc/posix-functions/vdprintf.texi: Renamed from
70825         doc/glibc-functions/vdprintf.texi.
70826         * doc/posix-functions/wcpcpy.texi:
70827         Renamed from doc/glibc-functions/wcpcpy.texi.
70828         * doc/posix-functions/wcpncpy.texi: Renamed from
70829         doc/glibc-functions/wcpncpy.texi.
70830         * doc/posix-functions/wcscasecmp.texi: Renamed from
70831         doc/glibc-functions/wcscasecmp.texi.
70832         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
70833         doc/glibc-functions/wcscasecmp_l.texi.
70834         * doc/posix-functions/wcscoll_l.texi: Renamed from
70835         doc/glibc-functions/wcscoll_l.texi.
70836         * doc/posix-functions/wcsdup.texi: Renamed from
70837         doc/glibc-functions/wcsdup.texi.
70838         * doc/posix-functions/wcsncasecmp.texi: Renamed from
70839         doc/glibc-functions/wcsncasecmp.texi.
70840         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
70841         doc/glibc-functions/wcsncasecmp_l.texi.
70842         * doc/posix-functions/wcsnlen.texi: Renamed from
70843         doc/glibc-functions/wcsnlen.texi.
70844         * doc/posix-functions/wcsnrtombs.texi: Renamed from
70845         doc/glibc-functions/wcsnrtombs.texi.
70846         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
70847         doc/glibc-functions/wcsxfrm_l.texi.
70848         * doc/posix-functions/wctrans_l.texi: Renamed from
70849         doc/glibc-functions/wctrans_l.texi.
70850         * doc/posix-functions/wctype_l.texi: Renamed from
70851         doc/glibc-functions/wctype_l.texi.
70852         * doc/gnulib.texi (Function Substitutes): Add these subsections.
70853         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
70854         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
70855         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
70856         these subsections.
70857         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
70858         Remove sections.
70860 2008-12-14  Bruno Haible  <bruno@clisp.org>
70862         Update doc for POSIX:2008.
70863         * doc/posix-functions/*.texi: Update URL of POSIX specification.
70865 2008-12-14  Bruno Haible  <bruno@clisp.org>
70867         Update doc for POSIX:2008.
70868         * doc/pastposix-functions/bcmp.texi: Renamed from
70869         doc/posix-functions/bcmp.texi.
70870         * doc/pastposix-functions/bcopy.texi: Renamed from
70871         doc/posix-functions/bcopy.texi.
70872         * doc/pastposix-functions/bsd_signal.texi: Renamed from
70873         doc/posix-functions/bsd_signal.texi.
70874         * doc/pastposix-functions/bzero.texi: Renamed from
70875         doc/posix-functions/bzero.texi.
70876         * doc/pastposix-functions/ecvt.texi: Renamed from
70877         doc/posix-functions/ecvt.texi.
70878         * doc/pastposix-functions/fcvt.texi: Renamed from
70879         doc/posix-functions/fcvt.texi.
70880         * doc/pastposix-functions/ftime.texi: Renamed from
70881         doc/posix-functions/ftime.texi.
70882         * doc/pastposix-functions/gcvt.texi: Renamed from
70883         doc/posix-functions/gcvt.texi.
70884         * doc/pastposix-functions/getcontext.texi: Renamed from
70885         doc/posix-functions/getcontext.texi.
70886         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
70887         doc/posix-functions/gethostbyaddr.texi.
70888         * doc/pastposix-functions/gethostbyname.texi: Renamed from
70889         doc/posix-functions/gethostbyname.texi.
70890         * doc/pastposix-functions/getwd.texi: Renamed from
70891         doc/posix-functions/getwd.texi.
70892         * doc/pastposix-functions/h_errno.texi: Renamed from
70893         doc/posix-functions/h_errno.texi.
70894         * doc/pastposix-functions/index.texi: Renamed from
70895         doc/posix-functions/index.texi.
70896         * doc/pastposix-functions/makecontext.texi: Renamed from
70897         doc/posix-functions/makecontext.texi.
70898         * doc/pastposix-functions/mktemp.texi: Renamed from
70899         doc/posix-functions/mktemp.texi.
70900         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
70901         doc/posix-functions/pthread_attr_getstackaddr.texi.
70902         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
70903         doc/posix-functions/pthread_attr_setstackaddr.texi.
70904         * doc/pastposix-functions/rindex.texi: Renamed from
70905         doc/posix-functions/rindex.texi.
70906         * doc/pastposix-functions/scalb.texi: Renamed from
70907         doc/posix-functions/scalb.texi.
70908         * doc/pastposix-functions/setcontext.texi: Renamed from
70909         doc/posix-functions/setcontext.texi.
70910         * doc/pastposix-functions/swapcontext.texi: Renamed from
70911         doc/posix-functions/swapcontext.texi.
70912         * doc/pastposix-functions/ualarm.texi: Renamed from
70913         doc/posix-functions/ualarm.texi.
70914         * doc/pastposix-functions/usleep.texi: Renamed from
70915         doc/posix-functions/usleep.texi.
70916         * doc/pastposix-functions/vfork.texi: Renamed from
70917         doc/posix-functions/vfork.texi.
70918         * doc/pastposix-functions/wcswcs.texi: Renamed from
70919         doc/posix-functions/wcswcs.texi.
70920         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
70921         (Function Substitutes): Update.
70923 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70925         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
70926         m4/strerror.m4.
70928 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70929             Bruno Haible  <bruno@clisp.org>
70931         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
70933 2008-12-13  Bruno Haible  <bruno@clisp.org>
70935         * modules/strtoull (Depends-on): Remove unistd.
70937 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70939         * modules/strtoull (Depends-on): Add stdlib.
70941 2008-12-11  Simon Josefsson  <simon@josefsson.org>
70943         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
70945 2008-12-10  Jim Meyering  <meyering@redhat.com>
70947         gl_ASSERT: don't say assertions are disabled when they're not
70948         * m4/assert.m4 (gl_ASSERT): Do not make configure report
70949         "checking whether to enable assertions... no", when they are in
70950         fact enabled.  This is solely a bug in the output of configure.
70951         In spite of saying "no", NDEBUG was not defined in that case.
70952         Also, as noted by Eric Blake, leave assertions enabled upon
70953         --enable-assert=INVALID.
70955 2008-12-10  Bruno Haible  <bruno@clisp.org>
70957         Change MODULES.html to refer to POSIX:2008 where possible.
70958         * MODULES.html.sh (POSIX2008_URL): New variable.
70959         (posix_headers): Remove sys/timeb, ucontext.
70960         (posix2001_headers): New variable.
70961         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
70962         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
70963         index, makecontext, mktemp, pthread_attr_getstackaddr,
70964         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
70965         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
70966         (posix2001_functions): New variable.
70967         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
70968         otherwise.
70970 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70972         add missing include to parse-duration.c
70973         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
70974         * modules/parse-duration (Depends-on): Add xalloc.
70976         fix sed script reading maint.mk
70977         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
70978         (syntax-check-rules): Use it.
70980 2008-12-09  Bruno Haible  <bruno@clisp.org>
70982         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
70983         MacOS X 10.4/PowerPC.
70984         Reported by Simon Josefsson.
70986 2008-12-08  Jim Meyering  <meyering@redhat.com>
70988         work around mingw's lack of some S_IF definitions
70989         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
70990         Reported by Simon Josefsson.
70992 2008-12-08  Bruno Haible  <bruno@clisp.org>
70994         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
70995         applied to variables. Needed on MacOS X 10.4/PowerPC.
70996         Reported by Simon Josefsson.
70998 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
70999         and Eric Blake  <ebb9@byu.net>
71001         assert: honor --enable-assert
71002         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
71003         order to honor --enable-assert, rather than treating it as a
71004         synonym for --disable-assert.
71006 2008-12-08  Jim Meyering  <meyering@redhat.com>
71008         * lib/posixtm.c: Remove now-useless declaration of mktime.
71010         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
71012 2008-12-07  Bruno Haible  <bruno@clisp.org>
71014         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
71015         test_once): Mark functions as static.
71016         * tests/test-tls.c (test_tls): Likewise.
71018 2008-12-07  Bruno Haible  <bruno@clisp.org>
71020         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
71021         iconv_register_autodetect.
71023 2008-12-07  Jim Meyering  <meyering@redhat.com>
71025         posixtm.c: avoid a warning
71026         * lib/posixtm.c (posixtime): Don't initialize tm0.
71027         It's no longer needed to placate gcc4's -Wuninitialized,
71028         and the attempt to placate would elicit a new warning.
71030         unicodeio.c: mark unused parameters
71031         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
71032         (fallback_failure_callback): Likewise.
71034 2008-12-07  Bruno Haible  <bruno@clisp.org>
71036         * gnulib-tool (func_create_testdir): When building the tests
71037         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
71038         Reported by Simon Josefsson.
71040 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71042         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
71044 2008-12-06  Bruno Haible  <bruno@clisp.org>
71046         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
71047         Suggested by Eric Blake.
71049 2008-12-06  Bruno Haible  <bruno@clisp.org>
71051         Fix a c-stack test failure on MacOS X.
71052         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
71053         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
71054         handler for SIGBUS as well.
71055         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
71056         install a signal handler for SIGBUS as well.
71057         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
71059 2008-12-06  Bruno Haible  <bruno@clisp.org>
71061         Advocacy documentation.
71062         * doc/gnulib-intro.texi (Benefits): New section.
71063         * doc/gnulib.texi: Update.
71065 2008-12-06  Bruno Haible  <bruno@clisp.org>
71067         Document the 'manywarnings' module.
71068         * doc/manywarnings.texi: New file.
71069         * doc/gnulib.texi: Include it.
71071 2008-12-05  Eric Blake  <ebb9@byu.net>
71073         tests: silence some gcc warnings
71074         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
71075         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
71076         type mismatches.
71078 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71079             Bruno Haible  <bruno@clisp.org>
71081         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
71083 2008-11-29  Jim Meyering  <meyering@redhat.com>
71085         unicodeio.c: mark unused parameters
71086         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
71087         (fallback_failure_callback): Likewise.
71089         fts: fix a thinko
71090         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
71091         (set_stat_type): Return S_IF*-valued "type" directly.
71092         Prompted by James Youngman's spotting a related bug.
71093         Confirmed by further testing through find.
71095         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
71096         * lib/fts.c (D_TYPE): Define.
71097         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
71098         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
71099         (s_ifmt_shift_bits): New function.
71100         (set_stat_type): New function.
71101         (fts_build): When not calling fts_stat, call set_stat_type
71102         to propagate dirent.d_type info to fts_read caller.
71103         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
71104         fts_statp->st_mode type information may be valid.
71106 2008-11-28  Simon Josefsson  <simon@josefsson.org>
71108         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
71109         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
71110         <sds@gnu.org>.
71112 2008-11-20  Bruno Haible  <bruno@clisp.org>
71114         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
71115         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
71116         INCLUDE_NEXT.
71117         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
71118         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
71119         * modules/math (Makefile.am): Substitute
71120         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
71121         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71123 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
71124             Bruno Haible  <bruno@clisp.org>
71126         * lib/stdint.in.h: Define all type macros so that their expansion is
71127         a single typedef'ed token. Fixes a compilation failure in Boost which
71128         does "using ::int8_t;".
71130 2008-11-18  Simon Josefsson  <simon@josefsson.org>
71132         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
71133         gl_MANYWARN_ALL_GCC.
71134         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
71135         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
71136         * modules/manywarnings: New file.
71137         * MODULES.html.sh: Mention manywarnings module.
71139 2008-11-18  Bruno Haible  <bruno@clisp.org>
71141         * doc/gnulib-tool.texi (Unit tests): New section.
71143 2008-11-18  Simon Josefsson  <simon@josefsson.org>
71145         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
71146         paths like 'lib/po/foo.po'.
71148 2008-11-17  Simon Josefsson  <simon@josefsson.org>
71150         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
71151         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
71153 2008-11-17  Simon Josefsson  <simon@josefsson.org>
71155         * m4/warnings.m4: Use CPPFLAGS to really check whether the
71156         parameter works.
71158 2008-11-17  Simon Josefsson  <simon@josefsson.org>
71160         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
71162 2008-11-17  Bruce Korb  <bkorb@gnu.org>
71164         * modules/parse-duration-tests: New file.
71165         * tests/test-parse-duration.sh: New file.
71166         * tests/test-parse-duration.c: New file.
71168         New module 'parse-duration'.
71169         * lib/parse-duration.h: New file.
71170         * lib/parse-duration.c: New file.
71171         * modules/parse-duration: New file.
71173 2008-11-17  Bruno Haible  <bruno@clisp.org>
71175         * tests/test-select-out.sh: Comment out the first pipe test.
71176         Reported by Simon Josefsson.
71178 2008-11-17  Bruno Haible  <bruno@clisp.org>
71180         * modules/getaddrinfo (Depends-on): Add servent, hostent.
71181         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
71182         gl_HOSTENT.
71184 2008-11-17  Bruno Haible  <bruno@clisp.org>
71186         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
71187         -lnetwork and -lnet. Needed for Haiku and BeOS.
71189 2008-11-16  Bruno Haible  <bruno@clisp.org>
71191         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
71193 2008-11-16  Bruno Haible  <bruno@clisp.org>
71195         Avoid test failure on Haiku.
71196         * tests/test-fsync.c: Include <errno.h>.
71197         (main): Don't require that fsync (0) fails.
71199 2008-11-15  Bruno Haible  <bruno@clisp.org>
71201         New module 'hostent'.
71202         * modules/hostent: New file.
71203         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
71205 2008-11-15  Bruno Haible  <bruno@clisp.org>
71207         New module 'servent'.
71208         * modules/servent: New file.
71209         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
71211 2008-11-15  Bruno Haible  <bruno@clisp.org>
71213         Avoid generating same test program with two different rules.
71214         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
71215         test-frexp to test-frexp-nolibm.
71216         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
71217         test-frexpl to test-frexpl-nolibm.
71219 2008-11-15  Bruno Haible  <bruno@clisp.org>
71221         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
71222         $(FREXPL_LIBM).
71224 2008-11-15  Bruno Haible  <bruno@clisp.org>
71226         * lib/netdb.in.h: Activate the definitions also when the system's
71227         <netdb.h> has 'struct addrinfo'.
71228         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
71229         EAI_OVERFLOW or AI_NUMERICSERV.
71230         * doc/posix-headers/netdb.texi: Document the problem.
71232 2008-11-15  Bruno Haible  <bruno@clisp.org>
71234         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
71236         Make the 'sched' module work on platforms where <sched.h> exists but
71237         is incomplete (such as Haiku).
71238         * lib/sched.in.h; Include the system's <sched.h> if it exists.
71239         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
71240         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
71241         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
71242         HAVE_STRUCT_SCHED_PARAM.
71243         * modules/sched (Depends-on): Add include_next.
71244         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
71245         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
71246         * doc/posix-headers/sched.texi: Document the issue.
71248 2008-11-13  Jim Meyering  <meyering@redhat.com>
71250         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
71251         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
71252         test would fail due to the difference in the Report bugs to ...
71253         line.  The expected address is empty, "<>", while the actual
71254         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
71256 2008-11-12  Bruno Haible  <bruno@clisp.org>
71258         lstat: don't compile lstat.c on systems lacking lstat
71259         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
71260         which don't have lstat; this is handled by lib/sys_stat.in.h already.
71261         Reported by Daniel P. Berrange via Jim Meyering.
71263 2008-11-12  Jim Meyering  <meyering@redhat.com>
71265         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
71267 2008-11-12  Simon Josefsson  <simon@josefsson.org>
71269         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
71270         instead.
71272 2008-11-12  Bruno Haible  <bruno@clisp.org>
71274         * lib/unicodeio.c: Include unistr.h.
71275         (utf8_wctomb): Remove function.
71276         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
71278 2008-11-12  Simon Josefsson  <simon@josefsson.org>
71280         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
71281         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
71282         <bruno@clisp.org>.
71283         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
71285 2008-11-12  Simon Josefsson  <simon@josefsson.org>
71287         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
71288         * doc/gnulib.texi: Add section for warnings.
71290 2008-11-11  Bruno Haible  <bruno@clisp.org>
71292         * lib/sockets.h: Add a comment.
71294 2008-11-11  Karl Berry  <karl@gnu.org>
71296         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
71298 2008-11-11  Eric Blake  <ebb9@byu.net>
71300         fdl.texi: avoid git symlinks
71301         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
71303 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
71305         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
71307 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
71309         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
71310         (gl_WARN_ADD): Substitute $2 if literal.
71312 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
71314         * m4/warning.m4: Remove.
71316 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
71318         * m4/warnings.m4: Almost complete rewrite. :-)
71320 2008-11-10  Simon Josefsson  <simon@josefsson.org>
71322         * modules/warnings: New module.
71323         * m4/warnings.m4: New file.
71324         * MODULES.html.sh: Mention warnings module.
71325         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
71326         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71328 2008-11-10  Eric Blake  <ebb9@byu.net>
71330         fdl.texi: make a symlink to the latest version
71331         * doc/standards.texi: Revert today's earlier change.
71332         * doc/fdl-1.2.texi: Rename from old fdl.texi...
71333         * doc/fdl.texi: ...and replace this with a symlink to the newer
71334         fdl-1.3.texi.
71336 2008-11-10  Bruno Haible  <bruno@clisp.org>
71338         * tests/test-select-fd.c (main): Accept the result file name as fourth
71339         argument.
71340         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
71341         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
71343 2008-11-10  Bruno Haible  <bruno@clisp.org>
71345         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
71346         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
71347         as autoconf-substituted macros.
71348         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
71349         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
71350         gl_NETDB_H_DEFAULTS. Set these variables.
71351         * modules/netdb (Makefile.am): Substitute these variables.
71353 2008-11-10  Eric Blake  <ebb9@byu.net>
71355         standards.texi: include correct file for FDL 1.3
71356         * doc/standards.texi (GNU Free Documentation License): Change
71357         include file to pull in FDL 1.3, not 1.2.
71359         fdl.texi: revert accidental change to license
71360         * doc/fdl.texi: This is FDL 1.2, not 1.3.
71362 2008-11-10  Bruno Haible  <bruno@clisp.org>
71364         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
71365         cross-compiling guesses also when the native compile gives no result.
71367 2008-11-10  Bruno Haible  <bruno@clisp.org>
71369         * lib/spawni.c (__spawni): Force variable into the stack.
71371 2008-11-10  Bruno Haible  <bruno@clisp.org>
71373         Add support for Haiku.
71374         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
71375         glibc and BeOS, but also on Haiku.
71376         * lib/fpurge.c (fpurge): Likewise.
71377         * lib/freadable.c (freadable): Likewise.
71378         * lib/freadahead.c (freadahead): Likewise.
71379         * lib/freading.c (freading): Likewise.
71380         * lib/freadptr.c (freadptr): Likewise.
71381         * lib/freadseek.c (freadptrinc): Likewise.
71382         * lib/fseeko.c (rpl_fseeko): Likewise.
71383         * lib/fseterr.c (fseterr): Likewise.
71384         * lib/fwritable.c (fwritable): Likewise.
71385         * lib/fwriting.c (fwriting): Likewise.
71386         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
71388 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
71390         * lib/config.charset: Treat Haiku like BeOS.
71392 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
71394         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
71395         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
71397 2008-11-08  Bruno Haible  <bruno@clisp.org>
71399         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
71400         AC_CACHE_CHECK.
71402 2008-11-08  Bruno Haible  <bruno@clisp.org>
71404         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
71406 2008-11-08  Bruno Haible  <bruno@clisp.org>
71408         * tests/test-select-fd.c: New file.
71409         * tests/test-select-in.sh: New file.
71410         * tests/test-select-out.sh: New file.
71411         * tests/test-select-stdin.c: New file.
71412         * modules/select-tests (Files): Add the new files.
71413         (Depends-on): Add gettimeofday.
71414         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
71415         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
71416         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
71418 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
71419             Bruno Haible  <bruno@clisp.org>
71421         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
71423 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
71425         * build-aux/pmccabe2html: Added support for C++ source files.
71427 2008-11-05  Ben Pfaff  <blp@gnu.org>
71429         Fix lib/close.c build on Windows.
71430         * modules/close (Files): Add lib/w32sock.h.
71432 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
71434         Accept Bison's NEWS format.
71435         * build-aux/announce-gen (print_news_deltas): Tweak
71436         $re_prefix.
71438 2008-11-04  Bruno Haible  <bruno@clisp.org>
71440         * modules/random_r (Maintainer): Add glibc.
71442 2008-11-04  Simon Josefsson  <simon@josefsson.org>
71444         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
71445         by karl@freefriends.org (Karl Berry).
71446         * doc/alloca.texi: Likewise.
71447         * doc/c-ctype.texi: Likewise.
71448         * doc/c-strcase.texi: Likewise.
71449         * doc/c-strcaseeq.texi: Likewise.
71450         * doc/c-strcasestr.texi: Likewise.
71451         * doc/c-strstr.texi: Likewise.
71452         * doc/c-strtod.texi: Likewise.
71453         * doc/c-strtold.texi: Likewise.
71454         * doc/ctime.texi: Likewise.
71455         * doc/error.texi: Likewise.
71456         * doc/fdl.texi: Likewise.
71457         * doc/gcd.texi: Likewise.
71458         * doc/getdate.texi: Likewise.
71459         * doc/gnulib-intro.texi: Likewise.
71460         * doc/gnulib-tool.texi: Likewise.
71461         * doc/gnulib.texi: Likewise.
71462         * doc/inet_ntoa.texi: Likewise.
71463         * doc/maintain.texi: Likewise.
71464         * doc/make-stds.texi: Likewise.
71465         * doc/quote.texi: Likewise.
71466         * doc/regexprops-generic.texi: Likewise.
71467         * doc/standards.texi: Likewise.
71468         * doc/verify.texi: Likewise.
71469         * doc/visibility.texi: Likewise.
71470         * doc/gnulib.texi (GNU Free Documentation License): Include
71471         fdl-1.3.texi instead of fdl.texi.
71473 2008-11-04  Simon Josefsson  <simon@josefsson.org>
71475         * doc/fdl-1.3.texi: New file, from
71476         <http://www.gnu.org/licenses/fdl-1.3.texi>.
71477         * modules/fdl-1.3: Add.
71478         * MODULES.html.sh: Add fdl-1.3.
71480 2008-11-03  Bruno Haible  <bruno@clisp.org>
71482         Make determination of absolute name of header file work with AIX xlc.
71483         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
71484         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
71485         preprocessing.
71486         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
71487         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
71489 2008-11-03  Simon Josefsson  <simon@josefsson.org>
71491         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
71492         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
71493         <ludo@gnu.org>.
71495 2008-11-02  Bruno Haible  <bruno@clisp.org>
71497         Mark 'strpbrk' obsolete.
71498         * modules/strpbrk (Status, Notice): New sections.
71499         * modules/strtok_r (Depends-on): Add strpbrk.
71501 2008-11-02  Bruno Haible  <bruno@clisp.org>
71503         Mark 'strdup' obsolete.
71504         * modules/strdup (Status, Notice): New sections.
71505         * modules/findprog (Depends-on): Add strdup.
71506         * modules/getaddrinfo (Depends-on): Likewise.
71507         * modules/localename (Depends-on): Likewise.
71508         * modules/relocatable-lib (Depends-on): Likewise.
71509         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
71510         * modules/relocatable-prog (Depends-on): Likewise.
71511         * modules/trim (Depends-on): Likewise.
71512         * modules/unictype/gen-ctype (Depends-on): Likewise.
71513         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
71515 2008-11-02  Bruno Haible  <bruno@clisp.org>
71517         Mark 'strcspn' obsolete.
71518         * modules/strcspn (Status, Notice): New sections.
71520 2008-11-02  Bruno Haible  <bruno@clisp.org>
71522         Mark 'rmdir' obsolete.
71523         * modules/rmdir (Status, Notice): New sections.
71524         * modules/clean-temp (Depends-on): Add rmdir.
71525         * modules/openat (Depends-on): Likewise.
71527 2008-11-02  Bruno Haible  <bruno@clisp.org>
71529         Mark 'raise' obsolete.
71530         * modules/raise (Status, Notice): New sections.
71531         (Include): Specify <signal.h>.
71532         * modules/stdio (Depends-on): Add raise.
71533         * modules/write (Depends-on): Likewise.
71535 2008-11-02  Bruno Haible  <bruno@clisp.org>
71537         Mark 'memset' obsolete.
71538         * modules/memset (Status, Notice): New sections.
71540 2008-11-02  Bruno Haible  <bruno@clisp.org>
71542         Mark 'memmove' obsolete.
71543         * modules/memmove (Status, Notice): New sections.
71544         * modules/argp (Depends-on): Add memmove.
71545         * modules/argz (Depends-on): Likewise.
71546         * modules/canonicalize (Depends-on): Likewise.
71547         * modules/canonicalize-lgpl (Depends-on): Likewise.
71548         * modules/fts (Depends-on): Likewise.
71549         * modules/getcwd (Depends-on): Likewise.
71550         * modules/human (Depends-on): Likewise.
71551         * modules/regex (Depends-on): Likewise.
71552         * modules/striconveh (Depends-on): Likewise.
71553         * modules/trim (Depends-on): Likewise.
71554         * modules/unistr/u8-move (Depends-on): Likewise.
71555         * modules/unistr/u16-move (Depends-on): Likewise.
71556         * modules/unistr/u32-move (Depends-on): Likewise.
71558 2008-11-02  Bruno Haible  <bruno@clisp.org>
71560         Mark 'memcpy' obsolete.
71561         * modules/memcpy (Status, Notice): New sections.
71563 2008-11-02  Bruno Haible  <bruno@clisp.org>
71565         Mark 'memcmp' obsolete.
71566         * modules/memcmp (Status, Notice): New sections.
71567         * modules/argmatch (Depends-on): Add memchr.
71568         * modules/backupfile (Depends-on): Likewise.
71569         * modules/c-strcasestr (Depends-on): Likewise.
71570         * modules/crypto/des (Depends-on): Likewise.
71571         * modules/csharpcomp (Depends-on): Likewise.
71572         * modules/fnmatch (Depends-on): Likewise.
71573         * modules/git-merge-changelog (Depends-on): Likewise.
71574         * modules/isnand (Depends-on): Likewise.
71575         * modules/isnand-nolibm (Depends-on): Likewise.
71576         * modules/isnanf (Depends-on): Likewise.
71577         * modules/isnanf-nolibm (Depends-on): Likewise.
71578         * modules/isnanl (Depends-on): Likewise.
71579         * modules/isnanl-nolibm (Depends-on): Likewise.
71580         * modules/mbchar (Depends-on): Likewise.
71581         * modules/memcoll (Depends-on): Likewise.
71582         * modules/quotearg (Depends-on): Likewise.
71583         * modules/regex (Depends-on): Likewise.
71584         * modules/relocatable-prog (Depends-on): Likewise.
71585         * modules/same (Depends-on): Likewise.
71586         * modules/signbit (Depends-on): Likewise.
71587         * modules/strcasestr-simple (Depends-on): Likewise.
71588         * modules/unictype/gen-ctype (Depends-on): Likewise.
71589         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
71590         * modules/uniname/uniname (Depends-on): Likewise.
71591         * modules/unistr/u8-cmp (Depends-on): Likewise.
71593 2008-11-02  Bruno Haible  <bruno@clisp.org>
71595         Mark 'memchr' obsolete.
71596         * modules/memchr (Status, Notice): New sections.
71597         * modules/argp (Depends-on): Add memchr.
71598         * modules/base64 (Depends-on): Likewise.
71599         * modules/c-strcasestr (Depends-on): Likewise.
71600         * modules/chdir-long (Depends-on): Likewise.
71601         * modules/fnmatch (Depends-on): Likewise.
71602         * modules/getsubopt (Depends-on): Likewise.
71603         * modules/git-merge-changelog (Depends-on): Likewise.
71604         * modules/glob (Depends-on): Likewise.
71605         * modules/strcasestr-simple (Depends-on): Likewise.
71606         * modules/strnlen (Depends-on): Likewise.
71608 2008-11-02  Bruno Haible  <bruno@clisp.org>
71610         Mark 'atexit' obsolete.
71611         * modules/atexit (Status, Notice): New sections.
71612         * modules/chdir-long (Depends-on): Add atexit.
71613         * modules/wait-process (Depends-on): Likewise.
71615 2008-11-02  Bruno Haible  <bruno@clisp.org>
71617         * gnulib-tool: New option --with-obsolete.
71618         (func_usage): Document it.
71619         (func_modules_transitive_closure): Drop obsolete dependencies if
71620         incobsolete is not true.
71621         (func_import): Read and save the incobsolete variable to the cache.
71623 2008-11-02  Bruno Haible  <bruno@clisp.org>
71625         * modules/TEMPLATE-EXTENDED: New field 'Status'.
71626         * gnulib-tool: New option --extract-status.
71627         (func_usage): Document it.
71628         (sed_extract_prog): Recognize it.
71629         (func_get_status): New function.
71631 2008-10-30  Simon Josefsson  <simon@josefsson.org>
71633         * modules/sockets (License): Change from LGPL to LGPLv2+.
71635 2008-10-28  Simon Josefsson  <simon@josefsson.org>
71637         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
71639 2008-10-28  Simon Josefsson  <simon@josefsson.org>
71641         * MODULES.html.sh (Support for systems lacking POSIX:2001):
71642         Mention times and sys_times.
71643         * modules/sys_times, modules/sys_times-tests: New modules.
71644         * modules/times, modules/times-tests: Likewise
71645         * m4/sys_times_h.m4: New file.
71646         * lib/sys_times.in.h: Likewise
71647         * lib/times.c: Likewise.
71648         * tests/test-sys_times.c: Likewise.
71649         * tests/test-times.c: Likewise.
71650         * doc/posix-headers/sys_times.texi: Update.
71651         * doc/posix-functions/times.texi: Update.
71653 2008-10-28  Jim Meyering  <meyering@redhat.com>
71655         * modules/tempname (Depends-on): Add lstat.
71657         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
71659 2008-10-28  Simon Josefsson  <simon@josefsson.org>
71661         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
71662         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
71663         using idiom used elsewhere in gnulib.
71665 2008-10-27  Jim Meyering  <meyering@redhat.com>
71667         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
71669 2008-10-27  Simon Josefsson  <simon@josefsson.org>
71671         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
71672         TESTS_ENVIRONMENT, for shell scripts that needs to call built
71673         programs.
71674         * tests/test-argp-2.sh: Use $EXEEXT when needed.
71676 2008-10-27  Simon Josefsson  <simon@josefsson.org>
71678         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
71680 2008-10-27  Bruno Haible  <bruno@clisp.org>
71682         * tests/test-lstat.c: Include <stdio.h>.
71684 2008-10-27  Simon Josefsson  <simon@josefsson.org>
71686         * modules/lstat-tests: New module.
71687         * tests/test-lstat.c: New file.
71689 2008-10-26  Jim Meyering  <meyering@redhat.com>
71691         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
71693 2008-10-26  Simon Josefsson  <simon@josefsson.org>
71694             Bruno Haible  <bruno@clisp.org>
71696         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
71697         * modules/configmake (Include): Add a note that the include must come
71698         after all system headers.
71699         * lib/javaversion.c: Include configmake.h after all other includes.
71701 2008-10-26  Bruno Haible  <bruno@clisp.org>
71703         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
71704         HAVE_STRUCT_RANDOM_DATA to 1.
71705         (gl_STDLIB_H): Simplify.
71707 2008-10-26  Simon Josefsson  <simon@josefsson.org>
71709         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
71710         substitute HAVE_STRUCT_RANDOM_DATA.
71711         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
71712         random_data.
71713         * modules/stdlib (Makefile.am): Substitute
71714         HAVE_STRUCT_RANDOM_DATA.
71716 2008-10-26  Simon Josefsson  <simon@josefsson.org>
71718         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
71719         * doc/gnulib-intro.texi (Copyright): Likewise.
71721 2008-10-26  Simon Josefsson  <simon@josefsson.org>
71723         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
71724         findings.
71726 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
71727             Bruno Haible  <bruno@clisp.org>
71729         * lib/unistd.in.h: Include <winsock2.h>.
71730         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
71731         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
71732         Provide dummy declarations.
71733         (gethostname): Override.
71734         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
71735         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
71736         gl_PREREQ_SYS_H_WINSOCK2.
71737         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
71738         * doc/posix-functions/gethostname.texi: More details.
71740 2008-10-25  Bruno Haible  <bruno@clisp.org>
71742         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
71743         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
71744         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
71746         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
71747         here ...
71748         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
71749         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
71750         gl_UNISTD_H_DEFAULTS.
71752 2008-10-25  Eric Blake  <ebb9@byu.net>
71754         signbit: avoid spurious compiler failure
71755         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
71756         declarations inside function.
71758 2008-10-24  Simon Josefsson  <simon@josefsson.org>
71759             Bruno Haible  <bruno@clisp.org>
71761         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
71762         * modules/random_r (Depends-on): Add stdint.
71764 2008-10-24  Bruno Haible  <bruno@clisp.org>
71766         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
71767         Eggert.
71768         * modules/strerror (License): Likewise.
71770 2008-10-24  Jim Meyering  <meyering@redhat.com>
71772         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
71773         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
71775 2008-10-24  Eric Blake  <ebb9@byu.net>
71777         getgroups: fix compilation when getgroups is available
71778         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
71779         but with <config.h> override of getgroups disabled.
71781 2008-10-24  Simon Josefsson  <simon@josefsson.org>
71783         * doc/gnulib.texi (Header files): Add note about C++ problems.
71784         Explained by Bruno Haible <bruno@clisp.org>.
71786 2008-10-23  Bruno Haible  <bruno@clisp.org>
71788         Define a dummy SA_NODEFER macro on Interix.
71789         * lib/signal.in.h (SA_NODEFER): Define fallback.
71790         Reported by Aleksey Cheusov <cheusov@tut.by> via
71791         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
71793 2008-10-23  Bruno Haible  <bruno@clisp.org>
71795         * modules/freadahead (License): Change to LGPLv2+.
71796         Suggested by Simon Josefsson.
71798 2008-10-23  Jim Meyering  <meyering@redhat.com>
71800         random_r: new module
71801         * modules/random_r: New file.
71802         * m4/random_r.m4: New file.
71803         * lib/random_r.c: New file, from glibc.
71804         * modules/random_r-tests: New file.
71805         * tests/test-random_r.c: New file.
71806         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
71807          Declare.
71808         (RAND_MAX): Define.
71809         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
71810         * modules/stdlib: Substitute them, too.
71811         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
71812         * doc/glibc-functions/initstate_r.texi: Mention the new module.
71813         * doc/glibc-functions/random_r.texi: Likewise.
71814         * doc/glibc-functions/setstate_r.texi: Likewise.
71815         * doc/glibc-functions/srandom_r.texi: Likewise.
71816         * config/srclist.txt: Mention it.
71818 2008-10-23  David Lutterkort  <lutter@redhat.com>
71820         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
71821         link requirement
71823 2008-10-23  Jim Meyering  <meyering@redhat.com>
71825         selinux-h: mark parameters of stub functions as intentionally unused
71826         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
71827         * lib/se-context.in.h: Likewise.
71829 2008-10-22  Simon Josefsson  <simon@josefsson.org>
71831         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
71833 2008-10-22  Simon Josefsson  <simon@josefsson.org>
71835         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
71837 2008-10-22  Eric Blake  <ebb9@byu.net>
71839         glthread/thread: avoid compiler warning
71840         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
71841         Add unreachable abort to silence compiler.
71843 2008-10-22  Eric Blake  <ebb9@byu.net>
71845         netdb: also supply struct addrinfo for cygwin 1.5.x
71846         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
71847         older cygwin.
71848         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
71849         cygwin.
71850         * doc/posix-headers/netdb.texi (netdb.h): Document this.
71852 2008-10-22  Bruno Haible  <bruno@clisp.org>
71854         * users.txt: Update entry about pspp.
71856 2008-10-21  Bruno Haible  <bruno@clisp.org>
71858         Simplification.
71859         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
71860         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
71862         Simplification.
71863         * lib/ioctl.c (ioctl): Don't undefine.
71864         * lib/socket.c (socket): Don't undefine.
71866         Remove unused module indicator macros.
71867         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
71868         GNULIB_$1 as a C macro.
71870         * doc/posix-functions/close.texi: Undo last change.
71871         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
71872         Windows platforms.
71874 2008-10-21  Bruno Haible  <bruno@clisp.org>
71876         Add gethostname() declaration to <unistd.h>.
71877         * lib/unistd.in.h (gethostname): New declaration.
71878         * lib/gethostname.c: Include <unistd.h>.
71879         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
71880         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
71881         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
71882         and HAVE_GETHOSTNAME.
71883         * modules/gethostname (Depends-on): Add unistd.
71884         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71885         (Include): Specify <unistd.h>.
71886         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
71887         HAVE_GETHOSTNAME.
71888         * tests/test-gethostname.c: Include <unistd.h> first.
71890 2008-10-21  Bruno Haible  <bruno@clisp.org>
71892         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
71893         * modules/select-tests (Depends-on): Likewise.
71894         Reported by Simon Josefsson.
71896 2008-10-21  Simon Josefsson  <simon@josefsson.org>
71898         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
71899         * lib/accept.c: New file, based on winsock.c.
71900         * lib/bind.c: New file, based on winsock.c.
71901         * lib/connect.c: New file, based on winsock.c.
71902         * lib/getpeername.c: New file, based on winsock.c.
71903         * lib/getsockname.c: New file, based on winsock.c.
71904         * lib/getsockopt.c: New file, based on winsock.c.
71905         * lib/ioctl.c: New file, based on winsock.c.
71906         * lib/listen.c: New file, based on winsock.c.
71907         * lib/recv.c: New file, based on winsock.c.
71908         * lib/recvfrom.c: New file, based on winsock.c.
71909         * lib/send.c: New file, based on winsock.c.
71910         * lib/sendto.c: New file, based on winsock.c.
71911         * lib/setsockopt.c: New file, based on winsock.c.
71912         * lib/shutdown.c: New file, based on winsock.c.
71913         * lib/socket.c: New file, based on winsock.c.
71914         * lib/w32sock.h: New file, based on winsock.c.
71915         * lib/winsock.c: Remove file.
71916         * modules/accept: Likewise.
71917         * modules/bind: Likewise.
71918         * modules/connect: Likewise.
71919         * modules/getpeername: Likewise.
71920         * modules/getsockname: Likewise.
71921         * modules/getsockopt: Likewise.
71922         * modules/ioctl: Likewise.
71923         * modules/listen: Likewise.
71924         * modules/recv: Likewise.
71925         * modules/recvfrom: Likewise.
71926         * modules/send: Likewise.
71927         * modules/sendto: Likewise.
71928         * modules/setsockopt: Likewise.
71929         * modules/shutdown: Likewise.
71930         * modules/socket: Use socket.c instead of winsock.c.
71931         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
71932         * doc/posix-functions/accept.texi: Doc fix.
71933         * doc/posix-functions/bind.texi: Doc fix.
71934         * doc/posix-functions/close.texi: Doc fix.
71935         * doc/posix-functions/connect.texi: Doc fix.
71936         * doc/posix-functions/getpeername.texi: Doc fix.
71937         * doc/posix-functions/getsockname.texi: Doc fix.
71938         * doc/posix-functions/getsockopt.texi: Doc fix.
71939         * doc/posix-functions/ioctl.texi: Doc fix.
71940         * doc/posix-functions/listen.texi: Doc fix.
71941         * doc/posix-functions/recv.texi: Doc fix.
71942         * doc/posix-functions/recvfrom.texi: Doc fix.
71943         * doc/posix-functions/send.texi: Doc fix.
71944         * doc/posix-functions/sendto.texi: Doc fix.
71945         * doc/posix-functions/setsockopt.texi: Doc fix.
71946         * doc/posix-functions/shutdown.texi: Doc fix.
71947         * doc/posix-functions/socket.texi: Doc fix.
71949 2008-10-20  Bruno Haible  <bruno@clisp.org>
71951         Take into account the role of SIGABRT_COMPAT on Windows 2008.
71952         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
71953         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
71954         as an alias for SIGABRT.
71955         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
71956         (sigaction): Map it to SIGABRT.
71957         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
71959 2008-10-20  Bruno Haible  <bruno@clisp.org>
71961         * lib/fts.c: Don't include lstat.h.
71962         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
71964         Move the lstat() declaration to <sys/stat.h>.
71965         * lib/lstat.h: Remove file.
71966         * lib/sys_stat.in.h: Add special invocation convention.
71967         (lstat): New declaration.
71968         * lib/lstat.c (orig_lstat): New function.
71969         (rpl_lstat): Use orig_lstat instead of lstat.
71970         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
71971         AC_C_INLINE. Set REPLACE_LSTAT.
71972         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
71973         and REPLACE_LSTAT.
71974         * modules/lstat (Files): Remove lib/lstat.h.
71975         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
71976         (Include): Specify <sys/stat.h> instead of lstat.h.
71977         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
71978         REPLACE_LSTAT.
71979         * NEWS: Mention the change.
71981 2008-10-20  Bruno Haible  <bruno@clisp.org>
71983         * modules/posix_spawn-tests: New file.
71984         * tests/test-posix_spawn3.c: New file.
71986 2008-10-20  Bruno Haible  <bruno@clisp.org>
71988         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
71989         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
71990         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
71991         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
71992         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
71994 2008-10-20  Bruno Haible  <bruno@clisp.org>
71996         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
71997         of posix_spawn on AIX 5.3.
71999 2008-10-20  Bruno Haible  <bruno@clisp.org>
72001         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
72003 2008-10-20  Bruno Haible  <bruno@clisp.org>
72005         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
72006         of AC_LANG_PROGRAM.
72008 2008-10-20  Simon Josefsson  <simon@josefsson.org>
72010         * lib/netdb.in.h: Don't define GNU specific constants until they
72011         are supported or needed.  Reported by Bruno Haible
72012         <bruno@clisp.org>.
72014 2008-10-20  Simon Josefsson  <simon@josefsson.org>
72016         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
72018 2008-10-20  Simon Josefsson  <simon@josefsson.org>
72020         * lib/getaddrinfo.h: Remove file.
72021         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
72022         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
72023         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
72024         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
72025         * modules/netdb: Substitute GNULIB_GETADDRINFO.
72026         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
72027         * tests/test-getaddrinfo.c: Likewise.
72028         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
72029         * NEWS: Mention change.
72031 2008-10-19  Bruno Haible  <bruno@clisp.org>
72033         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
72035 2008-10-19  Bruno Haible  <bruno@clisp.org>
72037         * lib/wait-process.c: Include simply <sys/wait.h>.
72038         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
72039         WIFSTOPPED): Remove fallback definitions.
72040         * modules/wait-process (Depends-on): Add sys_wait.
72042         New module 'sys_wait'.
72043         * modules/sys_wait: New file.
72044         * lib/sys_wait.in.h: New file, partially copied from
72045         lib/wait-process.c.
72046         * m4/sys_wait_h.m4: New file.
72047         * doc/posix-headers/sys_wait.texi: Mention the new module.
72049 2008-10-19  Bruno Haible  <bruno@clisp.org>
72051         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
72053 2008-10-19  Bruno Haible  <bruno@clisp.org>
72055         Assume that waitpid() fills an 'int' status, not a 'union wait'.
72056         * lib/wait-process.c (WAIT_T): Remove type.
72057         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
72058         (wait_subprocess): Update.
72060 2008-10-19  Bruno Haible  <bruno@clisp.org>
72062         New module 'atoll'.
72063         * modules/atoll: New file.
72064         * lib/stdlib.in.h (atoll): New declaration.
72065         * lib/atoll.c: New file, from glibc with modifications.
72066         * m4/atoll.m4: New file.
72067         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
72068         HAVE_ATOLL.
72069         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
72070         * doc/posix-functions/atoll.texi: Mention the new module.
72072 2008-10-19  Bruno Haible  <bruno@clisp.org>
72074         Add strtoull() declaration to <stdlib.h>.
72075         * lib/stdlib.in.h (strtoull): New declaration.
72076         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
72077         Set HAVE_STRTOULL.
72078         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
72079         HAVE_STRTOULL.
72080         * modules/strtoull (Depends-on): Add stdlib.
72081         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72082         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
72083         HAVE_STRTOULL.
72085 2008-10-19  Bruno Haible  <bruno@clisp.org>
72087         Add strtoll() declaration to <stdlib.h>.
72088         * lib/stdlib.in.h (strtoll): New declaration.
72089         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
72090         Set HAVE_STRTOLL.
72091         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
72092         HAVE_STRTOLL.
72093         * modules/strtoll (Depends-on): Add stdlib.
72094         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72095         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
72097 2008-10-19  Bruno Haible  <bruno@clisp.org>
72099         * modules/bcopy (Depends-on): Add strings.
72100         (Include): Specify <strings.h>.
72102 2008-10-19  Bruno Haible  <bruno@clisp.org>
72104         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
72106 2008-10-19  Bruno Haible  <bruno@clisp.org>
72108         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
72109         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
72110         mingw.
72112 2008-10-19  Bruno Haible  <bruno@clisp.org>
72114         * lib/atanl.c: Don't include isnanl.h.
72115         * lib/cosl.c: Likewise.
72116         * lib/ldexpl.c: Likewise.
72117         * lib/logl.c: Likewise.
72118         * lib/sinl.c: Likewise.
72119         * lib/sqrtl.c: Likewise.
72120         * lib/tanl.c: Likewise.
72122         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
72123         * lib/isnanf.h: Remove file.
72124         * lib/isnand.h: Remove file.
72125         * lib/isnanl.h: Remove file.
72126         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
72127         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
72128         macros.
72129         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
72130         HAVE_ISNANF, don't define it as a C macro.
72131         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
72132         HAVE_ISNAND, don't define it as a C macro.
72133         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
72134         HAVE_ISNANL, don't define it as a C macro.
72135         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
72136         HAVE_ISNAN[FDL].
72137         * modules/isnanf (Files): Remove lib/isnanf.h.
72138         (Depends-on): Add math.
72139         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
72140         (Include): Specify <math.h> instead of isnanf.h.
72141         * modules/isnand (Files): Remove lib/isnand.h.
72142         (Depends-on): Add math.
72143         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
72144         (Include): Specify <math.h> instead of isnand.h.
72145         * modules/isnanl (Files): Remove lib/isnanl.h.
72146         (Depends-on): Add math.
72147         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
72148         (Include): Specify <math.h> instead of isnanl.h.
72149         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
72150         HAVE_ISNAN[FDL].
72151         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
72152         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
72153         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
72154         * NEWS: Mention the change.
72156 2008-10-18  Bruno Haible  <bruno@clisp.org>
72158         Add getusershell(), setusershell(), endusershell() declarations to
72159         <unistd.h>.
72160         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
72161         declarations.
72162         * lib/getusershell.c: Include unistd.h.
72163         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
72164         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
72165         HAVE_GETUSERSHELL.
72166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
72167         and HAVE_GETUSERSHELL.
72168         * modules/getusershell (Depends-on): Add unistd, extensions.
72169         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72170         (Include): Specify <unistd.h>.
72171         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
72172         HAVE_GETUSERSHELL.
72174 2008-10-18  Bruno Haible  <bruno@clisp.org>
72176         Add a getloadavg() declaration to <stdlib.h>.
72177         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
72178         getloadavg declaration.
72179         (getloadavg): New declaration.
72180         * lib/getloadavg.c: Include <stdlib.h> first.
72181         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
72182         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
72183         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
72184         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
72185         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
72186         * modules/getloadavg (Depends-on): Add stdlib, extensions.
72187         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72188         (Include): Specify <stdlib.h>.
72189         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
72190         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
72192 2008-10-18  Bruno Haible  <bruno@clisp.org>
72194         * lib/dirchownmod.c: Don't include lchmod.h.
72196         Move the lchmod() declaration to <sys/stat.h>.
72197         * lib/lchmod.h: Remove file.
72198         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
72199         (lchmod): New declaration, moved here from lib/lchown.h.
72200         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
72201         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
72202         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
72203         and HAVE_LCHMOD.
72204         * modules/lchmod (Files): Remove lib/lchmod.h.
72205         (Depends-on): Add sys_stat, extensions.
72206         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
72207         (Include): Specify <sys/stat.h> instead of lchmod.h.
72208         * modules/sys_stat (Depends-on): Add link-warning.
72209         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
72210         definition of GL_LINK_WARNING.
72211         * NEWS: Mention the change.
72213 2008-10-18  Bruno Haible  <bruno@clisp.org>
72215         * lib/fchdir.c: Don't include dirfd.h.
72216         * lib/fts.c: Likewise.
72217         * lib/getcwd.c: Likewise.
72218         * lib/glob.c: Likewise.
72220         Move the dirfd() declaration to <dirent.h>.
72221         * lib/dirfd.h: Remove file.
72222         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
72223         (dirfd): New declaration.
72224         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
72225         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
72226         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
72227         HAVE_DECL_DIRFD.
72228         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
72229         HAVE_DECL_DIRFD.
72230         * modules/dirfd (Files): Remove lib/dirfd.h.
72231         (Depends-on): Add dirent, extensions.
72232         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
72233         (Include): Specify <dirent.h> instead of dirfd.h.
72234         * modules/dirent (Depends-on): Add link-warning.
72235         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
72236         definition of GL_LINK_WARNING.
72237         * NEWS: Mention the change.
72239 2008-10-18  Bruno Haible  <bruno@clisp.org>
72241         Move the euidaccess() declaration to <unistd.h>.
72242         * lib/euidaccess.h: Remove file.
72243         * lib/unistd.in.h (euidaccess): New declaration.
72244         * lib/euidaccess.c: Don't include euidaccess.h.
72245         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
72246         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
72247         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
72248         and HAVE_EUIDACCESS.
72249         * modules/euidaccess (Files): Remove lib/euidaccess.h.
72250         (Depends-on): Add unistd.
72251         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72252         (Include): Specify <unistd.h> instead of euidaccess.h.
72253         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
72254         HAVE_EUIDACCESS.
72255         * NEWS: Mention the change.
72257 2008-10-18  Bruno Haible  <bruno@clisp.org>
72259         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
72261         Move the getdomainname() declaration to <unistd.h>.
72262         * lib/getdomainname.h: Remove file.
72263         * lib/unistd.in.h (getdomainname): New declaration.
72264         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
72265         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
72266         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
72267         HAVE_GETDOMAINNAME.
72268         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
72269         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
72270         * modules/getdomainname (Files): Remove lib/getdomainname.h.
72271         (Depends-on): Add unistd, extensions.
72272         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72273         (Includes): Specify <unistd.h> instead of getdomainname.h.
72274         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
72275         HAVE_GETDOMAINNAME.
72276         * NEWS: Mention the change.
72278 2008-10-18  Bruno Haible  <bruno@clisp.org>
72280         * modules/dirent: New file.
72281         * m4/dirent_h.m4: New file.
72282         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
72283         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
72284         * modules/fchdir (Files): Remove lib/dirent.in.h.
72285         (Depends-on): Add dirent.
72286         (Makefile.am): Move rules to modules/dirent.
72287         * doc/posix-headers/dirent.texi: Mention the new module.
72289 2008-10-18  Bruno Haible  <bruno@clisp.org>
72291         Avoid -Wunused-parameter warnings in public gnulib header files.
72292         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
72293         macro.
72294         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
72296 2008-10-18  Bruno Haible  <bruno@clisp.org>
72298         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
72299         * doc/glibc-functions/error.texi: Mention the module 'error'.
72300         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
72301         * doc/glibc-functions/getdomainname.texi: Mention the module
72302         'getdomainname'.
72303         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
72304         * doc/glibc-functions/getpagesize.texi: Mention the module
72305         'getpagesize'.
72306         * doc/glibc-functions/getusershell.texi: Mention the module
72307         'getusershell'.
72308         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
72309         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
72310         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
72311         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
72312         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
72313         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
72314         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
72315         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
72316         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
72317         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
72318         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
72319         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
72320         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
72321         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
72323 2008-10-17  Bruno Haible  <bruno@clisp.org>
72325         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
72326         HP-UX and IRIX, use -0.0L.
72327         * tests/test-ceill.c (minus_zero): Likewise.
72328         * tests/test-floorl.c (minus_zero): Likewise.
72329         * tests/test-frexpl.c (minus_zero): Likewise.
72330         * tests/test-isnan.c (minus_zerol): Likewise.
72331         * tests/test-isnanl.h (minus_zero): Likewise.
72332         * tests/test-ldexpl.c (minus_zero): Likewise.
72333         * tests/test-roundl.c (minus_zero): Likewise.
72334         * tests/test-signbit.c (minus_zerol): Likewise.
72335         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
72336         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
72337         * tests/test-truncl.c (minus_zero): Likewise.
72338         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
72339         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
72340         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
72341         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
72343 2008-10-17  Bruno Haible  <bruno@clisp.org>
72345         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
72346         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
72347         that it gets activated only for gcc >= 3.0.
72348         * lib/dirent.in.h: Likewise.
72349         * lib/errno.in.h: Likewise.
72350         * lib/fcntl.in.h: Likewise.
72351         * lib/float.in.h: Likewise.
72352         * lib/iconv.in.h: Likewise.
72353         * lib/inttypes.in.h: Likewise.
72354         * lib/locale.in.h: Likewise.
72355         * lib/math.in.h: Likewise.
72356         * lib/netdb.in.h: Likewise.
72357         * lib/netinet_in.in.h: Likewise.
72358         * lib/search.in.h: Likewise.
72359         * lib/signal.in.h: Likewise.
72360         * lib/spawn.in.h: Likewise.
72361         * lib/stdarg.in.h: Likewise.
72362         * lib/stdint.in.h: Likewise.
72363         * lib/stdio.in.h: Likewise.
72364         * lib/stdlib.in.h: Likewise.
72365         * lib/string.in.h: Likewise.
72366         * lib/strings.in.h: Likewise.
72367         * lib/sys_file.in.h: Likewise.
72368         * lib/sys_ioctl.in.h: Likewise.
72369         * lib/sys_select.in.h: Likewise.
72370         * lib/sys_socket.in.h: Likewise.
72371         * lib/sys_stat.in.h: Likewise.
72372         * lib/sys_time.in.h: Likewise.
72373         * lib/sysexits.in.h: Likewise.
72374         * lib/time.in.h: Likewise.
72375         * lib/unistd.in.h: Likewise.
72376         * lib/wchar.in.h: Likewise.
72377         * lib/wctype.in.h: Likewise.
72378         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72380 2008-10-17  Jim Meyering  <meyering@redhat.com>
72382         ignore-value: don't depend on inline module
72383         * modules/ignore-value (Depends-on): Remove 'inline'.
72384         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
72385         Suggestion from Bruno Haible.
72387 2008-10-17  Bruno Haible  <bruno@clisp.org>
72389         New implementation of condition variables for Win32.
72390         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
72391         (gl_linked_waitqueue_t): New type.
72392         (gl_cond_t): Use it.
72393         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
72394         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
72395         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
72396         (glthread_cond_init_func, glthread_cond_wait_func,
72397         glthread_cond_timedwait_func, glthread_cond_signal_func,
72398         glthread_cond_broadcast_func, glthread_cond_destroy_func):
72399         Reimplemented on the basis of gl_linked_waitqueue_t.
72400         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
72401         gl_waitqueue_t.
72402         (gl_rwlock_t): Update.
72403         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
72405 2008-10-17  Simon Josefsson  <simon@josefsson.org>
72407         * modules/recvfrom (Depends-on): Add dependency on getpeername.
72408         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
72410 2008-10-17  Jim Meyering  <meyering@redhat.com>
72412         ignore-value: new module
72413         * modules/ignore-value: New file.
72414         * lib/ignore-value.h: New file.
72415         * MODULES.html.sh (Compiler warning management): New section,
72416         just for this module.  More to come.
72418 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
72420         open-safer.c: avoid 'signed and unsigned in conditional...' warning
72421         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
72422         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
72424 2008-10-16  Jim Meyering  <meyering@redhat.com>
72426         openat-die.c: avoid 'no previous prototype' warning
72427         * lib/openat-die.c: Include "openat.h".
72428         Reported by Reuben Thomas <rrt@sc3d.org>.
72430 2008-10-16  Simon Josefsson  <simon@josefsson.org>
72432         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
72433         * lib/netdb.in.h: Fix typo.
72434         Reported by Bruno Haible  <bruno@clisp.org>
72436         * lib/netdb.in.h: Include sys/socket.h for platforms without
72437         netdb.h, to get structures like hostent on MinGW.
72438         * modules/netdb (Depends-on): Add sys_socket.
72440 2008-10-15  Simon Josefsson  <simon@josefsson.org>
72442         * modules/netdb, modules/netdb-tests: New file.
72443         * m4/netdb_h.m4: New file.
72444         * lib/netdb.in.h: Add, currently just an empty file pending
72445         definitions.
72446         * tests/test-netdb.c: New file.
72447         * doc/posix-headers/netdb.texi: Mention that we replace it if
72448         needed.
72449         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72450         netdb.
72452 2008-10-15  Simon Josefsson  <simon@josefsson.org>
72454         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
72455         with code.
72457 2008-10-13  Bruno Haible  <bruno@clisp.org>
72459         * lib/glthread/cond.c (glthread_cond_wait_func,
72460         glthread_cond_timedwait_func): Add a comment.
72462 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72464         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
72465         * tests/test-select.c: Likewise,
72467 2008-10-13  Bruno Haible  <bruno@clisp.org>
72469         * lib/glthread/cond.c (glthread_cond_wait_func,
72470         glthread_cond_timedwait_func): Fix variable name.
72471         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
72473 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
72475         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
72476         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
72477         struct sockaddr.sa_len.
72478         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
72480 2008-10-13  Simon Josefsson  <simon@josefsson.org>
72482         * build-aux/pmccabe2html: Add css and css_url parameters.
72484 2008-10-12  Bruno Haible  <bruno@clisp.org>
72486         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
72487         calling aclx_get.
72488         Reported by Rainer Tammer <tammer@tammer.net>.
72490 2008-10-12  Bruno Haible  <bruno@clisp.org>
72492         Use msvcrt aware primitives for creation/termination of Win32 threads.
72493         * lib/glthread/thread.c: Include <process.h>.
72494         (glthread_create_func): Use _beginthreadex instead of CreateThread.
72495         (wrapper_func): Update signature.
72496         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
72498 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72499             Bruno Haible  <bruno@clisp.org>
72501         Provide a Win32 implementation of the 'cond' module.
72502         * lib/glthread/cond.h [USE_WIN32]: New implementation.
72503         * lib/glthread/cond.c (glthread_cond_init_func,
72504         glthread_cond_wait_func, glthread_cond_timedwait_func,
72505         glthread_cond_signal_func, glthread_cond_broadcast_func,
72506         glthread_cond_destroy_func) [USE_WIN32]: New functions.
72507         * modules/cond (Dependencies): Add gettimeofday.
72509 2008-10-11  Bruno Haible  <bruno@clisp.org>
72511         Make sleep work on older versions of mingw.
72512         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
72513         only whether it exists.
72514         * doc/posix-functions/sleep.texi: Mention the problem with older
72515         versions of mingw.
72517 2008-10-11  Bruno Haible  <bruno@clisp.org>
72519         New module 'shutdown'.
72520         * modules/shutdown: New file.
72521         * lib/sys_socket.in.h (shutdown): New declaration.
72522         * lib/winsock.c (shutdown): New function.
72523         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
72524         GNULIB_SHUTDOWN.
72525         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
72526         * doc/posix-functions/shutdown.texi: Document the new module.
72528 2008-10-11  Jim Meyering  <meyering@redhat.com>
72530         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
72532 2008-10-11  Bruno Haible  <bruno@clisp.org>
72534         New module 'fclose'.
72535         * modules/fclose: New file.
72536         * lib/stdio.in.h (fclose): New declaration.
72537         * lib/fclose.c: New file.
72538         * m4/fclose.m4: New file.
72539         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
72540         REPLACE_FCLOSE.
72541         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
72542         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
72543         REPLACE_FCLOSE.
72544         * modules/close (Depends-on): fclose.
72545         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
72547 2008-10-11  Bruno Haible  <bruno@clisp.org>
72549         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
72550         set errno and don't call _close.
72552 2008-10-10  Bruno Haible  <bruno@clisp.org>
72554         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
72555         ACL, not afterwards. Fixes test failure on Cygwin.
72557 2008-10-09  Ben Pfaff  <blp@gnu.org>
72559         * build-aux/announce-gen: Fix gnulib version related part of usage
72560         message.  Die with a useful error message if no tarballs are
72561         found.
72563 2008-10-10  Jim Meyering  <meyering@redhat.com>
72565         bootstrap: use git's --depth=N option only if it's supported
72566         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
72567         recognize the --depth option.  Reported by Pádraig Brady.
72569 2008-10-09  Bruno Haible  <bruno@clisp.org>
72571         New module 'ioctl'.
72572         * modules/ioctl: New file.
72573         * lib/sys_socket.in.h (ioctl): Remove declaration.
72574         * lib/winsock.c: Include <sys/ioctl.h>.
72575         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
72576         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
72577         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
72578         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
72579         * doc/posix-functions/ioctl.texi: Mention the new module.
72581 2008-10-09  Bruno Haible  <bruno@clisp.org>
72583         New module 'sys_ioctl'.
72584         * lib/sys_ioctl.in.h: New file.
72585         * m4/sys_ioctl_h.m4: New file.
72586         * modules/sys_ioctl: New file.
72587         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
72589 2008-10-09  Bruno Haible  <bruno@clisp.org>
72591         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
72592         * lib/winsock.c: Include <stdarg.h>.
72593         (rpl_ioctl): Change to second argument 'int' and then varargs.
72595 2008-10-09  Bruno Haible  <bruno@clisp.org>
72597         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
72598         when the sys_socket module is present and the system has <winsock2.h>.
72600 2008-10-09  Bruno Haible  <bruno@clisp.org>
72602         * doc/posix-functions/close.texi: Mention module 'close' instead of
72603         module 'sys_socket'.
72605 2008-10-09  Bruno Haible  <bruno@clisp.org>
72607         * doc/glibc-headers/sys_ioctl.texi: New file.
72608         * doc/gnulib.texi: Include it.
72610 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
72611             Bruno Haible  <bruno@clisp.org>
72613         Combine the two replacements of 'close'.
72614         * lib/sys_socket.in.h (close): Define to a reminder to include
72615         <unistd.h>.
72616         (_gl_close_fd_maybe_socket): New declaration.
72617         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
72618         * lib/winsock.c (close): Remove undefinition.
72619         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
72620         needed for the gnulib module 'close'.
72621         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
72622         define to an error symbol or to a warning, if suitable.
72623         * lib/close.c: Include <sys/socket.h>.
72624         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
72625         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
72626         UNISTD_H_HAVE_WINSOCK2_H.
72627         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
72628         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
72629         UNISTD_H_HAVE_WINSOCK2_H.
72630         * modules/sys_socket (Files): Add m4/unistd_h.m4.
72631         (configure.ac): Set a module indicator.
72632         (Makefile.am): Substitute GNULIB_CLOSE.
72633         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
72634         * modules/poll-tests (Depends-on): Add close.
72635         * modules/select-tests (Depends-on): Likewise.
72637 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
72638             Bruno Haible  <bruno@clisp.org>
72640         New module 'close'.
72641         * modules/close: New file.
72642         * lib/unistd.in.h (close): Move declaration out of the
72643         FCHDIR_REPLACEMENT scope.
72644         (_gl_unregister_fd): New declaration.
72645         * lib/close.c: New file.
72646         * lib/fchdir.c (rpl_close): Remove function.
72647         * m4/close.m4: New file.
72648         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
72649         close.
72650         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
72651         REPLACE_CLOSE.
72652         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
72653         REPLACE_CLOSE.
72654         * modules/fchdir (Depends-on): Add close.
72656 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
72657             Bruno Haible  <bruno@clisp.org>
72659         * lib/fcntl.in.h (open): Simplify conditionals.
72660         (_gl_register_fd): New declaration.
72661         * lib/fchdir.c (rpl_open): Remove function.
72662         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
72663         also.
72664         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
72665         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
72666         open.
72668 2008-10-09  Jim Meyering  <meyering@redhat.com>
72670         GNUmakefile: use the more name-space-friendly "_version"
72671         * top/GNUmakefile (_dummy): Update.
72672         (_version): Rename from "version".
72674 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
72675             Bruno Haible  <bruno@clisp.org>
72677         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
72678         rpl_close.
72679         (_gl_register_fd): New function, extracted from rpl_open.
72680         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
72681         (rpl_open, rpl_opendir): Use _gl_register_fd.
72683 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
72685         Fix organization of 'open' replacement.
72686         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
72687         (gl_FUNC_OPEN): Use it.
72688         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
72690 2008-10-08  Bruno Haible  <bruno@clisp.org>
72692         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
72694 2008-10-08  Simon Josefsson  <simon@josefsson.org>
72696         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
72697         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
72698         listen).
72700 2008-10-08  Eric Blake  <ebb9@byu.net>
72702         GNUmakefile: add 'make version' target
72703         * top/GNUmakefile (_curr-ver): Split version update rules...
72704         (version): ...into a target.
72706 2008-10-07  Bruno Haible  <bruno@clisp.org>
72708         Use a more portable replacement expression for -0.0L.
72709         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
72710         instead of -0.0L. Fix m4 quotation.
72712         * tests/test-signbit.c: Include <float.h>.
72713         (minus_zero): New variable.
72714         (test_signbitl): Use minus_zero instead of -zero.
72715         * modules/signbit-tests (Depends-on): Add float.
72717         * tests/test-ceill.c: Include <float.h>.
72718         (zero): Remove variable.
72719         (minus_zero): New variable.
72720         (main): Use minus_zero instead of -zero.
72721         * modules/ceill-tests (Depends-on): Add float.
72723         * tests/test-floorl.c: Include <float.h>.
72724         (zero): Remove variable.
72725         (minus_zero): New variable.
72726         (main): Use minus_zero instead of -zero.
72727         * modules/floorl-tests (Depends-on): Add float.
72729         * tests/test-roundl.c: Include <float.h>.
72730         (zero): Remove variable.
72731         (minus_zero): New variable.
72732         (main): Use minus_zero instead of -zero.
72733         * modules/roundl-tests (Depends-on): Add float.
72735         * tests/test-truncl.c: Include <float.h>.
72736         (zero): Remove variable.
72737         (minus_zero): New variable.
72738         (main): Use minus_zero instead of -zero.
72739         * modules/truncl-tests (Depends-on): Add float.
72741         * tests/test-frexpl.c (zero): Remove variable.
72742         (minus_zero): New variable.
72743         (main): Use minus_zero instead of -zero.
72744         * modules/frexpl-tests (Depends-on): Add float.
72746         * tests/test-isnan.c (zerol): Remove variable.
72747         (minus_zerol): New variable.
72748         (test_long_double): Use minus_zerol instead of -zerol.
72749         * modules/isnan-tests (Depends-on): Add float.
72751         * tests/test-isnanl.h (zero): Remove variable.
72752         (minus_zero): New variable.
72753         (main): Use minus_zero instead of -zero.
72754         * modules/isnanl-nolibm-tests (Depends-on): Add float.
72755         * modules/isnanl-tests (Depends-on): Add float.
72757         * tests/test-ldexpl.c (zero): Remove variable.
72758         (minus_zero): New variable.
72759         (main): Use minus_zero instead of -zero.
72760         * modules/ldexpl-tests (Depends-on): Add float.
72762         * tests/test-snprintf-posix.h (zerol): Remove variable.
72763         (minus_zerol): New variable.
72764         (test_function): Use minus_zerol instead of -zerol.
72765         * modules/snprintf-posix-tests (Depends-on): Add float.
72766         * modules/vsnprintf-posix-tests (Depends-on): Add float.
72768         * tests/test-sprintf-posix.h (zerol): Remove variable.
72769         (minus_zerol): New variable.
72770         (test_function): Use minus_zerol instead of -zerol.
72771         * modules/sprintf-posix-tests (Depends-on): Add float.
72772         * modules/vsprintf-posix-tests (Depends-on): Add float.
72774         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
72775         (minus_zerol): New variable.
72776         (test_function): Use minus_zerol instead of -zerol.
72777         * modules/vasnprintf-posix-tests (Depends-on): Add float.
72779         * tests/test-vasprintf-posix.c (zerol): Remove variable.
72780         (minus_zerol): New variable.
72781         (test_function): Use minus_zerol instead of -zerol.
72782         * modules/vasprintf-posix-tests (Depends-on): Add float.
72784 2008-10-07  Simon Josefsson  <simon@josefsson.org>
72786         * MODULES.html.sh (Support for building documentation): Mention
72787         pmccabe2html.  Sort entries.
72789         Add pmccabe2html module, from gnupdf.
72790         * build-aux/pmccabe.css: New file.
72791         * build-aux/pmccabe2html: New file.
72792         * m4/pmccabe2html.m4: New file.
72793         * modules/pmccabe2html: New file.
72795 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
72797         flock: new module
72798         * MODULES.html.sh: Add to list of modules.
72799         * lib/flock.c: flock implementation for Windows and Unix systems
72800         which have fcntl.
72801         * doc/glibc-functions/flock.texi: Update documentation.
72802         * lib/sys_file.in.h: <sys/file.h> header file.
72803         * m4/flock.m4: M4 macros.
72804         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
72805         * modules/flock: flock module.
72806         * modules/flock-tests: flock tests module.
72807         * modules/sys_file: sys/file.h module.
72808         * tests/test-flock.c: test suite for flock.
72810 2008-10-06  Jim Meyering  <meyering@redhat.com>
72812         bootstrap: check for LT_INIT more portably still ;-)
72813         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
72814         Spotted by Bruno Haible.
72816 2008-10-06  Eric Blake  <ebb9@byu.net>
72818         test-signbit: avoid tripping Irix cc bug on -0.0L
72819         * tests/test-signbit.c (minus_zerol): Delete, and replace with
72820         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
72821         entire testsuite consistent and avoids an Irix 6.2 bug.
72823 2008-10-05  Bruno Haible  <bruno@clisp.org>
72824             Jim Meyering  <jim@meyering.net>
72826         Add an option for ignoring EPIPE during close_stdout.
72827         * lib/closeout.h: Include <stdbool.h>.
72828         (close_stdout_set_ignore_EPIPE): New declaration.
72829         * lib/closeout.c: Include <stdbool.h>.
72830         (ignore_EPIPE): New variable.
72831         (close_stdout_set_ignore_EPIPE): New function.
72832         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
72833         * lib/close-stream.c (close_stream): Mention the possible EPIPE
72834         failure.
72835         * modules/closeout (Depends-on): Add stdbool.
72837 2008-10-05  Bruno Haible  <bruno@clisp.org>
72839         * modules/accept: New file.
72840         * modules/bind: New file.
72841         * modules/connect: New file.
72842         * modules/getpeername: New file.
72843         * modules/getsockname: New file.
72844         * modules/getsockopt: New file.
72845         * modules/listen: New file.
72846         * modules/recv: New file.
72847         * modules/recvfrom: New file.
72848         * modules/send: New file.
72849         * modules/sendto: New file.
72850         * modules/setsockopt: New file.
72851         * modules/socket: New file.
72852         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
72853         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
72854         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
72855         the particular module is requested. Add a link warning when the
72856         particular module is not requested.
72857         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
72858         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
72859         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
72860         the particular module is requested.
72861         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
72862         gl_SYS_SOCKET_H_DEFAULTS): New macros.
72863         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
72864         * modules/sys_socket (Depends-on): Add link-warning.
72865         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
72866         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
72867         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
72868         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
72869         GL_LINK_WARNING.
72870         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
72871         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
72872         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
72873         * doc/posix-functions/getpeername.texi: Mention the new module
72874         'getpeername'.
72875         * doc/posix-functions/getsockname.texi: Mention the new module
72876         'getsockname'.
72877         * doc/posix-functions/getsockopt.texi: Mention the new module
72878         'getsockopt'.
72879         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
72880         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
72881         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
72882         * doc/posix-functions/send.texi: Mention the new module 'send'.
72883         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
72884         * doc/posix-functions/setsockopt.texi: Mention the new module
72885         'setsockopt'.
72886         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
72887         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
72888         listen, connect, accept.
72889         * modules/select-tests (Depends-on): Likewise.
72891 2008-10-05  Bruno Haible  <bruno@clisp.org>
72893         * lib/winsock.c (strerror): Remove unused #undef.
72894         (rpl_close): Remove unused local variable.
72896         * modules/sys_socket (Depends-on); Add errno.
72898 2008-10-05  Bruno Haible  <bruno@clisp.org>
72900         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
72901         (select): Add a link warning when the 'select' module is not used.
72902         * modules/sys_select (Depends-on): Add link-warning.
72903         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
72904         Suggested by Paolo Bonzini.
72906 2008-10-05  Jim Meyering  <meyering@redhat.com>
72908         bootstrap: check for LT_INIT more portably
72909         * build-aux/bootstrap: Avoid using grep -E, since it's not
72910         portable enough.  Suggestion from Bruno Haible.
72912 2008-10-05  Bruno Haible  <bruno@clisp.org>
72914         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
72915         as being fixed by gnulib.
72917 2008-10-05  Bruno Haible  <bruno@clisp.org>
72919         * modules/select-tests: New file, mostly copied from
72920         modules/sys_select-tests.
72921         * tests/test-select.c: New file, mostly copied from
72922         tests/test-sys_select.c.
72923         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
72924         * modules/sys_select-tests (Depends-on): Remove all dependencies.
72925         (Makefile.am): Remove test_sys_select_LDADD.
72927         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
72928         to an undefined symbol, for an error message.
72929         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
72930         (gl_SYS_SELECT_H_DEFAULTS): New macro.
72931         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
72932         winsock-select.c here.
72933         * modules/sys_select (Files): Remove lib/winsock-select.c.
72934         (Depends-on): Remove alloca.
72935         (Makefile.am): Substitute GNULIB_SELECT.
72936         * modules/select: New file.
72937         * doc/posix-functions/select.texi: Update.
72939 2008-10-05  Bruno Haible  <bruno@clisp.org>
72941         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
72942         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
72943         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
72944         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
72945         getdtablesize.
72946         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
72947         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
72949 2008-10-05  Bruno Haible  <bruno@clisp.org>
72951         * modules/getdtablesize-tests: New file.
72952         * tests/test-getdtablesize.c: New file.
72954         New module 'getdtablesize'.
72955         * lib/unistd.in.h (getdtablesize): New declaration.
72956         * lib/getdtablesize.c: New file.
72957         * m4/getdtablesize.m4: New file.
72958         * modules/getdtablesize: New file.
72959         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
72960         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
72961         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
72962         HAVE_GETDTABLESIZE.
72963         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
72965 2008-10-05  Bruno Haible  <bruno@clisp.org>
72967         * modules/sched (Makefile.am): Fix typo.
72968         Reported by Simon Josefsson.
72970 2008-10-05  Jim Meyering  <meyering@redhat.com>
72972         bootstrap: check for LT_INIT, too
72973         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
72974         are deprecated.  Suggestion from Ralf Wildenhues.
72976 2008-10-05  Bruno Haible  <bruno@clisp.org>
72978         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
72979         overriding them by ours.
72980         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
72982 2008-10-05  Jim Meyering  <meyering@redhat.com>
72984         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
72985         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
72986         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
72988 2008-10-04  Bruno Haible  <bruno@clisp.org>
72990         * modules/dup2 (License): Change to LGPLv2+.
72991         * modules/sleep (License): Likewise.
72992         * modules/perror (License): Likewise.
72993         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
72994         Blake.
72995         * modules/signal (License): Likewise.
72996         * modules/sigprocmask (License): Likewise.
72997         * modules/raise (License): Change to LGPLv2+, with approval by Jim
72998         Meyering.
73000 2008-10-04  Bruno Haible  <bruno@clisp.org>
73002         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
73003         Reported by Rainer Tammer <tammer@tammer.net>.
73005 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
73006             Bruno Haible  <bruno@clisp.org>
73008         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
73009         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
73010         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
73012 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
73014         filevercmp: new module
73015         * lib/filevercmp.h: New function filevercmp comparing version strings.
73016         * lib/filevercmp.c: Implementation of filevercmp function.
73017         * modules/filevercmp: Module metadata.
73018         * tests/test-filevercmp.c: Unit test for new module.
73019         * modules/filevercmp-tests: Unit test metadata.
73020         * MODULES.html.sh: Add filevercmp module.
73022 2008-10-03  Bruno Haible  <bruno@clisp.org>
73024         * lib/c-ctype.h: Add comment.
73025         Reported by Jim Meyering.
73027 2008-10-02  Bruno Haible  <bruno@clisp.org>
73029         * modules/posix_spawn-internal (Depends-on): Add 'open'.
73031 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
73033         * build-aux/bootstrap: Allow renaming bootstrap, and change the
73034         name of bootstrap.conf accordingly.
73036 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
73038         * build-aux/bootstrap: Install git-merge-changelog configuration
73039         items into .gitconfig if needed.
73041 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
73043         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
73044         git repository, and initialize/update it accordingly.
73046 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
73048         * modules/fsync-tests: New file.
73049         * tests/test-fsync.c: New file.
73051         New module 'fsync'.
73052         * lib/fsync.c: New file.
73053         * m4/fsync.m4: New file.
73054         * modules/fsync: New file.
73055         * lib/unistd.in.h (fsync): New declaration.
73056         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
73057         GNULIB_FSYNC and HAVE_FSYNC.
73058         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
73059         * MODULES.html.sh (posix_functions): Add fsync.
73060         * doc/posix-functions/fsync.texi: Mention the new module.
73062 2008-10-02  Jim Meyering  <meyering@redhat.com>
73064         fts.c: sync with similar code from coreutils' remove.c
73065         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
73066         Guard also with "#if defined __linux__", since for now at least,
73067         this code is Linux-kernel-specific.
73069 2008-10-02  Jim Meyering  <meyering@redhat.com>
73071         fts: bug fixes
73072         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
73073         Include <sys/vfs.h>, not <sys/statfs.h>.
73075         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
73076         Include <sys/vfs.h>, not <sys/statfs.h>.
73078 2008-10-01  Bruno Haible  <bruno@clisp.org>
73080         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
73081         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
73082         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
73083         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
73084         * doc/posix-functions/posix_spawnp.texi: Likewise.
73085         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
73086         whether posix_spawn actually works.
73087         * m4/pipe.m4 (gl_PIPE): Likewise.
73088         * modules/execute (Files): Add m4/posix_spawn.m4.
73089         * modules/pipe (Files): Add m4/posix_spawn.m4.
73090         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
73092 2008-10-01  Jim Meyering  <meyering@redhat.com>
73094         remove trailing spaces
73095         * NEWS: Likewise.
73096         * lib/poll.c (poll): Likewise.
73097         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
73098         * lib/winsock.c (rpl_close): Likewise.
73099         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
73100         * modules/yield: Likewise.
73101         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
73102         * tests/test-sys_select.c (connect_to_socket): Likewise.
73104         fts.c: adjust a new interface to be more generally useful
73105         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
73106         (fts_build): Adjust caller.
73108 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73110         * modules/cond-tests: New file.
73111         * tests/test-cond.c: New file.
73113 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73114             Bruno Haible  <bruno@clisp.org>
73116         * modules/cond (Dependencies): Add errno, time.
73117         * lib/glthread/cond.h: Include <time.h>.
73118         (gl_cond_define, gl_cond_define_initialized): Use the same definition
73119         across platforms.
73121 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73122             Bruno Haible  <bruno@clisp.org>
73124         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
73126 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73127             Bruno Haible  <bruno@clisp.org>
73129         * modules/tls-tests (Depends-on): Add thread, yield.
73130         (configure.ac): Remove all checks.
73131         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
73132         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
73133         gl_thread_self): Remove definitions. Include glthread/thread.h and
73134         glthread/yield.h instead.
73135         (test_tls): Pass an additional NULL argument to gl_thread_join.
73137 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73138             Bruno Haible  <bruno@clisp.org>
73140         * modules/lock-tests (Depends-on): Add thread, yield.
73141         (configure.ac): Remove all checks.
73142         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
73143         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
73144         gl_thread_self): Remove definitions. Include glthread/thread.h and
73145         glthread/yield.h instead.
73146         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
73147         additional NULL argument to gl_thread_join.
73149 2008-09-30  Bruno Haible  <bruno@clisp.org>
73151         Fix the Win32 implementation of the 'thread' module.
73152         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
73153         pointer type.
73154         (gl_thread_self): Invoke gl_thread_self_func.
73155         (gl_thread_self_func): New declaration.
73156         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
73157         (do_init_self_key, init_self_key): New functions.
73158         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
73159         Remove some fields.
73160         (running_threads, running_lock): Remove variables.
73161         (get_current_thread_handle): New function.
73162         (gl_thread_self_func, wrapper_func, glthread_create_func,
73163         glthread_join_func, gl_thread_exit_func): Largely rewritten and
73164         simplified.
73166 2008-09-30  Bruno Haible  <bruno@clisp.org>
73168         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
73169         files.
73171 2008-09-30  Jim Meyering  <meyering@redhat.com>
73173         fts.m4: correct the test for statfs.f_type
73174         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
73175         when checking for statfs.f_type.
73177 2008-09-15  Simon Josefsson  <simon@josefsson.org>
73179         tests: avoid some compiler warnings
73180         * tests/test-memchr.c (main): Pass NULL indirectly.
73181         * tests/test-getdate.c (main): Remove unused variable 'ret'.
73183 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
73185         getdate.y: disallow countable dayshifts like "4 yesterday ago"
73186         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
73187         exactly specified dayshifts.
73188         (dayshift): New rule.
73189         (rel): Add dayshift.
73190         (relative_time_table) [tomorrow, yesterday, today, now]:
73191         Use tDAY_SHIFT in place of tDAY_UNIT.
73192         * tests/test-getdate.c: Add tests for now-disallowed countable
73193         dayshifts, e.g., "4 yesterday ago".
73195 2008-09-29  Bruno Haible  <bruno@clisp.org>
73197         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
73198         * tests/test-posix_spawn1.in.sh: Renamed from
73199         tests/test-posix_spawn.in.sh.
73200         * tests/test-posix_spawn2.c: New file.
73201         * tests/test-posix_spawn2.in.sh: New file.
73202         * modules/posix_spawnp-tests (Files): Update.
73203         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
73205 2008-09-29  Bruno Haible  <bruno@clisp.org>
73207         Propagate effects of putenv/setenv/unsetenv to child processes.
73208         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
73209         * lib/pipe.c (create_pipe): Likewise.
73211 2008-09-29  Bruno Haible  <bruno@clisp.org>
73213         Enable use of shell scripts as executables in mingw.
73214         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
73215         run the program as a shell script.
73216         * lib/pipe.c (create_pipe): Likewise.
73217         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
73218         resulting array.
73220 2008-09-29  Eric Blake  <ebb9@byu.net>
73222         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
73224 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
73226         * doc/posix-functions/accept.texi: Update mingw problems.
73227         * doc/posix-functions/bind.texi: Update mingw problems.
73228         * doc/posix-functions/close.texi: Update mingw problems.
73229         * doc/posix-functions/connect.texi: Update mingw problems.
73230         * doc/posix-functions/getpeername.texi: Update mingw problems.
73231         * doc/posix-functions/getsockname.texi: Update mingw problems.
73232         * doc/posix-functions/getsockopt.texi: Update mingw problems.
73233         * doc/posix-functions/ioctl.texi: Update mingw problems.
73234         * doc/posix-functions/listen.texi: Update mingw problems.
73235         * doc/posix-functions/recv.texi: Update mingw problems.
73236         * doc/posix-functions/recvfrom.texi: Update mingw problems.
73237         * doc/posix-functions/select.texi: Update mingw problems.
73238         * doc/posix-functions/send.texi: Update mingw problems.
73239         * doc/posix-functions/sendto.texi: Update mingw problems.
73240         * doc/posix-functions/setsockopt.texi: Update mingw problems.
73241         * doc/posix-functions/socket.texi: Update mingw problems.
73243 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
73244             Bruno Haible  <bruno@clisp.org>
73246         * lib/sys_select.in.h: Include sys/time.h.
73247         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
73248         * modules/sys_select: Depend on sys_time.
73249         * tests/test-sys_select.c: Test that sys/select.h defines struct
73250         timeval fully.
73252 2008-09-29  Bruno Haible  <bruno@clisp.org>
73254         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
73255         * lib/sys_select.in.h: Likewise.
73257 2008-09-29  Bruno Haible  <bruno@clisp.org>
73259         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
73261 2008-09-29  Bruno Haible  <bruno@clisp.org>
73263         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
73264         Set LIBSOCKET instead of augmenting LIBS.
73265         * modules/sockets (Link): New section.
73266         * modules/sockets-tests (test_sockets_LDADD): New variable.
73267         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
73268         * modules/poll-tests (test_poll_LDADD): New variable.
73269         * NEWS: Document the change.
73271 2008-09-29  Bruno Haible  <bruno@clisp.org>
73273         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
73274         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
73275         ARPA_INET_H directly.
73276         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
73278 2008-09-28  Bruno Haible  <bruno@clisp.org>
73280         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
73281         from gl_HEADER_SYS_SOCKET.
73282         (gl_HEADER_SYS_SOCKET): Invoke it.
73283         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
73285 2008-09-28  Bruno Haible  <bruno@clisp.org>
73287         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
73288         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
73289         Needed on OSF/1 4.0.
73291 2008-09-28  Bruno Haible  <bruno@clisp.org>
73293         Override open more carefully.
73294         * lib/open.c (orig_open): New function.
73295         (rpl_open): Use orig_open instead of open.
73296         * lib/fcntl.in.h: Add special invocation convention.
73297         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
73298         (gl_FUNC_OPEN): Invoke it.
73300         Override freopen more carefully.
73301         * lib/freopen.c (orig_freopen): New function.
73302         (rpl_freopen): Use orig_freopen instead of freopen.
73303         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
73304         (gl_FUNC_FREOPEN): Invoke it.
73306         Override fopen more carefully.
73307         * lib/fopen.c (orig_fopen): New function.
73308         (rpl_fopen): Use orig_fopen instead of fopen.
73309         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
73310         (gl_FUNC_FOPEN): Invoke it.
73311         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
73313 2008-09-28  Bruno Haible  <bruno@clisp.org>
73315         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
73316         SIGPIPE.
73318 2008-09-28  Bruno Haible  <bruno@clisp.org>
73320         * tests/test-sigaction.c (handler, main): Disable the check whether
73321         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
73322         glibc systems with LinuxThreads.
73324 2008-09-28  Bruno Haible  <bruno@clisp.org>
73326         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
73328         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
73329         with AIX xlc.
73330         * lib/fcntl.in.h (open): Likewise.
73331         Reported by Rainer Tammer <tammer@tammer.net>.
73333 2008-09-28  Bruno Haible  <bruno@clisp.org>
73335         * modules/posix_spawnp-tests: New file.
73336         * tests/test-posix_spawn.c: New file.
73337         * tests/test-posix_spawn.in.sh: New file.
73339         New module 'posix_spawnp'.
73340         * modules/posix_spawnp: New file.
73341         * lib/spawnp.c: New file, from GNU libc with modifications.
73342         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
73344         New module 'posix_spawn'.
73345         * modules/posix_spawn: New file.
73346         * lib/spawn.c: New file, from GNU libc with modifications.
73347         * doc/posix-functions/posix_spawn.texi: Mention the new module.
73349         New module 'posix_spawnattr_destroy'.
73350         * modules/posix_spawnattr_destroy: New file.
73351         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
73352         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
73353         module.
73355         New module 'posix_spawnattr_setsigmask'.
73356         * modules/posix_spawnattr_setsigmask: New file.
73357         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
73358         modifications.
73359         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
73360         new module.
73362         New module 'posix_spawnattr_getsigmask'.
73363         * modules/posix_spawnattr_getsigmask: New file.
73364         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
73365         modifications.
73366         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
73367         new module.
73369         New module 'posix_spawnattr_setsigdefault'.
73370         * modules/posix_spawnattr_setsigdefault: New file.
73371         * lib/spawnattr_setdefault.c: New file, from GNU libc with
73372         modifications.
73373         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
73374         new module.
73376         New module 'posix_spawnattr_getsigdefault'.
73377         * modules/posix_spawnattr_getsigdefault: New file.
73378         * lib/spawnattr_getdefault.c: New file, from GNU libc with
73379         modifications.
73380         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
73381         new module.
73383         New module 'posix_spawnattr_setschedpolicy'.
73384         * modules/posix_spawnattr_setschedpolicy: New file.
73385         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
73386         modifications.
73387         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
73388         new module.
73390         New module 'posix_spawnattr_getschedpolicy'.
73391         * modules/posix_spawnattr_getschedpolicy: New file.
73392         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
73393         modifications.
73394         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
73395         new module.
73397         New module 'posix_spawnattr_setschedparam'.
73398         * modules/posix_spawnattr_setschedparam: New file.
73399         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
73400         modifications.
73401         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
73402         new module.
73404         New module 'posix_spawnattr_getschedparam'.
73405         * modules/posix_spawnattr_getschedparam: New file.
73406         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
73407         modifications.
73408         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
73409         new module.
73411         New module 'posix_spawnattr_setpgroup'.
73412         * modules/posix_spawnattr_setpgroup: New file.
73413         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
73414         modifications.
73415         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
73416         module.
73418         New module 'posix_spawnattr_getpgroup'.
73419         * modules/posix_spawnattr_getpgroup: New file.
73420         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
73421         modifications.
73422         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
73423         module.
73425         New module 'posix_spawnattr_setflags'.
73426         * modules/posix_spawnattr_setflags: New file.
73427         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
73428         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
73429         module.
73431         New module 'posix_spawnattr_getflags'.
73432         * modules/posix_spawnattr_getflags: New file.
73433         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
73434         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
73435         module.
73437         New module 'posix_spawnattr_init'.
73438         * modules/posix_spawnattr_init: New file.
73439         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
73440         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
73441         module.
73443         New module 'posix_spawn_file_actions_destroy'.
73444         * modules/posix_spawn_file_actions_destroy: New file.
73445         * lib/spawn_faction_destroy.c: New file, from GNU libc with
73446         modifications.
73447         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
73448         the new module.
73450         New module 'posix_spawn_file_actions_addopen'.
73451         * modules/posix_spawn_file_actions_addopen: New file.
73452         * lib/spawn_faction_addopen.c: New file, from GNU libc with
73453         modifications.
73454         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
73455         the new module.
73457         New module 'posix_spawn_file_actions_adddup2'.
73458         * modules/posix_spawn_file_actions_adddup2: New file.
73459         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
73460         modifications.
73461         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
73462         the new module.
73464         New module 'posix_spawn_file_actions_addclose'.
73465         * modules/posix_spawn_file_actions_addclose: New file.
73466         * lib/spawn_faction_addclose.c: New file, from GNU libc with
73467         modifications.
73468         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
73469         the new module.
73471         New module 'posix_spawn_file_actions_init'.
73472         * modules/posix_spawn_file_actions_init: New file.
73473         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
73474         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
73475         new module.
73477         New module 'posix_spawn-internal'.
73478         * modules/posix_spawn-internal: New file.
73479         * lib/spawn_int.h: New file, from GNU libc with modifications.
73480         * lib/spawni.c: New file, from GNU libc with modifications.
73481         * m4/posix_spawn.m4: New file.
73483         New module 'spawn'.
73484         * modules/spawn: New file.
73485         * lib/spawn.in.h: New file, from GNU libc with modifications.
73486         * m4/spawn_h.m4: New file.
73487         * doc/posix-headers/spawn.texi: Mention the new module.
73489 2008-09-28  Bruno Haible  <bruno@clisp.org>
73491         * modules/sched-tests: New file.
73492         * tests/test-sched.c: New file.
73494         New module 'sched'.
73495         * modules/sched: New file.
73496         * lib/sched.in.h: New file.
73497         * m4/sched_h.m4: New file.
73498         * doc/posix-headers/sched.texi: Mention the new module.
73500 2008-09-27  Eric Blake  <ebb9@byu.net>
73502         Fix previous patch, and tweak references to $0.
73503         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
73504         (func_version, func_gnulib_dir): Don't call this program
73505         gnulib-tool.
73506         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
73507         with using $0 in function.
73508         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
73509         (func_fatal_error): Reuse the name the user invoked us with.
73511 2008-09-27  Bruno Haible  <bruno@clisp.org>
73513         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
73514         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
73515         (gl_ICONV_H): Not here.
73516         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
73517         instead of assigning ICONV_H directly.
73519         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
73520         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
73521         WCHAR_H directly.
73523 2008-09-27  Bruno Haible  <bruno@clisp.org>
73525         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
73526         * modules/arpa_inet (Depends-on): Add link-warning.
73527         (Makefile.am): Insert the definition of GL_LINK-WARNING.
73528         * modules/unistd (Makefile.am): Likewise.
73530 2008-09-26  Bruno Haible  <bruno@clisp.org>
73532         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
73533         variables.
73534         (func_version): Essentially copied from gnulib-tool.
73535         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
73536         func_readlink): Copied from gnulib-tool.
73538 2008-09-26  Bruno Haible  <bruno@clisp.org>
73540         * gnulib-tool (func_version): Change directory to $gnulib_dir before
73541         invoking git-version-gen.
73543 2008-09-26  Bruno Haible  <bruno@clisp.org>
73545         * posix-modules: Update to directory names changed on 2008-01-19.
73546         Remove commas in output before splitting into words. No more need to
73547         avoid 'ftruncate' since 2007-02-19.
73549 2008-09-26  Bruno Haible  <bruno@clisp.org>
73551         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
73553 2008-09-26  Bruno Haible  <bruno@clisp.org>
73555         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
73556         * modules/fwriteerror (Depends-on): Add errno.
73558 2008-09-26  Bruno Haible  <bruno@clisp.org>
73560         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
73561         * tests/test-vc-list-files-cvs.sh: Likewise.
73563 2008-09-26  Bruno Haible  <bruno@clisp.org>
73565         * doc/posix-headers/sys_resource.texi: Reorder items.
73567 2008-09-26  Jim Meyering  <meyering@redhat.com>
73569         fts: tweak inode comparison function
73570         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
73571         inode numbers, as documented.
73573         fts: sort dirent entries on inode number before traversing
73574         This avoids a quadratic, seek-related performance penalty when
73575         operating on a directory containing many entries (measurable at 10k;
73576         3.5 hours at 2 million entries with a cold cache) on certain types
73577         of file systems, including ext3 and ext4, but not tmpfs.
73578         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
73579         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
73580         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
73581         (fs_handles_readdir_ordered_dirents_efficiently): New function.
73582         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
73583         (fts_build): Set the stat.st_ino member from D_INO.
73584         If it is likely to be useful, sort dirent entries on inode number.
73586         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
73587         and the struct statfs.f_type member.
73588         * modules/fts (Depends-on): Add d-ino.
73590 2008-09-26  Bruno Haible  <bruno@clisp.org>
73592         * modules/sigpipe-die (Depends-on): Add sigpipe.
73594         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
73595         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
73596         and GNULIB_STDIO_H_SIGPIPE are set.
73597         * lib/stdio-write.c: New file.
73598         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
73599         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
73600         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
73601         REPLACE_STDIO_WRITE_FUNCS.
73602         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
73603         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
73604         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
73605         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
73606         * modules/stdio (Files): Add lib/stdio-write.c.
73607         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
73608         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
73609         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
73610         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
73611         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
73612         REPLACE_FPRINTF_POSIX.
73613         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
73614         REPLACE_PRINTF_POSIX.
73615         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
73616         REPLACE_VFPRINTF_POSIX.
73617         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
73618         REPLACE_VPRINTF_POSIX.
73619         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
73620         SIGPIPE issue.
73621         * doc/posix-functions/fputc.texi: Likewise.
73622         * doc/posix-functions/fputs.texi: Likewise.
73623         * doc/posix-functions/fwrite.texi: Likewise.
73624         * doc/posix-functions/printf.texi: Likewise.
73625         * doc/posix-functions/putc.texi: Likewise.
73626         * doc/posix-functions/putchar.texi: Likewise.
73627         * doc/posix-functions/puts.texi: Likewise.
73628         * doc/posix-functions/vfprintf.texi: Likewise.
73629         * doc/posix-functions/vprintf.texi: Likewise.
73631         * modules/safe-write (Depends-on): Add write.
73633         * modules/sigpipe-tests: New file.
73634         * tests/test-sigpipe.c: New file.
73635         * tests/test-sigpipe.sh: New file.
73637         * modules/write: New file.
73638         * lib/unistd.in.h: Include <sys/types.h>.
73639         (write): New declaration.
73640         * lib/write.c: New file.
73641         * m4/write.m4: New file.
73642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
73643         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
73644         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
73645         GNULIB_WRITE, REPLACE_WRITE.
73646         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
73647         and the SIGPIPE issue.
73649         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
73650         (raise): New declaration.
73651         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
73652         (ext_signal): New function.
73653         (rpl_raise): New function.
73654         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
73655         GNULIB_SIGNAL_H_SIGPIPE.
73656         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
73657         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
73659         * modules/sigpipe: New file.
73660         * m4/sigpipe.m4: New file.
73662 2008-09-25  Derek Price  <derek@ximbiot.com>
73663             Bruno Haible  <bruno@clisp.org>
73665         * gnulib-tool (func_import): Report all license incompatibilities, not
73666         just the first one.
73668 2008-09-25  Bruno Haible  <bruno@clisp.org>
73670         * gnulib-tool (func_import): When computing the edits, consider not
73671         only the Makefile.ams that exist but also those that will be generated.
73673 2008-09-25  Simon Josefsson  <simon@josefsson.org>
73675         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
73676         fixes gnulib-tool --test warning about duplicate dependency.
73678 2008-09-25  Bruno Haible  <bruno@clisp.org>
73680         * gnulib-tool: Don't ask the user to perform edits in the generated
73681         Makefile.ams.
73682         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
73683         apply to the Makefile.am being generated.
73684         (func_emit_tests_Makefile_am): Execute edits that apply to the
73685         Makefile.am being generated.
73686         (func_import): Setup list of Makefile.am edits before emitting the
73687         Makefile.ams, not at the end.
73688         (func_create_testdir): Update.
73689         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73691 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73693         * gnulib-tool (func_import): Store the --tests-base option in the
73694         comment in gnulib-cache.m4.
73696 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
73698         * NEWS: Document increased portability that sys_select now provides.
73700         * lib/sys_select.in.h: Install select wrapper.
73701         * lib/sys_socket.in.h: Use more descriptive name when there is no
73702         select wrapper.
73703         * lib/winsock-select.c: New.
73704         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
73705         Require gl_HEADER_SYS_SOCKET.
73706         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
73707         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
73708         * tests/test-sys_select.c: Add functional tests.
73710 2008-09-24  Eric Blake  <ebb9@byu.net>
73712         open, fopen: close fd leak in last patch
73713         * lib/open.c (rpl_open): Close fd before returning error.
73714         * lib/fopen.c (rpl_fopen): Close fd before returning error.
73715         * doc/posix-functions/open.texi (open): Document that Irix also
73716         has the bug.
73717         * doc/posix-functions/fopen.texi (fopen): Likewise.
73718         Reported by Paolo Bonzini.
73720 2008-09-24  Bruno Haible  <bruno@clisp.org>
73722         Ensure that a filename ending in a slash cannot be used to access a
73723         non-directory.
73724         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
73725         to check whether it's really a directory.
73726         * lib/fopen.c: Include fcntl.h, unistd.h.
73727         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
73728         and fdopen().
73729         * modules/fopen (Depends-on): Add unistd.
73730         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
73731         * tests/test-fopen.c (main): Likewise.
73732         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
73733         * doc/posix-functions/fopen.texi: Likewise.
73734         Reported by Eric Blake.
73736 2008-09-23  Eric Blake  <ebb9@byu.net>
73738         c-stack: avoid compiler optimizations when provoking overflow
73739         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
73740         recursion harder to optimize, to ensure a stack overflow occurs.
73741         * tests/test-c-stack.c (recurse): Likewise.
73742         Borrowed from libsigsegv.
73744         c-stack: work around Irix sigaltstack bug
73745         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
73746         whether sigaltstack uses wrong end of stack_t (copied in part from
73747         libsigsegv).
73748         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
73749         Irix bug, without requiring an over-allocation.
73750         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
73751         bug.
73753         fopen: document mingw bug on directories
73754         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
73755         not allowing a stream visiting a directory, even though reading
73756         from such a stream is not portable.
73758 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
73760         * lib/poll.c: Rewrite.
73761         * modules/poll: Depend on alloca.
73763 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
73765         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
73766         instead define prototypes for a full set of wrappers.  Ensure
73767         that Cygwin does not use the compatibility code, which is only
73768         for MinGW.
73769         * lib/winsock.c: New.
73770         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
73771         * modules/sys_socket: Add lib/winsock.c.
73773         * modules/poll-tests: Add errno and perror.
73774         * tests/test-poll.c: Use ioctl, not ioctlsocket.
73776 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
73778         * tests/test-poll.c: Downgrade minimum needed Winsock version.
73780 2008-09-23  Bruno Haible  <bruno@clisp.org>
73782         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
73783         * doc/glibc-functions/*: Likewise.
73785 2008-09-23  Simon Josefsson  <simon@josefsson.org>
73787         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
73788         success.
73790 2008-09-22  Eric Blake  <ebb9@byu.net>
73791             Bruno Haible  <bruno@clisp.org>
73793         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
73794         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
73795         supply %A but mishandle pseudo-NaN.
73796         Reported by Simon Josefsson.
73798 2008-09-21  Bruno Haible  <bruno@clisp.org>
73800         * tests/test-lock.c (main): Tweak skip message.
73801         * tests/test-tls.c (main): Likewise.
73803 2008-09-21  Bruno Haible  <bruno@clisp.org>
73805         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
73806         whether 'struct sigaction' has sa_sigaction here...
73807         (gl_PREREQ_SIG_HANDLER_H): ... not here.
73808         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
73810 2008-09-21  Bruno Haible  <bruno@clisp.org>
73812         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
73813         section.
73814         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
73815         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
73816         the new section.
73817         (Support for obsolete systems lacking POSIX:2001): New section.
73818         (String handling <string.h>): Move strdup to the new section.
73819         Suggested by Simon Josefsson and Paolo Bonzini.
73821 2008-09-21  Bruno Haible  <bruno@clisp.org>
73823         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
73824         exponents in %e and %g results on 'long double'. Needed for mingw's
73825         improved *printf functions.
73826         * tests/test-vasprintf-posix.c (test_function): Likewise.
73827         * tests/test-snprintf-posix.h (test_function): Likewise.
73828         * tests/test-sprintf-posix.h (test_function): Likewise.
73829         Reported by Eric Blake.
73831 2008-09-21  Bruno Haible  <bruno@clisp.org>
73833         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
73834         * tests/test-sprintf-posix.h (test_function): Likewise.
73836 2008-09-21  Bruno Haible  <bruno@clisp.org>
73838         * modules/getpass (Depends-on): Add strdup-posix.
73840         New module 'strdup-posix'.
73841         * modules/strdup-posix: New file.
73842         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
73843         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
73844         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73845         REPLACE_STRDUP.
73846         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
73847         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
73848         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73849         strdup-posix.
73851         * modules/strdup (Depends-on): Remove malloc-posix.
73853 2008-09-20  Bruno Haible  <bruno@clisp.org>
73855         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
73856         Wildenhues.
73858 2008-09-20  Bruno Haible  <bruno@clisp.org>
73860         Ensure that wint_t gets defined on IRIX 5.3.
73861         * lib/wchar.in.h (wint_t): Define if not defined by the system.
73862         * lib/wctype.in.h (wint_t): Likewise.
73863         (__wctype_wint_t): Remove type.
73864         (isw*): Use wint_t instead of __wctype_wint_t.
73865         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
73866         * modules/wchar (Files): Add m4/wint_t.m4.
73867         (Makefile.am): Substitute HAVE_WINT_T.
73868         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
73869         * tests/test-wctype.c: Check that wint_t is defined.
73870         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
73871         * doc/posix-headers/wctype.texi: Likewise.
73872         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
73874 2008-09-18  Bruno Haible  <bruno@clisp.org>
73876         * gnulib-tool (func_exit): Update comment.
73878 2008-09-18  Simon Josefsson  <simon@josefsson.org>
73880         * modules/getaddrinfo (Depends-on): Remove strdup, this module
73881         assumes strdup exists and does not depend on strdup to return
73882         ENOMEM on out of memory conditions.
73884 2008-09-18  Bruno Haible  <bruno@clisp.org>
73886         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
73887         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
73888         digits for the exponent.
73890 2008-09-18  Jim Meyering  <meyering@redhat.com>
73891             Bruno Haible  <bruno@clisp.org>
73893         * lib/vasnprintf.c (decimal_point_char): Define also if
73894         NEED_PRINTF_INFINITE_LONG_DOUBLE.
73896 2008-09-16  Bruno Haible  <bruno@clisp.org>
73897         and Eric Blake  <ebb9@byu.net>
73899         vasnprintf: support Irix 5.3
73900         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
73901         that mishandle long double infinity.
73902         Reported by Tom G. Christensen.
73904 2008-09-16  Bruno Haible  <bruno@clisp.org>
73906         * doc/glibc-functions/scandir.texi: Mention the function is missing on
73907         Solaris 9.
73908         * doc/glibc-functions/alphasort.texi: Likewise.
73909         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
73911 2008-09-16  Jim Meyering  <meyering@redhat.com>
73913         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
73914         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
73915         a umask modification leak out of a subshell.  Otherwise, the
73916         opensolaris /bin/sh would be accepted and thus cause unwarranted
73917         failures in the coreutils test suite.
73919 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
73921         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
73922         to succeed.
73924 2008-09-16  Jim Meyering  <meyering@redhat.com>
73926         avoid spurious test failure when library is built without ACL support
73927         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
73928         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
73929         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
73930         * tests/test-copy-acl.sh: Likewise.
73932 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73934         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
73935         based on character occurrence counts.
73937 2008-09-15  Eric Blake  <ebb9@byu.net>
73939         tests: avoid some compiler warnings
73940         * tests/test-memchr.c (main): Pass NULL indirectly.
73941         * tests/test-closein.c (main): Avoid unused variable.
73943 2008-09-15  Bruno Haible  <bruno@clisp.org>
73945         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
73946         are missing on OpenBSD 4.0 individually.
73947         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73949 2008-09-15  Bruno Haible  <bruno@clisp.org>
73951         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
73952         * doc/posix-functions/strerror.texi: Mention also Cygwin.
73953         * doc/posix-functions/perror.texi: Likewise.
73954         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
73955         is missing.
73956         Reported by Eric Blake.
73958         * lib/errno.in.h: Use replacement values >= 2000.
73959         Reported by Eric Blake.
73961 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73963         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
73964         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
73965         limit.
73966         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
73967         compareseq was aborted.
73969 2008-09-14  Bruno Haible  <bruno@clisp.org>
73971         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
73972         yvec_edit_count.
73973         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
73974         (fstrcmp_bounded): Simplify result computation accordingly.
73976 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73978         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
73979         (fstrcmp): Define in terms of fstrcmp_bounded.
73980         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
73981         lower_bound argument.
73982         Return quickly if the result is certainly < lower_bound.
73983         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
73985 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73987         * lib/diffseq.h (EARLY_ABORT): New macro.
73988         (compareseq): Change return type to bool. Return true when EARLY_ABORT
73989         evaluates to true.
73991 2008-09-14  Bruno Haible  <bruno@clisp.org>
73993         * modules/perror-tests: New file.
73994         * tests/test-perror.sh: New file.
73995         * tests/test-perror.c: New file.
73997         New module 'perror'.
73998         * lib/stdio.in.h (perror): New declaration.
73999         * lib/perror.c: New file.
74000         * m4/perror.m4: New file.
74001         * modules/perror: New file.
74002         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
74003         * doc/posix-functions/perror.texi: Mention the perror module.
74004         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
74005         REPLACE_PERROR.
74006         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
74007         REPLACE_PERROR.
74009 2008-09-14  Bruno Haible  <bruno@clisp.org>
74011         * modules/stdio (Makefile.am): Reorder to match the order in
74012         lib/stdio.in.h.
74013         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
74015 2008-09-13  Bruno Haible  <bruno@clisp.org>
74017         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
74019 2008-09-13  Bruno Haible  <bruno@clisp.org>
74021         Extend strerror to cover the added errno values.
74022         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
74023         (rpl_strerror): Provide error messages for the added errno values and
74024         for the WSA* values.
74025         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
74026         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
74027         strerror.
74028         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
74029         * modules/strerror (Depends-on): Add errno.
74030         * doc/posix-functions/strerror.texi: Document the change.
74031         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
74032         and EOVERFLOW.
74034 2008-09-13  Bruno Haible  <bruno@clisp.org>
74036         * modules/EOVERFLOW: Remove file.
74037         * m4/eoverflow.m4: Remove file.
74038         * modules/EOVERFLOW-tests: Remove file.
74039         * tests/test-EOVERFLOW.c: Remove file.
74040         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
74041         * modules/ftell (Depends-on): Likewise.
74042         * modules/getdelim (Depends-on): Likewise.
74043         * modules/getugroups (Depends-on): Likewise.
74044         * modules/poll (Depends-on): Likewise.
74045         * modules/snprintf (Depends-on): Likewise.
74046         * modules/sprintf-posix (Depends-on): Likewise.
74047         * modules/vasnprintf (Depends-on): Likewise.
74048         * modules/vasprintf (Depends-on): Likewise.
74049         * modules/vfprintf-posix (Depends-on): Likewise.
74050         * modules/vsnprintf (Depends-on): Likewise.
74051         * modules/vsprintf-posix (Depends-on): Likewise.
74052         * modules/xvasprintf (Depends-on): Likewise.
74053         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
74054         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
74055         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
74056         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
74057         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
74058         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
74059         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
74060         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
74061         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
74062         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
74063         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
74064         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
74065         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
74066         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
74067         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
74068         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
74069         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
74070         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
74071         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
74072         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
74073         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
74074         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
74075         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
74076         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
74077         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
74078         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
74079         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
74080         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
74081         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
74082         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
74083         * MODULES.html.sh: Remove EOVERFLOW.
74084         * NEWS: Mention the change.
74086 2008-09-13  Bruno Haible  <bruno@clisp.org>
74088         * modules/errno-tests: New file.
74089         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
74091         * lib/errno.in.h: New file.
74092         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
74093         * modules/errno: New file.
74094         * doc/posix-headers/errno.texi: Update documentation.
74095         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
74097 2008-09-13  Bruno Haible  <bruno@clisp.org>
74099         * tests/test-poll.c: Use #if for native Windows, rather than testing
74100         __MSVCRT__.
74102 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74103             Bruno Haible  <bruno@clisp.org>
74105         * lib/glob.c: Don't include <pwd.h> on native Windows.
74106         (WINDOWS32): New macro.
74107         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
74109 2008-09-13  Bruno Haible  <bruno@clisp.org>
74111         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
74112         (ETIMEDOUT): Remove macro.
74113         (glthread_cond_timedwait_multithreaded): New declaration.
74114         (glthread_cond_timedwait): Use it.
74115         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
74116         (glthread_cond_timedwait_multithreaded): New function.
74118 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
74120         * modules/poll-tests: Do not check for io.h.
74121         * tests/test-poll.c: Check for __MSVCRT__ instead.
74123 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
74125         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
74126         * modules/poll-tests: Add inet_pton, stdbool, sockets.
74127         * tests/test-poll.c: Use them.  Use _pipe on Windows.
74129 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
74131         * modules/poll-tests: New.
74132         * tests/test-poll.c: New.
74134 2008-09-12  Eric Blake  <ebb9@byu.net>
74136         frexp: test for NetBSD failure on -0.0
74137         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
74138         not all, bugs from NetBSD 3.0 have been fixed.
74139         * doc/posix-functions/frexp.texi (frexp): Document bug.
74140         Reported by Thomas Klausner.
74142         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
74143         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
74144         literal -0.0.
74145         Reported by Jonathan C. Patschke <jp@centtech.com>.
74147 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74149         * lib/glthread/cond.h: Use dummy implementation also if
74150         USE_WIN32_THREADS.
74152 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74154         * modules/fnmatch-posix (License): Change to LGPLv2+.
74155         * modules/fnmatch-gnu (License): Likewise.
74157 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74159         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
74161 2008-09-11  Jim Meyering  <meyering@redhat.com>
74163         * users.txt: Add gtk-vnc.
74165 2008-09-08  Simon Josefsson  <simon@josefsson.org>
74167         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
74168         rotate amounts.
74170         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
74171         required for 16-bit and 8-bit rotates.
74172         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
74173         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
74174         UINT8_MAX instead of hard-coded constants.
74175         Suggested by Paul Eggert.
74177 2008-09-07  Bruno Haible  <bruno@clisp.org>
74179         * tests/test-striconveh.c (main): Check behaviour when converting from
74180         UTF-7.
74182         Make striconveh work better with stateful encodings.
74183         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
74184         that iconv does not increment the inptr when returning -1/EINVAL.
74186 2008-09-07  Bruno Haible  <bruno@clisp.org>
74188         * build-aux/config.rpath: Update according to libtool-2.2.6.
74189         * build-aux/config.libpath: Likewise.
74191 2008-09-06  Bruno Haible  <bruno@clisp.org>
74193         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
74194         * lib/freadptr.c (freadptr): Likewise.
74195         * lib/freadseek.c (freadptrinc): Likewise.
74196         Reported by Simon Josefsson.
74198 2008-09-06  Bruno Haible  <bruno@clisp.org>
74200         * modules/freadptr (License): Change to LGPLv2+.
74201         * modules/freadseek (License): Likewise.
74202         Suggested by Eric Blake.
74204         * modules/memchr2 (License): Change to LGPLv2+.
74205         Approved by Eric Blake.
74207 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74208             Bruno Haible  <bruno@clisp.org>
74210         Make gnulib-tool work with native 'sed' on AIX.
74211         * gnulib-tool (sed_noop): New variable.
74212         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
74213         func_add_or_update, func_create_testdir): Use it to initialize sed
74214         script variables.
74215         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
74217 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
74218             Bruno Haible  <bruno@clisp.org>
74220         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
74221         also works after #include directives.
74223 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
74225         getdate.y: reject an out-of-range timezone value
74226         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
74227         the range [-24...+24].  When specified with only one or two digits,
74228         * tests/test-getdate.c: Tests for the fix.
74229         * doc/getdate.texi: Document this change.
74231 2008-09-03  Bruno Haible  <bruno@clisp.org>
74233         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
74235 2008-09-02  Simon Josefsson  <simon@josefsson.org>
74237         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
74238         <bruce.korb@gmail.com> with ideas from Ben Pfaff
74239         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
74240         Blake <ebb9@byu.net>.
74242         * tests/test-bitrotate.c: Add more test vectors.
74244 2008-09-02  Eric Blake  <ebb9@byu.net>
74246         vasnprintf-posix: handle large precision via %.*d
74247         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
74248         when handling it ourselves.
74249         * tests/test-vasnprintf-posix.c (test_function): Add test.
74250         * tests/test-snprintf-posix.h (test_function): Likewise.
74251         * tests/test-sprintf-posix.h (test_function): Likewise.
74252         * tests/test-vasprintf-posix.c (test_function): Likewise.
74253         Reported by Alain Guibert.
74255 2008-09-01  Eric Blake  <ebb9@byu.net>
74257         c-stack: make configure-time check more robust
74258         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
74259         successful sigaction call.
74260         Reported by Tom G. Christensen.
74262 2008-09-01  Bruno Haible  <bruno@clisp.org>
74264         New module 'findprog-lgpl'.
74265         * modules/findprog-lgpl: New file.
74266         * lib/findprog-lgpl.c: New file.
74267         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
74268         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
74269         to decide whether to use strdup or xstrdup, concatenated_filename or
74270         xconcatenated_filename.
74272 2008-09-01  Bruno Haible  <bruno@clisp.org>
74274         Split module 'concat-filename' into 'concat-filename' (LGPL) and
74275         'xconcat-filename' (GPL).
74276         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
74277         (License): Change to LGPLv2+.
74278         * modules/xconcat-filename: New file.
74279         * lib/concat-filename.h (concatenated_filename): Change specification.
74280         (xconcatenated_filename): New declaration.
74281         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
74282         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
74283         memory situations.
74284         * lib/xconcat-filename.c: New file.
74285         * NEWS: Mention the change.
74286         * lib/findprog.c: Include concat-filename.h, not filename.h.
74287         (find_in_path): Use xconcatenated_filename instead of
74288         concatenated_filename.
74289         * lib/javacomp.c: Include concat-filename.h, not filename.h.
74290         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
74291         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
74292         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
74293         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
74294         instead of concatenated_filename.
74295         * lib/javaexec.c: Include concat-filename.h, not filename.h.
74296         (execute_java_class): Use xconcatenated_filename instead of
74297         concatenated_filename.
74298         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
74299         * modules/javacomp (Depends-on): Likewise.
74300         * modules/javaexec (Depends-on): Likewise.
74302 2008-09-01  Bruno Haible  <bruno@clisp.org>
74304         Split module 'filename' into 'filename' and 'concat-filename'.
74305         * modules/filename: Keep only lib/filename.h.
74306         (License): Change to LGPLv2+.
74307         * modules/concat-filename: New file, extracted from modules/filename.
74308         * lib/filename.h (concatenated_filename): Remove declaration.
74309         * lib/concat-filename.h: New file, extracted from lib/filename.h.
74310         * lib/concat-filename.c: Include concat-filename.h.
74311         * NEWS: Mention the change.
74313 2008-09-01  Simon Josefsson  <simon@josefsson.org>
74315         * lib/bitrotate.h (rotl8, rotr8): Add.
74317         * modules/bitrotate (configure.ac): Need
74318         AC_REQUIRE([AC_C_INLINE]).
74319         (Description): Mention stdint.h.  Reported by Bruno Haible
74320         <bruno@clisp.org>.
74322         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
74323         Paolo Bonzini <bonzini@gnu.org>.
74325 2008-08-31  Bruno Haible  <bruno@clisp.org>
74327         Assume Solaris specific bi-arch conventions on Solaris systems.
74328         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
74329         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
74330         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
74331         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
74332         like acl_libdirstem.
74333         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
74334         acl_libdirstem.
74335         * NEWS: Mention the change.
74336         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
74338 2008-08-31  Jim Meyering  <meyering@redhat.com>
74340         * lib/strftime.h: Add comments describing the two added arguments.
74342         remove duplicate #include directives
74343         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
74344         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
74346 2008-08-31  Bruno Haible  <bruno@clisp.org>
74348         New module 'sigpipe-die'.
74349         * modules/sigpipe-die: New file.
74350         * lib/sigpipe-die.h: New file.
74351         * lib/sigpipe-die.c: New file.
74352         * MODULES.html.sh (Signal handling): Add sigpipe-die.
74354 2008-08-31  Bruno Haible  <bruno@clisp.org>
74356         Don't override previously installed signal handlers.
74357         * lib/fatal-signal.c (saved_sigactions): New variable.
74358         (uninstall_handlers): Reset the signal to the saved handler, not
74359         to SIG_DFL (except when ignored).
74360         (install_handlers): Save the previous handlers.
74362 2008-08-30  Bruno Haible  <bruno@clisp.org>
74364         * gnulib-tool (func_reset_sigpipe): New function.
74365         (func_get_automake_snippet, func_modules_transitive_closure,
74366         func_import): Invoke it before a join command that reads from stdin,
74367         to avoid "echo: write error: Broken pipe" error messages on stderr.
74368         Reported by Sam Steingold <sds@gnu.org>.
74370 2008-08-30  Bruno Haible  <bruno@clisp.org>
74372         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
74373         Code copied from m4/open.m4.
74374         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
74375         access and the filename ends in a slash. Code copied from lib/open.c.
74376         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
74377         * tests/test-fopen.c (main): Check against bug with trailing slash.
74379 2008-08-29  Bruno Haible  <bruno@clisp.org>
74381         Avoid some "gcc -pedantic" warnings.
74382         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
74383         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
74384         * lib/dirent.in.h: Likewise.
74385         * lib/fcntl.in.h: Likewise.
74386         * lib/float.in.h: Likewise.
74387         * lib/iconv.in.h: Likewise.
74388         * lib/inttypes.in.h: Likewise.
74389         * lib/locale.in.h: Likewise.
74390         * lib/math.in.h: Likewise.
74391         * lib/netinet_in.in.h: Likewise.
74392         * lib/search.in.h: Likewise.
74393         * lib/signal.in.h: Likewise.
74394         * lib/stdarg.in.h: Likewise.
74395         * lib/stdint.in.h: Likewise.
74396         * lib/stdio.in.h: Likewise.
74397         * lib/stdlib.in.h: Likewise.
74398         * lib/string.in.h: Likewise.
74399         * lib/strings.in.h: Likewise.
74400         * lib/sys_select.in.h: Likewise.
74401         * lib/sys_socket.in.h: Likewise.
74402         * lib/sys_stat.in.h: Likewise.
74403         * lib/sys_time.in.h: Likewise.
74404         * lib/sysexits.in.h: Likewise.
74405         * lib/time.in.h: Likewise.
74406         * lib/unistd.in.h: Likewise.
74407         * lib/wchar.in.h: Likewise.
74408         * lib/wctype.in.h: Likewise.
74409         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
74410         * modules/fchdir (Makefile.am): Likewise.
74411         * modules/fcntl (Makefile.am): Likewise.
74412         * modules/float (Makefile.am): Likewise.
74413         * modules/iconv_open (Makefile.am): Likewise.
74414         * modules/inttypes (Makefile.am): Likewise.
74415         * modules/locale (Makefile.am): Likewise.
74416         * modules/math (Makefile.am): Likewise.
74417         * modules/netinet_in (Makefile.am): Likewise.
74418         * modules/search (Makefile.am): Likewise.
74419         * modules/signal (Makefile.am): Likewise.
74420         * modules/stdarg (Makefile.am): Likewise.
74421         * modules/stdint (Makefile.am): Likewise.
74422         * modules/stdio (Makefile.am): Likewise.
74423         * modules/stdlib (Makefile.am): Likewise.
74424         * modules/string (Makefile.am): Likewise.
74425         * modules/strings (Makefile.am): Likewise.
74426         * modules/sys_select (Makefile.am): Likewise.
74427         * modules/sys_socket (Makefile.am): Likewise.
74428         * modules/sys_stat (Makefile.am): Likewise.
74429         * modules/sys_time (Makefile.am): Likewise.
74430         * modules/sysexits (Makefile.am): Likewise.
74431         * modules/time (Makefile.am): Likewise.
74432         * modules/unistd (Makefile.am): Likewise.
74433         * modules/wchar (Makefile.am): Likewise.
74434         * modules/wctype (Makefile.am): Likewise.
74435         Reported by Reuben Thomas <rrt@sc3d.org>.
74437 2008-08-29  Bruno Haible  <bruno@clisp.org>
74439         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
74440         any more.
74442 2008-08-29  Simon Josefsson  <simon@josefsson.org>
74444         * MODULES.html.sh (Misc): Add bitrotate.
74446         * modules/bitrotate: New file.
74448         * lib/bitrotate.h: New file.
74450         * modules/bitrotate-tests: New file.
74452         * tests/test-bitrotate.c: New file.
74454         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
74455         on the bitrotate module.
74457         * lib/arctwo.c: Use new bitrotate module.
74459 2008-08-29  Jim Meyering  <meyering@redhat.com>
74461         bootstrap: merge changes from coreutils
74462         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
74463         of copied files.  Remove a kludge, now that this is fixed.
74464         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
74465         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
74466         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
74468 2008-08-29  Bruno Haible  <bruno@clisp.org>
74470         * MODULES.html.sh: Remove --cvs-urls option.
74472 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
74474         maint.mk: adjust to file name change
74475         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
74477 2008-08-28  Jim Meyering  <meyering@redhat.com>
74479         * modules/getndelim2 (License): Relicense to LGPLv2+.
74480         Approved by Richard Stallman for the version of 1995, and by
74481         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
74483 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
74485         * lib/getdelim.c (flockfile, funlockfile): Make all of them
74486         dummy if one is not available.  Do not touch them if
74487         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
74488         (getc_maybe_unlocked): New.
74489         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
74491 2008-08-26  Eric Blake  <ebb9@byu.net>
74493         doc/INSTALL: resync from autoconf
74494         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
74495         (INSTALL_PRELUDE): Delete; this is done more efficiently by
74496         moving...
74497         * install.texi [!autoconf]: ...here.  Resync from autoconf.
74498         * INSTALL: Regenerate.
74499         * INSTALL.ISO: New file.
74500         * INSTALL.UTF-8: Likewise.
74502 2008-08-26  Jim Meyering  <meyering@redhat.com>
74504         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
74505         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
74506         these definitions conditional, so that they may be overridden, too.
74508 2008-08-26  Bruno Haible  <bruno@clisp.org>
74510         Generate INSTALL file variants with prettier quotes.
74511         * doc/Makefile (INSTALL_PRELUDE): New macro.
74512         (INSTALL): Use it.
74513         (INSTALL.ISO, INSTALL.UTF-8): New rules.
74515 2008-08-26  Bruno Haible  <bruno@clisp.org>
74517         Run makeinfo in an English locale.
74518         * doc/Makefile (MAKEINFO): New variable.
74520 2008-08-26  Bruno Haible  <bruno@clisp.org>
74522         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
74523         Suggested by Eric Blake.
74525 2008-08-25  Bruno Haible  <bruno@clisp.org>
74527         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
74529 2008-08-25  Eric Blake  <ebb9@byu.net>
74531         c-stack: test that stack overflow can be caught
74532         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
74533         that platform allows handling stack overflow; at least OS/2 EMX
74534         has sigaltstack, but crashes before transferring control to
74535         handler on stack overflow.
74536         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
74537         check for HAVE_STACK_OVERFLOW_HANDLING.
74538         Reported by Elbert Pol.
74540 2008-08-25  Bruno Haible  <bruno@clisp.org>
74542         * doc/posix-functions/strftime.texi: Fix description of strftime
74543         module.
74545 2008-08-24  Bruno Haible  <bruno@clisp.org>
74547         * tests/uniwidth/test-uc_width2.c: New file.
74548         * tests/uniwidth/test-uc_width2.sh: New file.
74549         * modules/uniwidth/width-tests (Files): Add the new files.
74550         (TESTS): Add uniwidth/test-uc_width2.sh.
74551         (TESTS_ENVIRONMENT): New variable.
74552         (check_PROGRAMS): Add test-uc_width2.
74553         (test_uc_width2_SOURCES): New variable.
74555         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
74556         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
74557         not 0x00AB.
74558         Reported by Alexander V. Lukyanov <lav@netis.ru>.
74560 2008-08-22  Eric Blake  <ebb9@byu.net>
74562         test-lock, test-tls: mention why a test is skipped
74563         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
74564         skipped.
74565         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
74567         count-one-bits: relax license
74568         * modules/count-one-bits (License): Relicense to LGPLv2+.
74569         Suggested by Ludovic Courtès, approved by Ben Pfaff.
74571 2008-08-22  Andreas Schwab  <schwab@suse.de>
74573         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
74574         Remove spurious space in assignment.
74576 2008-08-21  Simon Josefsson  <simon@josefsson.org>
74578         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
74579         Paul Eggert <eggert@CS.UCLA.EDU>.
74581 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
74583         * modules/gettext: Add m4/threadlib.m4.
74585 2008-08-19  Eric Blake  <ebb9@byu.net>
74587         test-c-stack: fix compilation failure on FreeBSD 5.0
74588         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
74589         headers before <sys/resource.h>.
74590         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
74591         the bug.
74592         Reported by Nelson H. F. Beebe.
74594         strverscmp: migrate from "strverscmp.h" to <string.h>
74595         * modules/string (Makefile.am): Add new hooks.
74596         * modules/strverscmp (Files): Remove strverscmp.h.
74597         (Depends-on): Add string.
74598         (configure.ac): Add indicator.
74599         (Include): Mention new header.
74600         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
74601         defaults.
74602         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
74603         results.
74604         * lib/strverscmp.h: Delete.
74605         * lib/string.in.h (strverscmp): Provide declaration, when needed.
74606         * tests/test-strverscmp.c (includes): Adjust client.
74607         * lib/check-version.c (includes): Likewise.
74608         * NEWS: Document the change.
74610         strverscmp: add unit test
74611         * modules/strverscmp-tests: New file.
74612         * tests/test-strverscmp.c: Likewise.
74614 2008-08-19  Simon Josefsson  <simon@josefsson.org>
74616         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
74617         regarding Windows crypto stuff, from Mono.
74619 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
74621         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
74622         if present, for intel RND.  Return error on failures.
74624 2008-08-18  Ben Pfaff  <blp@gnu.org>
74626         gitlog-to-changelog: give better diagnostic for failed pipe-open
74627         * build-aux/gitlog-to-changelog: Improve error message: suggest
74628         that the version of Git may be too old.
74630 2008-08-18  Simon Josefsson  <simon@josefsson.org>
74632         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
74633         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
74635 2008-08-18  Bruno Haible  <bruno@clisp.org>
74637         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
74638         pthread_in_use().
74640 2008-08-18  Bruno Haible  <bruno@clisp.org>
74642         * lib/glthread/threadlib.c: Include <pthread.h>.
74644 2008-08-18  Bruno Haible  <bruno@clisp.org>
74646         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
74647         glthread_recursive_lock_* macros.
74648         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
74649         Fix syntax error.
74651 2008-08-18  Bruno Haible  <bruno@clisp.org>
74653         * lib/glthread/thread.c: Avoid forcing a context switch right after
74654         thread creation.
74656 2008-08-17  Bruno Haible  <bruno@clisp.org>
74658         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
74659         * lib/glthread/thread.h: Provide Win32 specific implementation.
74660         * modules/thread (Files): Add lib/glthread/thread.c.
74661         (Depends-on): Add lock.
74662         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
74664 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74666         New module 'yield'.
74667         * modules/yield: New file.
74668         * lib/glthread/yield.h: New file.
74669         * m4/yield.m4: New file.
74670         * MODULES.html.sh (Multithreading): Add yield.
74672 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74674         New module 'thread'.
74675         * modules/thread: New file.
74676         * lib/glthread/thread.h: New file.
74677         * m4/thread.m4: New file.
74678         * MODULES.html.sh (Multithreading): Add thread.
74680 2008-08-17  Bruno Haible  <bruno@clisp.org>
74682         * lib/glthread/lock.h: Include <stdlib.h> always.
74683         * lib/glthread/tls.h: Likewise.
74684         * lib/glthread/cond.h: Likewise.
74686 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74688         New module 'cond'.
74689         * modules/cond: New file.
74690         * lib/glthread/cond.h: New file.
74691         * lib/glthread/cond.c: New file.
74692         * m4/cond.m4: New file.
74693         * MODULES.html.sh (Multithreading): Add cond.
74695 2008-08-16  Eric Blake  <ebb9@byu.net>
74697         c-stack: fix regression on Irix 5.3 from 2008-06-21
74698         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
74699         sa_sigaction...
74700         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
74701         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
74702         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
74703         * modules/signal (Makefile.am): Use the value.
74704         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
74705         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
74706         * doc/posix-headers/signal.texi (signal.h): Document this
74707         portability issue.
74708         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
74709         Reported by Tom G. Christensen.
74711 2008-08-17  Bruno Haible  <bruno@clisp.org>
74713         New module 'threadlib'.
74714         * modules/threadlib: New file.
74715         * lib/glthread/threadlib.c: New file, extracted from
74716         lib/glthread/lock.c.
74717         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
74718         functions.
74719         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
74720         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
74721         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
74722         macros.
74723         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
74724         (gl_DISABLE_THREADS): Remove macro.
74725         * modules/lock (Files): Remove build-aux/config.rpath.
74726         (Depends-on): Remove havelib. Add threadlib.
74727         (configure.ac-early): Remove section.
74728         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
74729         * modules/tls (Depends-on): Remove lock. Add threadlib.
74730         (Link): New section, copied from threadlib.
74731         * MODULES.html.sh (Multithreading): Add threadlib.
74733 2008-08-14  Bruno Haible  <bruno@clisp.org>
74735         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
74736         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
74737         glthread_rwlock_unlock, glthread_rwlock_destroy,
74738         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
74739         glthread_recursive_lock_destroy): Define as macros always.
74740         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
74741         glthread_lock_lock.
74742         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
74743         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
74744         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
74745         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
74746         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
74747         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
74748         (glthread_recursive_lock_lock_func): Renamed from
74749         glthread_recursive_lock_lock.
74750         (glthread_recursive_lock_unlock_func): Renamed from
74751         glthread_recursive_lock_unlock.
74752         (glthread_recursive_lock_destroy_func): Renamed from
74753         glthread_recursive_lock_destroy.
74755 2008-08-14  Bruno Haible  <bruno@clisp.org>
74757         * lib/glthread/lock.h: Renamed from lib/lock.h.
74758         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
74759         * lib/glthread/tls.h: Renamed from lib/tls.h.
74760         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
74761         * lib/fstrcmp.c: Update includes.
74762         * lib/strsignal.c: Update includes.
74763         * modules/lock (Files, Makefile.am): Update.
74764         (Include): Change to "glthread/lock.h".
74765         * modules/tls (Files, Makefile.am): Update.
74766         (Include): Change to "glthread/tls.h".
74767         * tests/test-lock.c: Update includes.
74768         * tests/test-tls.c: Update includes.
74769         * NEWS: Mention the renamed header files.
74771 2008-08-11  Jim Meyering  <meyering@redhat.com>
74773         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
74775 2008-08-11  Eric Blake  <ebb9@byu.net>
74777         test-c-stack: avoid C99-ism
74778         * tests/test-c-stack.c (main): Fix whitespace, move declaration
74779         before statement.
74780         Reported by Alain Guibert.
74782 2008-08-10  Jim Meyering  <meyering@redhat.com>
74784         ensure that return value of uinttostr et al are not ignored
74785         * lib/inttostr.h (__GNUC_PREREQ): Define.
74786         (__attribute_warn_unused_result__): Define.
74787         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
74789 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
74791         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
74792         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
74794 2008-08-07  Jim Meyering  <meyering@redhat.com>
74796         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
74798         * modules/mkstemp (License): Relicense under LGPLv2+.
74799         * modules/tempname (License): Likewise.
74801 2008-08-06  Bruno Haible  <bruno@clisp.org>
74803         * lib/poll.c (poll): Further micro-optimization.
74805 2008-08-06  Jim Meyering  <meyering@redhat.com>
74807         inet_pton.c: use locale-independent tolower
74808         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
74809         (inet_pton6): Use c_tolower rather than tolower.
74810         * modules/inet_pton (Depends-on): Add c-ctype.
74812 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
74814         * lib/poll.c (poll): Avoid division when timeout is 0, cache
74815         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
74817 2008-08-06  Jim Meyering  <meyering@redhat.com>
74819         * modules/inet_pton (License): Relicense under LGPLv2+.
74821 2008-08-03  Bruno Haible  <bruno@clisp.org>
74823         Additional non-aborting API for lock and tls.
74824         * lib/lock.h: Include <errno.h>.
74825         (glthread_lock_init): New macro/function.
74826         (gl_lock_init): Define as wrapper around glthread_lock_init.
74827         (glthread_lock_lock): New macro/function.
74828         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
74829         (glthread_lock_unlock): New macro/function.
74830         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
74831         (glthread_lock_destroy): New macro/function.
74832         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
74833         (glthread_rwlock_init): New macro/function.
74834         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
74835         (glthread_rwlock_rdlock): New macro/function.
74836         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
74837         (glthread_rwlock_wrlock): New macro/function.
74838         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
74839         (glthread_rwlock_unlock): New macro/function.
74840         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
74841         (glthread_rwlock_destroy): New macro/function.
74842         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
74843         (glthread_recursive_lock_init): New macro/function.
74844         (gl_recursive_lock_init): Define as wrapper around
74845         glthread_recursive_lock_init.
74846         (glthread_recursive_lock_lock): New macro/function.
74847         (gl_recursive_lock_lock): Define as wrapper around
74848         glthread_recursive_lock_lock.
74849         (glthread_recursive_lock_unlock): New macro/function.
74850         (gl_recursive_lock_unlock): Define as wrapper around
74851         glthread_recursive_lock_unlock.
74852         (glthread_recursive_lock_destroy): New macro/function.
74853         (gl_recursive_lock_destroy): Define as wrapper around
74854         glthread_recursive_lock_destroy.
74855         (glthread_once): New macro/function.
74856         (gl_once): Define as wrapper around glthread_once.
74857         Update function declarations.
74858         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
74859         glthread_rwlock_init. Return error code.
74860         (glthread_rwlock_rdlock_multithreaded): Renamed from
74861         glthread_rwlock_rdlock. Return error code.
74862         (glthread_rwlock_wrlock_multithreaded): Renamed from
74863         glthread_rwlock_wrlock. Return error code.
74864         (glthread_rwlock_unlock_multithreaded): Renamed from
74865         glthread_rwlock_unlock. Return error code.
74866         (glthread_rwlock_destroy_multithreaded): Renamed from
74867         glthread_rwlock_destroy. Return error code.
74868         (glthread_recursive_lock_init_multithreaded): Renamed from
74869         glthread_recursive_lock_init. Return error code.
74870         (glthread_recursive_lock_lock_multithreaded): Renamed from
74871         glthread_recursive_lock_lock. Return error code.
74872         (glthread_recursive_lock_unlock_multithreaded): Renamed from
74873         glthread_recursive_lock_unlock. Return error code.
74874         (glthread_recursive_lock_destroy_multithreaded): Renamed from
74875         glthread_recursive_lock_destroy. Return error code.
74876         (glthread_once_call): Make static.
74877         (glthread_once_multithreaded): Renamed from glthread_once.
74878         * lib/tls.h: Include <errno.h>.
74879         (glthread_tls_key_init): New macro/function.
74880         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
74881         (glthread_tls_set): New macro/function.
74882         (gl_tls_set): Define as wrapper around glthread_tls_set.
74883         (glthread_tls_key_destroy): New macro/function.
74884         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
74885         Update function declarations.
74886         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
74887         glthread_tls_get.
74888         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74890 2008-08-04  Eric Blake  <ebb9@byu.net>
74892         gnumakefile: use space, not TAB, outside of targets
74893         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
74895 2008-08-02  Jim Meyering  <meyering@redhat.com>
74897         getdate.y: avoid locale-dependent date parsing failure
74898         In Turkish locales, getdate would fail to recognize keywords
74899         containing a lowercase "i".  The solution is not to rely on
74900         locale-sensitive case-conversion.
74901         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
74902         (lookup_word): Use c_toupper in place of toupper.
74903         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
74904         Reported by Vefa Bicakci <bicave@superonline.com> in
74905         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
74906         * modules/getdate (Depends-on): Add c-ctype.
74908 2008-08-02  Bruno Haible  <bruno@clisp.org>
74910         * gnulib-tool (func_import): When updating or creating a .gitignore
74911         file, prepend each added line with a slash, and ignore leading slashes
74912         from the existing lines.
74913         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
74915 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74917         Portability fix for GNU make 3.79.1.
74918         * top/GNUmakefile: Avoid 'else COND', which older GNU make
74919         versions do not understand.
74921 2008-08-01  Bruno Haible  <bruno@clisp.org>
74923         Work around bug of HP-UX 10.20 cc with -0.0 literal.
74924         * tests/test-isnanf.h (zero): New variable.
74925         (main): Avoid literal -0.0f.
74926         * tests/test-isnand.h (zero): New variable.
74927         (main): Avoid literal -0.0.
74928         * tests/test-isnanl.h (zero): New variable.
74929         (main): Avoid literal -0.0L.
74930         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
74931         (test_float, test_double, test_long_double): Avoid literals -0.0f,
74932         -0.0, -0.0L.
74933         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
74934         (test_signbitd): Avoid literal -0.0.
74935         (test_signbitl): Avoid literal -0.0L.
74936         * tests/test-ceilf1.c (zero): New variable.
74937         (main): Avoid literal -0.0f.
74938         * tests/test-ceill.c (zero): New variable.
74939         (main): Avoid literal -0.0L.
74940         * tests/test-floorf1.c (zero): New variable.
74941         (main): Avoid literal -0.0f.
74942         * tests/test-floorl.c (zero): New variable.
74943         (main): Avoid literal -0.0L.
74944         * tests/test-roundf1.c (zero): New variable.
74945         (main): Avoid literal -0.0f.
74946         * tests/test-round1.c (zero): New variable.
74947         (main): Avoid literal -0.0.
74948         * tests/test-roundl.c (zero): New variable.
74949         (main): Avoid literal -0.0L.
74950         * tests/test-truncf1.c (zero): New variable.
74951         (main): Avoid literal -0.0f.
74952         * tests/test-trunc1.c (zero): New variable.
74953         (main): Avoid literal -0.0.
74954         * tests/test-truncl.c (zero): New variable.
74955         (main): Avoid literal -0.0L.
74956         * tests/test-frexp.c (zero): New variable.
74957         (main): Avoid literal -0.0.
74958         * tests/test-frexpl.c (zero): New variable.
74959         (main): Avoid literal -0.0L.
74960         * tests/test-ldexpl.c (zero): New variable.
74961         (main): Avoid literal -0.0L.
74962         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
74963         (zerod, zerol): New variables.
74964         (test_function): Avoid literals -0.0, -0.0L.
74965         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
74966         (zerod, zerol): New variables.
74967         (test_function): Avoid literals -0.0, -0.0L.
74968         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
74969         (zerod, zerol): New variables.
74970         (test_function): Avoid literals -0.0, -0.0L.
74971         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
74972         (zerod, zerol): New variables.
74973         (test_function): Avoid literals -0.0, -0.0L.
74974         * tests/test-strtod.c (zero): New variable.
74975         (main): Avoid literal -0.0.
74976         Reported by Jonathan C. Patschke <jp@centtech.com>.
74978 2008-07-31  Jim Meyering  <meyering@redhat.com>
74980         sha256.h: correct definition of SHA224_DIGEST_SIZE
74981         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
74982         Reported by Paulie Pena IV <paulie4@gmail.com>.
74983         Define as 224 / 8, rather than as a literal.
74984         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
74985         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
74986         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
74988 2008-07-31  Bruno Haible  <bruno@clisp.org>
74990         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
74991         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
74992         Reported by Jonathan Patschke <jp@centtech.com>.
74994 2008-07-31  Bruno Haible  <bruno@clisp.org>
74996         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
74997         Reported by Paolo Bonzini <bonzini@gnu.org>.
74999 2008-07-30  Eric Blake  <ebb9@byu.net>
75001         test-strtod: allow compilation without -lm
75002         * tests/test-strtod.c (main): Avoid link dependence on fabs.
75003         Reported by Dennis Clarke <blastwave@gmail.com>.
75005 2008-07-28  Jim Meyering  <meyering@redhat.com>
75007         bootstrap: work also when there are no .po files in po/
75008         * build-aux/bootstrap (update_po_files): Complete the change
75009         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
75011 2008-07-27  Jim Meyering  <meyering@redhat.com>
75013         * users.txt: Add zile.
75015 2008-07-26  Ben Pfaff  <blp@gnu.org>
75017         Add missing dependencies on new m4/exponent[fdl].m4 files.
75018         * modules/isnanf-nolibm: Add m4/exponentf.m4.
75019         * modules/isnand-nolibm: Add m4/exponentd.m4.
75020         * modules/isnanl-nolibm: Add m4/exponentl.m4.
75021         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
75022         m4/isnan[fdl].m4, because the macros actually used moved.
75023         Reported by Jim Meyering.
75025 2008-07-14  Ben Pfaff  <blp@gnu.org>
75027         Add isinf module.
75028         * lib/isinf.c: New file.
75029         * lib/math.in.h: Define isinf macro if we have decided to replace
75030         it.
75031         * m4/isinf.m4: New file.
75032         * m4/math_h.m4: Initialize and substitute variables for isinf
75033         module.
75034         * modules/isinf: New file.
75035         * modules/isinf-tests: New file.
75036         * modules/math: Add substitutions for new module.
75037         * tests/test-isinf.c: New file.
75038         * doc/posix-functions/isinf.texi: Mention new module.
75039         * MODULES.html.sh: Mention new module.
75041 2008-07-14  Ben Pfaff  <blp@gnu.org>
75043         Factor out some macros for use by additional modules.
75044         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
75045         exponentf.m4.
75046         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
75047         exponentd.m4.
75048         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
75049         file exponentl.m4.
75050         * m4/exponentf.m4: New file.
75051         * m4/exponentd.m4: New file.
75052         * m4/exponentl.m4: New file.
75053         * modules/isnanf: Use new file m4/exponentf.m4.
75054         * modules/isnand: Use new file m4/exponentd.m4.
75055         * modules/isnanl: Use new file m4/exponentl.m4.
75057 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
75059         mktime.c: normalize tp->tm_isdst value to -1/0/1.
75060         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
75061         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
75062         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
75064         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
75065         readlink on platforms without PATH_MAX.
75067 2008-07-21  Eric Blake  <ebb9@byu.net>
75069         Warn, not fail, on stale version.
75070         * top/GNUmakefile (_curr-ver): Tone down previous patch.
75072         Don't allow installation with stale devel version number.
75073         * top/GNUmakefile (_is-install-target): New macro.
75074         (_curr-ver): Forbid installation with stale version number.
75076 2008-07-20  Bruno Haible  <bruno@clisp.org>
75078         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
75079         TESTS_ENVIRONMENT.
75080         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
75082 2008-07-20  Bruno Haible  <bruno@clisp.org>
75084         * lib/c-stack.h (c_stack_action): Add documentation.
75085         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
75087 2008-07-20  Bruno Haible  <bruno@clisp.org>
75089         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
75090         * modules/readlink (License): Likewise.
75092 2008-07-17  Eric Blake  <ebb9@byu.net>
75094         * modules/c-stack (Link): Fix typo.
75096         Make c-stack use libsigsegv, when available.
75097         * modules/c-stack (Depends-on): Add libsigsegv.
75098         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
75099         needed.
75100         * lib/c-stack.c (SIGSTKSZ): Define fallback.
75101         (segv_handler, overflow_handler, c_stack_action)
75102         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
75103         implementation when libsigsegv is available, but only when using
75104         the library is necessary.
75105         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
75106         comment, explaining why XSI check fails on Linux.
75107         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
75108         * tests/test-c-stack2.sh: Tweak skip message.
75109         * NEWS: Document new link-time requirements.
75111 2008-07-16  Eric Blake  <ebb9@byu.net>
75113         c-stack: Expose false positives when not using libsigsegv.
75114         * modules/c-stack-tests (Files): Expand test.
75115         * tests/test-c-stack.c (main): Add means to conditionally trigger
75116         non-overflow SIGSEGV.
75117         * tests/test-c-stack2.sh: New file.
75119 2008-07-14  Bruno Haible  <bruno@clisp.org>
75121         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
75122         Reported by Eric Blake.
75124 2008-07-14  Sam Steingold  <sds@gnu.org>
75125             Bruno Haible  <bruno@clisp.org>
75127         New module libsigsegv.
75128         * modules/libsigsegv: New file.
75129         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
75130         modifications.
75131         * MODULES.html.sh (Signal handling): New section.
75133 2008-07-14  Bruno Haible  <bruno@clisp.org>
75135         * modules/unictype/ctype-* (Description): Add the word "function".
75136         Improves the resulting doc in MODULES.html.
75138 2008-07-12  Ben Pfaff  <blp@gnu.org>
75140         Add longlong module.
75141         * modules/longlong: New file.
75143 2008-07-12  Bruno Haible  <bruno@clisp.org>
75145         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
75146         to empty.
75148 2008-07-10  Ben Pfaff  <blp@gnu.org>
75150         Add isnan module.
75151         * doc/posix-functions/isnan.texi: Mention new module.
75152         * lib/math.in.h: Define isnan macro if we have decided to replace
75153         it.
75154         * m4/isnan.m4: New file.
75155         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
75156         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
75157         also.
75158         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
75159         redundancy.
75160         * m4/math_h.m4: Initialize and substitute variables for isnan
75161         module.
75162         * modules/isnan: New file.
75163         * modules/isnan-tests: New file.
75164         * modules/math: Add substitutions for new module.
75165         * tests/test-isnan.c: New file.
75166         * MODULES.html.sh: Mention new module.
75168 2008-07-10  Ben Pfaff  <blp@gnu.org>
75170         Add isnanf module.
75171         * lib/isnanf.m4: New file.
75172         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
75173         (gl_HAVE_ISNANF_IN_LIBM): New macro.
75174         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
75175         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
75176         * modules/isnanf: New file.
75177         * modules/isnanf-tests: New file.
75178         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
75179         files.
75180         * tests/test-isnanf-nolibm.c: factored most of its contents into
75181         new file tests/test-isnanf.h.
75182         * tests/test-isnanf.h: New file.
75183         * tests/test-isnanf.c: New file.
75184         * MODULES.html.sh: Mention new module.
75185         * doc/glibc-functions/isnanf.texi: Mention new module.
75187 2008-07-10  Ben Pfaff  <blp@gnu.org>
75189         Add isnand module.
75190         * lib/isnand.h: New file.
75191         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
75192         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
75193         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
75194         functionality also.
75195         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
75196         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
75197         (gl_HAVE_ISNAND_IN_LIBM): New macro.
75198         * modules/isnand: New file.
75199         * modules/isnand-tests: New file.
75200         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
75201         files.
75202         * tests/test-isnand-nolibm.c: factored most of its contents into
75203         new file tests/test-isnand.h.
75204         * tests/test-isnand.h: New file.
75205         * tests/test-isnand.c: New file.
75206         * MODULES.html.sh: Mention new module.
75208 2008-07-10  Ben Pfaff  <blp@gnu.org>
75210         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
75211         * lib/isnand.h: Rename lib/isnand-nolibm.h.
75212         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
75213         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
75214         * modules/isnanf-nolibm: Update references to renamed files.
75215         * modules/isnand-nolibm: Likewise.
75216         * modules/isnanf-nolibm-tests: Likewise.
75217         * modules/isnand-nolibm-tests: Likewise.
75218         * lib/frexp.c: Likewise.
75219         * lib/isfinite.c: Likewise.
75220         * lib/signbitd.c: Likewise.
75221         * lib/signbitf.c: Likewise.
75222         * lib/vasnprintf.c: Likewise.
75223         * tests/test-ceilf1.c: Likewise.
75224         * tests/test-ceilf2.c: Likewise.
75225         * tests/test-floorf1.c: Likewise.
75226         * tests/test-floorf2.c: Likewise.
75227         * tests/test-frexp.c: Likewise.
75228         * tests/test-round1.c: Likewise.
75229         * tests/test-round2.c: Likewise.
75230         * tests/test-roundf1.c: Likewise.
75231         * tests/test-strtod.c: Likewise.
75232         * tests/test-trunc1.c: Likewise.
75233         * tests/test-trunc2.c: Likewise.
75234         * tests/test-truncf1.c: Likewise.
75235         * tests/test-truncf2.c: Likewise.
75236         * NEWS: Mention the renamed header files.
75238 2008-07-11  Jim Meyering  <meyering@redhat.com>
75240         vc-list-files: make the last-resort awk code more portable
75241         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
75242         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
75243         does not support it.
75245 2008-07-10  Eric Blake  <ebb9@byu.net>
75247         Work with tar's bootstrap.
75248         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
75249         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
75250         an m4 comment.
75252 2008-07-09  Jim Meyering  <meyering@redhat.com>
75254         posix-shell.m4: fix typo that made this test malfunction
75255         * m4/posix-shell.m4: Remove capitalization in variable name.
75257 2008-07-08  Bruno Haible  <bruno@clisp.org>
75259         * m4/onceonly.m4: Update comments.
75260         Reported by Ben Pfaff <blp@cs.stanford.edu>.
75262 2008-07-04  Jim Meyering  <meyering@redhat.com>
75264         * users.txt: Add vc-dwim.
75265         (bison, coreutils): Use the gitweb URL.
75267 2008-07-03  Jim Meyering  <meyering@redhat.com>
75269         * users.txt: Add libffcall.  From Sam Steingold.
75271 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
75273         getdate.y: do not ignore TZ with relative day, month or year offset
75274         * lib/getdate.y (get_date): Move the tz-handling block to follow the
75275         relative-date-handling, since otherwise, the latter would clobber the
75276         sole output (an updated Start value) of the tz-handling block.
75277         * tests/test-getdate.c: Tests for the fix
75279 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75281         Recognize 'foo_LIBRARIES += libgnu.a'.
75282         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
75283         makefile snippet has already specified an installation location,
75284         also using '+='.
75286 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
75288         getdate.y: factor out common actions
75289         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
75290         Use them in place of open-coded actions.
75292 2008-07-01  Simon Josefsson  <simon@josefsson.org>
75294         Add self-test for getdate module.
75295         * modules/getdate-tests: New file.
75296         * tests/test-getdate.c: New file.
75298 2008-06-29  Bruno Haible  <bruno@clisp.org>
75300         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
75301         .gitignore.
75302         Reported by Sylvain Beucler <beuc@beuc.net>.
75304 2008-06-29  Bruno Haible  <bruno@clisp.org>
75306         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
75307         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
75309 2008-06-29  Bruno Haible  <bruno@clisp.org>
75311         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
75312         EXTRA_DIST.
75313         Reported by Sylvain Beucler <beuc@beuc.net>.
75315 2008-06-26  Jim Meyering  <meyering@redhat.com>
75317         make several modules depend on the "open" module
75318         This provides slightly increased consistency when opening-for-write
75319         the name of a non-directory spelled with a trailing slash.
75320         * modules/chdir-safer: Likewise.
75321         * modules/chown: Likewise.
75322         * modules/clean-temp: Likewise.
75323         * modules/copy-file: Likewise.
75324         * modules/fchdir: Likewise.
75325         * modules/fcntl-safer: Likewise.
75326         * modules/pipe: Likewise.
75327         * modules/utime: Likewise.
75328         Prompted by Eric Blake and Bruno Haible.
75330 2008-06-24  Andreas Schwab  <schwab@suse.de>
75332         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
75333         literals can be used as initializers for global variables.
75335 2008-06-23  Eric Blake  <ebb9@byu.net>
75337         Make gnulib-cache.m4 easier to diff.
75338         * gnulib-tool (func_import): Allow newlines when reading cached
75339         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
75341 2008-06-23  Bruno Haible  <bruno@clisp.org>
75343         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
75344         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
75345         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
75346         m4/signalblocking.m4.
75347         (gl_PREREQ_SIGACTION): Don't invoke it.
75348         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
75349         gl_PREREQ_SIG_HANDLER_H.
75350         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
75351         Don't check for sigaction here.
75353 2008-06-23  Bruno Haible  <bruno@clisp.org>
75355         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
75356         (install_handlers): Don't set the SA_RESETHAND flag.
75358 2008-06-23  Bruno Haible  <bruno@clisp.org>
75360         * m4/sigaction.m4: Comment fixes.
75361         * lib/signal.in.h: Likewise.
75363 2008-06-23  Eric Blake  <ebb9@byu.net>
75365         Fix typo.
75366         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
75368         Avoid SA_ namespace.
75369         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
75370         Reported by Ralf Wildenhues.
75372         Avoid test failure due to SA_RESTORER.
75373         * tests/test-sigaction.c (SA_MASK): New macro.
75374         (main): Avoid failing due to extension flags being set.
75375         Reported by Jim Meyering.
75377         Revert use of sig-handler.h in sigprocmask.c.
75378         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
75379         it requires the existence of struct sigaction.
75380         * lib/sigprocmask.c (handler_t): Restore typedef.
75381         (rpl_signal, old_handlers): Use local type.
75383 2008-06-22  Bruno Haible  <bruno@clisp.org>
75385         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
75386         conditionally.
75387         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
75389 2008-06-22  Bruno Haible  <bruno@clisp.org>
75391         * doc/posix-functions/siginterrupt.texi: Move note.
75393         * lib/signal.in.h (SA_RESTART): New macro.
75394         * lib/sigaction.c: Update comment.
75396         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
75398         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
75399         (gl_PREREQ_SIGPROCMASK): Invoke it.
75400         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
75402         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
75404         * lib/sigprocmask.c: Update a comment.
75406 2008-06-21  Eric Blake  <ebb9@byu.net>
75408         Use sigaction module rather than signal().
75409         * modules/c-stack (Depends-on): Add sigaction.
75410         * modules/fatal-signal (Depends-on): Likewise.
75411         * modules/nanosleep (Depends-on): Likewise.
75412         * modules/sigprocmask (Files): Add sig-handler.h.
75413         * modules/sigaction (Files): Likewise.
75414         * lib/sig-handler.h (get_handler): New file, suggested by Paul
75415         Eggert.
75416         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
75417         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
75418         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
75419         (init_fatal_signals): Likewise.
75420         * lib/nanosleep.c (rpl_nanosleep): Likewise.
75421         (siginterrupt): Delete fallback.
75422         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
75423         instead.
75424         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
75425         siginterrupt.
75427         New module sigaction, for mingw.
75428         * modules/sigaction: New module...
75429         * modules/sigaction-tests: ...and its test.
75430         * m4/sigaction.m4: New file.
75431         * lib/sigaction.c: Likewise.
75432         * tests/test-sigaction.c: Likewise.
75433         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
75434         * modules/signal (Makefile.am): Likewise.
75435         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
75436         needed.
75437         * doc/posix-headers/signal.texi (signal.h): Mention provided
75438         types.
75439         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
75440         that sigaction is preferable.
75441         * doc/posix-functions/sigaction.texi (sigaction): Mention new
75442         module.
75443         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75444         sigaction.
75446         Improve robustness of sigprocmask by overriding signal.
75447         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
75448         is in use.
75449         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
75450         (SIGKILL, SIGSTOP): Provide fallbacks.
75451         (rpl_signal): Implement.
75452         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
75453         signal can be called inside handlers.
75455         Fix nanosleep module on mingw.
75456         * modules/nanosleep (Depends-on): Add sys_select.
75457         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
75459         Fix licensing of sigprocmask.
75460         * modules/raise (License): Relicense as LGPL.
75462 2008-06-21  Bruno Haible  <bruno@clisp.org>
75464         * lib/propername.c (proper_name_utf8): Don't use the transliterated
75465         result if it contains question marks.
75466         Reported by Michael Geng <linux@michaelgeng.de>.
75468 2008-06-19  Bruno Haible  <bruno@clisp.org>
75470         Fix CVS-ism.
75471         * doc/gnulib.texi: Include updated-stamp.texi.
75472         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
75473         (updated-stamp.texi): New rule.
75474         (gnulib.info): Depend on it.
75475         * doc/.gitignore: Add updated-stamp.texi.
75476         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
75478 2008-06-19  Bruno Haible  <bruno@clisp.org>
75480         * doc/Makefile (gnulib.info): Update and simplify dependencies.
75481         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
75483 2008-06-19  Eric Blake  <ebb9@byu.net>
75485         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
75486         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
75487         Reported by Stepan Kasal.
75489 2008-06-18  Bruno Haible  <bruno@clisp.org>
75491         * lib/fatal-signal.c (init_fatal_signals): Add comment.
75492         Reported by Eric Blake.
75494 2008-06-18  Eric Blake  <ebb9@byu.net>
75496         Work around cygwin 1.5.25 strsignal bug.
75497         * tests/test-strsignal.c: Allow for const char *.
75498         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
75500 2008-06-18  Simon Josefsson  <simon@josefsson.org>
75502         * users.txt: Update URL to article and add author/date
75503         information.
75505 2008-06-17  Bruno Haible  <bruno@clisp.org>
75507         New macro gl_DISABLE_THREADS.
75508         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
75509         if the user did not pass --enable-threads or --disable-threads option.
75510         (gl_DISABLE_THREADS): New macro.
75511         Reported by Eric Blake <ebb9@byu.net>.
75513 2008-06-17  Bruno Haible  <bruno@clisp.org>
75515         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
75516         when the macro ignores it.
75517         Based on a patch by Eric Blake <ebb9@byu.net>.
75519 2008-06-17  Bruno Haible  <bruno@clisp.org>
75521         * modules/tls (License): Change to LGPLv2+.
75522         Reported by Eric Blake.
75524 2008-06-17  Eric Blake  <ebb9@byu.net>
75526         Simplify c-stack prerequisites.
75527         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
75528         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
75529         no longer requires <ucontext.h> to exist.  Optimize setrlimit
75530         check.
75531         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
75532         <sys/resource.h>.
75534         Move c-stack test into testsuite.
75535         * modules/c-stack-tests: New file.
75536         * lib/c-stack.c [DEBUG]: Move test program...
75537         * tests/test-c-stack.c: ...into this new file.  Skip rather than
75538         fail test if sigaltstack is lacking.
75539         * tests/test-c-stack.sh: New driver file.
75541 2008-06-16  Eric Blake  <ebb9@byu.net>
75543         Use raise module consistently.
75544         * modules/fatal-signal (Depends-on): Add raise.
75545         * modules/sigprocmask (Depends-on): Likewise.
75546         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
75547         * lib/sigprocmask.c (sigprocmask): Likewise.
75548         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
75549         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
75551         Fix compliance bug in sigpending.
75552         * lib/sigprocmask.c (sigpending): Return pending array via
75553         parameter, not return value.
75555 2008-06-14  Eric Blake  <ebb9@byu.net>
75557         Improve obstack-printf test code.
75558         * tests/test-obstack-printf.c (test_function): Fix comment, and
75559         simplify usage of obstack_* in macros.  Add a test for coverage.
75560         Reported by Bruno Haible.
75562 2008-06-14  Bruno Haible  <bruno@clisp.org>
75564         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
75565         array size as a constant, not as a const variable.
75566         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
75567         AC_USE_SYSTEM_EXTENSIONS.
75568         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
75569         Test whether the obstack_printf function actually exists.
75570         * modules/obstack-printf (Depends-on): Add extensions.
75571         (Include): Remove obstack.h.
75572         * modules/obstack-printf-posix (Depends-on): Add extensions.
75573         (Include): Remove obstack.h.
75575 2008-06-13  Eric Blake  <ebb9@byu.net>
75577         Add obstack-printf and obstack-printf-posix modules.
75578         * modules/obstack-printf: New file.
75579         * modules/obstack-printf-posix: Likewise.
75580         * MODULES.html.sh (Misc): Mention them.
75581         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
75582         Likewise.
75583         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
75584         Likewise.
75585         * modules/stdio (Makefile.am): Accomodate new modules.
75586         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
75587         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
75588         Declare.
75589         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
75590         functions.
75591         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
75592         (gl_REPLACE_OBSTACK_PRINTF): New macros
75593         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
75594         * tests/test-obstack-printf.c: New file.
75595         * modules/obstack-printf-tests: Likewise.
75596         * modules/obstack-printf-posix-tests: Likewise.
75598 2008-06-11  Bruno Haible  <bruno@clisp.org>
75600         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
75601         * lib/open.c: Include errno.h.
75602         (open): Fail when attempting to write to a file that has a trailing
75603         slash.
75604         * tests/test-open.c (main): Test against trailing slash bug.
75605         * doc/posix-functions/open.texi: Mention the trailing slash bug.
75607 2008-06-10  Bruno Haible  <bruno@clisp.org>
75609         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
75610         for $? to work inside the trap command, with various /bin/sh-s.
75611         * tests/test-vc-list-files-cvs.sh: Likewise.
75613 2008-06-10  Bruno Haible  <bruno@clisp.org>
75615         * lib/acl-internal.h: Don't include gettext.h here.
75616         * lib/set-mode-acl.c: Include gettext.h here.
75617         * lib/copy-acl.c: Likewise.
75619 2008-06-10  Bruno Haible  <bruno@clisp.org>
75621         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
75622         * lib/wait-process.c (wait_subprocess): Likewise.
75623         * lib/execute.h (execute): Add termsigp argument.
75624         * lib/execute.c (execute): Likewise.
75625         * lib/csharpcomp.c (compile_csharp_using_pnet,
75626         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
75627         * lib/csharpexec.c (execute_csharp_using_pnet,
75628         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
75629         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
75630         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
75631         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
75632         is_jikes_present): Update.
75633         * lib/javaexec.c (execute_java_class): Update.
75634         * lib/javaversion.c (execute_and_read_line): Update.
75635         * NEWS: Document the changes.
75636         Reported by Eric Blake.
75638 2008-06-10  Eric Blake  <ebb9@byu.net>
75640         Add missing include.
75641         * tests/test-strstr.c (includes): Add <signal.h>.
75642         * tests/test-strcasestr.c (includes): Likewise.
75643         * tests/test-memmem.c (includes): Likewise.
75645 2008-06-10  Bruno Haible  <bruno@clisp.org>
75647         * lib/wait-process.c (wait_subprocess): Add an assertion.
75649 2008-06-10  Bruno Haible  <bruno@clisp.org>
75651         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
75653 2008-06-10  Bruno Haible  <bruno@clisp.org>
75655         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
75656         using alarm().
75657         * tests/test-strcasestr.c (main): Likewise.
75658         * tests/test-strstr.c (main): Likewise.
75660 2008-06-09  Bruno Haible  <bruno@clisp.org>
75662         Work around the Solaris 10 ACE ACLs ABI change.
75663         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
75664         declare if ACL_NO_TRIVIAL is present.
75665         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
75666         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
75667         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
75668         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
75669         define if ACL_NO_TRIVIAL is present.
75670         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
75671         and use the current ABI.
75672         (file_has_acl): Use same #if condition as elsewhere.
75673         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
75674         in use, and use the current ABI.
75675         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
75676         Reported by Jim Meyering.
75678 2008-06-09  Eric Blake  <ebb9@byu.net>
75680         Work around environments that (stupidly) ignore SIGALRM.
75681         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
75682         before using alarm().
75683         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
75684         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
75685         Reported by Ian Beckwith <ianb@erislabs.net>.
75687         Produce autobuild blurb earlier in log.
75688         * modules/autobuild (configure.ac-early): Move AB_INIT here.
75690 2008-06-09  Jim Meyering  <meyering@redhat.com>
75691         and Ondřej Vašík  <ovasik@redhat.com>
75693         utimens.c: correct kernel bug work-around
75694         Ondřej Vašík found that the invalid return value of 280 indicates
75695         failure, not success, and the kernel bug we're trying to work
75696         around affects not just the utimensat call, but also the fallback
75697         futimens call.
75698         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
75699         not success.
75700         [HAVE_FUTIMENS]: Use the same work-around, here.
75702 2008-06-09  Jim Meyering  <meyering@redhat.com>
75704         add more guards around definition of ACE_-related code
75705         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
75706         ALLOW and ACE_OWNER are also defined.
75708 2008-06-08  Bruno Haible  <bruno@clisp.org>
75710         * lib/acl-internal.h: Add me as co-author.
75711         * lib/file-has-acl.c: Likewise.
75712         * lib/set-mode-acl.c: Likewise.
75713         * lib/copy-acl.c: Likewise.
75715 2008-06-08  Bruno Haible  <bruno@clisp.org>
75717         Add support for AIX ACLs.
75718         * lib/acl-internal.h (acl_nontrivial): New declaration.
75719         * lib/file-has-acl.c (acl_nontrivial): New function.
75720         (file_has_acl): Add implementation using AIX 4 ACL API.
75721         * lib/set-mode-acl.c (qset_acl): Likewise.
75722         * lib/copy-acl.c (qcopy_acl): Likewise.
75724 2008-06-08  Bruno Haible  <bruno@clisp.org>
75726         Add support for HP-UX ACLs.
75727         * lib/acl-internal.h (acl_nontrivial): New declaration.
75728         * lib/file-has-acl.c (acl_nontrivial): New function.
75729         (file_has_acl): Add implementation using HP-UX 11 ACL API.
75730         * lib/set-mode-acl.c (qset_acl): Likewise.
75731         * lib/copy-acl.c (qcopy_acl): Likewise.
75733 2008-06-08  Bruno Haible  <bruno@clisp.org>
75735         Add support for Cygwin ACLs.
75736         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
75737         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
75738         the chmod_or_fchmod call.
75739         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
75741 2008-06-08  Bruno Haible  <bruno@clisp.org>
75743         Fix bug with setuid modes in Solaris 10+ code.
75744         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
75745         succeeded, when the mode contains some special bits.
75747 2008-06-08  Bruno Haible  <bruno@clisp.org>
75749         Add support for Solaris 7..10 ACLs.
75750         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
75751         declarations.
75752         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
75753         functions.
75754         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
75755         * lib/set-mode-acl.c (qset_acl): Likewise.
75756         * lib/copy-acl.c (qcopy_acl): Likewise.
75758 2008-06-08  Bruno Haible  <bruno@clisp.org>
75760         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
75761         declaration.
75762         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
75763         (acl_access_nontrivial): Remove MacOS X case.
75764         (file_has_acl): Use acl_extended_nontrivial.
75765         * lib/copy-acl.c (qcopy_acl): Likewise.
75767 2008-06-08  Bruno Haible  <bruno@clisp.org>
75769         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
75771 2008-06-08  Jim Meyering  <meyering@redhat.com>
75773         * modules/acl (Maintainer): Add Bruno Haible.
75775 2008-06-07  Bruno Haible  <bruno@clisp.org>
75777         Improve support for Tru64 ACLs.
75778         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
75779         ACL on OSF/1.
75781 2008-06-07  Bruno Haible  <bruno@clisp.org>
75783         Add support for MacOS X ACLs.
75784         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
75785         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
75786         * lib/set-mode-acl.c (qset_acl): Likewise.
75787         * lib/copy-acl.c (qcopy_acl): Likewise.
75789 2008-06-07  Bruno Haible  <bruno@clisp.org>
75791         Fix memory leak introduced on 2008-05-22.
75792         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
75793         use.
75795 2008-06-07  Bruno Haible  <bruno@clisp.org>
75797         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
75798         to construct an empty ACL.
75800 2008-06-07  Bruno Haible  <bruno@clisp.org>
75802         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
75803         precisely.
75804         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
75806 2008-06-07  Bruno Haible  <bruno@clisp.org>
75808         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
75809         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
75811 2008-06-07  Bruno Haible  <bruno@clisp.org>
75813         * doc/posix-functions/_setjmp.texi: Explain the use of this function
75814         regardless of POSIX.
75815         * doc/posix-functions/_longjmp.texi: Likewise.
75816         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
75817         SystemV platform in this case.
75819 2008-06-06  Eric Blake  <ebb9@byu.net>
75821         Document abort() bugs.
75822         * doc/posix-functions/abort.texi (abort): Mention anomalies.
75824         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
75825         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
75826         sigsetjmp.
75827         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
75828         siglongjmp, but only as a macro.
75829         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
75830         is obsolete.
75831         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
75833         Tweak documentation to cover cygwin argz bugs.
75834         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
75835         argz bug fix; no code change needed since no cygwin releases
75836         occurred between the last fix and the bug being tested.
75837         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
75838         module and recently fixed cygwin bugs.
75839         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
75840         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
75841         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
75842         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
75843         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
75844         Likewise.
75845         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
75846         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
75847         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
75848         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
75849         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
75850         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
75851         Likewise.
75853         Avoid gcc warning on cygwin.
75854         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
75855         !ACL_NO_TRIVIAL]: Avoid unused variable.
75857 2008-06-05  Eric Blake  <ebb9@byu.net>
75859         Be tolerant of UNKNOWN version in gnulib-tool test dir.
75860         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
75861         git-version-gen fails to come up with a version.
75862         Reported by Simon Josefsson.
75864 2008-06-05  Jim Meyering  <meyering@redhat.com>
75865             Paul Eggert  <eggert@cs.ucla.edu>
75867         utimens.c: work around a probable Linux kernel bug
75868         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
75869         appears to be a kernel bug that causes utimensat to return 280
75870         instead of 0, indicating success.
75872 2008-06-04  Bruno Haible  <bruno@clisp.org>
75874         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
75875         2008-06-01 commit.
75877 2008-06-04  Bruno Haible  <bruno@clisp.org>
75879         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
75880         * lib/file-has-acl.c (acl_access_nontrivial): New function.
75881         (file_has_acl): Use it. Save errno afterwards.
75882         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
75884 2008-06-03  Bruno Haible  <bruno@clisp.org>
75886         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
75887         draft code. Simplify #ifs.
75888         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
75889         Put Solaris code after POSIX-draft code. Fix comments regarding
75890         Solaris 10, HP-UX. Mention Cygwin.
75891         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
75893 2008-06-03  Eric Blake  <ebb9@byu.net>
75895         Provide fallback for older kernels.
75896         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
75897         Provide runtime fallback if kernel lacks support.
75898         Reported by Mike Frysinger.
75900 2008-06-02  Bruno Haible  <bruno@clisp.org>
75902         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
75903         it exists.
75905 2008-06-02  Bruno Haible  <bruno@clisp.org>
75907         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
75908         * lib/copy-acl.c (qcopy_acl): Update comment.
75910 2008-06-02  Bruno Haible  <bruno@clisp.org>
75912         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
75913         like ACL APIs.
75915 2008-06-02  Bruno Haible  <bruno@clisp.org>
75917         * tests/test-file-has-acl.sh: Use different code for Cygwin.
75918         * tests/test-set-mode-acl.sh: Likewise.
75919         * tests/test-copy-acl.sh: Likewise.
75920         * tests/test-copy-file.sh: Likewise.
75922 2008-06-02  Bruno Haible  <bruno@clisp.org>
75924         * tests/test-file-has-acl.sh: Remove unused code.
75926 2008-06-01  Bruno Haible  <bruno@clisp.org>
75928         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
75929         (copy_acl): Just a wrapper around qcopy_acl that emits the error
75930         messages.
75931         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
75933 2008-06-01  Bruno Haible  <bruno@clisp.org>
75935         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
75936         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
75937         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
75938         APIs.
75939         * modules/acl-tests (configure.ac): Remove tests now contained in
75940         m4/acl.m4.
75942 2008-06-02  Jim Meyering  <meyering@redhat.com>
75944         announce-gen: use a better key-server host name
75945         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
75946         it may be more consistently reliable.  Suggested by Werner Koch
75947         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
75949 2008-06-01  Bruno Haible  <bruno@clisp.org>
75951         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
75952         Reported by Voroskoi Andras <voroskoi@gmail.com>.
75954 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
75956         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
75958 2008-06-01  Bruno Haible  <bruno@clisp.org>
75960         New ACL tests.
75961         * tests/test-file-has-acl.sh: New file.
75962         * tests/test-file-has-acl.c: New file.
75963         * tests/test-set-mode-acl.sh: New file.
75964         * tests/test-set-mode-acl.c: New file.
75965         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
75966         * tests/test-copy-acl.c: New file.
75967         * modules/acl-tests: New file, based on modules/copy-file-tests.
75968         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
75969         (Depends-on): Add acl-tests.
75970         (configure.ac): Remove checks.
75971         (Makefile.am): Don't create test-sameacls program here any more.
75973 2008-06-01  Bruno Haible  <bruno@clisp.org>
75975         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
75976         * tests/test-sameacls.c: Include progname.h.
75977         (main): Invoke set_program_name. Portability fixes for MacOS X,
75978         Solaris, HP-UX.
75980 2008-06-01  Bruno Haible  <bruno@clisp.org>
75982         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
75983         function.
75984         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
75986 2008-06-01  Bruno Haible  <bruno@clisp.org>
75988         * modules/rpmatch (Depends-on): Add strdup.
75990 2008-06-01  Bruno Haible  <bruno@clisp.org>
75992         * lib/pipe.c: Include unistd-safer.h.
75993         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
75994         * modules/pipe (Depends-on): Add unistd-safer.
75996 2008-05-30  Simon Josefsson  <simon@josefsson.org>
75998         * modules/autobuild (configure.ac): Call AB_INIT.
76000 2008-05-30  Simon Josefsson  <simon@josefsson.org>
76002         * tests/test-getaddrinfo.c: Don't print debug messages by default.
76003         Suggested by Bruno Haible <bruno@clisp.org>.
76005 2008-05-30  Simon Josefsson  <simon@josefsson.org>
76007         * tests/test-base64.c: Cast size_t to unsigned long when invoking
76008         printf.  Use %lu instead of %d.  Reported by Bruno Haible
76009         <bruno@clisp.org>.
76011 2008-05-29  Eric Blake  <ebb9@byu.net>
76013         Prefer new POSIX 200x interfaces over futimesat.
76014         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
76015         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
76016         when available.
76017         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
76019 2008-05-28  Bruno Haible  <bruno@clisp.org>
76021         * modules/stpcpy (License): Change to LGPLv2+.
76022         Requested by David Lutterkort <dlutter@redhat.com>.
76024 2008-05-27  Bruno Haible  <bruno@clisp.org>
76026         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
76027         current mingw.
76028         Reported by Jose E. Marchesi <jemarch@gnu.org>.
76030 2008-05-27  Bruno Haible  <bruno@clisp.org>
76032         * modules/iconv_open (Link): New section, from module 'iconv'.
76033         * modules/striconv (Link): Likewise.
76034         * modules/striconveh (Link): Likewise.
76035         * modules/xstriconv (Link): Likewise.
76036         * modules/unicodeio (Link): Likewise.
76037         * modules/propername (Link): Likewise.
76038         Reported by Jim Meyering.
76040 2008-05-26  Jim Meyering  <meyering@redhat.com>
76042         sha256: do not artificially restrict buffer length to be < 2^32
76043         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
76044         uint32_t to size_t.
76045         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
76046         to match.
76048         avoid unaligned access errors, e.g., on sparc
76049         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
76050         direct access through a possibly-unaligned uint64* pointer.
76051         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
76052         direct access through a possibly-unaligned uint32* pointer.
76053         Prompted by this patch from Tom "spot" Callaway:
76054         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
76056         sha512.c: fix typo in comment
76057         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
76059 2008-05-25  Bruno Haible  <bruno@clisp.org>
76061         * lib/set-mode-acl.c: Renamed from lib/acl.c.
76062         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
76063         (Makefile.am): Update lib_SOURCES.
76065 2008-05-25  Bruno Haible  <bruno@clisp.org>
76067         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
76069 2008-05-25  Jim Meyering  <meyering@redhat.com>
76071         useless-if-before-free: freed expr may have white-space differences
76072         * build-aux/useless-if-before-free: Recognize cases in which the
76073         freed expression differs from the tested one in embedded white
76074         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
76075         $1 was used, so we can't make any regexp shy.  Improved tests now
76076         detect this.
76078         useless-if-before-free: accept white space in the expression.
76079         * build-aux/useless-if-before-free: For now, any white space
76080         in the expression must be identical in the free argument.
76082         useless-if-before-free: efficiency tweak
76083         * build-aux/useless-if-before-free: Make the expression-matching
76084         regexp "shy".
76085         Make the *outer* regexp shy, not the expr-matching one.
76087         update code-in-comment to accept cast of free arg
76088         * build-aux/useless-if-before-free: Update regexp.
76090 2008-05-25  Bruno Haible  <bruno@clisp.org>
76092         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
76093         * modules/copy-file-tests (Files, Makefile.am): Update.
76094         * tests/test-copy-file.c (func_test_copy): Update.
76096 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
76098         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
76100 2008-05-23  Bruno Haible  <bruno@clisp.org>
76102         Improve support for ACLs on OSF/1.
76103         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
76104         Remove fallback for unknown flavors of ACLs.
76106 2008-05-22  Bruno Haible  <bruno@clisp.org>
76108         Add support for ACLs on OSF/1.
76109         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
76110         replacements.
76111         (acl_free_text): New macro fallback.
76112         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
76113         acl_free.
76114         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
76115         acl_free_text function. Require AC_C_INLINE.
76117 2008-05-22  Bruno Haible  <bruno@clisp.org>
76119         Make copy_acl work on MacOS X 10.5.
76120         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
76121         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
76122         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
76123         If MODE_INSIDE_ACL, don't assume that every system has the same text
76124         representation for ACLs as FreeBSD.
76125         * lib/copy-acl.c (copy_acl): Add support for platforms with
76126         !MODE_INSIDE_ACL.
76127         * lib/file-has-acl.c (file_has_acl): Likewise.
76128         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
76129         FreeBSD, MacOS X, or IRIX, respectively.
76131 2008-05-22  Bruno Haible  <bruno@clisp.org>
76133         * lib/acl.h: Don't include <sys/acl.h>.
76134         (GETACLCNT): Move fallback to lib/acl-internal.h.
76135         * lib/acl-internal.h: Include <sys/acl.h> here.
76136         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
76138 2008-05-22  Bruno Haible  <bruno@clisp.org>
76140         Split off copy_acl function to separate file.
76141         * lib/copy-acl.c: New file, extracted from lib/acl.c.
76142         * lib/acl.c (copy_acl): Moved function to separate file.
76143         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
76144         * modules/acl (Files): Add lib/copy-acl.c.
76145         (Makefiles.am): Augment lib_SOURCES.
76147 2008-05-22  Bruno Haible  <bruno@clisp.org>
76149         * modules/copy-file-tests: New file.
76150         * tests/test-copy-file.sh: New file.
76151         * tests/test-copy-file.c: New file.
76152         * tests/test-copy-file-sameacls.c: New file.
76154 2008-05-22  Eric Blake  <ebb9@byu.net>
76156         Avoid gcc warning.
76157         * tests/test-memcmp.c (main): Pass NULL indirectly.
76159 2008-05-21  Bruno Haible  <bruno@clisp.org>
76161         Add reference doc about ACLs.
76162         * doc/acl-resources.txt: New file.
76163         * doc/acl-cygwin.txt: New file.
76165 2008-05-21  Bruno Haible  <bruno@clisp.org>
76167         Avoid one more warning from gcc.
76168         * lib/vasnprintf.c (IF_LINT): Update comments.
76169         (VASNPRINTF): Use it also for the 'prefix' array initializer.
76171 2008-05-21  Jim Meyering  <meyering@redhat.com>
76173         avoid a warning from gcc
76174         * lib/vasnprintf.c (IF_LINT): Define.
76175         (scale10_round_decimal_long_double):
76176         Use it to avoid a "may be used uninitialized" warning.
76177         (scale10_round_decimal_double): Likewise.
76179 2008-05-21  Simon Josefsson  <simon@josefsson.org>
76181         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
76182         declared.
76184 2008-05-20  Bruno Haible  <bruno@clisp.org>
76186         * tests/test-memcmp.c (main): Test also the sign of the result. Test
76187         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
76189 2008-05-20  Simon Josefsson  <simon@josefsson.org>
76191         * modules/memcmp-tests: New file.
76192         * tests/test-memcmp.c: New file.
76194 2008-05-19  Bruno Haible  <bruno@clisp.org>
76196         * modules/propername (Notice, configure.ac): Put quoted "..." into
76197         --keyword option.
76198         * lib/propername.h: Update comments accordingly.
76199         Reported by Eric Blake.
76201 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
76203         * modules/getpass-gnu (Depends-on): Add fseeko.
76205 2008-05-19  Simon Josefsson  <simon@josefsson.org>
76207         * modules/base64-tests: New file.
76209 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
76211         * lib/base64.c (base64_decode_ctx): If a decode context structure
76212         was passed in use it to ignore newlines.  If a context structure
76213         was _not_ passed in, continue to treat newlines as garbage (this
76214         is the historical behavior).  Formerly base64_decode.
76215         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
76216         takes a decode context structure.
76217         * lib/base64.h (base64_decode): Macro for four-argument calls.
76218         (base64_decode_alloc): Likewise.
76219         * lib/base64.c (base64_decode_ctx): If a decode context structure
76220         was passed in use it to ignore newlines.  If a context structure
76221         was _not_ passed in, continue to treat newlines as garbage (this
76222         is the historical behavior).  Formerly base64_decode.
76223         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
76224         takes a decode context structure.
76225         * lib/base64.h (base64_decode): Macro for four-argument calls.
76226         (base64_decode_alloc): Likewise.
76228 2008-05-19  Jim Meyering  <meyering@redhat.com>
76230         avoid a warning from gcc
76231         * lib/trim.c (IF_LINT): Define.
76232         (trim2): Use it to avoid a "may be used uninitialized" warning.
76234         Fix doc typo.
76235         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
76237 2008-05-19  Bruno Haible  <bruno@clisp.org>
76239         * doc/glibc-functions/getpass.texi: Document limits of other
76240         implementations.
76242 2008-05-19  Simon Josefsson  <simon@josefsson.org>
76243             Bruno Haible <bruno@clisp.org>
76245         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
76247 2008-05-18  Bruno Haible  <bruno@clisp.org>
76249         * modules/propername: New file, from GNU gettext.
76250         * lib/propername.h: New file, from GNU gettext.
76251         * lib/propername.c: New file, from GNU gettext.
76252         * MODULES.html.sh (Internationalization functions): Add propername.
76254 2008-05-16  Jim Meyering  <meyering@redhat.com>
76255             Bruno Haible  <bruno@clisp.org>
76257         Avoid some warnings from "gcc -Wshadow".
76258         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
76260 2008-05-15  Eric Blake  <ebb9@byu.net>
76262         Extend previous patch to cygwin 1.7.0.
76263         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
76264         fast implementation in cygwin >= 1.7.0.
76265         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
76266         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
76268 2008-05-15  Bruno Haible  <bruno@clisp.org>
76270         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
76271         implementation in glibc >= 2.9.
76272         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
76273         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
76275 2008-05-15  Bruno Haible  <bruno@clisp.org>
76277         * MODULES.html.sh (Internationalization functions): Remove linebreak.
76278         (Unicode string functions): Add unilbrk/*.
76279         Reported by Karl Berry.
76281 2008-05-15  Eric Blake  <ebb9@byu.net>
76283         Fix violation of <stdbool.h> replacement in regex.
76284         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
76285         * lib/regexec.c (re_search_internal): Likewise.
76286         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
76288 2008-05-15  Jim Meyering  <meyering@redhat.com>
76290         avoid distracting test output when git or cvs is not found
76291         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
76292         * tests/test-vc-list-files-git.sh: Likewise.
76294 2008-05-15  Eric Blake  <ebb9@byu.net>
76296         Glibc finally accepted the memmem speedup code, bugzilla #5514.
76297         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
76298         glibc version.
76299         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
76300         * doc/posix-functions/strstr.texi (strstr): Likewise.
76301         * lib/str-two-way.h (MAX): Sychronize with glibc.
76303 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
76305         * lib/regcomp.c (optimize_utf8): Add a note on why we test
76306         opr.ctx_type.
76307         (calc_first): Initialize constraint field.
76308         (duplicate_node_closure): Use it instead of special casing ANCHORS.
76309         Fix grammar.
76310         (duplicate_node): Merge constraint field for all node types.
76311         (calc_eclosure_iter): Look at constraint field for all node types.
76312         * lib/regex_internal.c (create_cd_newstate): Don't look at
76313         opr.ctx_type.
76315 2008-05-14  Bruno Haible  <bruno@clisp.org>
76317         Help GCC to do better code generation.
76318         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
76319         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
76320         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
76321         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
76322         Declare with attribute 'malloc' if supported.
76324 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
76326         use "echo STR|wc -c" rather than unportable "expr length STR"
76327         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
76328         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
76330 2008-05-14  Jim Meyering  <meyering@redhat.com>
76332         use dd ibs=$n count=1 ... rather than less-portable head -c$n
76333         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
76334         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
76335         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
76336         via Collin Lasse.
76338 2008-05-14  Eric Blake  <ebb9@byu.net>
76340         Avoid quadratic growth in gl_LIBSOURCES.
76341         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
76342         Suggested by Bruno Haible.
76344         Test xmemdup0.
76345         * modules/xmemdup0-tests: New file.
76346         * tests/test-xmemdup0.c: Likewise.
76348 2008-05-13  Eric Blake  <ebb9@byu.net>
76350         Split xmemdup0 into its own module.
76351         * modules/xmemdup0: New file.
76352         * lib/xmemdup0.h: Likewise.
76353         * lib/xmemdup0.c: Likewise.
76354         * MODULES.html.sh (Memory management functions): Add xmemdup0.
76355         * lib/xalloc.h (xmemdup0): Remove.
76356         * lib/xmalloc.c (xmemdup0): Likewise.
76358 2008-05-13  Eric Blake  <ebb9@byu.net>
76359             Bruno Haible  <bruno@clisp.org>
76361         Reduce number of forks required during autoconf.
76362         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
76363         and gl_LIBSOURCES_DIR.
76364         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
76365         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
76366         m4_syscmd per file.
76367         <m4_foreach_w>: Move...
76368         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
76370 2008-05-13  Eric Blake  <ebb9@byu.net>
76372         * gnulib-tool: Fix various comment typos.
76374 2008-05-12  Bruno Haible  <bruno@clisp.org>
76376         Tailor the linebreaking algorithm.
76377         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
76379 2008-05-12  Bruno Haible  <bruno@clisp.org>
76381         Update to Unicode 5.0.0.
76382         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
76383         LBP_JV, LBP_JT. Redistribute values.
76384         (unilbrk_table): Change size.
76385         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
76386         Unicode TR#14 rev. 22.
76387         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
76388         LBP_JV, LBP_JT. Redistribute values.
76389         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
76390         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
76391         Update.
76392         * lib/unilbrk/lbrkprop1.h: Regenerated.
76393         * lib/unilbrk/lbrkprop2.h: Regenerated.
76394         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
76395         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
76396         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
76397         Likewise.
76398         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
76399         Likewise.
76400         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
76401         result.
76402         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
76403         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
76404         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
76405         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
76406         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
76407         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
76409 2008-05-11  Bruno Haible  <bruno@clisp.org>
76411         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
76413 2008-05-11  Bruno Haible  <bruno@clisp.org>
76415         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
76416         * modules/unilbrk/gen-lbrk: New file.
76418 2008-05-11  Bruno Haible  <bruno@clisp.org>
76420         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
76421         * m4/sha512.m4 (gl_SHA512): Likewise.
76423 2008-05-11  Jim Meyering  <meyering@redhat.com>
76425         New modules: crypto/sha256, crypto/sha512 (from coreutils)
76426         * modules/crypto/sha256: New file.
76427         * modules/crypto/sha512: Likewise.
76428         * lib/sha256.c: Likewise.
76429         * lib/sha256.h: Likewise.
76430         * lib/sha512.c: Likewise.
76431         * lib/sha512.h: Likewise.
76432         * lib/u64.h: Likewise.
76433         * m4/sha256.m4: Likewise.
76434         * m4/sha512.m4: Likewise.
76435         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
76437 2008-05-10  Bruno Haible  <bruno@clisp.org>
76439         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
76440         (Input/Output <stdio.h>): Add xprintf.
76441         (Signal handling <signal.h>): Add strsignal.
76442         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
76443         (Core language properties): Add func.
76444         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
76445         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
76446         strings.
76447         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
76448         (Input/output): New section.
76449         (File system functions): Add openat-die, stat-macros.
76450         (Networking functions): Add sockets.
76451         (Unicode string functions): Add unictype/*.
76452         (Support for building libraries and executables): Add gperf.
76453         (Support for building documentation): Add agpl-3.0.
76454         (Misc): Add nocrash.
76456 2008-05-10  Bruno Haible  <bruno@clisp.org>
76458         * modules/unictype/gen-ctype: New file.
76460 2008-05-10  Jim Meyering  <meyering@redhat.com>
76462         Make chdir-safer.c more efficient on a system with no symlinks.
76463         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
76464         also if ELOOP is zero.  Suggested by Bruno Haible.
76466         Make chdir-safer.c slightly safer.
76467         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
76468         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
76470         Avoid compile failure on systems without ELOOP (like mingw).
76471         * lib/chdir-safer.c (ELOOP): Define if not already defined.
76472         Reported by Bruno Haible.
76474 2008-05-10  Bruno Haible  <bruno@clisp.org>
76476         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
76477         (is_utf8_encoding): Use a case-insensitive comparison.
76478         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
76479         streq.
76481 2008-05-10  Bruno Haible  <bruno@clisp.org>
76483         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
76484         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
76485         * lib/unilbrk/ulc-common.h (iconv_string_length,
76486         iconv_string_keeping_offsets): Remove declarations.
76487         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
76488         Don't include <iconv.h>, streq.h, xsize.h.
76489         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
76490         conversion.
76491         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
76492         <iconv.h>, streq.h, xsize.h.
76493         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
76494         conversion.
76495         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
76496         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
76497         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
76498         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
76500 2008-05-10  Bruno Haible  <bruno@clisp.org>
76502         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
76503         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
76505         * modules/unilbrk/u32-width-linebreaks-tests: New file.
76506         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
76508         * modules/unilbrk/u16-width-linebreaks-tests: New file.
76509         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
76511         * modules/unilbrk/u8-width-linebreaks-tests: New file.
76512         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
76514         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
76515         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
76517         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
76518         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
76520         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
76521         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
76523         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
76524         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
76526 2008-05-10  Bruno Haible  <bruno@clisp.org>
76528         Split up 'linebreak' module.
76529         * lib/unilbrk.h: New file, based on lib/linebreak.h.
76530         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
76531         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
76532         modifications.
76533         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
76534         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
76535         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
76536         lib/linebreak.c.
76537         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
76538         lib/linebreak.c.
76539         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
76540         lib/linebreak.c.
76541         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
76542         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
76543         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
76544         lib/linebreak.c.
76545         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
76546         lib/linebreak.c.
76547         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
76548         lib/linebreak.c.
76549         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
76550         lib/linebreak.c.
76551         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
76552         lib/linebreak.c.
76553         * modules/unilbrk/base: New file.
76554         * modules/unilbrk/tables: New file.
76555         * modules/unilbrk/u8-possible-linebreaks: New file.
76556         * modules/unilbrk/u16-possible-linebreaks: New file.
76557         * modules/unilbrk/u32-possible-linebreaks: New file.
76558         * modules/unilbrk/ulc-common: New file.
76559         * modules/unilbrk/ulc-possible-linebreaks: New file.
76560         * modules/unilbrk/u8-width-linebreaks: New file.
76561         * modules/unilbrk/u16-width-linebreaks: New file.
76562         * modules/unilbrk/u32-width-linebreaks: New file.
76563         * modules/unilbrk/ulc-width-linebreaks: New file.
76564         * lib/linebreak.h: Remove file.
76565         * lib/linebreak.c: Remove file.
76566         * m4/linebreak.m4: Remove file.
76567         * modules/linebreak: Remove file.
76568         * NEWS: Mention the changes.
76570 2008-05-09  Eric Blake  <ebb9@byu.net>
76572         Add xmemdup0.
76573         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
76574         implementation.
76575         * lib/xmalloc.c (xmemdup0): New C implementation.
76577 2008-05-08  Bruno Haible  <bruno@clisp.org>
76579         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
76581 2008-05-07  Eric Blake  <ebb9@byu.net>
76583         Support cross-compilation of <wctype.h>.
76584         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
76585         AC_CACHE_CHECK.
76587 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
76589         * build-aux/vc-list-files: Add support for bzr.
76591 2008-05-03  Jim Meyering  <meyering@redhat.com>
76593         avoid failed assertion with tight malloc
76594         * tests/test-getndelim2.c: Correct an off-by-one assertion.
76596 2008-05-03  Simon Josefsson  <simon@josefsson.org>
76598         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
76599         are needed from arpa/inet.h.
76600         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
76601         Reported by Bruno Haible.
76603 2008-05-02  Jim Meyering  <meyering@redhat.com>
76605         avoid compilation error on FreeBSD 6
76606         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
76608 2008-05-01  Jim Meyering  <meyering@redhat.com>
76610         useless-if-before-free: correct --help's exit status description
76611         * build-aux/useless-if-before-free (usage): Like grep, exit 0
76612         for one or more matches, etc.  Reported by Bruno Haible.
76614         vc-list-files: make the stand-alone gnulib test work
76615         * modules/vc-list-files-tests (configure.ac):
76616         Define and AC_SUBST abs_aux_dir.
76617         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
76618         $(abs_top_srcdir) to each script and having each of them
76619         duplicate the work of setting PATH, set PATH here, using
76620         the new variable, abs_aux_dir instead.
76621         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
76622         * tests/test-vc-list-files-git.sh: Likewise.
76623         Reported by Bruno Haible.
76625 2008-05-01  Bruno Haible  <bruno@clisp.org>
76627         * lib/getndelim2.c (getndelim2): Fix newsize computation during
76628         reallocation. Rename 'done' to 'found_delimiter'.
76630 2008-05-01  Jim Meyering  <meyering@redhat.com>
76632         vc-list-files: accommodate /bin/sh like the one from Solaris 10
76633         * build-aux/vc-list-files: Use `...`, not $(...).
76635 2008-04-30  Jim Meyering  <meyering@redhat.com>
76637         add tests for vc-list-files
76638         * modules/vc-list-files-tests: New module.
76639         * tests/test-vc-list-files-cvs.sh: New file.
76640         * tests/test-vc-list-files-git.sh: New file.
76642         avoid a warning from gcc
76643         * lib/getndelim2.c (IF_LINT): Define.
76644         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
76646         vc-list-files: work properly with build-aux/cvsu, too
76647         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
76648         to all cvs-based clauses.
76650         vc-list-files: work properly in the CVS+awk case, too
76651         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
76653         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
76654         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
76655         take more than one file argument, so .  Add quotes, just in case $dir
76656         ever contains a shell meta-character.  Prompted by Soren Hansen in
76657         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
76659 2008-04-29  Eric Blake  <ebb9@byu.net>
76661         Optimize getndelim2 to use block operations when possible.
76662         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
76663         freadseek, and memchr2.
76664         * lib/getndelim2.c (getndelim2): Use them for block reads.
76666 2008-04-29  Bruno Haible  <bruno@clisp.org>
76668         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
76669         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
76670         * modules/inet_ntop (Depends-on): Add extensions.
76671         * modules/inet_pton (Depends-on): Likewise.
76672         Reported by Simon Josefsson.
76674 2008-04-29  Jim Meyering  <meyering@redhat.com>
76676         When the is more than one match in a block, match all of them.
76677         * build-aux/useless-if-before-free: Iterate through each block
76678         until there are no more matches.
76680         Fix broken useless-if-before-free script.
76681         * build-aux/useless-if-before-free: Fix typo: missing "?" after
76682         the expression to match cast of argument to free-like function.
76684 2008-04-29  Eric Blake  <ebb9@byu.net>
76686         Use new header.
76687         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
76689 2008-04-29  Jim Meyering  <meyering@redhat.com>
76691         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
76692         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
76693         by gnulib to exist and to declare e.g., inet_ntop.
76694         Don't include "inet_ntop.h", now removed.
76696         * m4/arpa_inet_h.m4: Remove trailing blanks.
76698 2008-04-29  Eric Blake  <ebb9@byu.net>
76700         Silence valgrind on safe reads beyond potential array bounds.
76701         * lib/rawmemchr.valgrind: New file.
76702         * lib/strchrnul.valgrind: Likewise.
76703         * modules/rawmemchr (Files): Distribute new file.
76704         * modules/strchrnul (Files): Likewise.
76705         Suggested by Bruno Haible.
76707 2008-04-29  Bruno Haible  <bruno@clisp.org>
76709         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
76710         (inet_ntop, inet_pton): Change portability warning's wording.
76711         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
76712         Invoke gl_CHECK_NEXT_HEADERS.
76713         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
76714         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
76715         set ARPA_INET_H.
76716         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
76717         * modules/arpa_inet (Description): No longer only for systems that
76718         lack it.
76719         (Depends-on): Add include_next.
76720         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
76721         HAVE_ARPA_INET_H.
76723 2008-04-29  Jim Meyering  <meyering@redhat.com>
76725         * modules/mkdir (License): Re-license as LGPLv2+.
76727 2008-04-29  Bruno Haible  <bruno@clisp.org>
76729         * modules/rawmemchr (Maintainer): Set to Eric.
76730         * modules/strchrnul (Maintainer): Likewise.
76732 2008-04-29  Simon Josefsson  <simon@josefsson.org>
76734         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
76735         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
76737         * modules/arpa_inet (arpa/inet.h): Use them.
76739 2008-04-28  Eric Blake  <ebb9@byu.net>
76741         Test getndelim2.
76742         * modules/getndelim2-tests: New file.
76743         * tests/test-getndelim2.c: Likewise.
76744         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
76745         stream.
76746         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
76748         * MODULES.html.sh: Document new module.
76750 2008-04-20  Bruno Haible  <bruno@clisp.org>
76752         * lib/c-stack.c (die): Use raise.
76753         * modules/c-stack (Depends-on): Add raise.
76755 2008-04-28  Bruno Haible  <bruno@clisp.org>
76757         Expect rpmatch to be declared.
76758         * lib/yesno.c (rpmatch): Remove declaration.
76760         Declare rpmatch.
76761         * lib/stdlib.in.h (rpmatch): New declaration.
76762         * lib/rpmatch.c: Include <stdlib.h> first.
76763         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
76764         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
76765         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
76766         HAVE_RPMATCH.
76767         * modules/rpmatch (Depends-on): Add stdlib, extensions.
76768         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
76769         (Include): Set to <stdlib.h>.
76770         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
76771         HAVE_RPMATCH.
76772         * NEWS: Document the change.
76774 2008-04-28  Bruno Haible  <bruno@clisp.org>
76776         Change rpmatch to use nl_langinfo when appropriate.
76777         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
76778         (N_): New macro.
76779         (localized_pattern): New function/macro.
76780         (try): Remove match, nomatch arguments. Copy the pattern into safe
76781         memory before caching it.
76782         (rpmatch): Use localized_pattern. Add translator comments.
76783         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
76784         Suggested by Eric Blake.
76785         * modules/rpmatch (Depends-on): Add stdbool.
76787 2008-04-28  Eric Blake  <ebb9@byu.net>
76789         Add rawmemchr module, matching glibc.
76790         * modules/string (Makefile.am): New indicator.
76791         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
76792         * lib/string.in.h (rawmemchr): Declare when appropriate.
76793         * modules/rawmemchr: New file.
76794         * m4/rawmemchr.m4: Likewise.
76795         * lib/rawmemchr.c: Likewise.
76796         * modules/rawmemchr-tests: Likewise.
76797         * tests/test-rawmemchr.c: Likewise.
76798         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
76799         module.
76800         * modules/strchrnul (Depends-on): Add rawmemchr.
76801         * lib/strchrnul.c (strchrnul): Optimize a corner case.
76803         Whitespace cleanup.
76804         * tests/test-strchrnul.c: Reindent.
76805         * lib/strchrnul.c: Likewise.
76807         Optimize and test strchrnul.
76808         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
76809         * modules/strchrnul-tests: New file.
76810         * tests/test-strchrnul.c: Likewise.
76812         Remove intprops dependency.
76813         * modules/memchr (Depends-on): Remove intprops.
76814         * modules/memrchr (Depends-on): Likewise.
76815         * modules/memchr2 (Depends-on): Likewise.
76816         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
76817         * lib/memrchr.c (__memrchr): Likewise.
76818         * lib/memrchr2.c (memchr2): Likewise.
76819         Reported by Simon Josefsson.
76821 2008-04-28  Simon Josefsson  <simon@josefsson.org>
76823         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
76824         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76826 2008-04-28  Simon Josefsson  <simon@josefsson.org>
76828         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
76830         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
76832         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
76834         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
76835         declarations.
76836         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
76838         * m4/inet_pton.m4: Don't check for header files.
76840         * m4/inet_ntop.m4: Don't check for header files.
76842 2008-04-28  Simon Josefsson  <simon@josefsson.org>
76844         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
76845         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
76846         trigger for cygwin).
76847         Reported by Bruno Haible  <bruno@clisp.org>.
76849 2008-04-28  Bruno Haible  <bruno@clisp.org>
76851         * doc/posix-functions/strdup.texi: Mention mingw problem.
76853 2008-04-27  Bruno Haible  <bruno@clisp.org>
76855         * modules/stat-time-tests (Depends-on): Add sleep.
76856         * tests/test-stat-time.c (force_unlink): New function.
76857         (cleanup): Use it.
76858         (test_mtime): Remove the ctime related tests.
76859         (test_ctime): New function, containing the ctime related tests.
76860         (main): Call test_ctime, except on native Windows platforms.
76862 2008-04-27  Bruno Haible  <bruno@clisp.org>
76864         * lib/rpmatch.c (rpmatch): Add some comments.
76865         Reported by James Youngman <jay@gnu.org>.
76867 2008-04-27  Bruno Haible  <bruno@clisp.org>
76869         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
76870         quiet NaNs.
76872 2008-04-27  Bruno Haible  <bruno@clisp.org>
76874         Make test-yesno.sh work on mingw.
76875         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
76876         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
76877         (main): Set stdin to binary mode.
76878         * modules/yesno-tests (Depends-on): Add binary-io.
76880 2008-04-27  Bruno Haible  <bruno@clisp.org>
76882         Fix 'isfinite' on x86, x86_64, ia64 platforms.
76883         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
76884         argument that lie outside the IEEE 854 domain.
76885         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
76886         (gl_ISFINITE): Use it.
76887         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
76889 2008-04-27  Bruno Haible  <bruno@clisp.org>
76891         Allow local renaming in config.h.
76892         * lib/memrchr.c (memrchr): Don't undefine outside libc.
76894 2008-04-27  Bruno Haible  <bruno@clisp.org>
76896         * lib/memchr.c (__memchr): Change type of 'i'.
76897         * lib/memchr2.c (memchr2): Likewise.
76899 2008-04-26  Eric Blake  <ebb9@byu.net>
76900         and Bruno Haible  <bruno@clisp.org>
76902         Optimize and test memrchr.
76903         * modules/memrchr (Depends-on): Add intprops.
76904         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
76905         * modules/memrchr-tests: New file.
76906         * tests/test-memrchr.c: New file.
76908 2008-04-26  Bruno Haible  <bruno@clisp.org>
76910         Add tentative support for DragonFly BSD.
76911         * lib/stdio-impl.h: Add macros for DragonFly BSD.
76912         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
76913         fp.
76914         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
76915         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
76916         * lib/fpurge.c (fpurge): Likewise.
76917         * lib/freadable.c (freaadable): Likewise.
76918         * lib/freadahead.c (freadahead): Likewise.
76919         * lib/freading.c (freading): Likewise.
76920         * lib/freadptr.c (freadptr): Likewise.
76921         * lib/freadseek.c (freadptrinc): Likewise.
76922         * lib/fseeko.c (fseeko): Likewise.
76923         * lib/fseterr.c (fseterr): Likewise.
76924         * lib/fwritable.c (fwritable): Likewise.
76925         * lib/fwriting.c (fwriting): Likewise.
76927 2008-04-26  Bruno Haible  <bruno@clisp.org>
76929         * lib/stdio-impl.h: New file.
76930         * lib/fbufmode.c: Include stdio-impl.h.
76931         (fbufmode): Use fp_, remove redundant #defines.
76932         * lib/fflush.c: Include stdio-impl.h.
76933         (clear_ungetc_buffer): Remove redundant #defines.
76934         * lib/fpurge.c: Include stdio-impl.h.
76935         (fpurge): Remove redundant #defines.
76936         * lib/freadable.c: Include stdio-impl.h.
76937         (freadable): Remove redundant #defines.
76938         * lib/freadahead.c: Include stdio-impl.h.
76939         (freadahead): Remove redundant #defines.
76940         * lib/freading.c: Include stdio-impl.h.
76941         (freading): Remove redundant #defines.
76942         * lib/freadptr.c: Include stdio-impl.h.
76943         (freadptr): Remove redundant #defines.
76944         * lib/freadseek.c: Include stdio-impl.h.
76945         (freadptrinc): Remove redundant #defines.
76946         * lib/fseeko.c: Include stdio-impl.h.
76947         (rpl_fseeko): Remove redundant #defines.
76948         * lib/fseterr.c: Include stdio-impl.h.
76949         (fseterr): Remove redundant #defines.
76950         * lib/fwritable.c: Include stdio-impl.h.
76951         (fwritable: Remove redundant #defines.
76952         * lib/fwriting.c: Include stdio-impl.h.
76953         (fwriting): Remove redundant #defines.
76954         * modules/fbufmode (Files): Add lib/stdio-impl.h.
76955         * modules/fflush (Files): Likewise.
76956         * modules/fpurge (Files): Likewise.
76957         * modules/freadable (Files): Likewise.
76958         * modules/freadahead (Files): Likewise.
76959         * modules/freading (Files): Likewise.
76960         * modules/freadptr (Files): Likewise.
76961         * modules/freadseek (Files): Likewise.
76962         * modules/fseeko (Files): Likewise.
76963         * modules/fseterr (Files): Likewise.
76964         * modules/fwritable (Files): Likewise.
76965         * modules/fwriting (Files): Likewise.
76967 2008-04-26  Bruno Haible  <bruno@clisp.org>
76969         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
76970         restore_seek_optimization, update_fpos_cache): New functions, extracted
76971         from rpl_fflush.
76972         (rpl_fflush): Use them.
76973         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
76974         (gl_REPLACE_FFLUSH): Use it.
76976 2008-04-26  Bruno Haible  <bruno@clisp.org>
76978         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
76979         on Solaris.
76980         * tests/test-xstrtoimax.sh: Likewise.
76981         * tests/test-xstrtoumax.sh: Likewise.
76982         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76984 2008-04-26  Bruno Haible  <bruno@clisp.org>
76986         * modules/memchr-tests: New file.
76987         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
76989 2008-04-26  Eric Blake  <ebb9@byu.net>
76990             Bruno Haible  <bruno@clisp.org>
76992         * lib/memchr.c: Include intprops.h.
76993         (__memchr): Optimize parallel detection of matching bytes. Rename local
76994         variables. Add explanatory comments.
76996 2008-04-26  Bruno Haible  <bruno@clisp.org>
76998         Fix module 'memchr', broken since 2000-10-28.
76999         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
77001 2008-04-26  Bruno Haible  <bruno@clisp.org>
77003         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
77004         comments.
77006 2008-04-25  Eric Blake  <ebb9@byu.net>
77008         Use native fstatat on cygwin 1.7.0.
77009         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
77010         first.
77012 2008-04-23  Eric Blake  <ebb9@byu.net>
77014         Improve memchr2 performance.
77015         * lib/memchr2.c (memchr2): Further optimize parallel detection of
77016         NUL bytes.
77017         * modules/memchr2 (Depends-on): Use intprops.h.
77019 2008-04-23  Simon Josefsson  <simon@josefsson.org>
77021         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
77022         an inline function instead of a CPP macro.  Patch by Ben Pfaff
77023         <blp@cs.stanford.edu>.
77025 2008-04-23  Simon Josefsson  <simon@josefsson.org>
77027         * lib/arpa_inet.in.h: New file.
77029         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
77030         (Makefile.am): Sed in substitute header file.
77032         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
77033         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
77035         * modules/inet_ntop (configure.ac): Use
77036         gl_ARPA_INET_MODULE_INDICATOR.
77038         * modules/inet_pton (configure.ac): Use
77039         gl_ARPA_INET_MODULE_INDICATOR.
77041 2008-04-22  Jim Meyering  <meyering@redhat.com>
77043         * modules/verify (License): Re-license as LGPLv2+.
77045 2008-04-22  Simon Josefsson  <simon@josefsson.org>
77047         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
77048         parameter to void* as per POSIX standard (MinGW uses char*).
77050 2008-04-21  Bruno Haible  <bruno@clisp.org>
77052         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
77053         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
77054         Define to replacements if REPLACE_ISWCNTRL is 1.
77055         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
77056         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
77057         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
77058         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
77059         what it fixes.
77060         * doc/posix-functions/iswalpha.texi: Likewise.
77061         * doc/posix-functions/iswblank.texi: Likewise.
77062         * doc/posix-functions/iswcntrl.texi: Likewise.
77063         * doc/posix-functions/iswdigit.texi: Likewise.
77064         * doc/posix-functions/iswgraph.texi: Likewise.
77065         * doc/posix-functions/iswlower.texi: Likewise.
77066         * doc/posix-functions/iswprint.texi: Likewise.
77067         * doc/posix-functions/iswpunct.texi: Likewise.
77068         * doc/posix-functions/iswspace.texi: Likewise.
77069         * doc/posix-functions/iswupper.texi: Likewise.
77070         * doc/posix-functions/iswxdigit.texi: Likewise.
77071         Reported by Alain Guibert.
77073 2008-04-21  Bruno Haible  <bruno@clisp.org>
77075         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
77076         Patch by Alain Guibert.
77078 2008-04-21  Bruno Haible  <bruno@clisp.org>
77080         Fix test failures on mingw.
77081         * tests/test-xstrtol.c (print_no_progname): New function.
77082         (main): Install it in error_print_progname hook.
77083         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
77084         * tests/test-xstrtoimax.sh: Likewise.
77085         * tests/test-xstrtoumax.sh: Likewise.
77087 2008-04-21  Bruno Haible  <bruno@clisp.org>
77089         Fix test failure on mingw.
77090         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
77092 2008-04-21  Bruno Haible  <bruno@clisp.org>
77094         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
77095         Actually assign a value.
77097 2008-04-20  Bruno Haible  <bruno@clisp.org>
77099         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
77100         take 2.
77101         * lib/canonicalize.c (canonicalize_file_name): Elide if the
77102         'canonicalize-lgpl' module is also used.
77103         * lib/canonicalize-lgpl.c: Undo last change.
77104         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
77106 2008-04-20  Bruno Haible  <bruno@clisp.org>
77108         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
77109         config.h. Provide _mkdir based fallback for mingw.
77110         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
77111         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
77112         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
77113         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
77114         rather than defining mkdir in config.h.
77115         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
77116         (gl_SYS_STAT_H_DEFAULTS): New macro.
77117         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
77118         HAVE_IO_H any more.
77119         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
77120         HAVE_DECL_MKDIR and HAVE_IO_H.
77122 2008-04-20  Bruno Haible  <bruno@clisp.org>
77124         * lib/isapipe.c: Port to native Windows platforms.
77126 2008-04-20  Bruno Haible  <bruno@clisp.org>
77128         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
77130 2008-04-21  Eric Blake  <ebb9@byu.net>
77132         Work around preprocessors that don't handle UINTMAX_MAX.
77133         * lib/memchr2.c (memchr2): Avoid embedded #if.
77134         Reported by Alain Guibert, fix suggested by Bruno Haible.
77136 2008-04-21  Simon Josefsson  <simon@josefsson.org>
77138         * doc/posix-functions/strftime.texi (strftime): Explain better
77139         Windows incompatibility.  Suggested by Micah Cowan
77140         <micah@cowan.name>.
77142 2008-04-20  Bruno Haible  <bruno@clisp.org>
77144         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
77145         unistr/u8-mblen.
77147 2008-04-20  Bruno Haible  <bruno@clisp.org>
77149         Fix test failure on platforms with non-GNU iconv.
77150         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
77151         (U_TO_U8): Use it, rather than u16_to_u8.
77152         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
77153         units at the end of the input string.
77154         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
77156 2008-04-20  Bruno Haible  <bruno@clisp.org>
77158         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
77159         when the resulting length is 0.
77160         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
77162 2008-04-20  Bruno Haible  <bruno@clisp.org>
77164         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
77165         works.
77166         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
77168 2008-04-20  Bruno Haible  <bruno@clisp.org>
77170         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
77171         * modules/tsearch-tests (configure.ac): Test for initstate function.
77173 2008-04-20  Bruno Haible  <bruno@clisp.org>
77175         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
77176         for nlink_t if missing.
77177         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
77179 2008-04-19  Bruno Haible  <bruno@clisp.org>
77181         Work around snprintf bug on Linux libc5.
77182         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
77183         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
77184         gl_SNPRINTF_SIZE1.
77185         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
77186         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
77187         that test failed.
77188         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
77189         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
77190         * modules/snprintf (Files): Add m4/printf.m4.
77191         * modules/vsnprintf (Files): Likewise.
77192         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
77193         * doc/posix-functions/vsnprintf.texi: Likewise.
77195 2008-04-19  Bruno Haible  <bruno@clisp.org>
77197         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
77198         from 0.0058 to less than 10^-7.
77200 2008-04-19  Bruno Haible  <bruno@clisp.org>
77202         Fix rounding when a precision is given.
77203         * lib/vasnprintf.c (is_borderline): New function.
77204         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
77205         9...9x.
77206         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
77207         %e, %g.
77208         * tests/test-vasprintf-posix.c (test_function): Likewise.
77209         * tests/test-snprintf-posix.h (test_function): Likewise.
77210         * tests/test-sprintf-posix.h (test_function): Likewise.
77211         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
77212         * tests/test-printf-posix.h (test_function): Likewise.
77213         * tests/test-printf-posix.output: Update.
77214         Reported by John Darrington <john@darrington.wattle.id.au> via
77215         Ben Pfaff <blp@cs.stanford.edu>.
77217 2008-04-18  Simon Josefsson  <simon@josefsson.org>
77219         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
77220         Suggested by Bruno Haible <bruno@clisp.org>.
77222 2008-04-17  Bruno Haible  <bruno@clisp.org>
77224         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
77225         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
77226         implementation.
77227         Patch by Bruce Merry <bmerry@gmail.com>.
77229 2008-04-17  Simon Josefsson  <simon@josefsson.org>
77231         * doc/posix-functions/strftime.texi (strftime): Mention that %e
77232         doesn't work under Windows.
77234 2008-04-16  Bruno Haible  <bruno@clisp.org>
77236         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
77237         New macros.
77238         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
77239         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
77240         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
77241         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
77242         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
77243         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
77244         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
77245         macros.
77246         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
77247         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
77248         Northern Sotho, Uighur.
77250 2008-04-16  Bruno Haible  <bruno@clisp.org>
77252         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
77253         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
77254         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
77255         Reported by Daniel Bergström <daniel@octocode.com>.
77257 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
77258             Bruno Haible  <bruno@clisp.org>
77260         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
77261         function.
77262         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
77263         New functions, mostly extracted from gl_locale_name_default.
77264         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
77266 2008-04-16  Eric Blake  <ebb9@byu.net>
77268         Adjust strtod detection to catch glibc 2.7 bug.
77269         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
77270         Reported by John Gatewood Ham.
77272 2008-04-16  Bruno Haible  <bruno@clisp.org>
77274         Add tentative support for Linux libc5.
77275         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
77276         * lib/fpurge.c (fpurge): Likewise.
77277         * lib/freadable.c (freadable): Likewise.
77278         * lib/freadahead.c (freadahead): Likewise.
77279         * lib/freading.c (freading): Likewise.
77280         * lib/freadptr.c (freadptr): Likewise.
77281         * lib/freadseek.c (freadptrinc): Likewise.
77282         * lib/fseeko.c (rpl_fseeko): Likewise.
77283         * lib/fseterr.c (fseterr): Likewise.
77284         * lib/fwritable.c (fwritable): Likewise.
77285         * lib/fwriting.c (fwriting): Likewise.
77286         Reported by Alain Guibert <alguibert+bts@free.fr>.
77288 2008-04-15  Bruno Haible  <bruno@clisp.org>
77290         * modules/mathl (configure.ac): Define module indicator.
77292 2008-04-15  Bruno Haible  <bruno@clisp.org>
77294         * lib/logl.c (logl): Remove unused variables.
77296 2008-04-15  Bruno Haible  <bruno@clisp.org>
77298         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
77299         fails.
77301 2008-04-15  Bruno Haible  <bruno@clisp.org>
77303         * lib/trim.c (trim2): Fix argument of isspace() macro.
77305 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
77307         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
77308         to 0.
77309         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
77311 2008-04-14  Bruno Haible  <bruno@clisp.org>
77313         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
77314         AC_LANG_PROGRAM argument.
77315         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
77316         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
77317         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
77318         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
77319         * m4/math_h.m4 (gl_MATH_H): Likewise.
77320         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
77321         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
77322         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
77323         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
77324         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
77325         * m4/regex.m4 (gl_REGEX): Likewise.
77326         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
77327         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
77328         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
77329         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
77330         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
77331         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
77332         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
77333         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
77335 2008-04-14  Jim Meyering  <meyering@redhat.com>
77337         test-strtod: fix typos: s/abs/fabs/
77338         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
77340 2008-04-13  Bruno Haible  <bruno@clisp.org>
77342         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
77343         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
77344         module is also used and while not building the reloc-wrapper.
77346 2008-04-13  Bruno Haible  <bruno@clisp.org>
77348         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
77350 2008-04-13  Bruno Haible  <bruno@clisp.org>
77352         Fix AIX compilation failure introduced on 2008-04-02.
77353         * tests/test-frexp.c (exp): Undefine before redefining.
77354         * tests/test-frexpl.c (exp): Likewise.
77356 2008-04-13  Bruno Haible  <bruno@clisp.org>
77358         Work around a HP-UX stdio bug.
77359         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
77360         * tests/test-ftello.c (main): Likewise.
77361         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
77362         * doc/posix-functions/ftello.texi: Likewise.
77364 2008-04-13  Bruno Haible  <bruno@clisp.org>
77366         Make test-signbit pass on HP-UX/hppa.
77367         * tests/test-signbit.c (minus_zerol): New variable.
77368         (test_signbitl): Use it.
77370 2008-04-13  Bruno Haible  <bruno@clisp.org>
77372         Make truncl work on OSF/1 4.0.
77373         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
77374         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
77375         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
77376         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
77377         HAVE_DECL_TRUNCL.
77378         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
77379         HAVE_DECL_TRUNCL.
77380         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
77382 2008-04-13  Bruno Haible  <bruno@clisp.org>
77384         * lib/unictype.h: Remove trailing comma from enumeration definitions.
77386 2008-04-13  Bruno Haible  <bruno@clisp.org>
77388         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
77389         expression, so as to avoid HP-UX 11 cc compiler bug.
77391 2008-04-13  Bruno Haible  <bruno@clisp.org>
77393         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
77395 2008-04-13  Bruno Haible  <bruno@clisp.org>
77397         * lib/git-merge-changelog.c: Remove empty declaration outside of
77398         functions.
77400 2008-04-13  Bruno Haible  <bruno@clisp.org>
77402         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
77404 2008-04-13  Bruno Haible  <bruno@clisp.org>
77406         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
77407         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
77408         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
77409         also if it exists but lacks definitions of the SHUT_* macros.
77410         * modules/sys_socket (Description): Update.
77411         Reported by Elbert Pol <e.pol@chello.nl>.
77413 2008-04-13  Bruno Haible  <bruno@clisp.org>
77415         * lib/localcharset.c (OS2): Don't redefine if already defined.
77416         Reported by Elbert Pol <e.pol@chello.nl>.
77418 2008-04-13  Bruno Haible  <bruno@clisp.org>
77420         * lib/binary-io.h [__EMX__]: Include <io.h>.
77421         Reported by Elbert Pol <e.pol@chello.nl>.
77423 2008-04-12  Bruno Haible  <bruno@clisp.org>
77425         * lib/fpucw.h: Enable the definitions also for x86_64.
77426         Needed for NetBSD/x86_64.
77427         Reported by Thomas Klausner <tk@giga.or.at>.
77429 2008-04-12  Bruno Haible  <bruno@clisp.org>
77431         * tests/test-strtod.c: Include isnand.h.
77432         (main): Use isnand instead of isnan.
77433         Reported by Jim Meyering.
77435 2008-04-12  Bruno Haible  <bruno@clisp.org>
77437         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
77438         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
77440 2008-04-12  Jim Meyering  <meyering@redhat.com>
77442         * m4/math_h.m4 (gl_MATH_H): Fix typos.
77444 2008-04-12  Bruno Haible  <bruno@clisp.org>
77446         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
77447         Reported by Elbert Pol <e.pol@chello.nl>.
77449 2008-04-12  Eric Blake  <ebb9@byu.net>
77451         Work around Solaris 10 math.h bug.
77452         * m4/math_h.m4 (gl_MATH_H): Check for bug.
77453         (gl_MATH_H_DEFAULTS): Set up default.
77454         * modules/math (Makefile.am): Replace new indicators.
77455         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
77456         * tests/test-math.c (main): Test this.
77457         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
77458         * doc/posix-headers/math.texi (math.h): Mention bug.
77459         Reported by Nelson H. F. Beebe and Jim Meyering.
77461 2008-04-11  Bruno Haible  <bruno@clisp.org>
77463         Adapt to future versions of Apple GCC.
77464         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
77465         Reported by Peter O'Gorman <peter@pogma.com>.
77467 2008-04-11  Bruno Haible  <bruno@clisp.org>
77469         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
77471 2008-04-11  Bruno Haible  <bruno@clisp.org>
77473         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
77475         * modules/getaddrinfo-tests (Makefile.am): Define
77476         test_getaddrinfo_LDADD.
77478 2008-04-11  Bruno Haible  <bruno@clisp.org>
77480         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
77481         (init): Fix syntax error.
77482         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
77483         is declared.
77485 2008-04-11  Bruno Haible  <bruno@clisp.org>
77487         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
77488         * modules/glob (Depends-on): Add stdbool.
77490 2008-04-11  Bruno Haible  <bruno@clisp.org>
77492         * lib/trim.c: Include <string.h>.
77494 2008-04-11  Eric Blake  <ebb9@byu.net>
77496         Avoid compile failure on OS/2.
77497         * lib/regex_internal.h (internal_function): Disable optimization
77498         on OS/2 (__EMX__), where it caused compiler error.
77499         Reported by Elbert Pol.
77501 2008-04-11  Bruno Haible  <bruno@clisp.org>
77503         Flush the standard error stream before aborting. Needed on mingw.
77504         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
77505         * tests/test-array_list.c (ASSERT): Likewise.
77506         * tests/test-array_oset.c (ASSERT): Likewise.
77507         * tests/test-avltree_list.c (ASSERT): Likewise.
77508         * tests/test-avltree_oset.c (ASSERT): Likewise.
77509         * tests/test-avltreehash_list.c (ASSERT): Likewise.
77510         * tests/test-binary-io.c (ASSERT): Likewise.
77511         * tests/test-byteswap.c (ASSERT): Likewise.
77512         * tests/test-c-ctype.c (ASSERT): Likewise.
77513         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
77514         * tests/test-c-strcasestr.c (ASSERT): Likewise.
77515         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
77516         * tests/test-c-strstr.c (ASSERT): Likewise.
77517         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
77518         * tests/test-canonicalize.c (ASSERT): Likewise.
77519         * tests/test-carray_list.c (ASSERT): Likewise.
77520         * tests/test-ceilf1.c (ASSERT): Likewise.
77521         * tests/test-ceilf2.c (ASSERT): Likewise.
77522         * tests/test-ceill.c (ASSERT): Likewise.
77523         * tests/test-count-one-bits.c (ASSERT): Likewise.
77524         * tests/test-fbufmode.c (ASSERT): Likewise.
77525         * tests/test-fflush2.c (ASSERT): Likewise.
77526         * tests/test-floorf1.c (ASSERT): Likewise.
77527         * tests/test-floorf2.c (ASSERT): Likewise.
77528         * tests/test-floorl.c (ASSERT): Likewise.
77529         * tests/test-fopen.c (ASSERT): Likewise.
77530         * tests/test-fpending.c (ASSERT): Likewise.
77531         * tests/test-fprintf-posix.c (ASSERT): Likewise.
77532         * tests/test-fpurge.c (ASSERT): Likewise.
77533         * tests/test-freadable.c (ASSERT): Likewise.
77534         * tests/test-freadahead.c (ASSERT): Likewise.
77535         * tests/test-freading.c (ASSERT): Likewise.
77536         * tests/test-freadptr.c (ASSERT): Likewise.
77537         * tests/test-freadptr2.c (ASSERT): Likewise.
77538         * tests/test-freadseek.c (ASSERT): Likewise.
77539         * tests/test-freopen.c (ASSERT): Likewise.
77540         * tests/test-frexp.c (ASSERT): Likewise.
77541         * tests/test-frexpl.c (ASSERT): Likewise.
77542         * tests/test-fseek.c (ASSERT): Likewise.
77543         * tests/test-fseeko.c (ASSERT): Likewise.
77544         * tests/test-fstrcmp.c (ASSERT): Likewise.
77545         * tests/test-ftell.c (ASSERT): Likewise.
77546         * tests/test-ftello.c (ASSERT): Likewise.
77547         * tests/test-func.c (ASSERT): Likewise.
77548         * tests/test-fwritable.c (ASSERT): Likewise.
77549         * tests/test-fwriting.c (ASSERT): Likewise.
77550         * tests/test-getdelim.c (ASSERT): Likewise.
77551         * tests/test-getline.c (ASSERT): Likewise.
77552         * tests/test-i-ring.c (ASSERT): Likewise.
77553         * tests/test-iconv-utf.c (ASSERT): Likewise.
77554         * tests/test-iconv.c (ASSERT): Likewise.
77555         * tests/test-isfinite.c (ASSERT): Likewise.
77556         * tests/test-isnand.c (ASSERT): Likewise.
77557         * tests/test-isnanf.c (ASSERT): Likewise.
77558         * tests/test-isnanl.h (ASSERT): Likewise.
77559         * tests/test-ldexpl.c (ASSERT): Likewise.
77560         * tests/test-linked_list.c (ASSERT): Likewise.
77561         * tests/test-linkedhash_list.c (ASSERT): Likewise.
77562         * tests/test-localename.c (ASSERT): Likewise.
77563         * tests/test-lseek.c (ASSERT): Likewise.
77564         * tests/test-mbscasecmp.c (ASSERT): Likewise.
77565         * tests/test-mbscasestr1.c (ASSERT): Likewise.
77566         * tests/test-mbscasestr2.c (ASSERT): Likewise.
77567         * tests/test-mbscasestr3.c (ASSERT): Likewise.
77568         * tests/test-mbscasestr4.c (ASSERT): Likewise.
77569         * tests/test-mbschr.c (ASSERT): Likewise.
77570         * tests/test-mbscspn.c (ASSERT): Likewise.
77571         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
77572         * tests/test-mbspbrk.c (ASSERT): Likewise.
77573         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
77574         * tests/test-mbsrchr.c (ASSERT): Likewise.
77575         * tests/test-mbsspn.c (ASSERT): Likewise.
77576         * tests/test-mbsstr1.c (ASSERT): Likewise.
77577         * tests/test-mbsstr2.c (ASSERT): Likewise.
77578         * tests/test-mbsstr3.c (ASSERT): Likewise.
77579         * tests/test-memchr2.c (ASSERT): Likewise.
77580         * tests/test-memmem.c (ASSERT): Likewise.
77581         * tests/test-open.c (ASSERT): Likewise.
77582         * tests/test-printf-frexp.c (ASSERT): Likewise.
77583         * tests/test-printf-frexpl.c (ASSERT): Likewise.
77584         * tests/test-printf-posix.c (ASSERT): Likewise.
77585         * tests/test-quotearg.c (ASSERT): Likewise.
77586         * tests/test-rbtree_list.c (ASSERT): Likewise.
77587         * tests/test-rbtree_oset.c (ASSERT): Likewise.
77588         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
77589         * tests/test-round1.c (ASSERT): Likewise.
77590         * tests/test-roundf1.c (ASSERT): Likewise.
77591         * tests/test-roundl.c (ASSERT): Likewise.
77592         * tests/test-signbit.c (ASSERT): Likewise.
77593         * tests/test-sleep.c (ASSERT): Likewise.
77594         * tests/test-snprintf-posix.c (ASSERT): Likewise.
77595         * tests/test-snprintf.c (ASSERT): Likewise.
77596         * tests/test-sprintf-posix.c (ASSERT): Likewise.
77597         * tests/test-stat-time.c (ASSERT): Likewise.
77598         * tests/test-strcasestr.c (ASSERT): Likewise.
77599         * tests/test-strerror.c (ASSERT): Likewise.
77600         * tests/test-striconv.c (ASSERT): Likewise.
77601         * tests/test-striconveh.c (ASSERT): Likewise.
77602         * tests/test-striconveha.c (ASSERT): Likewise.
77603         * tests/test-strsignal.c (ASSERT): Likewise.
77604         * tests/test-strstr.c (ASSERT): Likewise.
77605         * tests/test-strtod.c (ASSERT): Likewise.
77606         * tests/test-trunc1.c (ASSERT): Likewise.
77607         * tests/test-trunc2.c (ASSERT): Likewise.
77608         * tests/test-truncf1.c (ASSERT): Likewise.
77609         * tests/test-truncf2.c (ASSERT): Likewise.
77610         * tests/test-truncl.c (ASSERT): Likewise.
77611         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
77612         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
77613         * tests/test-vasnprintf.c (ASSERT): Likewise.
77614         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
77615         * tests/test-vasprintf.c (ASSERT): Likewise.
77616         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
77617         * tests/test-vprintf-posix.c (ASSERT): Likewise.
77618         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
77619         * tests/test-vsnprintf.c (ASSERT): Likewise.
77620         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
77621         * tests/test-wcwidth.c (ASSERT): Likewise.
77622         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
77623         * tests/test-xprintf-posix.c (ASSERT): Likewise.
77624         * tests/test-xvasprintf.c (ASSERT): Likewise.
77625         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
77626         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
77627         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
77628         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
77629         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
77630         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
77631         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
77632         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
77633         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
77634         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
77635         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
77636         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
77637         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
77638         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
77639         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
77640         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
77641         * tests/unictype/test-block_list.c (ASSERT): Likewise.
77642         * tests/unictype/test-block_of.c (ASSERT): Likewise.
77643         * tests/unictype/test-block_test.c (ASSERT): Likewise.
77644         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
77645         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
77646         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
77647         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
77648         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
77649         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
77650         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
77651         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
77652         * tests/unictype/test-combining.c (ASSERT): Likewise.
77653         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
77654         * tests/unictype/test-digit.c (ASSERT): Likewise.
77655         * tests/unictype/test-mirror.c (ASSERT): Likewise.
77656         * tests/unictype/test-numeric.c (ASSERT): Likewise.
77657         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
77658         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
77659         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
77660         * tests/unictype/test-scripts.c (ASSERT): Likewise.
77661         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
77662         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
77663         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
77664         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
77665         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
77666         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
77667         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
77668         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
77669         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
77670         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
77671         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
77672         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
77673         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
77674         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
77675         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
77676         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
77677         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
77678         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
77679         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
77680         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
77681         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
77682         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
77683         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
77684         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
77685         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
77686         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
77687         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
77688         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
77689         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
77690         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
77691         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
77692         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
77693         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
77694         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
77695         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
77696         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
77697         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
77698         Reported by Eric Blake.
77700 2008-04-11  Bruno Haible  <bruno@clisp.org>
77702         * lib/wchar.in.h: Tweak comment.
77704 2008-04-11  Bruno Haible  <bruno@clisp.org>
77706         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
77707         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
77708         gl_COMMON.
77709         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
77711 2008-04-11  Bruno Haible  <bruno@clisp.org>
77713         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
77715 2008-04-11  Simon Josefsson  <simon@josefsson.org>
77717         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
77718         of attempting to use non-existing /dev/*random.  Based on patch
77719         from Adam Strzelecki <ono@java.pl> in
77720         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
77722 2008-04-08  Bruno Haible  <bruno@clisp.org>
77724         Add tentative support for emx+gcc.
77725         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
77726         * lib/fpurge.c (fpurge): Likewise.
77727         * lib/freadable.c (freadable): Likewise.
77728         * lib/freadahead.c (freadahead): Likewise.
77729         * lib/freading.c (freading): Likewise.
77730         * lib/freadptr.c (freadptr): Likewise.
77731         * lib/freadseek.c (freadptrinc): Likewise.
77732         * lib/fseeko.c (rpl_fseeko): Likewise.
77733         * lib/fseterr.c (fseterr): Likewise.
77734         * lib/fwritable.c (fwritable): Likewise.
77735         * lib/fwriting.c (fwriting): Likewise.
77736         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
77738 2008-04-09  Eric Blake  <ebb9@byu.net>
77740         Avoid some autoconf warnings.
77741         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
77742         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
77743         * m4/afs.m4 (gl_AFS): Likewise.
77744         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
77745         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
77746         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
77747         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
77748         (gl_INTEGER_TYPE_SUFFIX): Likewise.
77749         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
77750         (AC_CHECK_DECLS_ONCE): Likewise.
77751         Rename file...
77752         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
77753         gnulib-tool requires autoconf 2.59 or better.
77754         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
77756 2008-04-08  Eric Blake  <ebb9@byu.net>
77758         Use 'git describe --match' if present (added in git 1.5.5).
77759         * build-aux/git-version-gen: Limit result to tags that match 'v*'
77760         if possible.
77762 2008-04-08  Bruno Haible  <bruno@clisp.org>
77764         Add tentative support for OpenServer.
77765         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
77766         _ptr, _cnt.
77767         * lib/fpurge.c (fpurge): Likewise.
77768         * lib/freadable.c (freadable): Likewise.
77769         * lib/freadahead.c (freadahead): Likewise.
77770         * lib/freading.c (freading): Likewise.
77771         * lib/freadptr.c (freadptr): Likewise.
77772         * lib/freadseek.c (freadptrinc): Likewise.
77773         * lib/fseeko.c (rpl_fseeko): Likewise.
77774         * lib/fseterr.c (fseterr): Likewise.
77775         * lib/fwritable.c (fwritable): Likewise.
77776         * lib/fwriting.c (fwriting): Likewise.
77777         Reported by Roger Cornelius <rac@tenzing.org> and
77778         Brian K. White <brian@aljex.com>.
77780 2008-04-06  Jim Meyering  <meyering@redhat.com>
77782         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
77784 2008-04-06  Bruno Haible  <bruno@clisp.org>
77786         Avoid possible error with non-ASCII bytes in UTF-8 locales.
77787         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
77788         * tests/test-printf-posix.sh: Likewise.
77789         * tests/test-vfprintf-posix.sh: Likewise.
77790         * tests/test-vprintf-posix.sh: Likewise.
77791         * tests/test-xprintf-posix.sh: Likewise.
77793 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77795         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
77796         hide error from 'ls', needed on OS/2.
77797         Report by Elbert Pol <elbert.pol@gmail.com>.
77799 2008-04-04  Eric Blake  <ebb9@byu.net>
77801         Make test-fseeko.c failures meaningful.
77802         * tests/test-fseeko.c: Print line number on failure.
77803         * tests/test-fseek.c: Likewise.
77804         Reported by Nelson H. F. Beebe.
77806         Improve strtod bug detection check.
77807         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
77808         required for Solaris 10.
77809         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
77811 2008-04-04  Bruno Haible  <bruno@clisp.org>
77813         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
77814         by m4/setenv.m4.
77816 2008-04-03  Eric Blake  <ebb9@byu.net>
77818         Ensure sane .version contents.
77819         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
77820         version string.
77821         * build-aux/git-version-gen: Improve documentation.
77823         Make GNU make output nicer.
77824         * top/GNUmakefile [!_have-Makefile]: Add dependency on
77825         MAKECMDGOALS to enforce message for all command line targets.  Set
77826         srcdir for use in maint.mk.
77828         Another maintainer tweak.
77829         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
77830         a target that regenerates version.
77832 2008-04-03  Jim Meyering  <meyering@redhat.com>
77834         vc-list-files: don't cause coreutils "make po-check" failure
77835         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
77837 2008-04-03  Eric Blake  <ebb9@byu.net>
77839         Allow VPATH usage of vc-list-files.
77840         * build-aux/vc-list-files (scriptversion): Add timestamp.
77841         (options): Add --help, --version, -C.
77842         (CVS): Support installed cvsu.
77844 2008-04-02  Bruno Haible  <bruno@clisp.org>
77846         Avoid some "statement with no effect" warnings from gcc.
77847         * tests/test-wctype.c (main): Explicitly ignore unused values.
77848         Reported by Jim Meyering.
77850 2008-04-02  Jim Meyering  <meyering@redhat.com>
77852         Avoid some warnings from "gcc -Wshadow".
77853         * tests/test-frexp.c (exp): Define to a different identifier.
77854         * tests/test-frexpl.c (exp): Likewise.
77856 2008-04-03  Jim Meyering  <meyering@redhat.com>
77858         bootstrap: remove dangling *.[ch] symlinks from lib
77859         * build-aux/bootstrap [dangling symlink removal]: Move find's
77860         -depth option to precede all others, to avoid a warning.
77861         Remove *.[ch] files too, and from "$source_base" (usually lib/).
77863 2008-04-02  Bruno Haible  <bruno@clisp.org>
77865         Avoid some warnings from "gcc -Wshadow".
77866         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
77867         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
77868         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
77869         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
77870         Reported by Jim Meyering.
77872 2008-04-01  Bruno Haible  <bruno@clisp.org>
77874         Fix test to work on IRIX 6.5 with cc.
77875         * tests/test-math.c (numeric_equal): New function.
77876         (main): Use it.
77878 2008-04-01  Bruno Haible  <bruno@clisp.org>
77880         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
77882 2008-04-01  Bruno Haible  <bruno@clisp.org>
77884         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
77885         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
77886         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
77887         (Depends-on): Remove math.
77889         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
77890         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
77891         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
77892         (Depends-on): Remove math.
77894         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
77895         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
77896         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
77897         (Depends-on): Remove math.
77898         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
77899         (Depends-on): Remove math.
77901         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
77902         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
77903         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
77904         (Depends-on): Remove math.
77905         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
77906         (Depends-on): Remove math.
77908         * tests/test-round1.c: Include nan.h.
77909         (main): Use NaNd instead of NAN.
77910         * modules/round-tests (Files): Add tests/nan.h.
77912         * tests/test-trunc1.c: Include nan.h.
77913         (main): Use NaNd instead of NAN.
77914         * modules/trunc-tests (Files): Add tests/nan.h.
77916         * tests/test-roundf1.c: Include nan.h.
77917         (main): Use NaNf instead of NAN.
77918         * modules/roundf-tests (Files): Add tests/nan.h.
77920         * tests/test-truncf1.c: Include nan.h.
77921         (main): Use NaNf instead of NAN.
77922         * modules/truncf-tests (Files): Add tests/nan.h.
77924         * tests/test-ceilf1.c: Include nan.h.
77925         (main): Use NaNf instead of NAN.
77926         * modules/ceilf-tests (Files): Add tests/nan.h.
77928         * tests/test-floorf1.c: Include nan.h.
77929         (main): Use NaNf instead of NAN.
77930         * modules/floorf-tests (Files): Add tests/nan.h.
77932         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
77933         (main): Use NaNf instead of NAN.
77934         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
77936         * tests/test-isnand.c: Include nan.h instead of <math.h>.
77937         (main): Use NaNd instead of NAN.
77938         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
77940         * tests/test-frexp.c: Include nan.h.
77941         (main): Use NaNd instead of NAN.
77942         * modules/frexp-tests (Files): Add tests/nan.h.
77944         * lib/isnan.c: Don't include <math.h>.
77945         (FUNC): Don't use NAN macro.
77946         * modules/isnand-nolibm (Depends-on): Remove math.
77947         * modules/isnanf-nolibm (Depends-on): Remove math.
77948         * modules/isnanl (Depends-on): Remove math.
77949         * modules/isnanl-nolibm (Depends-on): Remove math.
77951         * tests/nan.h: New file.
77953 2008-04-01  Eric Blake  <ebb9@byu.net>
77955         Fix typos.
77956         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
77957         values to be the right type.
77959         For now, cater to gnulib strtod inaccuracies.
77960         * tests/test-strtod.c (main): Allow 1-ulp error on expected
77961         fractional results.  While not as nice from a QoI perspective, it
77962         is a quicker patch than correctly implementing decimal to binary
77963         rounding.
77965 2008-03-31  Eric Blake  <ebb9@byu.net>
77967         Guarantee a definition of NAN.
77968         * lib/math.in.h (NAN): Define if missing.
77969         * tests/test-math.c (main): Test it.
77970         * doc/posix-headers/math.texi (math.h): Document this.
77971         * lib/isnan.c (rpl_isnand): Use it.
77972         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
77973         * tests/test-floorf1.c (NaN): Likewise.
77974         * tests/test-frexp.c (NaN): Likewise.
77975         * tests/test-isnand.c (NaN): Likewise.
77976         * tests/test-isnanf.c (NaN): Likewise.
77977         * tests/test-round1.c (NaN): Likewise.
77978         * tests/test-roundf1.c (NaN): Likewise.
77979         * tests/test-snprintf-posix.h (NaN): Likewise.
77980         * tests/test-sprintf-posix.h (NaN): Likewise.
77981         * tests/test-trunc1.c (NaN): Likewise.
77982         * tests/test-truncf1.c (NaN): Likewise.
77983         * tests/test-vasnprintf-posix.c (NaN): Likewise.
77984         * tests/test-vasprintf-posix.c (NaN): Likewise.
77985         * modules/isnand-nolibm (Depends-on): Add math.
77986         * modules/isnanf-nolibm (Depends-on): Likewise.
77987         * modules/isnanl (Depends-on): Likewise.
77988         * modules/isnanl-nolibm (Depends-on): Likewise.
77989         * modules/snprintf-posix-tests (Depends-on): Likewise.
77990         * modules/sprintf-posix-tests (Depends-on): Likewise.
77991         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
77992         * modules/vsprintf-posix-tests (Depends-on): Likewise.
77993         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
77994         * modules/vasprintf-posix-tests (Depends-on): Likewise.
77996 2008-03-31  Bruno Haible  <bruno@clisp.org>
77998         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
77999         * doc/posix-functions/strtod.texi: Likewise.
78001 2008-03-31  Bruno Haible  <bruno@clisp.org>
78003         * tests/test-strtod.c (main): Don't use C99 syntax.
78005 2008-03-31  Bruno Haible  <bruno@clisp.org>
78007         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
78008         Reported by Eric Blake.
78010 2008-03-31  Jim Meyering  <meyering@redhat.com>
78012         Don't compare actual signbit return values.
78013         * tests/test-strtod.c (main): Rather, compare only their
78014         zero/non-zero nature.
78016 2008-03-31  Eric Blake  <ebb9@byu.net>
78018         More strtod documentation.
78019         * doc/posix-functions/strtod.texi (strtod): Interpret more test
78020         failures as distinct bugs.
78022 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
78024         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
78025         Problem reported by Erik Benada in
78026         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
78028 2008-03-30  Bruno Haible  <bruno@clisp.org>
78030         * tests/test-strtod.c: Add comments about which assertion fails on which
78031         platform.
78032         * doc/posix-functions/strtod.texi: Add info about many more platforms.
78034 2008-03-30  Eric Blake  <ebb9@byu.net>
78036         Test signbit behavior on zeros.
78037         * tests/test-signbit.c (test_signbitf): Add tests for zero.
78038         (test_signbitd, test_signbitl): Likewise.
78040         More strtod touchups.
78041         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
78042         sign of negative underflow, for now.  Use .5, not .1.
78043         * doc/posix-functions/strtod.texi (strtod): Mention these
78044         limitations.
78045         Reported by Jim Meyering.
78047 2008-03-30  Bruno Haible  <bruno@clisp.org>
78049         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
78050         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
78052 2008-03-30  Bruno Haible  <bruno@clisp.org>
78054         Avoid failure when attempting to return empty iconv results on some
78055         platforms.
78056         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
78057         allocation, don't report ENOMEM when the resulting string is empty.
78059 2008-03-30  Bruno Haible  <bruno@clisp.org>
78061         Fix buffer overrun.
78062         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
78063         Don't consider the width for tmp_length. Check count against tmp_length
78064         before doing the padding. Ensure enough allocation during padding.
78066 2008-03-30  Eric Blake  <ebb9@byu.net>
78068         strtod touchups.
78069         * lib/strtod.c (strtod): Avoid compiler warnings.
78070         Reported by Jim Meyering.
78072 2008-03-30  Bruno Haible  <bruno@clisp.org>
78074         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
78075         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
78076         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
78077         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
78078         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
78079         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
78080         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
78081         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
78083         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
78084         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
78085         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
78086         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
78087         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
78088         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
78089         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
78090         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
78092         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
78093         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
78094         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
78095         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
78096         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
78097         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
78098         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
78099         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
78101         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
78102         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
78104         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
78105         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
78107         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
78108         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
78110         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
78111         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
78112         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
78114         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
78115         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
78116         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
78118         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
78119         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
78120         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
78122         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
78123         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
78124         * modules/vasprintf (Depends-on): Add EOVERFLOW.
78126         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
78127         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
78128         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
78129         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
78130         (Depends-on): Add EOVERFLOW.
78131         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
78132         (Depends-on): Add EOVERFLOW.
78133         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
78134         (Depends-on): Add EOVERFLOW.
78135         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
78136         (Depends-on): Add EOVERFLOW.
78137         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
78138         (Depends-on): Add EOVERFLOW.
78139         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
78140         (Depends-on): Add EOVERFLOW.
78141         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
78142         (Depends-on): Add EOVERFLOW.
78143         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
78144         (Depends-on): Add EOVERFLOW.
78146         * lib/sprintf.c (EOVERFLOW): Remove fallback.
78147         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
78148         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
78150         * lib/snprintf.c (EOVERFLOW): Remove fallback.
78151         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
78152         * modules/snprintf (Depends-on): Add EOVERFLOW.
78154         * lib/poll.c (EOVERFLOW): Remove fallback.
78155         * modules/poll (Depends-on): Add EOVERFLOW.
78157         * lib/getugroups.c (EOVERFLOW): Remove fallback.
78158         * modules/getugroups (Depends-on): Add EOVERFLOW.
78160         * lib/getdelim.c (EOVERFLOW): Remove fallback.
78161         * modules/getdelim (Depends-on): Add EOVERFLOW.
78163         * lib/ftell.c (EOVERFLOW): Remove fallback.
78164         * modules/ftell (Depends-on): Add EOVERFLOW.
78166         * lib/fprintf.c (EOVERFLOW): Remove fallback.
78167         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
78168         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
78170         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
78172         * modules/EOVERFLOW-tests: New file.
78173         * tests/test-EOVERFLOW.c: New file.
78175         * modules/EOVERFLOW: New file.
78176         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
78178 2008-03-30  Bruno Haible  <bruno@clisp.org>
78180         Fix bug introduced on 2007-06-10.
78181         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
78182         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
78184 2008-03-30  Bruno Haible  <bruno@clisp.org>
78186         Improve freadseek's efficiency after ungetc.
78187         * lib/freadseek.c: Include freadahead.h.
78188         (freadptrinc): New function, extracted from freadseek.
78189         (freadseek): Use it in a loop. Use freadahead to determine the number
78190         of loop iterations.
78191         * modules/freadseek (Depends-on): Add freadahead.
78192         (configure.ac): Require AC_C_INLINE.
78194 2008-03-30  Bruno Haible  <bruno@clisp.org>
78196         * lib/freadseek.c (freadseek): Don't ignore the return value of
78197         freadptr.
78199 2008-03-29  Eric Blake  <ebb9@byu.net>
78201         Add hex float support.
78202         * modules/strtod (Depends-on): Add c-ctype.
78203         (Link): Mention POW_LIB.
78204         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
78205         whitespace between 'e' and exponent.
78206         * tests/test-strtod.c (main): Enable hex float tests.
78207         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
78208         now provides.
78210         Document various strtod bugs, with some fixes.
78211         * doc/posix-functions/strtod.texi (strtod): Document bugs with
78212         "-0x", "inf", "nan", and hex constants.
78213         * doc/posix-functions/atof.texi (atof): Likewise.
78214         * modules/stdlib (Makefile.am): Support strtod.
78215         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
78216         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
78217         detect additional strtod bugs.
78218         * lib/stdlib.in.h (rpl_strtod): Add declarations.
78219         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
78220         bool where appropriate.  Parse 'inf' and 'nan'.
78221         * tests/test-strtod.c: New file.
78222         * modules/strtod (Depends-on): Add stdbool, stdlib.
78223         (configure.ac): Turn on module indicator.
78224         * modules/strtod-tests: New module.
78226 2008-03-29  Eric Blake  <ebb9@byu.net>
78228         Fix ftell on mingw.
78229         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
78230         * modules/ftell-tests (Depends-on): Add binary-io.
78231         * modules/ftello-tests (Depends-on): Likewise.
78232         * tests/test-ftell.c (main): Enhance test to cover behavior after
78233         ungetc.  Enforce binary mode.
78234         * tests/test-ftello.c (main): Likewise.
78236         Pass test-freadseek on cygwin.
78237         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
78238         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
78239         ungetc buffer.
78241         * tests/test-fflush2.c (main): Fix typo.
78243 2008-03-29  Bruno Haible  <bruno@clisp.org>
78245         * tests/test-fflush2.c (main): Temporarily disable the contents of
78246         this test.
78247         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
78248         Reported by Eric Blake.
78250 2008-03-28  Simon Josefsson  <simon@josefsson.org>
78252         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
78253         (GC_SHA224_DIGEST_SIZE): Add.
78255         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
78256         (gc_hash_digest_length): Likewise.
78257         (gc_hash_buffer): Likewise.
78259 2008-03-25  Bruno Haible  <bruno@clisp.org>
78261         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
78262         detail which gettext release to use.
78263         Reported by Simon Josefsson.
78265 2008-03-26  Jim Meyering  <meyering@redhat.com>
78267         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
78268         * modules/gnumakefile (clean-GNUmakefile): Also, use
78269         test ... && ... || : syntax rather than if-then ... fi.
78271         gnumakefile: Don't double-quote-expand $(VPATH) value.
78272         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
78274 2008-03-24  Eric Blake  <ebb9@byu.net>
78276         Alter GNUmakefile to install into top directory.
78277         * modules/maintainer-makefile: Split, and add dependency...
78278         * modules/gnumakefile: to this new module.
78279         * build-aux/GNUmakefile: Move...
78280         * top/GNUmakefile: ...here.
78281         * build-aux/maint.mk: Move...
78282         * top/maint.mk: ...here.
78283         * MODULES.html.sh (Support for maintaining...): Document new
78284         module.
78286 2008-03-23  Bruno Haible  <bruno@clisp.org>
78288         * gnulib-tool: New options --vc-files, --no-vc-files.
78289         (func_usage): Document them.
78290         (vc_files): New variable.
78291         (func_import): Consider vc_files.
78292         (func_create_testdir): Set vc_files to empty.
78293         Suggested by Jim Meyering and Karl Berry.
78295 2008-03-23  Bruno Haible  <bruno@clisp.org>
78297         Fix regex compilation error on HP-UX 11.
78298         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
78299         * modules/regex (Files): Add m4/mbstate_t.m4.
78300         Reported by Ton Voon <ton.voon@altinity.com>.
78302 2008-03-23  Bruno Haible  <bruno@clisp.org>
78304         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
78306 2008-03-23  Eric Blake  <ebb9@byu.net>
78307             Bruno Haible  <bruno@clisp.org>
78309         Install files from top/ in the destination directory.
78310         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
78311         augmentation also for the files from top/.
78312         (func_import, func_create_testdir): Rewrite file names:
78313         top/filename -> filename.
78315 2008-03-23  Bruno Haible  <bruno@clisp.org>
78317         Tweak "gnulib --version" output.
78318         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
78320 2008-03-23  Bruno Haible  <bruno@clisp.org>
78322         Tweak "gnulib --version" output.
78323         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
78324         rather than contents of ChangeLog, when possible.
78326 2008-03-21  Eric Blake  <ebb9@byu.net>
78328         More --version tweaks.
78329         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
78330         date of last ChangeLog entry.
78332 2008-03-21  Jim Meyering  <meyering@redhat.com>
78334         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
78336 2008-03-20  Eric Blake  <ebb9@byu.net>
78338         VPATH fix.
78339         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
78341 2008-03-20  Simon Josefsson  <simon@josefsson.org>
78343         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
78344         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
78346 2008-03-20  Eric Blake  <ebb9@byu.net>
78348         Sync GNUmakefile with coreutils.
78349         * build-aux/GNUmakefile (have-Makefile): Rename...
78350         (_have-Makefile): ...to this, for namespace consideration.
78351         (GNUmakefile.cfg): Include, if present.
78352         (_autoreconf): Define a default.
78353         (_is-dist-target): New rule for rebuilds to pick up intra-release
78354         version.
78355         (maint-cfg.mk): Rename...
78356         (cfg.mk): ...to this.
78358 2008-03-18  Jim Meyering  <meyering@redhat.com>
78360         New script and module: mktempd
78361         * MODULES.html.sh (maint+release support): Add mktempd.
78362         * build-aux/mktempd: New file.
78363         * modules/mktempd: New file.
78365 2008-03-15  Jim Meyering  <meyering@redhat.com>
78367         Undo last change.
78368         * lib/sha1.c, lib/md5.c: 63 != ~63.
78369         Reported by Andreas Schwab.
78371         sha1.c, md5.c: Hoist a redundant expression.
78372         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
78373         "ctx->buflen" only once, before calling *_process_block.
78374         * lib/md5.c (md5_process_bytes): Likewise.
78376 2008-03-14  Eric Blake  <ebb9@byu.net>
78378         Bump copyright year in files generated by gnulib-tool.
78379         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
78380         gnulib-tool, rather than hard-coding it.
78382         Fix 'gnulib-tool --version' output to work with git.
78383         * gnulib-tool (func_gnulib_dir): New function, extracted from...
78384         (startup): ...here.
78385         (func_version): Use it to invoke git-version-gen, rather than
78386         relying on CVS keyword expansion.  Modernize wording.
78387         (cvsdatestamp, last_checkin_date, version): Kill unused
78388         variables.
78390 2008-03-12  Jim Meyering  <meyering@redhat.com>
78392         Recognize optional cast of the argument to free.
78393         * build-aux/useless-if-before-free: Update regexps.
78395         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
78397 2008-03-11  Bruno Haible  <bruno@clisp.org>
78399         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
78400         by a single package.
78401         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
78402         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
78403         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
78404         Reported by Sam Steingold <sds@gnu.org>.
78406 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
78408         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
78409         repositories.
78411 2008-03-11  Bruno Haible  <bruno@clisp.org>
78413         Avoid conflicts between local macro definitions.
78414         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
78415         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
78417 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
78418             Bruno Haible  <bruno@clisp.org>
78420         Make va_copy work with some version of xlc on AIX 5.1.
78421         * lib/stdarg.in.h: New file.
78422         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
78423         On AIX, use a <stdarg.h> file substitute.
78424         * modules/stdarg (Files): Add lib/stdarg.in.h.
78425         (Depends-on): Add include_next.
78426         (Makefile.am): Build a stdarg.h substitute if requested.
78427         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
78429 2008-03-10  Bruno Haible  <bruno@clisp.org>
78431         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
78432         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
78433         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
78435 2008-03-10  Bruno Haible  <bruno@clisp.org>
78437         * modules/stdlib (Depends-on): Add include_next, remove
78438         absolute-header.
78440 2008-03-09  Bruno Haible  <bruno@clisp.org>
78442         * lib/freadahead.h (freadahead): Document more precisely.
78443         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
78444         the sum of both buffer sizes.
78445         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
78446         * NEWS: Document the change.
78448 2008-03-09  Bruno Haible  <bruno@clisp.org>
78450         Extend freadptr to return also the buffer size.
78451         * lib/freadptr.h (freadptr): Add sizep argument.
78452         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
78453         (freadptr): Add sizep argument. Determine buffer size like freadahead
78454         does.
78455         * tests/test-freadptr.c: Don't include freadahead.h.
78456         (main): Adapt for new calling convention of freadptr.
78457         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
78458         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
78459         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
78460         tests/test-freadptr2.sh.
78461         (Depends): Remove freadahead.
78462         (TESTS): Add test-freadptr2.sh.
78463         (check_PROGRAMS): Add test-freadptr2.
78465 2008-03-09  Bruno Haible  <bruno@clisp.org>
78467         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
78468         Report and solution by Simon Josefsson.
78470 2008-03-06  Bruno Haible  <bruno@clisp.org>
78472         Make fflush after ungetc work on BSD platforms.
78473         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
78474         * tests/test-fflush2.c: New file.
78475         * tests/test-fflush2.sh: New file.
78476         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
78477         tests/test-fflush2.c.
78478         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
78479         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
78481 2008-03-06  Eric Blake  <ebb9@byu.net>
78483         Likewise for ftello.
78484         * modules/ftello (Dependencies): Add extensions.
78485         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
78487 2008-03-06  Bruno Haible  <bruno@clisp.org>
78489         * modules/fseeko (Dependencies): Add extensions.
78490         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
78491         Needed on glibc systems.
78493 2008-03-06  Bruno Haible  <bruno@clisp.org>
78495         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
78496         email address.
78497         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
78499 2008-03-06  Bruno Haible  <bruno@clisp.org>
78501         * users.txt: Add libgnupdf.
78503 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
78505         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
78506         (Header File Substitutes, Function Substitutes,
78507         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
78508         (Build robot for gnulib): Fix typo.
78510 2008-03-06  Bruno Haible  <bruno@clisp.org>
78512         * doc/gnulib-tool.texi (VCS Issues): Small updates.
78513         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
78515 2008-03-06  Bruno Haible  <bruno@clisp.org>
78517         * doc/func.texi: New file, extracted from doc/gnulib.texi.
78518         * doc/gnulib.texi: Include it.
78520 2008-03-06  Simon Josefsson  <simon@josefsson.org>
78522         * modules/func (License): Change license to unlimited; there was
78523         no LGPL parts in the module anyway.
78525 2008-03-06  Simon Josefsson  <simon@josefsson.org>
78527         * modules/__func__: Renamed to modules/func.
78528         * modules/__func__-tests: Renamed to modules/func-tests.
78529         * tests/test-__func__.c: Renamed to tests/test-func.c.
78530         * m4/__func__.m4: Renamed to m4/func.m4.
78531         * doc/gnulib.texi (__func__): Section renamed to func.
78532         Suggested by Eric Blake <ebb9@byu.net>.
78534 2008-03-06  Simon Josefsson  <simon@josefsson.org>
78536         * doc/gnulib.texi (__func__): Use C99 terminology when talking
78537         about __func__.  Make example self-contained.  Suggested by Eric
78538         Blake <ebb9@byu.net>.
78540         * tests/test-__func__.c (main): Avoid extraneous () around __func.
78541         Suggested by Eric Blake <ebb9@byu.net>.
78543 2008-03-06  Simon Josefsson  <simon@josefsson.org>
78545         * modules/__func__: New file.
78546         * modules/__func__-tests: New file.
78547         * tests/test-__func__.c: New file.
78548         * m4/__func__.m4: New file.
78549         * doc/gnulib.texi (__func__): Document __func__ module.
78551 2008-03-05  Simon Josefsson  <simon@josefsson.org>
78553         * modules/byteswap (License): Re-license as LGPLv2+.
78555 2008-03-05  Simon Josefsson  <simon@josefsson.org>
78557         * doc/Makefile: Add pdf target.
78559 2008-03-05  Simon Josefsson  <simon@josefsson.org>
78561         * modules/inline (License): Use 'unlimited', since there are only
78562         *.m4 files in this module.
78564 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
78565             Bruno Haible  <bruno@clisp.org>
78567         Add support for HP C 7.1 on OpenVMS 8.3.
78568         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
78570 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
78572         Update VMS specifics.
78573         * lib/getopt.c [VMS]: Remove include of unixlib.h.
78575 2008-03-02  Jim Meyering  <meyering@redhat.com>
78577         Remove the last dependency on the "free" module.
78578         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
78579         Reported by Bob Proulx.
78581         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
78583         Remove useless "if" tests before free.  Deprecate "free" module.
78584         * doc/posix-functions/free.texi: Mention that this
78585         module is no longer useful.
78586         * modules/free (Notice): Say this module is obsolete.
78587         * modules/readutmp (Depends-on): Remove free.
78588         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
78589         * lib/putenv.c (putenv): Likewise.
78590         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
78591         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
78592         * tests/test-c-strcasestr.c (main): Likewise.
78593         * tests/test-c-strstr.c (main): Likewise.
78594         * tests/test-mbscasestr1.c (main): Likewise.
78595         * tests/test-mbscasestr2.c (main): Likewise.
78596         * tests/test-mbsstr1.c (main): Likewise.
78597         * tests/test-mbsstr2.c (main): Likewise.
78598         * tests/test-memmem.c (main): Likewise.
78599         * tests/test-strcasestr.c (main): Likewise.
78600         * tests/test-striconv.c (main): Likewise.
78601         * tests/test-striconveh.c (main): Likewise.
78602         * tests/test-striconveha.c (main): Likewise.
78603         * tests/test-strstr.c (main): Likewise.
78605         * build-aux/git-version-gen: Adjust a comment and the Usage string.
78607         bootstrap: sync from coreutils again
78608         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
78610 2008-03-01  Jim Meyering  <meyering@redhat.com>
78612         bootstrap: sync from coreutils
78613         * build-aux/bootstrap (update_po_files): Copy a .po file into place
78614         also when the target doesn't exist.
78616 2008-03-01  Eric Blake  <ebb9@byu.net>
78618         Fix bugs in last patch.
78619         * lib/memchr2.c (memchr2): Fix typo.
78620         * tests/test-memchr2.c: Test previous bug, and don't use GNU
78621         extension.
78622         Reported by Bruce Korb.
78624         New module 'memchr2'.
78625         * modules/memchr2: New file.
78626         * modules/memchr2-tests: Likewise.
78627         * lib/memchr2.h: Likewise.
78628         * lib/memchr2.c: Likewise, based on memchr.c.
78629         * tests/test-memchr2.c: New test.
78630         * MODULES.html.sh (String handling): Add memchr2.
78632 2008-02-29  Bruno Haible  <bruno@clisp.org>
78634         * modules/freadseek-tests: New file.
78635         * tests/test-freadseek.sh: New file.
78636         * tests/test-freadseek.c: New file.
78638         New module 'freadseek'.
78639         * modules/freadseek: New file.
78640         * lib/freadseek.h: New file.
78641         * lib/freadseek.c: New file.
78642         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
78644 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
78646         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
78647         wydawca.
78649         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
78650         program_invocation_name and program_invocation_short_name are
78651         present.
78653 2008-02-28  Bruno Haible  <bruno@clisp.org>
78655         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
78656         * tests/test-freadptr.sh: Also test non-seekable stdin.
78658 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
78660         * build-aux/bootstrap (source_base, m4_base)
78661         (doc_base, tests_base): New variables.
78662         (gnulib_tool_options): Do not hardcode base directories, use
78663         the above variables instead.
78665 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
78667         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
78669 2008-02-28  Bruno Haible  <bruno@clisp.org>
78671         * modules/freadptr-tests: New file.
78672         * tests/test-freadptr.sh: New file.
78673         * tests/test-freadptr.c: New file.
78675         New module 'freadptr'.
78676         * modules/freadptr: New file.
78677         * lib/freadptr.h: New file.
78678         * lib/freadptr.c: New file.
78679         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
78681 2008-02-26  Karl Berry  <karl@freefriends.org>
78683         Sync from Libtool:
78684         * libltdl/argz.c (argz_add, argz_count): New functions.
78685         * libltdl/argz.in.h: Declare them.
78686         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
78688 2008-02-22  Bruno Haible  <bruno@clisp.org>
78690         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
78691         is a pointer type.  Needed for HP-UX 10.
78692         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
78693         * doc/posix-functions/gmtime_r.texi: Likewise.
78694         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
78696 2008-02-24  Bruno Haible  <bruno@clisp.org>
78698         * modules/environ-tests: New file.
78699         * tests/test-environ.c: New file.
78701         New module 'environ'.
78702         * modules/environ: New file.
78703         * lib/unistd.in.h (environ): New declaration.
78704         * m4/environ.m4: New file.
78705         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
78706         after use.
78707         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
78708         HAVE_DECL_ENVIRON.
78709         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
78710         HAVE_DECL_ENVIRON.
78711         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
78712         wrong claim that 'environ' is missing on some systems.
78713         * modules/execute (Depends-on): Add environ.
78714         * lib/execute.c (environ): Remove fallback declaration.
78715         * modules/pipe (Depends-on): Add environ.
78716         * lib/pipe.c (environ): Remove fallback declaration.
78717         * modules/setenv (Depends-on): Add environ.
78718         * lib/setenv.c (environ): Remove fallback declaration.
78719         * modules/unsetenv (Depends-on): Add environ.
78720         * lib/unsetenv.c (environ): Remove fallback declaration.
78721         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
78722         m4/environ.m4.
78723         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
78724         (gl_PREREQ_UNSETENV): Likewise.
78726 2008-02-24  Bruno Haible  <bruno@clisp.org>
78728         * doc/posix-functions/environ.texi: Document the MacOS X problem.
78730 2008-02-20  Bob Proulx  <bob@proulx.com>
78732         Enable use of older two part flavor 'git describe'.
78733         * build-aux/git-version-gen: If using the older two part flavor of
78734         git version then recreate the third part now present in the
78735         newer three part flavor of git describe.
78737 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
78739         * lib/fts.c (fts_build): Typo correction to comment.
78741 2008-02-17  Bruno Haible  <bruno@clisp.org>
78743         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
78744         generating no-op conflicts.
78746 2008-02-17  Bruno Haible  <bruno@clisp.org>
78748         Speed up by 10%.
78749         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
78750         result_entries, rather than an index-based loop.
78752 2008-02-17  Bruno Haible  <bruno@clisp.org>
78754         Speed up by 25%.
78755         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
78756         'hashcode_cached'.
78757         (entry_create): New function.
78758         (entry_hashcode): Use the cached hashcode if possible.
78759         (read_changelog_file, try_split_merged_entry): Use entry_create.
78761 2008-02-17  Bruno Haible  <bruno@clisp.org>
78763         Speed up from O(n^2) to O(n) for long ChangeLog files.
78764         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
78765         (read_changelog_file): Change implementation of entries_reversed list
78766         to rbtreehash.
78767         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
78769 2008-02-17  Bruno Haible  <bruno@clisp.org>
78771         New option --split-merged-entry.
78772         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
78773         (find_paragraph_end, try_split_merged_entry): New functions.
78774         (long_options): Add option --split-merged-entry.
78775         (usage): Document option --split-merged-entry.
78776         (main): Implement option --split-merged-entry.
78777         Reported by Eric Blake.
78779 2008-02-17  Bruno Haible  <bruno@clisp.org>
78781         * lib/git-merge-changelog.c: Include c-strstr.h.
78782         (main): Support the "git pull --rebase" situation.
78783         * modules/git-merge-changelog (Depends-on): Add c-strstr.
78784         Reported by Eric Blake.
78786 2008-02-16  Eric Blake  <ebb9@byu.net>
78788         Avoid doubling \ in common case of "c-maybe" quoting style.
78789         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
78790         eliding outer quotes.
78791         * lib/quotearg.h: Document this.
78792         * tests/test-quotearg.c (result_strings, inputs, results_g)
78793         (flag_results, locale_results): Test it by adding a new string to
78794         each test group.
78795         (compare_strings): Test new string.
78797 2008-02-13  Eric Blake  <ebb9@byu.net>
78799         Avoid trigraph quoting in default output.
78800         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
78801         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
78802         unless explicitly requested.
78803         * tests/test-quotearg.c (flag_results, main): Add additional tests.
78805 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
78807         Don't rely on signed integer overflowing to negative value.
78808         * lib/getugroups.c (getugroups): Include <limits.h>.
78809         Instead, compare against INT_MAX, and increment only if the test passes.
78811 2008-02-13  Jim Meyering  <meyering@redhat.com>
78812         and Eric Blake  <ebb9@byu.net>
78814         Avoid shadowing warning and compile errors on Linux.
78815         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
78816         forwarding macros on Linux.
78817         (dcgettext): Define a stub, for Linux.
78818         (results_g, main): Avoid warnings.
78820 2008-02-12  Eric Blake  <ebb9@byu.net>
78822         Silence warning in last patch.
78823         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
78825         Quotearg part 4: add tests, fix c-maybe colon quoting.
78826         * lib/quotearg.h: Improve documentation.
78827         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
78828         escapes when adding outer quotes.  When quoting trigraphs, use
78829         valid C notation.  When quoting NUL, omit extra characters if next
78830         character is not digit.  Alter prototype.
78831         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
78832         callers.
78833         * modules/quotearg-tests: New module.
78834         * tests/test-quotearg.c: New test.
78836 2008-02-07  Eric Blake  <ebb9@byu.net>
78838         Quotearg part 3: add flag to control outer quote elision.
78839         * lib/quotearg.h (c_maybe_quoting_style): New style.
78840         (enum quoting_flags): Better documentation of flags.
78841         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
78842         c-maybe style.
78843         (quotearg_buffer_restyled): Handle new flag to elide outer
78844         quotes.
78846         Quotearg part 2: add flag that can control NUL elision.
78847         * lib/quotearg.h (set_quoting_flags): New prototype.
78848         * lib/quotearg.c (struct quoting_options): Add flag field.
78849         (set_quoting_flags): New function.
78850         (quotearg_buffer_restyled): Add flags parameter.
78851         (quotearg_alloc_mem): Set the flag if length cannot be returned.
78852         (quotearg_n_options): Set the flag, since length cannot be
78853         returned.
78854         (quoting_options_from_style): Default flags correctly.
78856         Quotearg part 1: more wrappers, restore quotearg_char state.
78857         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
78858         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
78859         (quotearg_colon_mem): New wrappers.
78860         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
78861         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
78862         functions.
78863         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
78864         (quotearg_colon_mem): New functions.
78866 2008-02-11  Bruno Haible  <bruno@clisp.org>
78868         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
78869         library in the current directory: it does not work with parallel make.
78870         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78872 2008-02-11  Bruno Haible  <bruno@clisp.org>
78874         * .gitattributes: New file.
78876 2008-02-11  Jim Meyering  <meyering@redhat.com>
78878         useless-if-before-free: Fix reversed exit values.
78879         * build-aux/useless-if-before-free: Use correct values
78880         for EXIT_MATCH and EXIT_NO_MATCH.
78882         * build-aux/useless-if-before-free: Close stdout carefully.
78884 2008-02-10  Bruno Haible  <bruno@clisp.org>
78886         New module 'git-merge-changelog'.
78887         * modules/git-merge-changelog: New file.
78888         * lib/git-merge-changelog.c: New file.
78890 2008-02-10  Jim Meyering  <meyering@redhat.com>
78892         useless-if-before-free: New option: --list (-l).
78894         useless-if-before-free: Don't exit immediately upon open failure.
78895         * build-aux/useless-if-before-free: Exit 2 for errors.
78896         Upon failure to open a file, don't exit immediately.
78897         Rather, just warn and continue with any remaining files.
78899 2008-02-10  Bruno Haible  <bruno@clisp.org>
78901         New abstract list operation 'node_set_value'.
78902         * lib/gl_list.h (gl_list_node_set_value): New function.
78903         (struct gl_list_implementation): New field node_set_value.
78904         * lib/gl_list.c (gl_list_node_set_value): New function.
78905         * lib/gl_array_list.c (gl_array_node_set_value): New function.
78906         (gl_array_list_implementation): Update.
78907         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
78908         (gl_carray_list_implementation): Update.
78909         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
78910         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78911         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78912         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
78913         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78914         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78915         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78916         Update.
78917         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
78918         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
78919         (gl_sublist_list_implementation): Update.
78921 2008-02-10  Bruno Haible  <bruno@clisp.org>
78923         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
78924         Needed when ELEMENT is #defined to 'some_type *'.
78926 2008-02-10  Jim Meyering  <meyering@redhat.com>
78928         New script and module: useless-if-before-free
78929         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
78930         * build-aux/useless-if-before-free: New file.
78931         * modules/useless-if-before-free: New file.
78933         * build-aux/gitlog-to-changelog: Use committer date, not author date.
78935         xstrtol_error: Fix typo.
78936         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
78937         s/exit_failure/exit_status/.
78939 2008-02-09  Jim Meyering  <meyering@redhat.com>
78941         New script and module: gitlog-to-changelog
78942         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
78943         * modules/gitlog-to-changelog: New file.
78944         * build-aux/gitlog-to-changelog: New file.
78946 2008-02-08  Jim Meyering  <meyering@redhat.com>
78948         Avoid two "parameter unused" warnings.
78949         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
78950         Mark "st" as used.
78952         Use "git COMMAND", not "git-COMMAND".
78953         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
78954         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
78955         * build-aux/git-version-gen: Use "git status", not "git-status".
78957 2008-02-07  Bruno Haible  <bruno@clisp.org>
78959         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
78960         Avoids a crash on Windows Vista.
78961         Reported by Adam Strzelecki <ono@java.pl> via
78962         Simon Josefsson <simon@josefsson.org>.
78964 2008-02-06  Bruno Haible  <bruno@clisp.org>
78966         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
78967         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
78968         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
78969         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
78970         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
78971         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
78972         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
78973         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
78974         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
78975         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
78976         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
78977         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
78978         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
78979         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
78980         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
78981         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
78982         left-adjust flag.
78983         * tests/test-snprintf-posix.h (test_function): Likewise.
78984         * tests/test-sprintf-posix.h (test_function): Likewise.
78985         * tests/test-vasprintf-posix.c (test_function): Likewise.
78986         * doc/posix-functions/fprintf.texi: Update.
78987         * doc/posix-functions/printf.texi: Update.
78988         * doc/posix-functions/snprintf.texi: Update.
78989         * doc/posix-functions/sprintf.texi: Update.
78990         * doc/posix-functions/vfprintf.texi: Update.
78991         * doc/posix-functions/vprintf.texi: Update.
78992         * doc/posix-functions/vsnprintf.texi: Update.
78993         * doc/posix-functions/vsprintf.texi: Update.
78994         Reported by Peter Fales <psfales@alcatel-lucent.com>.
78996 2008-02-06  Bruno Haible  <bruno@clisp.org>
78998         Fix bug introduced on 2008-01-26.
78999         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
79001 2008-02-06  Bruno Haible  <bruno@clisp.org>
79003         Fix bug introduced on 2007-06-10.
79004         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
79005         !NEED_PRINTF_FLAG_ZERO.
79007 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
79009         getloadavg: use libperfstat on AIX5
79010         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
79012 2008-02-03  Bruno Haible  <bruno@clisp.org>
79014         * lib/diffseq.h: Add comments about required #includes.
79015         Reported by Michael Biggs <gnulib@doubleplum.net>.
79017 2008-02-01  Bruno Haible  <bruno@clisp.org>
79019         * users.txt: Add gnuit.
79021 2008-01-31  Bruno Haible  <bruno@clisp.org>
79023         * lib/md4.c (set_uint32): Mark as inline.
79024         * lib/md5.c (set_uint32): Likewise.
79025         * lib/sha1.c (set_uint32): Likewise.
79026         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
79027         * m4/md5.m4 (gl_MD5): Likewise.
79028         * m4/sha1.m4 (gl_SHA1): Likewise.
79030 2008-01-31  Jim Meyering  <meyering@redhat.com>
79032         Use "sizeof VAR", rather than a literal "4".
79033         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
79034         * lib/md4.c (md4_read_ctx): Likewise.
79035         * lib/sha1.c (sha1_read_ctx): Likewise.
79037 2008-01-31  Simon Josefsson  <simon@josefsson.org>
79039         * tests/test-sha1.c: New file, based on test-md5.c.
79041         * modules/crypto/sha1-tests: New file.
79043 2008-01-31  Simon Josefsson  <simon@josefsson.org>
79045         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
79047 2008-01-31  Jim Meyering  <meyering@redhat.com>
79049         Prefer "sizeof v" over the equivalent "4".
79050         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
79051         * lib/md5.c (set_uint32): Likewise.
79052         * lib/sha1.c (set_uint32): Likewise.
79054 2008-01-31  Simon Josefsson  <simon@josefsson.org>
79056         * lib/sha1.c (set_uint32): Mark function as static.
79058 2008-01-31  Simon Josefsson  <simon@josefsson.org>
79060         md2: clarify comments to say that alignment is not required.
79061         * lib/md2.h: Remove warning about alignment in comment.
79062         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
79063         never been required.
79065 2008-01-31  Simon Josefsson  <simon@josefsson.org>
79067         md4: adapt alignment constraint fix from sha1.
79068         * lib/md4.c (set_uint32): New function, from sha1.c
79069         (md4_read_ctx): Use it.
79070         (md4_finish_ctx): Doc fix.
79071         * lib/md4.h: Doc fix.
79073 2008-01-31  Simon Josefsson  <simon@josefsson.org>
79075         md5: adapt alignment constraint fix from sha1.
79076         * lib/md5.c (set_uint32): New function, from sha1.c
79077         (md5_read_ctx): Use it.
79078         (md5_finish_ctx): Doc fix.
79079         * lib/md5.h: Doc fix.
79081 2008-01-30  Peter Palfrader  <weasel@debian.org>
79083         sha1: remove the result buffer alignment constraint
79084         * lib/sha1.c (set_uint32): New function.
79085         (sha1_read_ctx): Rewrite to remove the result buffer alignment
79086         constraint.
79087         (sha1_finish_ctx): Remove comment warning about alignment constraint.
79088         * lib/sha1.h: Likewise.
79090 2008-01-30  Andreas Schwab  <schwab@suse.de>
79091             Bruno Haible  <bruno@clisp.org>
79093         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
79094         correct definition of LDBL_MIN_EXP.
79096 2008-01-30  Karl Berry  <karl@gnu.org>
79098         * config/srclist-update: try to preserve x bit on updates.
79099         * config/srclistvars.sh: update for karl.
79101 2008-01-29  Jim Meyering  <meyering@redhat.com>
79103         vasnprintf.c: Avoid warning about unused label
79104         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
79105         "overflow" label definition and associated code with the
79106         same cpp condition that guards the sole use of that label.
79108 2008-01-26  Bruno Haible  <bruno@clisp.org>
79110         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
79111         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
79112         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
79113         * lib/isnanl-nolibm.h (isnanl): Likewise.
79114         Reported by Paul Eggert <eggert@cs.ucla.edu>.
79116 2008-01-26  Bruno Haible  <bruno@clisp.org>
79118         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
79119         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
79121 2008-01-26  Bruno Haible  <bruno@clisp.org>
79123         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
79124         GCC >= 4.0 built-in.
79125         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
79127 2008-01-26  Bruno Haible  <bruno@clisp.org>
79129         Rename isnan, applicable to 'double' only, to isnand.
79130         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
79131         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
79132         (configure.ac): Update.
79133         (Include): Replace "isnan.h" with "isnand.h".
79134         * m4/isnand.m4: Renamed from m4/isnan.m4.
79135         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
79136         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
79137         instead of isnan.c.
79138         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
79139         instead of HAVE_ISNAN_IN_LIBC.
79140         (isnand): Renamed from isnan.
79141         * lib/isnand.c: New file.
79142         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
79143         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
79144         (Makefile.am): Update.
79145         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
79146         Include isnand.h instead of isnan.h.
79147         (main): Test isnand instead of isnan.
79148         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
79149         isnan-nolibm.
79150         * modules/frexp (Depends-on): Likewise.
79151         * modules/frexp-tests (Depends-on): Likewise.
79152         * modules/frexp-nolibm (Depends-on): Likewise.
79153         * modules/frexp-nolibm-tests (Depends-on): Likewise.
79154         * modules/isfinite (Depends-on): Likewise.
79155         * modules/round-tests (Depends-on): Likewise.
79156         * modules/signbit (Depends-on): Likewise.
79157         * modules/signbit-tests (Depends-on): Likewise.
79158         * modules/snprintf-posix (Depends-on): Likewise.
79159         * modules/sprintf-posix (Depends-on): Likewise.
79160         * modules/trunc-tests (Depends-on): Likewise.
79161         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
79162         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
79163         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
79164         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
79165         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
79166         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
79167         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
79168         * modules/vasnprintf-posix (Depends-on): Likewise.
79169         * modules/vasprintf-posix (Depends-on): Likewise.
79170         * modules/vfprintf-posix (Depends-on): Likewise.
79171         * modules/vsnprintf-posix (Depends-on): Likewise.
79172         * modules/vsprintf-posix (Depends-on): Likewise.
79173         * lib/frexp.c: Include isnand.h instead of isnan.h.
79174         (ISNAN): Set to isnand instead of isnan.
79175         * lib/isfinite.c: Include isnand.h instead of isnan.h.
79176         (gl_isfinited): Use isnand instead of isnan.
79177         * lib/signbitd.c: Include isnand.h instead of isnan.h.
79178         (gl_signbitd): Use isnand instead of isnan.
79179         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
79180         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
79181         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
79182         (main): Use isnand instead of isnan.
79183         * tests/test-round1.c: Include isnand.h.
79184         (main): Use isnand instead of isnan.
79185         * tests/test-round2.c: Include isnand.h instead of isnan.h.
79186         (ISNAN): Set to isnand instead of isnan.
79187         * tests/test-trunc1.c: Include isnand.h.
79188         (main): Use isnand instead of isnan.
79189         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
79190         (equal): Use isnand instead of isnan.
79191         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
79192         isnand-nolibm.
79193         * NEWS: Mention the change.
79195 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
79196             Bruno Haible  <bruno@clisp.org>
79198         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
79199         the GCC builtins for signbits are present and set
79200         REPLACE_SIGNBIT_USING_GCC if so.
79201         * lib/math.in.h (signbit): Define using GCC builtins if
79202         REPLACE_SIGNBIT_USING_GCC is set.
79203         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
79204         REPLACE_SIGNBIT_USING_GCC.
79205         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
79207 2008-01-25  Jim Meyering  <meyering@redhat.com>
79209         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
79210         * lib/poll.c: Include <config.h>, not "config.h".
79211         * tests/test-getaddrinfo.c: Likewise.
79213 2008-01-25  Simon Josefsson  <simon@josefsson.org>
79215         * modules/sockets-tests: New file.
79217 2008-01-24  Simon Josefsson  <simon@josefsson.org>
79219         * modules/sockets: New module, can be used to call WSA_Startup and
79220         WSA_Cleanup when needed.
79222         * lib/sockets.h, lib/sockets.c: New files.
79224         * m4/sockets.m4: New file.
79226         * tests/test-sockets.c: New file.
79228 2008-01-19  Bruno Haible  <bruno@clisp.org>
79230         * doc/posix-headers: Renamed from doc/headers.
79231         * doc/posix-functions: Renamed from doc/functions.
79232         * doc/gnulib.texi: Update.
79234 2008-01-19  Bruno Haible  <bruno@clisp.org>
79236         * doc/glibc-functions/strcasestr.texi: Include contents of
79237         doc/functions/strcasestr.texi, fixing the list of platforms.
79238         * doc/functions/strcasestr.texi: Remove file.
79240 2008-01-19  Bruno Haible  <bruno@clisp.org>
79242         * doc/glibc-functions/memmem.texi: Include contents of
79243         doc/functions/memmem.texi.
79244         * doc/functions/memmem.texi: Remove file.
79246 2008-01-18  Bruno Haible  <bruno@clisp.org>
79248         * doc/glibc-functions/*.texi: New files.
79249         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
79250         to use the new files.
79252 2008-01-17  Bruno Haible  <bruno@clisp.org>
79254         * tests/test-gethostname.c (main): Fix printf statement.
79256 2008-01-17  Simon Josefsson  <simon@josefsson.org>
79258         * modules/gethostname-tests: New file.
79260         * tests/test-gethostname.c: New file.
79262 2008-01-17  Simon Josefsson  <simon@josefsson.org>
79264         * lib/gethostname.c: Include string.h unconditionally, strncpy is
79265         used by the UNAME case.  Reported by Bruno Haible
79266         <bruno@clisp.org>.
79268 2008-01-17  Eric Blake  <ebb9@byu.net>
79270         Convert c-strcasestr to be more efficient.
79271         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
79272         (Depends-on): Add c-strcase, remove malloca, strnlen.
79273         * tests/test-c-strcasestr.c (main): Enhance test.
79274         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
79276 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
79278         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
79279         Use it in creating po/Makevars.
79281 2008-01-15  Simon Josefsson  <simon@josefsson.org>
79283         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
79284         Applications that requires it should initialize libgcrypt
79285         manually.
79287 2008-01-16  Simon Josefsson  <simon@josefsson.org>
79289         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
79291 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
79293         Fix problem with getdate on mingw32 reported by Simon Josefsson
79294         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
79295         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
79296         tzname", when deciding whether to declare tzname.
79297         * lib/strftime.c (tzname): Likewise.
79299 2008-01-15  Bruno Haible  <bruno@clisp.org>
79301         Work around a MacOS X 10.5 bug in frexpl().
79302         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
79303         * doc/functions/frexpl.texi: Document the bug.
79304         Reported by Elias Pipping <pipping@gentoo.org>.
79306 2008-01-14  Eric Blake  <ebb9@byu.net>
79308         Touch up previous patch.
79309         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
79310         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
79312         Convert strcasestr module to use Two-Way algorithm.
79313         * modules/strcasestr-simple: New module, based on the old
79314         strcasestr, but with Two-Way rather than KMP.
79315         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
79316         * lib/string.in.h (rpl_strcasestr): Declare.
79317         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
79318         performance.
79319         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
79320         * modules/string (Makefile.am): Support strcasestr.
79321         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
79322         * modules/strcasestr-tests (Depends-on): Check for alarm.
79323         * tests/test-strcasestr.c: Augment test.
79324         * lib/str-two-way.h: Clean up stray macro.
79325         * NEWS: Document new module.
79326         * MODULES.html.sh (string handling): Likewise.
79327         * doc/functions/strcasestr.texi: New file.
79328         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
79329         here, since it is not a POSIX function.
79331 2008-01-14  Colin Watson  <cjwatson@debian.org>
79332             Bruno Haible  <bruno@clisp.org>
79334         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
79335         works fine; if not, set REPLACE_STRSIGNAL.
79336         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
79337         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
79338         REPLACE_STRSIGNAL.
79339         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
79340         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
79341         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
79343 2008-01-14  Bruno Haible  <bruno@clisp.org>
79345         * modules/strsignal (Include): Change to <string.h>.
79347 2008-01-14  Colin Watson  <cjwatson@debian.org>
79349         * modules/argp (Notice): Add a notice recommending to change
79350         XGETTEXT_OPTIONS.
79351         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
79353 2008-01-13  Colin Watson  <cjwatson@debian.org>
79355         * modules/strsignal-tests: New file.
79356         * tests/test-strsignal.c: New file.
79358         * lib/strsignal.c: New file, from glibc with modifications.
79359         * lib/siglist.h: New file, from glibc with modifications.
79360         * lib/string.in.h (strsignal): New declaration.
79361         * m4/strsignal.m4: New file.
79362         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
79363         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
79364         * modules/strsignal: New file.
79365         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
79366         HAVE_DECL_STRSIGNAL.
79368 2008-01-13  Bruno Haible  <bruno@clisp.org>
79370         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
79371         locale encoding is not ASCII. Needed for OpenBSD 4.0.
79372         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
79373         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
79375 2008-01-13  Bruno Haible  <bruno@clisp.org>
79377         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
79378         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
79379         * lib/argp.h (__attribute__): Likewise.
79380         * lib/c-stack.c (__attribute__): Likewise.
79381         * lib/error.h (__attribute__): Likewise.
79382         * lib/fts.c (__attribute__): Likewise.
79383         * lib/openat.h (__attribute__): Likewise.
79384         * lib/stdio.in.h (__attribute__): Likewise.
79385         * lib/string.in.h (__attribute__): Likewise.
79386         * lib/utimens.c (__attribute__): Likewise.
79387         * lib/vasnprintf.h (__attribute__): Likewise.
79388         * lib/xalloc.h (__attribute__): Likewise.
79389         * lib/xprintf.h (__attribute__): Likewise.
79390         * lib/xstrtol.h (__attribute__): Likewise.
79391         * lib/xvasprintf.h (__attribute__): Likewise.
79393 2008-01-12  Bruno Haible  <bruno@clisp.org>
79395         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
79396         * doc/glibc-headers/a.out.texi: New file.
79397         * doc/glibc-headers/aliases.texi: New file.
79398         * doc/glibc-headers/alloca.texi: New file.
79399         * doc/glibc-headers/ar.texi: New file.
79400         * doc/glibc-headers/argp.texi: New file.
79401         * doc/glibc-headers/argz.texi: New file.
79402         * doc/glibc-headers/byteswap.texi: New file.
79403         * doc/glibc-headers/crypt.texi: New file.
79404         * doc/glibc-headers/endian.texi: New file.
79405         * doc/glibc-headers/envz.texi: New file.
79406         * doc/glibc-headers/err.texi: New file.
79407         * doc/glibc-headers/error.texi: New file.
79408         * doc/glibc-headers/execinfo.texi: New file.
79409         * doc/glibc-headers/fpu_control.texi: New file.
79410         * doc/glibc-headers/fstab.texi: New file.
79411         * doc/glibc-headers/fts.texi: New file.
79412         * doc/glibc-headers/getopt.texi: New file.
79413         * doc/glibc-headers/ieee754.texi: New file.
79414         * doc/glibc-headers/ifaddrs.texi: New file.
79415         * doc/glibc-headers/libintl.texi: New file.
79416         * doc/glibc-headers/mcheck.texi: New file.
79417         * doc/glibc-headers/mntent.texi: New file.
79418         * doc/glibc-headers/obstack.texi: New file.
79419         * doc/glibc-headers/paths.texi: New file.
79420         * doc/glibc-headers/printf.texi: New file.
79421         * doc/glibc-headers/pty.texi: New file.
79422         * doc/glibc-headers/resolv.texi: New file.
79423         * doc/glibc-headers/shadow.texi: New file.
79424         * doc/glibc-headers/sysexits.texi: New file.
79425         * doc/glibc-headers/ttyent.texi: New file.
79427 2008-01-12  Jim Meyering  <meyering@redhat.com>
79429         announce-gen: emit Gnulib's git-based version string.
79430         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
79431         New option --gnulib-version=V, where V is expected to be
79432         the output of running git describe in the gnulib directory.
79433         (get_tool_versions): Request feedback on xdelta.  I suspect it's
79434         not useful, and plan to stop publishing an xdelta file with each
79435         coreutils release.
79437         * build-aux/announce-gen: Also check for lzma-compressed files.
79439 2008-01-11  Bruno Haible  <bruno@clisp.org>
79441         * tests/test-memmem.c (main): Increase maximum allowed time.
79442         * tests/test-strstr.c (main): Likewise.
79444 2008-01-11  Bruno Haible  <bruno@clisp.org>
79446         * doc/functions/memmem.texi: Add more precisions about platforms.
79447         * doc/functions/strstr.texi: Likewise.
79449 2008-01-10  Eric Blake  <ebb9@byu.net>
79451         * m4/strstr.m4: Delete cruft from copy-n-paste.
79452         Reported by Bruno Haible.
79454 2008-01-10  Bruno Haible  <bruno@clisp.org>
79456         Make c-strstr rely on strstr.
79457         * lib/c-strstr.c: Don't include str-kmp.h.
79458         (c_strstr): Define in terms of strstr.
79459         * modules/c-strstr (Files): Remove lib/str-kmp.h.
79460         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
79462 2008-01-10  Bruno Haible  <bruno@clisp.org>
79464         * doc/gnulib.texi (String Functions in C Locale): New section.
79465         * doc/c-ctype.texi: New file.
79466         * doc/c-strcase.texi: New file.
79467         * doc/c-strcaseeq.texi: New file.
79468         * doc/c-strcasestr.texi: New file.
79469         * doc/c-strstr.texi: New file.
79470         * doc/c-strtod.texi: New file.
79471         * doc/c-strtold.texi: New file.
79473 2008-01-10  Eric Blake  <ebb9@byu.net>
79475         * lib/relocatable.h: Fix a comment.
79477 2008-01-10  Eric Blake  <ebb9@byu.net>
79479         Share two-way algorithm.
79480         * lib/str-two-way.h: New file, merged from...
79481         * lib/memmem.c: ...here...
79482         * lib/strstr.c: ...and here.
79483         * modules/memmem (Files): Use it.
79484         * modules/strstr (Files): Likewise.
79486         Avoid quadratic strstr implementations.
79487         * lib/strstr.c: New file.
79488         * m4/strstr.m4: Likewise.
79489         * modules/strstr: Likewise.
79490         * modules/strstr-tests: Likewise.
79491         * tests/test-strstr.c: Likewise.
79492         * lib/string.in.h (rpl_strstr): Declare.
79493         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
79494         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
79495         * modules/string (Makefile.am): Likewise.
79496         * MODULES.html.sh (string handling): Mention new module.
79497         * doc/functions/strstr.texi (strstr): Document the bug.
79499 2008-01-10  Bruno Haible  <bruno@clisp.org>
79501         * lib/relocatable.h (relocate): State whether result is freshly
79502         allocated or not.
79503         * lib/relocatable.c (relocate): Return a freshly allocated string
79504         instead of a pointer to a privately held string.
79505         Reported by Sylvain Beucler <beuc@gnu.org>.
79507 2008-01-10  Colin Watson  <cjwatson@debian.org>
79509         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
79510         s/S_ISNLK/S_ISLNK/.
79512 2008-01-09  Bruno Haible  <bruno@clisp.org>
79514         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
79515         and other files.
79516         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
79517         if it's only a guess.
79518         * modules/memmem: Simplify by depending on memmem-simple.
79520 2008-01-09  Bruno Haible  <bruno@clisp.org>
79522         Work around OpenBSD 4.0 tdelete() bug.
79523         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
79524         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
79525         macros and don't redefine the enum values.
79526         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
79527         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
79528         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
79530 2008-01-09  Bruno Haible  <bruno@clisp.org>
79532         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
79533         (main): Don't perform the tests if setlocale did not install a UTF-8
79534         locale. Needed on OpenBSD 4.0.
79535         * modules/wcwidth-tests (Depends-on): Add localcharset.
79537 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79539         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
79540         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
79541         * NEWS: announce this.
79542         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
79544 2008-01-09  Simon Josefsson  <simon@josefsson.org>
79545         and Eric Blake  <ebb9@byu.net>
79547         Add memmem-simple module.
79548         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
79549         (gl_FUNC_MEMMEM): Separate performance from presence checks.
79550         * modules/memmem-simple: New file.
79551         * modules/memmem (Description): Tweak.
79552         * MODULES.html.sh (string handling): Mention new module.
79553         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
79554         addressed by memmem-simple.
79555         * NEWS: Document the difference.
79557 2008-01-09  Eric Blake  <ebb9@byu.net>
79559         Give gcc some memmem optimization hints.
79560         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
79561         (strcasestr): Declare as pure.
79562         * modules/memmem (Maintainer): Claim my implementation.
79564 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79566         Support AIX 6.1 and higher.
79567         * build-aux/config.libpath: Likewise.
79568         * build-aux/config.rpath: Likewise.
79570 2008-01-08  Jim Meyering  <meyering@redhat.com>
79571             Bruno Haible  <bruno@clisp.org>
79573         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
79574         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
79575         Reported by Peter Fales in
79576         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
79578 2008-01-08  Bruno Haible  <bruno@clisp.org>
79580         * modules/unictype/category-of (Depends-on): Add
79581         unictype/category-none.
79582         * modules/unictype/category-and-tests (Depends-on): Add
79583         unictype/category-{L,N,Lu,Nd}.
79584         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
79585         * modules/unictype/category-or-tests (Depends-on): Add
79586         unictype/category-{L,N}.
79587         * modules/unictype/category-name-tests (Depends-on): Add
79588         unictype/category-{Z,Nl}.
79589         Reported by Simon Josefsson.
79591 2008-01-08  Bruno Haible  <bruno@clisp.org>
79593         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
79594         convention better.
79595         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
79596         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
79597         Reported by Peter Miller <millerp@canb.auug.org.au>.
79599 2008-01-08  Eric Blake  <ebb9@byu.net>
79601         Rewrite memmem to guarantee linear complexity without malloc.
79602         * lib/memmem.c (memmem): Use Two-Way rather than
79603         Knuth-Morris-Pratt, to allow O(1) space usage.
79604         (critical_factorization, two_way_short_needle)
79605         (two_way_long_needle): New functions.
79606         (knuth_morris_pratt): Delete.
79607         * modules/memmem (Depends-on): No longer need malloca or stdbool.
79608         Add stdint.
79609         * tests/test-memmem.c (main): Add tests for periodic needle and
79610         sublinear performance.
79611         * doc/functions/memmem.texi (memmem): Document other deficiencies
79612         in cygwin and older glibc.
79614 2008-01-08  Bruno Haible  <bruno@clisp.org>
79616         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
79617         augmentation.
79619 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
79621         Add a configure time option: --disable-acl.
79622         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
79623         AC_ARG_ENABLE(acl).
79625 2008-01-06  Simon Josefsson  <simon@josefsson.org>
79627         * tests/test-localename.c: Don't include obsolete "setenv.h".
79629         * modules/localename-tests (Depends-on): Need unsetenv.
79631 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79633         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
79635 2008-01-06  Colin Watson  <cjwatson@debian.org>
79637         * users.txt: Add man-db.
79639 2008-01-07  Bruno Haible  <bruno@clisp.org>
79641         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
79642         previous section name.
79644 2008-01-07  Bruno Haible  <bruno@clisp.org>
79646         * lib/progname.c (set_program_name): Don't strip off a leading
79647         "lt-" prefix outside a .libs directory.
79648         Suggested by Paul Eggert.
79650 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
79651             Bruno Haible  <bruno@clisp.org>
79653         Improve memory cleanup in 'relocatable' module.
79654         * lib/relocatable.h (compute_curr_prefix): Change return type to
79655         'char *'.
79656         * lib/relocatable.c (compute_curr_prefix): Change return type to
79657         'char *'. Free curr_installdir after use.
79658         (relocate): Free curr_prefix_better after use.
79659         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
79661 2008-01-01  Bruno Haible  <bruno@clisp.org>
79663         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
79664         failure on older glibc systems.
79665         Reported by Peter Fales <psfales@alcatel-lucent.com>.
79667 2008-01-05  Eric Blake  <ebb9@byu.net>
79669         Avoid quadratic system memmem.
79670         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
79671         Reported by Ralf Wildenhues.
79673         Fix memmem test for mingw.
79674         * modules/memmem-tests (configure.ac): Check for alarm.
79675         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
79676         it.
79677         * doc/functions/memmem.texi: New file.
79678         * doc/gnulib.texi (Function Substitutes): Add memmem.
79679         Reported by Bruno Haible.
79681 2008-01-04  Bruno Haible  <bruno@clisp.org>
79683         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
79684         Require gl_HEADER_STRINGS_H_DEFAULTS, not
79685         gl_HEADER_STRING_H_DEFAULTS.
79687 2008-01-04  Eric Blake  <ebb9@byu.net>
79689         Shorten duration of memmem test.
79690         * tests/test-memmem.c (main): Use alarm to declare failure if test
79691         is taking too long.
79692         Reported by Ralf Wildenhues.
79694 2007-12-21  Simon Josefsson  <simon@josefsson.org>
79696         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
79697         string, needed by strerror.
79699 2008-01-03  Colin Watson  <cjwatson@debian.org>
79700             Bruno Haible  <bruno@clisp.org>
79702         * doc/gnulib-tool.texi (Localization): New section.
79704 2008-01-02  Bruno Haible  <bruno@clisp.org>
79706         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
79707         variables to 'unsigned char *' type.
79708         Reported by Paul Eggert.
79710 2008-01-02  Jim Meyering  <jim@meyering.net>
79712         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
79714 2007-12-31  Jim Meyering  <jim@meyering.net>
79716         Avoid use of private FTS type name.
79717         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
79719 2007-12-30  Karl Berry  <karl@gnu.org>
79721         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
79722         work around defect in Texinfo and/or the standalone Info browser.
79724 2007-12-30  Bruno Haible  <bruno@clisp.org>
79726         Unify 5 copies of the KMP code.
79727         * lib/str-kmp.h: New file.
79728         * lib/c-strcasestr.c: Include str-kmp.h.
79729         (knuth_morris_pratt): Remove function.
79730         (c_strcasestr): Update.
79731         * lib/c-strstr.c: Include str-kmp.h.
79732         (knuth_morris_pratt): Remove function.
79733         (c_strcasestr): Update.
79734         * lib/mbscasestr.c: Include str-kmp.h.
79735         (knuth_morris_pratt_unibyte): Remove function.
79736         * lib/mbsstr.c: Include str-kmp.h.
79737         (knuth_morris_pratt_unibyte): Remove function.
79738         * lib/strcasestr.c: Include str-kmp.h.
79739         (knuth_morris_pratt): Remove function.
79740         (strcasestr): Update.
79741         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
79742         * modules/c-strstr (Files): Likewise.
79743         * modules/mbscasestr (Files): Likewise.
79744         * modules/mbsstr (Files): Likewise.
79745         * modules/strcasestr (Files): Likewise.
79746         Suggested by Paul Eggert.
79748 2007-12-30  Bruno Haible  <bruno@clisp.org>
79750         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
79751         defined.
79753 2007-12-30  Bruno Haible  <bruno@clisp.org>
79755         * lib/xmalloca.h: Include xalloc.h.
79756         (xnmalloca): New macro.
79758 2007-12-30  Bruno Haible  <bruno@clisp.org>
79760         * lib/malloca.h (nmalloca): New macro.
79761         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
79762         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
79763         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
79764         knuth_morris_pratt_multibyte): Likewise.
79765         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
79766         knuth_morris_pratt_multibyte): Likewise.
79767         * lib/memmem.c (knuth_morris_pratt): Likewise.
79768         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
79770 2007-12-25  Bruno Haible  <bruno@clisp.org>
79772         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
79773         * lib/glob.c: Don't include openat.h.
79774         (link_exists2_p): Add back the code that deals with the
79775         !GLOB_ALTDIRFUNC case.
79776         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
79777         let it do the filename concatenation.
79778         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
79779         * modules/glob (Depends-on): Remove openat.
79781 2007-12-31  Bruno Haible  <bruno@clisp.org>
79783         * modules/dirfd (License): Change to LGPLv2+.
79784         Approved by Jim Meyering.
79786 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
79788         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
79789         when multiplying M by sizeof (size_t).
79791 2007-12-10  Martin Lambers  <marlam@marlam.de>
79793         Override getpagesize on mingw.
79794         * lib/getpagesize.c: New file.
79795         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
79796         * modules/getpagesize (Files): Add lib/getpagesize.c.
79797         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
79798         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
79799         REPLACE_GETPAGESIZE.
79800         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
79802 2007-12-25  Bruno Haible  <bruno@clisp.org>
79804         * modules/localcharset (Notice): New field.
79805         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
79806         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
79808 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
79809             Bruno Haible  <bruno@clisp.org>
79811         Avoid using the syntax symbol() in formatted documentation.
79812         * MODULES.html.sh (func_module): When replacing symbol() with a
79813         hyperlink, remove the parentheses. Show an error if some remain.
79814         Recognize and render the '...' syntax.
79815         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
79816         Rework. Add paragraph about GCC's inlining.
79817         * doc/alloca.texi: Likewise.
79818         * doc/error.texi: Remove parentheses from symbol reference.
79819         * doc/gnulib-intro.texi: Likewise.
79820         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
79821         * modules/fnmatch (Description): Reword to say "the ... function".
79822         * modules/full-read (Description): Likewise.
79823         * modules/full-write (Description): Likewise.
79824         * modules/safe-read (Description): Likewise.
79825         * modules/safe-write (Description): Likewise.
79826         * modules/strchrnul (Description): Likewise.
79827         * modules/trim (Description): Likewise.
79828         * modules/error (Description): Remove parentheses from symbol
79829         references.
79830         * modules/verror (Description): Likewise.
79831         Reported by Karl Berry.
79833 2007-12-25  Bruno Haible  <bruno@clisp.org>
79835         Fixup after 2007-10-16 commit.
79836         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
79838 2007-12-24  Bruno Haible  <bruno@clisp.org>
79840         Make --enable-relocatable work with DESTDIR.
79841         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
79842         to compute installdir from destprog.
79843         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
79844         also set the RELOC_DESTDIR variable.
79845         Reported by Левашев Иван <octagram@bluebottle.com>.
79847 2007-12-24  Bruno Haible  <bruno@clisp.org>
79849         Fix link error due to xalloc_die().
79850         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
79851         of xreadlink.
79852         * lib/relocwrapper.c: Update comments.
79853         * build-aux/install-reloc: Remove xreadlink.c from file list.
79854         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
79855         xreadlink.c.
79856         Reported by Левашев Иван <octagram@bluebottle.com>.
79858 2007-12-24  Bruno Haible  <bruno@clisp.org>
79860         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
79861         * lib/setenv.h: Remove file.
79862         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
79863         lib/setenv.h.
79864         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
79865         (Depends-on): Add stdlib.
79866         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
79867         gl_FUNC_UNSETENV.
79868         (Include): Replace setenv.h with <stdlib.h>.
79869         * modules/unsetenv: New file.
79870         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
79871         * lib/unsetenv.c: Include <stdlib.h> first.
79872         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
79873         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
79874         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
79875         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
79876         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
79877         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
79878         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
79879         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
79880         * doc/functions/unsetenv.texi: Update.
79881         * modules/xsetenv (Depends-on): Add unsetenv.
79882         * modules/getdate (Depends-on): Likewise.
79883         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
79884         * lib/xsetenv.c: Don't include setenv.h.
79885         * lib/getdate.y: Likewise.
79886         * lib/relocwrapper.c: Likewise.
79887         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
79888         (Depends-on): Add stdlib.
79889         * NEWS: Mention the changes.
79890         Reported by Левашев Иван <octagram@bluebottle.com>.
79892 2007-12-23  Bruno Haible  <bruno@clisp.org>
79894         * lib/memmem.c (memmem): Use lowercase variable names. Tab
79895         indentation.
79897 2007-12-23  Bruno Haible  <bruno@clisp.org>
79899         * lib/c-strcasestr.c: Add more comments.
79900         * lib/c-strstr.c: Likewise.
79901         * lib/mbscasestr.c: Likewise.
79902         * lib/mbsstr.c: Likewise.
79903         * lib/strcasestr.c: Likewise.
79904         * lib/memmem.c: Likewise.
79906 2007-12-23  Bruno Haible  <bruno@clisp.org>
79908         * tests/test-memmem.c: Include <string.h> first.
79910 2007-12-22  Bruno Haible  <bruno@clisp.org>
79912         * gnulib-tool (func_create_testdir): Change $auxdir while generating
79913         the contents of $testsbase.
79914         Reported by Ralf Wildenhues.
79916 2007-12-22  Bruno Haible  <bruno@clisp.org>
79918         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
79919         two variables local_ldadd_before, local_ldadd_last.
79921 2007-12-20  Eric Blake  <ebb9@byu.net>
79923         Work around circular library issue when cross-compiling.
79924         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
79925         that progname.o does not need to pull in rpl_memcmp.
79927 2007-12-19  Eric Blake  <ebb9@byu.net>
79929         Fix memmem to avoid O(n^2) worst-case complexity.
79930         * lib/memmem.c (knuth_morris_pratt): New function.
79931         (memmem): Use it if first few naive iterations fail.
79932         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
79933         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
79934         * modules/memchr (License): Likewise.
79935         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
79936         malloca.
79937         * tests/test-memmem.c: Rewrite, borrowing ideas from
79938         test-mbsstr1.c; the old version wouldn't even compile!
79939         * modules/memmem-tests: New file.
79940         * lib/string.in.h (rpl_memmem): Add declaration.
79941         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
79942         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
79943         REPLACE_MEMMEM.
79945 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
79947         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
79948         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
79949         before any system include files, and undef after them all.  This
79950         should fix a problem on VMS reported by John E. Malmberg in
79951         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
79953 2007-12-17  Eric Blake  <ebb9@byu.net>
79955         Revert addition of verify, for BSD/OS.
79956         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
79957         can't handle large files, for the sake of obsolete platforms.
79958         * modules/fseeko (Depends-on): Remove verify.
79959         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
79960         * doc/functions/ftello.texi (ftello): Likewise.
79961         * doc/functions/fgetpos.texi (fgetpos): Likewise.
79962         Reported by Larry Jones.
79964 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
79966         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
79967         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
79969 2007-12-17  Jim Meyering  <meyering@redhat.com>
79971         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
79972         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
79973         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
79974         * modules/getcwd (Depends-on): Add openat.
79975         Reported by Petr Salinger.
79977 2007-12-17  Bruno Haible  <bruno@clisp.org>
79979         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
79980         avoid a segmentation fault of the configure test on x86_64 systems.
79982 2007-12-15  Jim Meyering  <meyering@redhat.com>
79984         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
79986 2007-12-13  Eric Blake  <ebb9@byu.net>
79988         Another fseek test.
79989         * tests/test-fseek.c (main): Also test ungetc handling.
79990         * tests/test-fseeko.c (main): Likewise.
79991         * modules/fseeko (Depends-on): Add verify.
79992         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
79993         large.
79994         Reported by Larry Jones.
79996         Fix fseeko on mingw.
79997         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
79998         seek.
80000         Beef up fseek tests.
80001         * tests/test-fseek.c (main): Also test eof handling.
80002         * tests/test-fseeko.c (main): Likewise.
80003         Reported by Larry Jones.
80005 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
80007         Fix fseeko on BSD-based platforms.
80008         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
80009         successful seek.
80011 2007-12-12  Eric Blake  <ebb9@byu.net>
80013         Allow circular dependency of separate libtests.a
80014         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
80015         when use_libtests.
80017 2007-12-11  Eric Blake  <ebb9@byu.net>
80019         Fix bug with -0.0L in previous patch.
80020         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
80021         * tests/test-isnan.c (main): Also test on zeroes.
80022         * tests/test-isnanf.c (main): Likewise.
80023         * tests/test-isnanl.h (main): Likewise.
80025         Detect pseudo-denormals on x86 even when cross-compiling.
80026         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
80027         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
80028         invalid bit patterns that happen to satisfy ==.
80030         Avoid link failures with separate libtests.a.
80031         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
80032         last, to satisfy circular dependencies.
80034 2007-12-11  Eric Blake  <ebb9@byu.net>
80035         and Bruno Haible  <bruno@clisp.org>
80037         Fix OpenBSD 4.0 <float.h> handling of long double.
80038         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
80039         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
80040         * doc/headers/float.texi (float.h): Document OpenBSD bug.
80042 2007-12-11  Jim Meyering  <meyering@redhat.com>
80044         * users.txt: Add libvirt.
80046         Support versions of autoconf prior to 2.59c.
80047         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
80048         if it is not already defined.
80050 2007-12-09  Bruno Haible  <bruno@clisp.org>
80052         Let 'gnulib-tool --import' collect sources needed for the tests in
80053         tests/ rather than in lib/.
80054         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
80055         argument. If true, add rules to generate libtests.a, and put libtests.a
80056         into $(LDADD). Consider source files in subdirectories and set
80057         uses_subdirs.
80058         (func_emit_initmacro_start, func_emit_initmacro_end,
80059         func_emit_initmacro_done): Pass all arguments explicitly.
80060         (func_import): Determine two module lists main_modules,
80061         testsrelated_modules. Determine use_libtests. Determine two variables
80062         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
80063         instead of just sed_transform_lib_file. Determine two variables
80064         main_files and testsrelated_files. Compute 'files' as the union of
80065         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
80066         func_add_or_update. In the generated gnulib-comp.m4, collect the
80067         object files for tests/ in different variables than those for lib/.
80068         Substitute LIBTESTS_LIBDEPS.
80069         (func_create_testdir): Combine the uses_subdirs results from
80070         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
80072 2007-12-09  Bruno Haible  <bruno@clisp.org>
80074         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
80075         the build-aux directory.
80077 2007-12-09  Bruno Haible  <bruno@clisp.org>
80079         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
80080         introduced on 2006-09-09.
80082 2007-12-07  Jim Meyering  <meyering@redhat.com>
80084         Let these macros work also with autoconf-2.59.
80085         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
80086         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
80087         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
80089 2007-12-06  Jim Meyering  <meyering@redhat.com>
80091         Avoid a configure-time syntax error in gl_FUNC_ACL.
80092         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
80093         function in each branch, before testing the cache variable.
80095 2007-12-04  Eric Blake  <ebb9@byu.net>
80097         Make scripts executable.
80098         * build-aux/config.guess: Add execute permissions.
80099         * build-aux/config.sub: Likewise.
80100         * build-aux/gendocs.sh: Likewise.
80102         Fix frexp on mingw.
80103         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
80104         cross-compiling.
80105         * doc/functions/frexp.texi (frexp): Document the bug.
80107         Make cygwin fseeko check more reliable.
80108         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
80109         version numbers, rather than unrelated feature check.
80110         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
80111         * doc/functions/ftello.texi (ftello): Likewise.
80112         Reported by Bruno Haible.
80114         * m4/strerror.m4: Bump version number.
80116 2007-12-03  Bruno Haible  <bruno@clisp.org>
80118         * doc/functions/mprotect.texi: Mention the mingw problem.
80120 2007-12-03  Eric Blake  <ebb9@byu.net>
80122         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
80123         REPLACE_STRERROR is initialized before this macro.
80125 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
80127         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
80128         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
80129         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
80130         put -lsec in even for programs other than 'ls'.  This fixes a problem
80131         for gettext reported by Bruno Haible in
80132         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
80133         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
80134         Add support for Solaris 10.  This isn't efficient, but should get the
80135         job done for now.
80137 2007-12-03  James Youngman  <jay@gnu.org>
80139         * doc/regexprops-generic.texi: change "an close-group" to "a
80140         close-group" and "illegal" to "not allowed".
80142 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80144         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
80145         pr_byname.h. Needed for the rare case when the maintainer has done
80146         "make maintainer-clean" in the source directory and then attempts a
80147         build outside the source directory.
80148         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
80149         scripts_byname.h.
80151 2007-12-02  Martin Lambers  <marlam@marlam.de>
80152             Bruno Haible  <bruno@clisp.org>
80154         * lib/getpagesize.h: Remove file.
80155         * lib/unistd.in.h: Include declaration of getpagesize here.
80156         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
80157         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
80158         HAVE_SYS_PARAM_H.
80159         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
80160         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
80161         * modules/getpagesize (Files): Remove lib/getpagesize.h.
80162         (Depends-on): Add unistd.
80163         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
80164         (Include): Use <unistd.h> instead of getpagesize.h.
80165         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
80166         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
80167         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
80168         gl_GETPAGESIZE invocation, already handled by module dependency.
80169         * lib/pagealign_alloc.c: Don't include getpagesize.h.
80171 2007-12-02  Bruno Haible  <bruno@clisp.org>
80173         * modules/strings-tests: New file.
80174         * tests/test-strings.c: New file.
80176         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
80177         * lib/strings.in.h: New file.
80178         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
80179         * m4/strings_h.m4: New file.
80180         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
80181         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
80182         * modules/strings: New file.
80183         * modules/string (Makefile.am): Update.
80184         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
80185         Reported by Karl Berry.
80187 2007-12-01  Eric Blake  <ebb9@byu.net>
80189         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
80190         accommodate fix in cygwin 1.5.25.
80192 2007-12-01  Jim Meyering  <meyering@redhat.com>
80194         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
80195         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
80196         that would inhibit utf8-optimization of a regexp containing line-
80197         or buffer-anchors, e.g., `^', `$'.
80199 2007-11-30  Bruno Haible  <bruno@clisp.org>
80201         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
80202         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
80203         glthread_recursive_lock_init.
80204         * lib/lock.c (glthread_recursive_lock_init)
80205         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
80206         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80208 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
80210         New function qset_acl, like set_acl but with syscall semantics.
80211         * lib/acl.h (qset_acl): New decl.
80212         * lib/acl.c (qset_acl): New function.
80213         (set_acl): Use new function.  Use more-consistent diagnostics.
80215 2007-11-28  Jim Meyering  <meyering@redhat.com>
80217         * modules/physmem (License): Change from GPL to LGPLv2+.
80219 2007-11-26  Bruno Haible  <bruno@clisp.org>
80221         * lib/vasnprintf.c (decode_long_double): Don't abort if the
80222         'long double' type has excess precision.
80223         Reported by Jim Meyering in
80224         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
80226 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80228         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
80229         Sync from <http://gnu.org/licenses>.
80230         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
80231         with license text from same location.
80232         * doc/maintain.texi, doc/standards.texi:  Sync from
80233         <http://savannah.gnu.org/projects/gnustandards>.
80235 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
80236         and Jim Meyering  <meyering@redhat.com>
80238         Adjust getdate' grammar to accept a slightly more regular language.
80239         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
80240         Before, the former was rejected.
80241         * lib/getdate.y (digits_to_date_time): New function, factored
80242         out of ...
80243         (number): ...here.  Just call digits_to_date_time.
80244         (hybrid): New non-terminal to handle an <unsigned number,
80245         signed relative offset> sequence consistently.
80247 2007-11-18  Jim Meyering  <meyering@redhat.com>
80249         Pull my changes from coreutils:
80250         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
80251         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
80252         use of $gnulib_tool_option_extras, so that it's separated from the
80253         preceding argument.
80255         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
80256         * build-aux/bootstrap (cp_mark_as_generated): Create any required
80257         parent destination directories before copying a file into place.
80259 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
80261         bootstrap: work also with 4-argument variant of AC_INIT
80262         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
80264 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80266         Port test-getaddrinfo to Solaris.
80267         Problem reported by Bruno Haible in
80268         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
80269         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
80270         explanation of setting 'hints'.
80271         Don't reject an implementation merely because it returns EAI_SERVICE.
80272         (EAI_SERVICE): Define to 0 if not defined.
80274 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
80276         The license of gnu-make and posix-shell is now "GPLed build tool".
80277         * modules/gnu-make (License): Likewise.
80278         * modules/posix-shell (License): Likewise.
80280         New module posix-shell, for determining a POSIX shell
80281         or perhaps something that is close enough to a POSIX shell.
80282         * m4/posix-shell.m4: New file.
80283         * modules/posix-shell: New file.
80285         * MODULES.html.sh: Mention new module.
80287         New module gnu-make, for determining whether we're using GNU Make.
80288         * m4/gnu-make.m4: New file.
80289         * modules/gnu-make: New file.
80290         * MODULES.html.sh: Mention new module.
80292 2007-11-14  Jim Meyering  <meyering@redhat.com>
80294         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
80295         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
80296         use this macro to create a function _definition_.
80297         Remove useless "#undef ARGMATCH_DIE".
80299 2007-11-14  Bruno Haible  <bruno@clisp.org>
80301         * lib/config.charset: Update for OpenBSD 4.1.
80302         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
80304 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
80306         Document 64-bit #if problems in stdint.texi.
80307         * doc/headers/stdint.texi (stdint.h): Mention problems with
80308         64-bit-#if, and how to work around them.
80310         Don't insist on 'long long int' support in the preprocessor.  It
80311         breaks too many things.  For example, PRIdMAX still uses a 'long
80312         long int' format with the latest Sun compiler, even though
80313         HAVE_LONG_LONG_INT isn't defined due to that compiler's
80314         preprocessor problem.  This causes the latest coreutils to dump
80315         core on Solaris 10 sparc with the Sun C compiler.
80316         Instead, fix the 2007-10-16 problem in a different way, by evaluating
80317         the troublesome expressions at configure-time, not at #if-time.
80318         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
80319         preprocessor.
80320         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
80321         compile-time C checks, done at 'configure'-time.
80322         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
80323         * modules/inttypes (Makefile): Substitute the new symbols that
80324         gl_INTTYPES_H now generates.
80325         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
80327 2007-11-12  Bruno Haible  <bruno@clisp.org>
80329         Tests for Unicode character classification functions.
80331         * modules/unictype/bidicategory-byname-tests: New file.
80332         * modules/unictype/bidicategory-name-tests: New file.
80333         * modules/unictype/bidicategory-of-tests: New file.
80334         * modules/unictype/bidicategory-test-tests: New file.
80335         * modules/unictype/block-list-tests: New file.
80336         * modules/unictype/block-of-tests: New file.
80337         * modules/unictype/block-test-tests: New file.
80338         * modules/unictype/category-C-tests: New file.
80339         * modules/unictype/category-Cc-tests: New file.
80340         * modules/unictype/category-Cf-tests: New file.
80341         * modules/unictype/category-Cn-tests: New file.
80342         * modules/unictype/category-Co-tests: New file.
80343         * modules/unictype/category-Cs-tests: New file.
80344         * modules/unictype/category-L-tests: New file.
80345         * modules/unictype/category-Ll-tests: New file.
80346         * modules/unictype/category-Lm-tests: New file.
80347         * modules/unictype/category-Lo-tests: New file.
80348         * modules/unictype/category-Lt-tests: New file.
80349         * modules/unictype/category-Lu-tests: New file.
80350         * modules/unictype/category-M-tests: New file.
80351         * modules/unictype/category-Mc-tests: New file.
80352         * modules/unictype/category-Me-tests: New file.
80353         * modules/unictype/category-Mn-tests: New file.
80354         * modules/unictype/category-N-tests: New file.
80355         * modules/unictype/category-Nd-tests: New file.
80356         * modules/unictype/category-Nl-tests: New file.
80357         * modules/unictype/category-No-tests: New file.
80358         * modules/unictype/category-P-tests: New file.
80359         * modules/unictype/category-Pc-tests: New file.
80360         * modules/unictype/category-Pd-tests: New file.
80361         * modules/unictype/category-Pe-tests: New file.
80362         * modules/unictype/category-Pf-tests: New file.
80363         * modules/unictype/category-Pi-tests: New file.
80364         * modules/unictype/category-Po-tests: New file.
80365         * modules/unictype/category-Ps-tests: New file.
80366         * modules/unictype/category-S-tests: New file.
80367         * modules/unictype/category-Sc-tests: New file.
80368         * modules/unictype/category-Sk-tests: New file.
80369         * modules/unictype/category-Sm-tests: New file.
80370         * modules/unictype/category-So-tests: New file.
80371         * modules/unictype/category-Z-tests: New file.
80372         * modules/unictype/category-Zl-tests: New file.
80373         * modules/unictype/category-Zp-tests: New file.
80374         * modules/unictype/category-Zs-tests: New file.
80375         * modules/unictype/category-and-not-tests: New file.
80376         * modules/unictype/category-and-tests: New file.
80377         * modules/unictype/category-byname-tests: New file.
80378         * modules/unictype/category-name-tests: New file.
80379         * modules/unictype/category-none-tests: New file.
80380         * modules/unictype/category-of-tests: New file.
80381         * modules/unictype/category-or-tests: New file.
80382         * modules/unictype/category-test-withtable-tests: New file.
80383         * modules/unictype/combining-class-tests: New file.
80384         * modules/unictype/ctype-alnum-tests: New file.
80385         * modules/unictype/ctype-alpha-tests: New file.
80386         * modules/unictype/ctype-blank-tests: New file.
80387         * modules/unictype/ctype-cntrl-tests: New file.
80388         * modules/unictype/ctype-digit-tests: New file.
80389         * modules/unictype/ctype-graph-tests: New file.
80390         * modules/unictype/ctype-lower-tests: New file.
80391         * modules/unictype/ctype-print-tests: New file.
80392         * modules/unictype/ctype-punct-tests: New file.
80393         * modules/unictype/ctype-space-tests: New file.
80394         * modules/unictype/ctype-upper-tests: New file.
80395         * modules/unictype/ctype-xdigit-tests: New file.
80396         * modules/unictype/decimal-digit-tests: New file.
80397         * modules/unictype/digit-tests: New file.
80398         * modules/unictype/mirror-tests: New file.
80399         * modules/unictype/numeric-tests: New file.
80400         * modules/unictype/property-alphabetic-tests: New file.
80401         * modules/unictype/property-ascii-hex-digit-tests: New file.
80402         * modules/unictype/property-bidi-arabic-digit-tests: New file.
80403         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
80404         * modules/unictype/property-bidi-block-separator-tests: New file.
80405         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
80406         * modules/unictype/property-bidi-common-separator-tests: New file.
80407         * modules/unictype/property-bidi-control-tests: New file.
80408         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
80409         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
80410         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
80411         * modules/unictype/property-bidi-european-digit-tests: New file.
80412         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
80413         * modules/unictype/property-bidi-left-to-right-tests: New file.
80414         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
80415         * modules/unictype/property-bidi-other-neutral-tests: New file.
80416         * modules/unictype/property-bidi-pdf-tests: New file.
80417         * modules/unictype/property-bidi-segment-separator-tests: New file.
80418         * modules/unictype/property-bidi-whitespace-tests: New file.
80419         * modules/unictype/property-byname-tests: New file.
80420         * modules/unictype/property-combining-tests: New file.
80421         * modules/unictype/property-composite-tests: New file.
80422         * modules/unictype/property-currency-symbol-tests: New file.
80423         * modules/unictype/property-dash-tests: New file.
80424         * modules/unictype/property-decimal-digit-tests: New file.
80425         * modules/unictype/property-default-ignorable-code-point-tests: New file.
80426         * modules/unictype/property-deprecated-tests: New file.
80427         * modules/unictype/property-diacritic-tests: New file.
80428         * modules/unictype/property-extender-tests: New file.
80429         * modules/unictype/property-format-control-tests: New file.
80430         * modules/unictype/property-grapheme-base-tests: New file.
80431         * modules/unictype/property-grapheme-extend-tests: New file.
80432         * modules/unictype/property-grapheme-link-tests: New file.
80433         * modules/unictype/property-hex-digit-tests: New file.
80434         * modules/unictype/property-hyphen-tests: New file.
80435         * modules/unictype/property-id-continue-tests: New file.
80436         * modules/unictype/property-id-start-tests: New file.
80437         * modules/unictype/property-ideographic-tests: New file.
80438         * modules/unictype/property-ids-binary-operator-tests: New file.
80439         * modules/unictype/property-ids-trinary-operator-tests: New file.
80440         * modules/unictype/property-ignorable-control-tests: New file.
80441         * modules/unictype/property-iso-control-tests: New file.
80442         * modules/unictype/property-join-control-tests: New file.
80443         * modules/unictype/property-left-of-pair-tests: New file.
80444         * modules/unictype/property-line-separator-tests: New file.
80445         * modules/unictype/property-logical-order-exception-tests: New file.
80446         * modules/unictype/property-lowercase-tests: New file.
80447         * modules/unictype/property-math-tests: New file.
80448         * modules/unictype/property-non-break-tests: New file.
80449         * modules/unictype/property-not-a-character-tests: New file.
80450         * modules/unictype/property-numeric-tests: New file.
80451         * modules/unictype/property-other-alphabetic-tests: New file.
80452         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
80453         * modules/unictype/property-other-grapheme-extend-tests: New file.
80454         * modules/unictype/property-other-id-continue-tests: New file.
80455         * modules/unictype/property-other-id-start-tests: New file.
80456         * modules/unictype/property-other-lowercase-tests: New file.
80457         * modules/unictype/property-other-math-tests: New file.
80458         * modules/unictype/property-other-uppercase-tests: New file.
80459         * modules/unictype/property-paired-punctuation-tests: New file.
80460         * modules/unictype/property-paragraph-separator-tests: New file.
80461         * modules/unictype/property-pattern-syntax-tests: New file.
80462         * modules/unictype/property-pattern-white-space-tests: New file.
80463         * modules/unictype/property-private-use-tests: New file.
80464         * modules/unictype/property-punctuation-tests: New file.
80465         * modules/unictype/property-quotation-mark-tests: New file.
80466         * modules/unictype/property-radical-tests: New file.
80467         * modules/unictype/property-sentence-terminal-tests: New file.
80468         * modules/unictype/property-soft-dotted-tests: New file.
80469         * modules/unictype/property-space-tests: New file.
80470         * modules/unictype/property-terminal-punctuation-tests: New file.
80471         * modules/unictype/property-test-tests: New file.
80472         * modules/unictype/property-titlecase-tests: New file.
80473         * modules/unictype/property-unassigned-code-value-tests: New file.
80474         * modules/unictype/property-unified-ideograph-tests: New file.
80475         * modules/unictype/property-uppercase-tests: New file.
80476         * modules/unictype/property-variation-selector-tests: New file.
80477         * modules/unictype/property-white-space-tests: New file.
80478         * modules/unictype/property-xid-continue-tests: New file.
80479         * modules/unictype/property-xid-start-tests: New file.
80480         * modules/unictype/property-zero-width-tests: New file.
80481         * modules/unictype/scripts-tests: New file.
80482         * modules/unictype/syntax-c-ident-tests: New file.
80483         * modules/unictype/syntax-c-whitespace-tests: New file.
80484         * modules/unictype/syntax-java-ident-tests: New file.
80485         * modules/unictype/syntax-java-whitespace-tests: New file.
80486         * tests/unictype/test-bidi_byname.c: New file.
80487         * tests/unictype/test-bidi_name.c: New file.
80488         * tests/unictype/test-bidi_of.c: New file.
80489         * tests/unictype/test-bidi_test.c: New file.
80490         * tests/unictype/test-block_list.c: New file.
80491         * tests/unictype/test-block_of.c: New file.
80492         * tests/unictype/test-block_test.c: New file.
80493         * tests/unictype/test-categ_and.c: New file.
80494         * tests/unictype/test-categ_and_not.c: New file.
80495         * tests/unictype/test-categ_byname.c: New file.
80496         * tests/unictype/test-categ_name.c: New file.
80497         * tests/unictype/test-categ_none.c: New file.
80498         * tests/unictype/test-categ_of.c: New file.
80499         * tests/unictype/test-categ_or.c: New file.
80500         * tests/unictype/test-categ_test_withtable.c: New file.
80501         * tests/unictype/test-combining.c: New file.
80502         * tests/unictype/test-decdigit.c: New file.
80503         * tests/unictype/test-digit.c: New file.
80504         * tests/unictype/test-mirror.c: New file.
80505         * tests/unictype/test-numeric.c: New file.
80506         * tests/unictype/test-pr_byname.c: New file.
80507         * tests/unictype/test-pr_test.c: New file.
80508         * tests/unictype/test-predicate-part1.h: New file.
80509         * tests/unictype/test-predicate-part2.h: New file.
80510         * tests/unictype/test-scripts.c: New file.
80511         * tests/unictype/test-sy_c_ident.c: New file.
80512         * tests/unictype/test-sy_java_ident.c: New file.
80514         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
80515         for Unicode 5.0.0.
80516         * tests/unictype/test-categ_Cc.c: Likewise.
80517         * tests/unictype/test-categ_Cf.c: Likewise.
80518         * tests/unictype/test-categ_Cn.c: Likewise.
80519         * tests/unictype/test-categ_Co.c: Likewise.
80520         * tests/unictype/test-categ_Cs.c: Likewise.
80521         * tests/unictype/test-categ_L.c: Likewise.
80522         * tests/unictype/test-categ_Ll.c: Likewise.
80523         * tests/unictype/test-categ_Lm.c: Likewise.
80524         * tests/unictype/test-categ_Lo.c: Likewise.
80525         * tests/unictype/test-categ_Lt.c: Likewise.
80526         * tests/unictype/test-categ_Lu.c: Likewise.
80527         * tests/unictype/test-categ_M.c: Likewise.
80528         * tests/unictype/test-categ_Mc.c: Likewise.
80529         * tests/unictype/test-categ_Me.c: Likewise.
80530         * tests/unictype/test-categ_Mn.c: Likewise.
80531         * tests/unictype/test-categ_N.c: Likewise.
80532         * tests/unictype/test-categ_Nd.c: Likewise.
80533         * tests/unictype/test-categ_Nl.c: Likewise.
80534         * tests/unictype/test-categ_No.c: Likewise.
80535         * tests/unictype/test-categ_P.c: Likewise.
80536         * tests/unictype/test-categ_Pc.c: Likewise.
80537         * tests/unictype/test-categ_Pd.c: Likewise.
80538         * tests/unictype/test-categ_Pe.c: Likewise.
80539         * tests/unictype/test-categ_Pf.c: Likewise.
80540         * tests/unictype/test-categ_Pi.c: Likewise.
80541         * tests/unictype/test-categ_Po.c: Likewise.
80542         * tests/unictype/test-categ_Ps.c: Likewise.
80543         * tests/unictype/test-categ_S.c: Likewise.
80544         * tests/unictype/test-categ_Sc.c: Likewise.
80545         * tests/unictype/test-categ_Sk.c: Likewise.
80546         * tests/unictype/test-categ_Sm.c: Likewise.
80547         * tests/unictype/test-categ_So.c: Likewise.
80548         * tests/unictype/test-categ_Z.c: Likewise.
80549         * tests/unictype/test-categ_Zl.c: Likewise.
80550         * tests/unictype/test-categ_Zp.c: Likewise.
80551         * tests/unictype/test-categ_Zs.c: Likewise.
80552         * tests/unictype/test-ctype_alnum.c: Likewise.
80553         * tests/unictype/test-ctype_alpha.c: Likewise.
80554         * tests/unictype/test-ctype_blank.c: Likewise.
80555         * tests/unictype/test-ctype_cntrl.c: Likewise.
80556         * tests/unictype/test-ctype_digit.c: Likewise.
80557         * tests/unictype/test-ctype_graph.c: Likewise.
80558         * tests/unictype/test-ctype_lower.c: Likewise.
80559         * tests/unictype/test-ctype_print.c: Likewise.
80560         * tests/unictype/test-ctype_punct.c: Likewise.
80561         * tests/unictype/test-ctype_space.c: Likewise.
80562         * tests/unictype/test-ctype_upper.c: Likewise.
80563         * tests/unictype/test-ctype_xdigit.c: Likewise.
80564         * tests/unictype/test-decdigit.h: Likewise.
80565         * tests/unictype/test-digit.h: Likewise.
80566         * tests/unictype/test-numeric.h: Likewise.
80567         * tests/unictype/test-pr_alphabetic.c: Likewise.
80568         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
80569         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
80570         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
80571         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
80572         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
80573         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
80574         * tests/unictype/test-pr_bidi_control.c: Likewise.
80575         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
80576         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
80577         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
80578         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
80579         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
80580         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
80581         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
80582         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
80583         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
80584         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
80585         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
80586         * tests/unictype/test-pr_combining.c: Likewise.
80587         * tests/unictype/test-pr_composite.c: Likewise.
80588         * tests/unictype/test-pr_currency_symbol.c: Likewise.
80589         * tests/unictype/test-pr_dash.c: Likewise.
80590         * tests/unictype/test-pr_decimal_digit.c: Likewise.
80591         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
80592         * tests/unictype/test-pr_deprecated.c: Likewise.
80593         * tests/unictype/test-pr_diacritic.c: Likewise.
80594         * tests/unictype/test-pr_extender.c: Likewise.
80595         * tests/unictype/test-pr_format_control.c: Likewise.
80596         * tests/unictype/test-pr_grapheme_base.c: Likewise.
80597         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
80598         * tests/unictype/test-pr_grapheme_link.c: Likewise.
80599         * tests/unictype/test-pr_hex_digit.c: Likewise.
80600         * tests/unictype/test-pr_hyphen.c: Likewise.
80601         * tests/unictype/test-pr_id_continue.c: Likewise.
80602         * tests/unictype/test-pr_id_start.c: Likewise.
80603         * tests/unictype/test-pr_ideographic.c: Likewise.
80604         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
80605         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
80606         * tests/unictype/test-pr_ignorable_control.c: Likewise.
80607         * tests/unictype/test-pr_iso_control.c: Likewise.
80608         * tests/unictype/test-pr_join_control.c: Likewise.
80609         * tests/unictype/test-pr_left_of_pair.c: Likewise.
80610         * tests/unictype/test-pr_line_separator.c: Likewise.
80611         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
80612         * tests/unictype/test-pr_lowercase.c: Likewise.
80613         * tests/unictype/test-pr_math.c: Likewise.
80614         * tests/unictype/test-pr_non_break.c: Likewise.
80615         * tests/unictype/test-pr_not_a_character.c: Likewise.
80616         * tests/unictype/test-pr_numeric.c: Likewise.
80617         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
80618         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
80619         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
80620         * tests/unictype/test-pr_other_id_continue.c: Likewise.
80621         * tests/unictype/test-pr_other_id_start.c: Likewise.
80622         * tests/unictype/test-pr_other_lowercase.c: Likewise.
80623         * tests/unictype/test-pr_other_math.c: Likewise.
80624         * tests/unictype/test-pr_other_uppercase.c: Likewise.
80625         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
80626         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
80627         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
80628         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
80629         * tests/unictype/test-pr_private_use.c: Likewise.
80630         * tests/unictype/test-pr_punctuation.c: Likewise.
80631         * tests/unictype/test-pr_quotation_mark.c: Likewise.
80632         * tests/unictype/test-pr_radical.c: Likewise.
80633         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
80634         * tests/unictype/test-pr_soft_dotted.c: Likewise.
80635         * tests/unictype/test-pr_space.c: Likewise.
80636         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
80637         * tests/unictype/test-pr_titlecase.c: Likewise.
80638         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
80639         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
80640         * tests/unictype/test-pr_uppercase.c: Likewise.
80641         * tests/unictype/test-pr_variation_selector.c: Likewise.
80642         * tests/unictype/test-pr_white_space.c: Likewise.
80643         * tests/unictype/test-pr_xid_continue.c: Likewise.
80644         * tests/unictype/test-pr_xid_start.c: Likewise.
80645         * tests/unictype/test-pr_zero_width.c: Likewise.
80646         * tests/unictype/test-sy_c_whitespace.c: Likewise.
80647         * tests/unictype/test-sy_java_whitespace.c: Likewise.
80649 2007-11-12  Bruno Haible  <bruno@clisp.org>
80651         Unicode character classification functions.
80652         * lib/unictype.h: New file.
80653         * modules/unictype/base: New file.
80654         * modules/unictype/category-L: New file.
80655         * modules/unictype/category-Lu: New file.
80656         * modules/unictype/category-Ll: New file.
80657         * modules/unictype/category-Lt: New file.
80658         * modules/unictype/category-Lm: New file.
80659         * modules/unictype/category-Lo: New file.
80660         * modules/unictype/category-M: New file.
80661         * modules/unictype/category-Mn: New file.
80662         * modules/unictype/category-Mc: New file.
80663         * modules/unictype/category-Me: New file.
80664         * modules/unictype/category-N: New file.
80665         * modules/unictype/category-Nd: New file.
80666         * modules/unictype/category-Nl: New file.
80667         * modules/unictype/category-No: New file.
80668         * modules/unictype/category-P: New file.
80669         * modules/unictype/category-Pc: New file.
80670         * modules/unictype/category-Pd: New file.
80671         * modules/unictype/category-Ps: New file.
80672         * modules/unictype/category-Pe: New file.
80673         * modules/unictype/category-Pi: New file.
80674         * modules/unictype/category-Pf: New file.
80675         * modules/unictype/category-Po: New file.
80676         * modules/unictype/category-S: New file.
80677         * modules/unictype/category-Sm: New file.
80678         * modules/unictype/category-Sc: New file.
80679         * modules/unictype/category-Sk: New file.
80680         * modules/unictype/category-So: New file.
80681         * modules/unictype/category-Z: New file.
80682         * modules/unictype/category-Zs: New file.
80683         * modules/unictype/category-Zl: New file.
80684         * modules/unictype/category-Zp: New file.
80685         * modules/unictype/category-C: New file.
80686         * modules/unictype/category-Cc: New file.
80687         * modules/unictype/category-Cf: New file.
80688         * modules/unictype/category-Cs: New file.
80689         * modules/unictype/category-Co: New file.
80690         * modules/unictype/category-Cn: New file.
80691         * modules/unictype/category-or: New file.
80692         * modules/unictype/category-of: New file.
80693         * modules/unictype/category-test: New file.
80694         * modules/unictype/category-test-withtable: New file.
80695         * modules/unictype/category-byname: New file.
80696         * modules/unictype/category-none: New file.
80697         * modules/unictype/category-and: New file.
80698         * modules/unictype/category-and-not: New file.
80699         * modules/unictype/category-name: New file.
80700         * modules/unictype/combining-class: New file.
80701         * modules/unictype/category-all: New file.
80702         * modules/unictype/bidicategory-all: New file.
80703         * modules/unictype/bidicategory-byname: New file.
80704         * modules/unictype/bidicategory-name: New file.
80705         * modules/unictype/bidicategory-of: New file.
80706         * modules/unictype/bidicategory-test: New file.
80707         * modules/unictype/decimal-digit: New file.
80708         * modules/unictype/digit: New file.
80709         * modules/unictype/numeric: New file.
80710         * modules/unictype/mirror: New file.
80711         * modules/unictype/property-white-space: New file.
80712         * modules/unictype/property-alphabetic: New file.
80713         * modules/unictype/property-other-alphabetic: New file.
80714         * modules/unictype/property-not-a-character: New file.
80715         * modules/unictype/property-default-ignorable-code-point: New file.
80716         * modules/unictype/property-other-default-ignorable-code-point: New
80717         file.
80718         * modules/unictype/property-deprecated: New file.
80719         * modules/unictype/property-logical-order-exception: New file.
80720         * modules/unictype/property-variation-selector: New file.
80721         * modules/unictype/property-private-use: New file.
80722         * modules/unictype/property-unassigned-code-value: New file.
80723         * modules/unictype/property-uppercase: New file.
80724         * modules/unictype/property-other-uppercase: New file.
80725         * modules/unictype/property-lowercase: New file.
80726         * modules/unictype/property-other-lowercase: New file.
80727         * modules/unictype/property-titlecase: New file.
80728         * modules/unictype/property-soft-dotted: New file.
80729         * modules/unictype/property-id-start: New file.
80730         * modules/unictype/property-other-id-start: New file.
80731         * modules/unictype/property-id-continue: New file.
80732         * modules/unictype/property-other-id-continue: New file.
80733         * modules/unictype/property-xid-start: New file.
80734         * modules/unictype/property-xid-continue: New file.
80735         * modules/unictype/property-pattern-white-space: New file.
80736         * modules/unictype/property-pattern-syntax: New file.
80737         * modules/unictype/property-join-control: New file.
80738         * modules/unictype/property-grapheme-base: New file.
80739         * modules/unictype/property-grapheme-extend: New file.
80740         * modules/unictype/property-other-grapheme-extend: New file.
80741         * modules/unictype/property-grapheme-link: New file.
80742         * modules/unictype/property-bidi-control: New file.
80743         * modules/unictype/property-bidi-left-to-right: New file.
80744         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
80745         * modules/unictype/property-bidi-arabic-right-to-left: New file.
80746         * modules/unictype/property-bidi-european-digit: New file.
80747         * modules/unictype/property-bidi-eur-num-separator: New file.
80748         * modules/unictype/property-bidi-eur-num-terminator: New file.
80749         * modules/unictype/property-bidi-arabic-digit: New file.
80750         * modules/unictype/property-bidi-common-separator: New file.
80751         * modules/unictype/property-bidi-block-separator: New file.
80752         * modules/unictype/property-bidi-segment-separator: New file.
80753         * modules/unictype/property-bidi-whitespace: New file.
80754         * modules/unictype/property-bidi-non-spacing-mark: New file.
80755         * modules/unictype/property-bidi-boundary-neutral: New file.
80756         * modules/unictype/property-bidi-pdf: New file.
80757         * modules/unictype/property-bidi-embedding-or-override: New file.
80758         * modules/unictype/property-bidi-other-neutral: New file.
80759         * modules/unictype/property-hex-digit: New file.
80760         * modules/unictype/property-ascii-hex-digit: New file.
80761         * modules/unictype/property-ideographic: New file.
80762         * modules/unictype/property-unified-ideograph: New file.
80763         * modules/unictype/property-radical: New file.
80764         * modules/unictype/property-ids-binary-operator: New file.
80765         * modules/unictype/property-ids-trinary-operator: New file.
80766         * modules/unictype/property-zero-width: New file.
80767         * modules/unictype/property-space: New file.
80768         * modules/unictype/property-non-break: New file.
80769         * modules/unictype/property-iso-control: New file.
80770         * modules/unictype/property-format-control: New file.
80771         * modules/unictype/property-dash: New file.
80772         * modules/unictype/property-hyphen: New file.
80773         * modules/unictype/property-punctuation: New file.
80774         * modules/unictype/property-line-separator: New file.
80775         * modules/unictype/property-paragraph-separator: New file.
80776         * modules/unictype/property-quotation-mark: New file.
80777         * modules/unictype/property-sentence-terminal: New file.
80778         * modules/unictype/property-terminal-punctuation: New file.
80779         * modules/unictype/property-currency-symbol: New file.
80780         * modules/unictype/property-math: New file.
80781         * modules/unictype/property-other-math: New file.
80782         * modules/unictype/property-paired-punctuation: New file.
80783         * modules/unictype/property-left-of-pair: New file.
80784         * modules/unictype/property-combining: New file.
80785         * modules/unictype/property-composite: New file.
80786         * modules/unictype/property-decimal-digit: New file.
80787         * modules/unictype/property-numeric: New file.
80788         * modules/unictype/property-diacritic: New file.
80789         * modules/unictype/property-extender: New file.
80790         * modules/unictype/property-ignorable-control: New file.
80791         * modules/unictype/property-test: New file.
80792         * modules/unictype/property-byname: New file.
80793         * modules/unictype/property-all: New file.
80794         * modules/unictype/scripts: New file.
80795         * modules/unictype/scripts-all: New file.
80796         * modules/unictype/block-of: New file.
80797         * modules/unictype/block-test: New file.
80798         * modules/unictype/block-list: New file.
80799         * modules/unictype/block-all: New file.
80800         * modules/unictype/syntax-c-whitespace: New file.
80801         * modules/unictype/syntax-java-whitespace: New file.
80802         * modules/unictype/syntax-c-ident: New file.
80803         * modules/unictype/syntax-java-ident: New file.
80804         * modules/unictype/ctype-alnum: New file.
80805         * modules/unictype/ctype-alpha: New file.
80806         * modules/unictype/ctype-cntrl: New file.
80807         * modules/unictype/ctype-digit: New file.
80808         * modules/unictype/ctype-graph: New file.
80809         * modules/unictype/ctype-lower: New file.
80810         * modules/unictype/ctype-print: New file.
80811         * modules/unictype/ctype-punct: New file.
80812         * modules/unictype/ctype-space: New file.
80813         * modules/unictype/ctype-upper: New file.
80814         * modules/unictype/ctype-xdigit: New file.
80815         * modules/unictype/ctype-blank: New file.
80816         * lib/unictype/bidi_byname.c: New file.
80817         * lib/unictype/bidi_name.c: New file.
80818         * lib/unictype/bidi_of.c: New file.
80819         * lib/unictype/bidi_test.c: New file.
80820         * lib/unictype/bitmap.h: New file.
80821         * lib/unictype/block_test.c: New file.
80822         * lib/unictype/blocks.c: New file.
80823         * lib/unictype/categ_C.c: New file.
80824         * lib/unictype/categ_Cc.c: New file.
80825         * lib/unictype/categ_Cf.c: New file.
80826         * lib/unictype/categ_Cn.c: New file.
80827         * lib/unictype/categ_Co.c: New file.
80828         * lib/unictype/categ_Cs.c: New file.
80829         * lib/unictype/categ_L.c: New file.
80830         * lib/unictype/categ_Ll.c: New file.
80831         * lib/unictype/categ_Lm.c: New file.
80832         * lib/unictype/categ_Lo.c: New file.
80833         * lib/unictype/categ_Lt.c: New file.
80834         * lib/unictype/categ_Lu.c: New file.
80835         * lib/unictype/categ_M.c: New file.
80836         * lib/unictype/categ_Mc.c: New file.
80837         * lib/unictype/categ_Me.c: New file.
80838         * lib/unictype/categ_Mn.c: New file.
80839         * lib/unictype/categ_N.c: New file.
80840         * lib/unictype/categ_Nd.c: New file.
80841         * lib/unictype/categ_Nl.c: New file.
80842         * lib/unictype/categ_No.c: New file.
80843         * lib/unictype/categ_P.c: New file.
80844         * lib/unictype/categ_Pc.c: New file.
80845         * lib/unictype/categ_Pd.c: New file.
80846         * lib/unictype/categ_Pe.c: New file.
80847         * lib/unictype/categ_Pf.c: New file.
80848         * lib/unictype/categ_Pi.c: New file.
80849         * lib/unictype/categ_Po.c: New file.
80850         * lib/unictype/categ_Ps.c: New file.
80851         * lib/unictype/categ_S.c: New file.
80852         * lib/unictype/categ_Sc.c: New file.
80853         * lib/unictype/categ_Sk.c: New file.
80854         * lib/unictype/categ_Sm.c: New file.
80855         * lib/unictype/categ_So.c: New file.
80856         * lib/unictype/categ_Z.c: New file.
80857         * lib/unictype/categ_Zl.c: New file.
80858         * lib/unictype/categ_Zp.c: New file.
80859         * lib/unictype/categ_Zs.c: New file.
80860         * lib/unictype/categ_and.c: New file.
80861         * lib/unictype/categ_and_not.c: New file.
80862         * lib/unictype/categ_byname.c: New file.
80863         * lib/unictype/categ_name.c: New file.
80864         * lib/unictype/categ_none.c: New file.
80865         * lib/unictype/categ_of.c: New file.
80866         * lib/unictype/categ_or.c: New file.
80867         * lib/unictype/categ_test.c: New file.
80868         * lib/unictype/combining.c: New file.
80869         * lib/unictype/ctype_alnum.c: New file.
80870         * lib/unictype/ctype_alpha.c: New file.
80871         * lib/unictype/ctype_blank.c: New file.
80872         * lib/unictype/ctype_cntrl.c: New file.
80873         * lib/unictype/ctype_digit.c: New file.
80874         * lib/unictype/ctype_graph.c: New file.
80875         * lib/unictype/ctype_lower.c: New file.
80876         * lib/unictype/ctype_print.c: New file.
80877         * lib/unictype/ctype_punct.c: New file.
80878         * lib/unictype/ctype_space.c: New file.
80879         * lib/unictype/ctype_upper.c: New file.
80880         * lib/unictype/ctype_xdigit.c: New file.
80881         * lib/unictype/decdigit.c: New file.
80882         * lib/unictype/digit.c: New file.
80883         * lib/unictype/identsyntaxmap.h: New file.
80884         * lib/unictype/mirror.c: New file.
80885         * lib/unictype/numeric.c: New file.
80886         * lib/unictype/pr_alphabetic.c: New file.
80887         * lib/unictype/pr_ascii_hex_digit.c: New file.
80888         * lib/unictype/pr_bidi_arabic_digit.c: New file.
80889         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
80890         * lib/unictype/pr_bidi_block_separator.c: New file.
80891         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
80892         * lib/unictype/pr_bidi_common_separator.c: New file.
80893         * lib/unictype/pr_bidi_control.c: New file.
80894         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
80895         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
80896         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
80897         * lib/unictype/pr_bidi_european_digit.c: New file.
80898         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
80899         * lib/unictype/pr_bidi_left_to_right.c: New file.
80900         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
80901         * lib/unictype/pr_bidi_other_neutral.c: New file.
80902         * lib/unictype/pr_bidi_pdf.c: New file.
80903         * lib/unictype/pr_bidi_segment_separator.c: New file.
80904         * lib/unictype/pr_bidi_whitespace.c: New file.
80905         * lib/unictype/pr_byname.c: New file.
80906         * lib/unictype/pr_byname.gperf: New file.
80907         * lib/unictype/pr_combining.c: New file.
80908         * lib/unictype/pr_composite.c: New file.
80909         * lib/unictype/pr_currency_symbol.c: New file.
80910         * lib/unictype/pr_dash.c: New file.
80911         * lib/unictype/pr_decimal_digit.c: New file.
80912         * lib/unictype/pr_default_ignorable_code_point.c: New file.
80913         * lib/unictype/pr_deprecated.c: New file.
80914         * lib/unictype/pr_diacritic.c: New file.
80915         * lib/unictype/pr_extender.c: New file.
80916         * lib/unictype/pr_format_control.c: New file.
80917         * lib/unictype/pr_grapheme_base.c: New file.
80918         * lib/unictype/pr_grapheme_extend.c: New file.
80919         * lib/unictype/pr_grapheme_link.c: New file.
80920         * lib/unictype/pr_hex_digit.c: New file.
80921         * lib/unictype/pr_hyphen.c: New file.
80922         * lib/unictype/pr_id_continue.c: New file.
80923         * lib/unictype/pr_id_start.c: New file.
80924         * lib/unictype/pr_ideographic.c: New file.
80925         * lib/unictype/pr_ids_binary_operator.c: New file.
80926         * lib/unictype/pr_ids_trinary_operator.c: New file.
80927         * lib/unictype/pr_ignorable_control.c: New file.
80928         * lib/unictype/pr_iso_control.c: New file.
80929         * lib/unictype/pr_join_control.c: New file.
80930         * lib/unictype/pr_left_of_pair.c: New file.
80931         * lib/unictype/pr_line_separator.c: New file.
80932         * lib/unictype/pr_logical_order_exception.c: New file.
80933         * lib/unictype/pr_lowercase.c: New file.
80934         * lib/unictype/pr_math.c: New file.
80935         * lib/unictype/pr_non_break.c: New file.
80936         * lib/unictype/pr_not_a_character.c: New file.
80937         * lib/unictype/pr_numeric.c: New file.
80938         * lib/unictype/pr_other_alphabetic.c: New file.
80939         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
80940         * lib/unictype/pr_other_grapheme_extend.c: New file.
80941         * lib/unictype/pr_other_id_continue.c: New file.
80942         * lib/unictype/pr_other_id_start.c: New file.
80943         * lib/unictype/pr_other_lowercase.c: New file.
80944         * lib/unictype/pr_other_math.c: New file.
80945         * lib/unictype/pr_other_uppercase.c: New file.
80946         * lib/unictype/pr_paired_punctuation.c: New file.
80947         * lib/unictype/pr_paragraph_separator.c: New file.
80948         * lib/unictype/pr_pattern_syntax.c: New file.
80949         * lib/unictype/pr_pattern_white_space.c: New file.
80950         * lib/unictype/pr_private_use.c: New file.
80951         * lib/unictype/pr_punctuation.c: New file.
80952         * lib/unictype/pr_quotation_mark.c: New file.
80953         * lib/unictype/pr_radical.c: New file.
80954         * lib/unictype/pr_sentence_terminal.c: New file.
80955         * lib/unictype/pr_soft_dotted.c: New file.
80956         * lib/unictype/pr_space.c: New file.
80957         * lib/unictype/pr_terminal_punctuation.c: New file.
80958         * lib/unictype/pr_test.c: New file.
80959         * lib/unictype/pr_titlecase.c: New file.
80960         * lib/unictype/pr_unassigned_code_value.c: New file.
80961         * lib/unictype/pr_unified_ideograph.c: New file.
80962         * lib/unictype/pr_uppercase.c: New file.
80963         * lib/unictype/pr_variation_selector.c: New file.
80964         * lib/unictype/pr_white_space.c: New file.
80965         * lib/unictype/pr_xid_continue.c: New file.
80966         * lib/unictype/pr_xid_start.c: New file.
80967         * lib/unictype/pr_zero_width.c: New file.
80968         * lib/unictype/scripts.c: New file.
80969         * lib/unictype/sy_c_ident.c: New file.
80970         * lib/unictype/sy_c_whitespace.c: New file.
80971         * lib/unictype/sy_java_ident.c: New file.
80972         * lib/unictype/sy_java_whitespace.c: New file.
80974         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
80975         Unicode 5.0.0.
80976         * lib/unictype/blocks.h: Likewise.
80977         * lib/unictype/categ_C.h: Likewise.
80978         * lib/unictype/categ_Cc.h: Likewise.
80979         * lib/unictype/categ_Cf.h: Likewise.
80980         * lib/unictype/categ_Cn.h: Likewise.
80981         * lib/unictype/categ_Co.h: Likewise.
80982         * lib/unictype/categ_Cs.h: Likewise.
80983         * lib/unictype/categ_L.h: Likewise.
80984         * lib/unictype/categ_Ll.h: Likewise.
80985         * lib/unictype/categ_Lm.h: Likewise.
80986         * lib/unictype/categ_Lo.h: Likewise.
80987         * lib/unictype/categ_Lt.h: Likewise.
80988         * lib/unictype/categ_Lu.h: Likewise.
80989         * lib/unictype/categ_M.h: Likewise.
80990         * lib/unictype/categ_Mc.h: Likewise.
80991         * lib/unictype/categ_Me.h: Likewise.
80992         * lib/unictype/categ_Mn.h: Likewise.
80993         * lib/unictype/categ_N.h: Likewise.
80994         * lib/unictype/categ_Nd.h: Likewise.
80995         * lib/unictype/categ_Nl.h: Likewise.
80996         * lib/unictype/categ_No.h: Likewise.
80997         * lib/unictype/categ_P.h: Likewise.
80998         * lib/unictype/categ_Pc.h: Likewise.
80999         * lib/unictype/categ_Pd.h: Likewise.
81000         * lib/unictype/categ_Pe.h: Likewise.
81001         * lib/unictype/categ_Pf.h: Likewise.
81002         * lib/unictype/categ_Pi.h: Likewise.
81003         * lib/unictype/categ_Po.h: Likewise.
81004         * lib/unictype/categ_Ps.h: Likewise.
81005         * lib/unictype/categ_S.h: Likewise.
81006         * lib/unictype/categ_Sc.h: Likewise.
81007         * lib/unictype/categ_Sk.h: Likewise.
81008         * lib/unictype/categ_Sm.h: Likewise.
81009         * lib/unictype/categ_So.h: Likewise.
81010         * lib/unictype/categ_Z.h: Likewise.
81011         * lib/unictype/categ_Zl.h: Likewise.
81012         * lib/unictype/categ_Zp.h: Likewise.
81013         * lib/unictype/categ_Zs.h: Likewise.
81014         * lib/unictype/categ_of.h: Likewise.
81015         * lib/unictype/combining.h: Likewise.
81016         * lib/unictype/ctype_alnum.h: Likewise.
81017         * lib/unictype/ctype_alpha.h: Likewise.
81018         * lib/unictype/ctype_blank.h: Likewise.
81019         * lib/unictype/ctype_cntrl.h: Likewise.
81020         * lib/unictype/ctype_digit.h: Likewise.
81021         * lib/unictype/ctype_graph.h: Likewise.
81022         * lib/unictype/ctype_lower.h: Likewise.
81023         * lib/unictype/ctype_print.h: Likewise.
81024         * lib/unictype/ctype_punct.h: Likewise.
81025         * lib/unictype/ctype_space.h: Likewise.
81026         * lib/unictype/ctype_upper.h: Likewise.
81027         * lib/unictype/ctype_xdigit.h: Likewise.
81028         * lib/unictype/decdigit.h: Likewise.
81029         * lib/unictype/digit.h: Likewise.
81030         * lib/unictype/mirror.h: Likewise.
81031         * lib/unictype/numeric.h: Likewise.
81032         * lib/unictype/pr_alphabetic.h: Likewise.
81033         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
81034         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
81035         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
81036         * lib/unictype/pr_bidi_block_separator.h: Likewise.
81037         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
81038         * lib/unictype/pr_bidi_common_separator.h: Likewise.
81039         * lib/unictype/pr_bidi_control.h: Likewise.
81040         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
81041         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
81042         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
81043         * lib/unictype/pr_bidi_european_digit.h: Likewise.
81044         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
81045         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
81046         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
81047         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
81048         * lib/unictype/pr_bidi_pdf.h: Likewise.
81049         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
81050         * lib/unictype/pr_bidi_whitespace.h: Likewise.
81051         * lib/unictype/pr_combining.h: Likewise.
81052         * lib/unictype/pr_composite.h: Likewise.
81053         * lib/unictype/pr_currency_symbol.h: Likewise.
81054         * lib/unictype/pr_dash.h: Likewise.
81055         * lib/unictype/pr_decimal_digit.h: Likewise.
81056         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
81057         * lib/unictype/pr_deprecated.h: Likewise.
81058         * lib/unictype/pr_diacritic.h: Likewise.
81059         * lib/unictype/pr_extender.h: Likewise.
81060         * lib/unictype/pr_format_control.h: Likewise.
81061         * lib/unictype/pr_grapheme_base.h: Likewise.
81062         * lib/unictype/pr_grapheme_extend.h: Likewise.
81063         * lib/unictype/pr_grapheme_link.h: Likewise.
81064         * lib/unictype/pr_hex_digit.h: Likewise.
81065         * lib/unictype/pr_hyphen.h: Likewise.
81066         * lib/unictype/pr_id_continue.h: Likewise.
81067         * lib/unictype/pr_id_start.h: Likewise.
81068         * lib/unictype/pr_ideographic.h: Likewise.
81069         * lib/unictype/pr_ids_binary_operator.h: Likewise.
81070         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
81071         * lib/unictype/pr_ignorable_control.h: Likewise.
81072         * lib/unictype/pr_iso_control.h: Likewise.
81073         * lib/unictype/pr_join_control.h: Likewise.
81074         * lib/unictype/pr_left_of_pair.h: Likewise.
81075         * lib/unictype/pr_line_separator.h: Likewise.
81076         * lib/unictype/pr_logical_order_exception.h: Likewise.
81077         * lib/unictype/pr_lowercase.h: Likewise.
81078         * lib/unictype/pr_math.h: Likewise.
81079         * lib/unictype/pr_non_break.h: Likewise.
81080         * lib/unictype/pr_not_a_character.h: Likewise.
81081         * lib/unictype/pr_numeric.h: Likewise.
81082         * lib/unictype/pr_other_alphabetic.h: Likewise.
81083         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
81084         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
81085         * lib/unictype/pr_other_id_continue.h: Likewise.
81086         * lib/unictype/pr_other_id_start.h: Likewise.
81087         * lib/unictype/pr_other_lowercase.h: Likewise.
81088         * lib/unictype/pr_other_math.h: Likewise.
81089         * lib/unictype/pr_other_uppercase.h: Likewise.
81090         * lib/unictype/pr_paired_punctuation.h: Likewise.
81091         * lib/unictype/pr_paragraph_separator.h: Likewise.
81092         * lib/unictype/pr_pattern_syntax.h: Likewise.
81093         * lib/unictype/pr_pattern_white_space.h: Likewise.
81094         * lib/unictype/pr_private_use.h: Likewise.
81095         * lib/unictype/pr_punctuation.h: Likewise.
81096         * lib/unictype/pr_quotation_mark.h: Likewise.
81097         * lib/unictype/pr_radical.h: Likewise.
81098         * lib/unictype/pr_sentence_terminal.h: Likewise.
81099         * lib/unictype/pr_soft_dotted.h: Likewise.
81100         * lib/unictype/pr_space.h: Likewise.
81101         * lib/unictype/pr_terminal_punctuation.h: Likewise.
81102         * lib/unictype/pr_titlecase.h: Likewise.
81103         * lib/unictype/pr_unassigned_code_value.h: Likewise.
81104         * lib/unictype/pr_unified_ideograph.h: Likewise.
81105         * lib/unictype/pr_uppercase.h: Likewise.
81106         * lib/unictype/pr_variation_selector.h: Likewise.
81107         * lib/unictype/pr_white_space.h: Likewise.
81108         * lib/unictype/pr_xid_continue.h: Likewise.
81109         * lib/unictype/pr_xid_start.h: Likewise.
81110         * lib/unictype/pr_zero_width.h: Likewise.
81111         * lib/unictype/scripts.h: Likewise.
81112         * lib/unictype/scripts_byname.gperf: Likewise.
81113         * lib/unictype/sy_c_ident.h: Likewise.
81114         * lib/unictype/sy_c_whitespace.h: Likewise.
81115         * lib/unictype/sy_java_ident.h: Likewise.
81116         * lib/unictype/sy_java_whitespace.h: Likewise.
81118         * lib/unictype/Makefile: New file.
81119         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
81120         glibc.
81121         * lib/unictype/3level.h: New file, copied from glibc.
81122         * lib/unictype/3levelbit.h: New file.
81124 2007-11-11  Bruno Haible  <bruno@clisp.org>
81126         * modules/gperf: New file.
81127         * modules/iconv_open (Depends-on): Add it.
81128         (Makefile.am): Remove the GPERF definition.
81130 2007-11-11  Bruno Haible  <bruno@clisp.org>
81132         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
81133         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
81135 2007-11-11  Bruno Haible  <bruno@clisp.org>
81137         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
81138         (usage): Remove function.
81140 2007-11-11  Bruno Haible  <bruno@clisp.org>
81142         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
81143         gl_FUNC_CEILF_LIBS.
81144         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
81145         gl_FUNC_CEIL_LIBS.
81146         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
81147         gl_FUNC_CEILL_LIBS.
81148         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
81149         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
81150         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
81152 2007-11-11  Bruno Haible  <bruno@clisp.org>
81154         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
81155         roundf were declared but do not exist on functions.
81156         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
81157         roundl were declared but do not exist on functions.
81158         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
81159         HAVE_FLOORL_AND_CEILL, respectively.
81160         Needed for Sun C on Solaris 10.
81162 2007-11-11  Bruno Haible  <bruno@clisp.org>
81164         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
81165         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
81166         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
81167         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
81168         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
81169         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
81170         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
81171         HAVE_DECL_ROUNDF.
81172         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
81173         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
81174         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
81175         of HAVE_DECL_ROUND*.
81176         * modules/math (Makefile.am): Update.
81178 2007-11-10  Bruno Haible  <bruno@clisp.org>
81180         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
81181         ptrdiff_t as m4/intl.m4.
81183 2007-11-10  Jim Meyering  <meyering@redhat.com>
81185         Avoid link failure for the argmatch test.
81186         * tests/test-argmatch.c (usage): Define function to avoid a link
81187         failure: argmatch_die requires a usage function.
81189 2007-11-09  Bruno Haible  <bruno@clisp.org>
81191         * doc/functions/snprintf.texi: Mention BeOS deficiency.
81192         * doc/functions/vsnprintf.texi: Likewise.
81193         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
81194         with a size argument < 2.
81196 2007-11-09  Bruno Haible  <bruno@clisp.org>
81198         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
81199         buffer. Fixes an inefficiency introduced on 2007-11-03.
81201 2007-11-09  Bruno Haible  <bruno@clisp.org>
81203         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
81204         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
81206 2007-11-08  Jim Meyering  <meyering@redhat.com>
81208         Change cache variable name prefix "jm_" to "gl_" everywhere.
81209         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
81210         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
81211         * m4/uptime.m4: s/gl_/jm_/
81213 2007-11-07  Bruno Haible  <bruno@clisp.org>
81215         Update to GNU gettext 0.17.
81216         * m4/intl.m4: Update to GNU gettext 0.17.
81217         * m4/po.m4: Likewise.
81218         * modules/gettext (Files): Remove m4/ulonglong.m4.
81219         (configure.ac): Require gettext infrastructure from version 0.17.
81221 2007-11-06  Bruno Haible  <bruno@clisp.org>
81223         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
81224         symbolic values are not defined in a public header.
81225         * lib/freadable.c (freadable) [QNX]: Likewise.
81226         * lib/freadahead.c (freadahead) [QNX]: Likewise.
81227         * lib/freading.c (freading) [QNX]: Likewise.
81228         * lib/fseterr.c (fseterr) [QNX]: Likewise.
81229         * lib/fwritable.c (fwritable) [QNX]: Likewise.
81230         * lib/fwriting.c (fwriting) [QNX]: Likewise.
81231         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
81232         Reported by Alain Magloire.
81234         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
81236 2007-11-05  Bruno Haible  <bruno@clisp.org>
81238         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
81239         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
81240         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
81241         Reported by Eric Blake.
81243 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81244             Bruno Haible  <bruno@clisp.org>
81246         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
81247         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
81248         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
81249         (malloc): Undefine also before including <stdlib.h>.
81250         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
81251         Needed on OSF/1 4.0.
81253 2007-11-05  Jim Meyering  <meyering@redhat.com>
81255         git-version-gen: sync from coreutils.
81256         * build-aux/git-version-gen: Add comments.
81257         Change the first '-' to '.' in the snapshot version string,
81258         e.g., 6.9-377-08144 -> 6.9.377-08144
81259         Remove first parameter.
81260         Don't declare a version "-dirty" merely because a time
81261         stamp has changed.
81263 2007-11-04  Bruno Haible  <bruno@clisp.org>
81265         * lib/lock.h: Protect all macro definitions containing an 'if'
81266         statement through a "do { ... } while (0)".
81267         * lib/tls.h: Likewise.
81269 2007-11-04  Bruno Haible  <bruno@clisp.org>
81271         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
81273 2007-11-04  Bruno Haible  <bruno@clisp.org>
81275         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
81276         * modules/fprintf-posix (Depends-on): Add nocrash.
81277         * modules/snprintf-posix (Depends-on): Likewise.
81278         * modules/sprintf-posix (Depends-on): Likewise.
81279         * modules/vasnprintf-posix (Depends-on): Likewise.
81280         * modules/vasprintf-posix (Depends-on): Likewise.
81281         * modules/vfprintf-posix (Depends-on): Likewise.
81282         * modules/vsnprintf-posix (Depends-on): Likewise.
81283         * modules/vsprintf-posix (Depends-on): Likewise.
81284         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
81285         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
81286         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
81287         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
81288         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
81289         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
81290         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
81292 2007-11-04  Bruno Haible  <bruno@clisp.org>
81294         * modules/nocrash: New file.
81295         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
81296         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
81298 2007-11-04  Bruno Haible  <bruno@clisp.org>
81300         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
81301         precision handling.
81302         * tests/test-vasprintf-posix.c (test_function): Likewise.
81303         * tests/test-snprintf-posix.h (test_function): Likewise.
81304         * tests/test-sprintf-posix.h (test_function): Likewise.
81306         Fix *printf behaviour for large precisions on mingw and BeOS.
81307         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
81308         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
81309         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
81310         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
81311         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
81312         gl_PRINTF_PRECISION and test its result. Invoke
81313         gl_PREREQ_VASNPRINTF_PRECISION.
81314         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
81315         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
81316         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
81317         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
81318         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
81319         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
81320         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
81321         * doc/functions/fprintf.texi: Update.
81322         * doc/functions/printf.texi: Update.
81323         * doc/functions/snprintf.texi: Update.
81324         * doc/functions/sprintf.texi: Update.
81325         * doc/functions/vfprintf.texi: Update.
81326         * doc/functions/vprintf.texi: Update.
81327         * doc/functions/vsnprintf.texi: Update.
81328         * doc/functions/vsprintf.texi: Update.
81330 2007-11-04  Bruno Haible  <bruno@clisp.org>
81332         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
81334 2007-11-04  Bruno Haible  <bruno@clisp.org>
81336         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
81337         Reported by Sylvain Beucler <beuc@gnu.org>.
81339 2007-11-03  Bruno Haible  <bruno@clisp.org>
81341         * tests/test-fprintf-posix2.sh: New file.
81342         * tests/test-fprintf-posix2.c: New file.
81343         * modules/fprintf-posix-tests (Files): Add them.
81344         (TESTS): Add test-fprintf-posix2.sh.
81345         (configure.ac): Check for getrlimit and setrlimit.
81346         (check_PROGRAMS): Add test-fprintf-posix2.
81348         * tests/test-printf-posix2.sh: New file.
81349         * tests/test-printf-posix2.c: New file.
81350         * modules/printf-posix-tests (Files): Add them.
81351         (TESTS): Add test-printf-posix2.sh.
81352         (configure.ac): Check for getrlimit and setrlimit.
81353         (check_PROGRAMS): Add test-printf-posix2.
81355         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
81356         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
81357         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
81358         (decode_double): New function, copied from decode_long_double.
81359         (scale10_round_decimal_decoded): New function, extracted from
81360         scale10_round_decimal_long_double.
81361         (scale10_round_decimal_long_double): Use it.
81362         (scale10_round_decimal_double): New function.
81363         (floorlog10): New function.
81364         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
81365         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
81366         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
81367         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
81368         gl_PRINTF_ENOMEM and test its result. Invoke
81369         gl_PREREQ_VASNPRINTF_ENOMEM.
81370         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
81371         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
81372         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
81373         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
81374         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
81375         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
81376         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
81377         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
81378         * modules/snprintf-posix (Depends-on): Likewise.
81379         * modules/sprintf-posix (Depends-on): Likewise.
81380         * modules/vasnprintf-posix (Depends-on): Likewise.
81381         * modules/vasprintf-posix (Depends-on): Likewise.
81382         * modules/vfprintf-posix (Depends-on): Likewise.
81383         * modules/vsnprintf-posix (Depends-on): Likewise.
81384         * modules/vsprintf-posix (Depends-on): Likewise.
81385         * doc/functions/fprintf.texi: Update.
81386         * doc/functions/printf.texi: Update.
81387         * doc/functions/snprintf.texi: Update.
81388         * doc/functions/sprintf.texi: Update.
81389         * doc/functions/vfprintf.texi: Update.
81390         * doc/functions/vprintf.texi: Update.
81391         * doc/functions/vsnprintf.texi: Update.
81392         * doc/functions/vsprintf.texi: Update.
81394 2007-11-03  Bruno Haible  <bruno@clisp.org>
81396         * modules/frexp-nolibm-tests: New file.
81398         * modules/frexp-nolibm: New file.
81399         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
81401 2007-11-03  Bruno Haible  <bruno@clisp.org>
81403         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
81404         value is C99 compliant.
81405         Needed for OSF/1 5.1.
81407 2007-11-03  Bruno Haible  <bruno@clisp.org>
81409         Fix out-of-memory handling of vasnprintf.
81410         * lib/printf-parse.c: Include <errno.h>.
81411         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
81412         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
81413         is already set.
81415 2007-11-02  Eric Blake  <ebb9@byu.net>
81417         Fix tests on cygwin.
81418         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
81420 2007-11-01  Bruno Haible  <bruno@clisp.org>
81422         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
81423         warning.
81424         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
81425         needed for POSIX compatibility.
81427 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
81429         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
81430         for compatibility with GNU.
81432 2007-11-01  Bruno Haible  <bruno@clisp.org>
81434         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
81435         (putenv): Renamed from rpl_putenv. Change argument type from
81436         'const char *' to 'char *'.
81437         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
81438         of defining putenv in config.h, just set REPLACE_PUTENV.
81439         * modules/putenv (Depends-on): Add stdlib.
81440         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
81441         (Include): Use <stdlib.h>.
81442         * lib/stdlib.in.h (putenv): New declaration.
81443         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
81444         REPLACE_PUTENV.
81445         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
81446         REPLACE_PUTENV.
81447         Needed for MacOS X 10.5.0.
81448         Reported by Peter O'Gorman <peter@pogma.com>.
81450 2007-11-01  Jim Meyering  <meyering@redhat.com>
81452         Treat an empty date string exactly like "0".
81453         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
81454         if the remaining date string (to be parsed) is empty, use "0".
81455         Reported by Mischa Molhoek and discussed in this thread:
81456         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
81458 2007-10-31  Bruno Haible  <bruno@clisp.org>
81460         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
81461         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
81462         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
81463         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
81464         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
81465         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
81467 2007-10-31  Bruno Haible  <bruno@clisp.org>
81469         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
81470         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
81471         (AC_TYPE_LONG_LONG_INT): Use it.
81472         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
81473         it as well.
81474         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
81475         to m4/longlong.m4.
81476         * modules/stdint (Files): Remove m4/ulonglong.m4.
81477         * modules/strtoull (Files): Use m4/longlong.m4 instead of
81478         m4/ulonglong.m4.
81479         * modules/strtoumax (Files): Likewise.
81481 2007-10-30  Bruno Haible  <bruno@clisp.org>
81483         * modules/xvasprintf-posix: New file.
81484         Suggested by Eric Blake.
81486 2007-10-30  Bruno Haible  <bruno@clisp.org>
81488         * modules/xprintf-posix-tests: New file.
81489         * tests/test-xprintf-posix.sh: New file.
81490         * tests/test-xprintf-posix.c: New file.
81491         * tests/test-xfprintf-posix.c: New file.
81493         * modules/xprintf-posix: New file.
81495 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81497         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
81498         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
81499         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
81501 2007-10-29  Bruno Haible  <bruno@clisp.org>
81503         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
81504         contain the special marker '_cv_'.
81505         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
81506         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
81507         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
81508         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
81509         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
81510         Reported by Ralf Wildenhues.
81512 2007-10-29  Bruno Haible  <bruno@clisp.org>
81514         * gnulib-tool (func_import): When --lgpl is not specified, set
81515         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
81516         GPLv3.
81517         Reported by Simon Josefsson.
81519 2007-10-28  Bruno Haible  <bruno@clisp.org>
81521         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
81522         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
81523         HAVE_DECL_ISFINITE.
81524         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
81525         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
81526         HAVE_DECL_ISFINITE.
81528 2007-10-28  Bruno Haible  <bruno@clisp.org>
81530         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
81531         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
81533 2007-10-28  Bruno Haible  <bruno@clisp.org>
81535         Fix link errors with Sun C 5.0 on Solaris 10.
81536         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
81537         function is declared but not present in the compiler's libm.
81538         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
81539         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
81540         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
81541         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
81542         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
81543         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
81544         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
81545         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
81546         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
81547         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
81548         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
81549         HAVE_DECL_FLOORL.
81551 2007-10-28  Bruno Haible  <bruno@clisp.org>
81553         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
81554         gl_FUNC_FLOORL. Cache the result.
81555         (gl_FUNC_FLOORL): Use it.
81556         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
81557         gl_FUNC_CEILL. Cache the result.
81558         (gl_FUNC_CEILL): Use it.
81560         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
81561         gl_FUNC_FLOOR. Cache the result.
81562         (gl_FUNC_FLOOR): Use it.
81563         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
81564         gl_FUNC_CEIL. Cache the result.
81565         (gl_FUNC_CEIL): Use it.
81567         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
81568         gl_FUNC_FLOORF. Cache the result.
81569         (gl_FUNC_FLOORF): Use it.
81570         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
81571         gl_FUNC_CEILF. Cache the result.
81572         (gl_FUNC_CEILF): Use it.
81574 2007-10-28  Bruno Haible  <bruno@clisp.org>
81576         * gnulib-tool: Allow specifying the LGPL version number through
81577         --lgpl=2 or --lgpl=3.
81578         (func_usage): Document --lgpl with argument.
81579         Handle --lgpl=... arguments.
81580         (func_import): Recognize also gl_LGPL calls with an argument. When
81581         --lgpl=2 is used and the module's license is just LGPL, report an
81582         error. Set sed_transform_lib_file according to the lgpl variable. In
81583         the generated files, use --lgpl or gl_LGPL invocations with argument,
81584         if necessary.
81585         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
81586         an LGPv2+ license.
81587         * doc/gnulib-tool.texi (Modified imports): Update explanation of
81588         gl_LGPL macro.
81590 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81591             Bruno Haible  <bruno@clisp.org>
81593         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
81594         (u16_uctomb_aux): Likewise.
81595         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
81596         !HAVE_INLINE.
81597         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
81599 2007-10-28  Bruno Haible  <bruno@clisp.org>
81601         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
81602         Invoke AM_GETTEXT_OPTION if it exists.
81603         * modules/vasprintf: Likewise.
81604         * modules/verror: Likewise.
81605         * modules/xprintf: Likewise.
81606         * modules/xvasprintf: Likewise.
81608 2007-10-27  Ben Pfaff  <blp@gnu.org>
81610         * lib/math.in.h: Define isfinite macro and prototypes for
81611         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
81612         implementations.
81613         * m4/math_h.m4: New substitutions for isfinite module.
81614         * lib/isfinite.c: New file.
81615         * m4/isfinite.m4: New file.
81616         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
81617         * modules/isfinite: New file.
81618         * modules/isfinite-tests: New file.
81619         * tests/tests-isfinite.c: New file.
81620         * doc/functions/isfinite.texi: Mention isfinite module.
81621         * MODULES.html.sh: Mention new module.
81623 2007-10-27  Ben Pfaff  <blp@gnu.org>
81625         Ralf Wildenhues reported that Tru64 4.0D declares the round
81626         functions but does not have definitions.
81627         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
81628         cannot be found in any library, set the output variable to
81629         "missing" instead of "".
81630         * m4/round.m4: Also use our substitute if we cannot find round in
81631         any library, even if it is declared.
81632         * m4/roundf.m4: Likewise for roundf.
81633         * m4/roundl.m4: Likewise for roundl.
81634         * lib/math.in.h: Undefine roundf, round, roundl before defining
81635         their replacements, to allow for hypothetical systems where these
81636         may be defined as macros but not available in libraries.
81638 2007-10-27  Bruno Haible  <bruno@clisp.org>
81640         * doc/gnulib.texi: Invoke @firstparagraphindent.
81641         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
81642         changes in gnulib.
81643         (Source changes): New section.
81645 2007-10-26  Bruno Haible  <bruno@clisp.org>
81647         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
81648         borrowed from autoconf.
81650 2007-10-26  Bruno Haible  <bruno@clisp.org>
81652         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
81653         strerror returned the empty string. Needed on HP-UX 11.00.
81655 2007-10-24  Micah Cowan  <micah@cowan.name>
81657         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
81658         * build-aux/bootstrap: Remove support for now-unnecessary option,
81659         --cvs-user, and envvars CVS_USER, CVS_RSH.
81661 2007-10-24  Jim Meyering  <meyering@redhat.com>
81663         Avoid diagnostics from sha1sum when there is no cached checksum.
81664         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
81665         if the po.s1 file hasn't been created yet.
81667         * build-aux/bootstrap: Sync from coreutils:
81668         2007-10-24  Jim Meyering  <meyering@redhat.com>
81669         Get gnulib from the git repository, not from an obsolete cvs one.
81670         * build-aux/bootstrap: Suggestion from Micah Cowan.
81671         2007-10-04  Jim Meyering  <jim@meyering.net>
81672         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
81673         (update_po_files): Work also when there are no .po files in po/.
81675 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
81677         * README: Append ".git" to git and cg examples.
81678         Problem reported by Benoit Sigoure.
81680 2007-10-23  Micah Cowan  <micah@cowan.name>
81682         * users.txt: Add wget.
81684 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81686         Fix linking of some unistdio tests on FreeBSD.
81687         * modules/unistdio/u16-vsnprintf-tests
81688         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
81689         * modules/unistdio/u16-vsprintf-tests
81690         (test_u16_vsnprintf1_LDADD): Likewise.
81691         * modules/unistdio/u32-vsnprintf-tests
81692         (test_u32_vsnprintf1_LDADD): Likewise.
81693         * modules/unistdio/u32-vsprintf-tests
81694         (test_u32_vsprintf1_LDADD): Likewise.
81695         * modules/unistdio/u8-vsnprintf-tests
81696         (test_u8_vsnprintf1_LDADD): Likewise.
81697         * modules/unistdio/u8-vsprintf-tests
81698         (test_u8_vsprintf1_LDADD): Likewise.
81699         * modules/unistdio/ulc-vsnprintf-tests
81700         (test_ulc_vsnprintf1_LDADD): Likewise.
81701         * modules/unistdio/ulc-vsprintf-tests
81702         (test_ulc_vsprintf1_LDADD): Likewise.
81704         Fix linking of some uniconv tests on FreeBSD.
81705         * modules/uniconv/u16-conv-from-enc-tests
81706         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
81707         * modules/uniconv/u16-conv-to-enc-tests
81708         (test_u16_conv_to_enc_LDADD): Likewise.
81709         * modules/uniconv/u16-strconv-from-enc-tests
81710         (test_u16_strconv_from_enc_LDADD): Likewise.
81711         * modules/uniconv/u16-strconv-to-enc-tests
81712         (test_u16_strconv_to_enc_LDADD): Likewise.
81713         * modules/uniconv/u32-conv-from-enc-tests
81714         (test_u32_conv_from_enc_LDADD): Likewise.
81715         * modules/uniconv/u32-conv-to-enc-tests
81716         (test_u32_conv_to_enc_LDADD): Likewise.
81717         * modules/uniconv/u32-strconv-from-enc-tests
81718         (test_u32_strconv_from_enc_LDADD): Likewise.
81719         * modules/uniconv/u32-strconv-to-enc-tests
81720         (test_u32_strconv_to_enc_LDADD): Likewise.
81721         * modules/uniconv/u8-conv-from-enc-tests
81722         (test_u8_conv_from_enc_LDADD): Likewise.
81723         * modules/uniconv/u8-conv-to-enc-tests
81724         (test_u8_conv_to_enc_LDADD): Likewise.
81725         * modules/uniconv/u8-strconv-from-enc-tests
81726         (test_u8_strconv_from_enc_LDADD): Likewise.
81727         * modules/uniconv/u8-strconv-to-enc-tests
81728         (test_u8_strconv_to_enc_LDADD): Likewise.
81730 2007-10-22  Bruno Haible  <bruno@clisp.org>
81732         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
81733         size.
81735 2007-10-22  Eric Blake  <ebb9@byu.net>
81737         Tweak x*printf documentation.
81738         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
81739         variable name and comments.
81740         Suggested by Bruno Haible.
81742 2007-10-22  Bruno Haible  <bruno@clisp.org>
81744         * lib/acl.c (copy_acl): Fix file name in comment.
81746 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
81748         Fix Tru64 problem with stdbool.h.
81749         * lib/stdbool.in.h (false, true):
81750         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
81751         Don't declare as an enum in this situation; it runs afoul of Tru64.
81752         Problem reported by Steven M. Schweda in
81753         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
81755 2007-10-22  Eric Blake  <ebb9@byu.net>
81757         Also wrap vf?printf.
81758         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
81759         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
81760         (xvprintf, xvfprintf): New functions.
81762 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81764         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
81765         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
81767         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
81768         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
81770 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
81772         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
81773         by Bruno Haible.
81775 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81777         * lib/getloadavg.c
81778         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
81779         Undef `sys' after including sys/table.h, for Tru64 4.0D.
81781         * tests/test-i-ring.c: Work for C89.
81783 2007-10-22  Bruno Haible  <bruno@clisp.org>
81785         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
81786         -1u, in preprocessor expression, so that we don't test for the bug
81787         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
81788         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
81790 2007-10-22  Eric Blake  <ebb9@byu.net>
81792         * tests/test-yesno.sh: Silence stderr during test.
81794 2007-10-22  Simon Josefsson  <simon@josefsson.org>
81796         * modules/crypto/gc-camellia: New file.
81798         * m4/gc-camellia.m4: New file.
81800         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
81802         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
81804 2007-10-22  Simon Josefsson  <simon@josefsson.org>
81806         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
81807         --help to stdout.  Reported by sms@antinode.org (Steven
81808         M. Schweda).
81810 2007-10-22  Simon Josefsson  <simon@josefsson.org>
81812         * users.txt: Fix link to libksba.
81814 2007-10-21  Ben Pfaff  <blp@gnu.org>
81816         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
81817         round.c roundf implementation that depends on floorf and ceilf to
81818         be tested unconditionally.
81820 2007-10-21  Ben Pfaff  <blp@gnu.org>
81822         * m4/check-libm-func.m4: Removed.
81823         * m4/check-math-lib.m4: New file.
81824         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
81825         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
81826         definition and lack of AC_LIBOBJ([roundf]).
81827         * m4/roundl.m4: Ditto, and similarly for roundl.
81828         * modules/round: Reference new m4 file.
81829         * modules/roundf: Ditto.
81830         * modules/roundl: Ditto.
81831         * tests/test-round2.c (main): Use ROUND instead of round.
81832         Bug report from Bruno Haible.
81834 2007-10-21  Bruno Haible  <bruno@clisp.org>
81836         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
81837         context.
81839 2007-10-21  Bruno Haible  <bruno@clisp.org>
81841         * tests/test-wcwidth.c (main): Allow negative result for some control
81842         characters.
81844         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
81845         Needed on OSF/1 5.1.
81847 2007-10-21  Bruno Haible  <bruno@clisp.org>
81849         * tests/test-floorf1.c: Include isnanf.h.
81850         (main): Use isnanf() instead of isnan().
81851         * tests/test-ceilf1.c: Include isnanf.h.
81852         (main): Use isnanf() instead of isnan().
81853         * tests/test-truncf1.c: Include isnanf.h.
81854         (main): Use isnanf() instead of isnan().
81855         * tests/test-roundf1.c: Include isnanf.h.
81856         (main): Use isnanf() instead of isnan().
81858 2007-10-21  Eric Blake  <ebb9@byu.net>
81860         * users.txt: Update URL for m4.
81862 2007-10-21  Bruno Haible  <bruno@clisp.org>
81864         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
81866 2007-10-21  Bruno Haible  <bruno@clisp.org>
81868         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
81869         Git's management files if the CVS files are not present.
81871 2007-10-20  Bruno Haible  <bruno@clisp.org>
81873         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
81874         gcc-3.4.x.
81876 2007-10-20  Ben Pfaff  <blp@gnu.org>
81878         * lib/math.in.h: Declare round, roundf, roundl if we are providing
81879         implementations.
81880         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
81881         * lib/round.c: New file.
81882         * lib/roundf.c: New file.
81883         * lib/roundl.c: New file.
81884         * m4/round.m4: New file.
81885         * m4/roundf.m4: New file.
81886         * m4/roundl.m4: New file.
81887         * m4/check-libm-func-m4: New file.
81888         * modules/math: Replace round, roundf, roundl related @VARS@ in
81889         math.in.h.
81890         * modules/round: New file.
81891         * modules/round-tests: New file.
81892         * modules/roundf: New file.
81893         * modules/roundf-tests: New file.
81894         * modules/roundl: New file.
81895         * modules/roundl-tests: New file.
81896         * tests/test-round1.c: New file.
81897         * tests/test-round2.c: New file.
81898         * tests/test-roundf1.c: New file.
81899         * tests/test-roundf2.c: New file.
81900         * tests/test-roundl.c: New file.
81901         * doc/functions/round.texi: Mention round module.
81902         * doc/functions/roundf.texi: Mention roundf module.
81903         * doc/functions/roundl.texi: Mention roundl module.
81904         * MODULES.html.sh: Mention new modules.
81905         Thanks to Bruno Haible for suggestions.
81907 2007-10-20  Jim Meyering  <meyering@redhat.com>
81909         * lib/xprintf.c: Include <config.h> unconditionally.
81911         Change xprintf's license to GPL.
81912         * modules/xprintf (License): s/LGPL/GPL/, since this module
81913         depends on modules (exit and exitfail) which are GPL.
81914         Suggestion from Bruno Haible.
81916         xprintf fixes.
81917         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
81918         Use a clearer diagnostic.
81919         Patch from Bruno Haible.
81921 2007-10-20  Bruno Haible  <bruno@clisp.org>
81923         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
81924         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
81925         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81927 2007-10-20  Bruno Haible  <bruno@clisp.org>
81929         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
81930         precision in the comparison result > x - 1 or similar.
81931         * tests/test-ceilf2.c (correct_result_p): Likewise.
81932         * tests/test-truncf2.c (correct_result_p): Likewise.
81933         * tests/test-trunc2.c (correct_result_p): Likewise.
81934         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81936 2007-10-20  Bruno Haible  <bruno@clisp.org>
81938         * modules/ceil: New file.
81939         * m4/ceil.m4: New file.
81940         * doc/functions/ceil.texi: Mention the 'ceil' module.
81942 2007-10-20  Bruno Haible  <bruno@clisp.org>
81944         * modules/floor: New file.
81945         * m4/floor.m4: New file.
81946         * doc/functions/floor.texi: Mention the 'floor' module.
81948 2007-10-20  Bruno Haible  <bruno@clisp.org>
81950         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
81951         of %a.
81952         * modules/floorf-tests (Depends-on): Likewise.
81953         * modules/truncf-tests (Depends-on): Likewise.
81954         * modules/trunc-tests (Depends-on): Likewise.
81955         Reported by Ben Pfaff.
81957 2007-10-19  Jim Meyering  <meyering@redhat.com>
81959         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
81960         Don't bother testing specific errno values.  Just test ferror.
81962         New module: xprintf
81963         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
81965 2007-10-19  Bruno Haible  <bruno@clisp.org>
81967         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
81968         syntax.
81969         * modules/javaexec (Makefile.am): Likewise.
81970         * modules/relocatable-prog (Makefile.am): Likewise.
81971         Suggested by Jim Meyering.
81973 2007-10-18  Bruno Haible  <bruno@clisp.org>
81975         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
81976         Reported by Jim Meyering.
81978 2007-10-18  Eric Blake  <ebb9@byu.net>
81980         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
81982 2007-10-18  Bruno Haible  <bruno@clisp.org>
81984         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
81985         the format string into writable memory. Needed in Fortify conditions.
81987 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
81988             Bruno Haible  <bruno@clisp.org>
81990         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
81991         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
81992         * modules/trim (Depends-on): Add mbchar.
81993         (configure.ac): Add gl_FUNC_MBRTOWC.
81994         (Makefile.am): Augment lib_SOURCES.
81996 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
81998         Modify glob.c to use fstatat and dirfd, to simplify it.
81999         Suggested by Eric Blake.
82000         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
82001         Don't include <stdbool.h>; not used.
82002         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
82003         (link_exists_p): Simplify implementation, since we can now assume
82004         dirfd and fstatat.
82005         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
82007 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82009         * gnulib-tool (func_get_dependencies): Fix sed script to
82010         match only tests.
82012 2007-10-17  Bruno Haible  <bruno@clisp.org>
82014         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
82015         allow locale names without encoding suffix.
82016         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
82017         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
82019 2007-10-16  Bruno Haible  <bruno@clisp.org>
82021         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
82022         * lib/getgroups.c (getgroups): Likewise.
82023         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
82025 2007-10-16  Bruno Haible  <bruno@clisp.org>
82027         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
82028         * modules/malloc-posix (License): Likewise.
82029         * modules/realloc-posix (License): Likewise.
82030         * modules/calloc-posix (License): Likewise.
82031         * modules/intprops (License): Change from GPL to LGPL, with
82032         Paul Eggert's approval.
82034 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
82036         Merge glibc changes into lib/glob.c.
82038         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
82039         2007-10-15 04:59:03 UTC.  Here are the changes:
82041         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
82043         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
82045         * lib/glob.c: Add some branch prediction throughout.
82047         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
82049         [BZ #5103]
82050         * lib/glob.c (glob): Recognize patterns starting \/.
82052         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
82054         [BZ #3996]
82055         * lib/glob.c (attribute_hidden): Define if not defined.
82056         (glob): Unescape dirname, filename or username when needed and not
82057         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
82058         is NULL.  Handle unescaped [ in pattern without closing ].
82059         Don't pass GLOB_CHECK down to recursive glob for directories.
82060         (__glob_pattern_type): New function.
82061         (__glob_pattern_p): Implement using __glob_pattern_type.
82062         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
82063         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
82064         Remove unreachable code.
82066         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
82068         * lib/glob.c (glob_in_dir): Add some comments and asserts to
82069         explain why there are no leaks.
82071         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
82073         [BZ #3253]
82074         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
82075         time, rather allocate increasingly bigger arrays of pointers, if
82076         possible with alloca, if too large with malloc.
82078 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
82080         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
82081         Problem reported by H.Merijn Brand in
82082         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
82083         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
82084         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
82086 2007-10-15  Bruno Haible  <bruno@clisp.org>
82088         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
82089         with explicit rpl_ prefix.
82090         * lib/fopen.c (fopen): Likewise.
82091         * lib/freopen.c (freopen): Likewise.
82092         * lib/iconv.c (iconv): Likewise.
82093         * lib/iconv_close.c (iconv_close): Likewise.
82095 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82097         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
82099 2007-10-15  Bruno Haible  <bruno@clisp.org>
82101         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
82102         <stddef.h> instead of <stdlib.h> since we only need NULL.
82103         Reported by Ben Pfaff <blp@cs.stanford.edu>.
82105 2007-10-15  Bruno Haible  <bruno@clisp.org>
82107         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
82108         Replace paragraph talking about LIBOBJS.
82109         Reported by Colin Watson <cjwatson@debian.org>.
82111 2007-10-15  Bruno Haible  <bruno@clisp.org>
82113         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
82114         <stdlib.h> before using NULL.
82116 2007-10-15  Simon Josefsson  <simon@josefsson.org>
82118         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
82119         Reported by Albert Chin <china@thewrittenword.com>.
82121 2007-10-14  Bruno Haible  <bruno@clisp.org>
82123         * modules/iconv_open-utf-tests: New file.
82124         * tests/test-iconv-utf.c: New file.
82126         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
82127         * modules/iconv_open-utf: New file.
82128         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
82129         (iconv, iconv_close): New declarations.
82130         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
82131         be defined.
82132         (iconv_open): Add special handling of conversion between UTF-8 and
82133         UTF-{16,32}{BE,LE}.
82134         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
82135         * lib/iconv_close.c: New file.
82136         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
82137         gl_FUNC_ICONV_OPEN.
82138         (gl_FUNC_ICONV_OPEN): Use it.
82139         (gl_FUNC_ICONV_OPEN_UTF): New macro.
82140         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
82141         and REPLACE_ICONV_UTF.
82142         * modules/iconv_open (Depends-on): Add c-strcase.
82143         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
82144         ICONV_CONST.
82145         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
82147 2007-10-13  Albert Chin  <china@thewrittenword.com>
82148             Bruno Haible  <bruno@clisp.org>
82150         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
82151         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
82153 2007-10-13  Bruno Haible  <bruno@clisp.org>
82155         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
82156         defined, use the ISO C99 inline semantics.
82157         * lib/argp.h (ARGP_EI): Likewise.
82159 2007-10-13  Bruno Haible  <bruno@clisp.org>
82161         Handle 'inline' change in gcc 4.3.0.
82162         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
82163         argp_fmtstream_write, argp_fmtstream_set_lmargin,
82164         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
82165         argp_fmtstream_point): Disable 'extern' declaration if the function
82166         definition is going to be provided inline.
82167         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
82168         semantics, not the ISO C99 inline semantics.
82169         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
82170         'extern' declaration if the function definition is going to be provided
82171         inline.
82172         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
82173         the GNU C inline semantics, not the ISO C99 inline semantics. With
82174         GCC 4.2, avoid a warning.
82176 2007-10-13  Bruno Haible  <bruno@clisp.org>
82178         * lib/freading.h (freading): Enable the use of __freading for
82179         glibc >= 2.7.
82180         * lib/freading.c (freading): Likewise.
82182 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
82184         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
82185         "warning: C99 inline functions are not supported; using GNU89".
82187 2007-10-12  Bruno Haible  <bruno@clisp.org>
82189         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
82190         of 2.
82191         * tests/test-ceilf2.c: New file.
82192         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
82194         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
82195         * modules/ceilf-tests: Update.
82197 2007-10-12  Bruno Haible  <bruno@clisp.org>
82199         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
82200         of 2.
82201         * tests/test-floorf2.c: New file.
82202         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
82204         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
82205         * modules/floorf-tests: Update.
82207 2007-10-12  Bruno Haible  <bruno@clisp.org>
82209         * tests/test-trunc2.c: New file.
82210         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
82212         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
82213         * modules/trunc-tests: Update.
82215 2007-10-12  Bruno Haible  <bruno@clisp.org>
82217         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
82218         of 2.
82219         * tests/test-truncf2.c: New file.
82220         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
82222         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
82223         * modules/truncf-tests: Update.
82225 2007-10-11  Eric Blake  <ebb9@byu.net>
82227         Don't claim strerror is broken on Interix.
82228         * doc/functions/strerror.texi (strerror): Known broken systems are
82229         now Solaris 8, and not Interix.
82230         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
82231         Interix on cross-compile.
82232         Reported by Martin Koeppe in
82233         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
82235 2007-10-11  Bruno Haible  <bruno@clisp.org>
82237         * modules/i-ring-tests: New file.
82238         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
82239         instead of assert.
82241 2007-10-11  Bruno Haible  <bruno@clisp.org>
82243         * modules/filenamecat-tests: New file.
82244         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
82245         * lib/filenamecat.c: Remove test code.
82247 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
82249         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
82251         * lib/strerror.c: Include <string.h> always, to test interface,
82252         and to remove the need for the dummy.
82253         Include intprops.h to compute width instead of doing it ourselves
82254         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
82255         (strerror): Define it to return NULL if there's no system strerror.
82256         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
82257         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
82258         ancient pre-strerror Unix systems well any more.  Saying "unknown
82259         system error" is enough.
82260         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
82261         simpler strerror.c implementation.
82262         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
82263         Simplify the tests to reflect the simpler strerror implementation.
82264         * modules/strerror (Depends-on): Add intprops.
82266 2007-10-09  Eric Blake  <ebb9@byu.net>
82268         Silence test-fpending.
82269         * modules/fpending-tests (Files): Add wrapper script.
82270         * tests/test-fpending.sh: New file.
82272 2007-10-09  Bruno Haible  <bruno@clisp.org>
82274         * MODULES.html.sh (func_module): Don't create a hyperlink for
82275         function names like 'printf_frexp'.
82276         (Misc): Add crc, memxor.
82277         (Characteristics of floating types): New section.
82278         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
82279         isnanf-nolibm, signbit, trunc, truncf, truncl.
82280         (Enhancements for ISO C 99 functions): New subsection Input/output.
82281         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
82282         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
82283         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
82284         (Compatibility checks for POSIX:2001 functions): Add clock-time.
82285         (Enhancements for POSIX:2001 functions): Add chdir-long.
82286         (File system functions): Add areadlink, chdir-safer, read-file.
82287         Remove cycle-check.
82288         (File system as inode set): New section.
82289         (Date and time): Add gethrxtime.
82290         (Multithreading): Add openmp.
82291         (Internationalization functions): Add localename.
82292         (Unicode string functions): Add unistr/u*-mbsnlen.
82293         (Support for maintaining and releasing projects): Add git-version-gen.
82294         (Lone files): Remove directories.
82296 2007-10-08  Ben Pfaff  <blp@gnu.org>
82298         * lib/xmalloca.h: Fix typo in comment.
82300 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
82302         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
82303         when avoiding problems with integer overflow.  Use a portable test
82304         instead.
82306 2007-10-08  Simon Josefsson  <simon@josefsson.org>
82308         * modules/dummy (License): Change to LGPLv2+.
82309         * modules/float (License): Likewise
82310         * modules/realloc (License): Likewise
82311         * modules/stdlib (License): Likewise
82313 2007-10-07  Bruno Haible  <bruno@clisp.org>
82315         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
82316         * floor.c (TWO_MANT_DIG): Likewise.
82317         * ceil.c (TWO_MANT_DIG): Likewise.
82318         Reported by Ben Pfaff.
82320 2007-10-07  Bruno Haible  <bruno@clisp.org>
82322         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
82323         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
82324         * lib/frexp.c (FUNC): Likewise.
82325         * lib/printf-frexp.h (printf_frexp): Likewise.
82326         * lib/printf-frexpl.h (printf_frexpl): Likewise.
82327         * lib/printf-frexp.c (FUNC): Likewise.
82328         Suggested by Jim Meyering.
82330 2007-10-07  Jim Meyering  <meyering@redhat.com>
82332         Make xnanosleep's integer overflow test more robust.
82333         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
82334         so that gcc-4.3.0 doesn't optimize away this test for overflow.
82336 2007-10-07  Bruno Haible  <bruno@clisp.org>
82338         * NEWS: Mention the license change.
82340         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
82341         abbreviations in the modules files.
82343         Change copyright notice from GPLv2+ to GPLv3+.
82344         * README: Change copyright notice.
82345         * MODULES.html.sh: Likewise.
82346         * build-aux/bootstrap.conf: Likewise.
82347         * build-aux/config.libpath: Likewise.
82348         * build-aux/csharpcomp.sh.in: Likewise.
82349         * build-aux/csharpexec.sh.in: Likewise.
82350         * build-aux/install-reloc: Likewise.
82351         * build-aux/javacomp.sh.in: Likewise.
82352         * build-aux/javaexec.sh.in: Likewise.
82353         * build-aux/ldd.sh.in: Likewise.
82354         * build-aux/reloc-ldflags: Likewise.
82355         * build-aux/relocatable.sh.in: Likewise.
82356         * build-aux/x-to-1.in: Likewise.
82357         * check-module: Likewise.
82358         * config/srclistvars.sh: Likewise.
82359         * gnulib-tool: Likewise.
82360         * lib/acl-internal.h: Likewise.
82361         * lib/acl.c: Likewise.
82362         * lib/acl.h: Likewise.
82363         * lib/acl_entries.c: Likewise.
82364         * lib/areadlink-with-size.c: Likewise.
82365         * lib/areadlink.c: Likewise.
82366         * lib/areadlink.h: Likewise.
82367         * lib/argmatch.c: Likewise.
82368         * lib/argmatch.h: Likewise.
82369         * lib/argp-ba.c: Likewise.
82370         * lib/argp-eexst.c: Likewise.
82371         * lib/argp-fmtstream.c: Likewise.
82372         * lib/argp-fmtstream.h: Likewise.
82373         * lib/argp-fs-xinl.c: Likewise.
82374         * lib/argp-help.c: Likewise.
82375         * lib/argp-namefrob.h: Likewise.
82376         * lib/argp-parse.c: Likewise.
82377         * lib/argp-pin.c: Likewise.
82378         * lib/argp-pv.c: Likewise.
82379         * lib/argp-pvh.c: Likewise.
82380         * lib/argp-xinl.c: Likewise.
82381         * lib/argp.h: Likewise.
82382         * lib/at-func.c: Likewise.
82383         * lib/atanl.c: Likewise.
82384         * lib/backupfile.c: Likewise.
82385         * lib/backupfile.h: Likewise.
82386         * lib/basename.c: Likewise.
82387         * lib/binary-io.h: Likewise.
82388         * lib/byteswap.in.h: Likewise.
82389         * lib/c-stack.c: Likewise.
82390         * lib/c-stack.h: Likewise.
82391         * lib/c-strcasestr.c: Likewise.
82392         * lib/c-strcasestr.h: Likewise.
82393         * lib/c-strstr.c: Likewise.
82394         * lib/c-strstr.h: Likewise.
82395         * lib/c-strtod.c: Likewise.
82396         * lib/calloc.c: Likewise.
82397         * lib/canon-host.c: Likewise.
82398         * lib/canon-host.h: Likewise.
82399         * lib/canonicalize-lgpl.c: Likewise.
82400         * lib/canonicalize.c: Likewise.
82401         * lib/canonicalize.h: Likewise.
82402         * lib/ceil.c: Likewise.
82403         * lib/ceilf.c: Likewise.
82404         * lib/ceill.c: Likewise.
82405         * lib/chdir-long.c: Likewise.
82406         * lib/chdir-long.h: Likewise.
82407         * lib/chdir-safer.c: Likewise.
82408         * lib/chdir-safer.h: Likewise.
82409         * lib/chown.c: Likewise.
82410         * lib/classpath.c: Likewise.
82411         * lib/classpath.h: Likewise.
82412         * lib/clean-temp.c: Likewise.
82413         * lib/clean-temp.h: Likewise.
82414         * lib/cloexec.c: Likewise.
82415         * lib/close-stream.c: Likewise.
82416         * lib/closein.c: Likewise.
82417         * lib/closein.h: Likewise.
82418         * lib/closeout.c: Likewise.
82419         * lib/closeout.h: Likewise.
82420         * lib/concat-filename.c: Likewise.
82421         * lib/copy-file.c: Likewise.
82422         * lib/copy-file.h: Likewise.
82423         * lib/count-one-bits.h: Likewise.
82424         * lib/crc.c: Likewise.
82425         * lib/crc.h: Likewise.
82426         * lib/creat-safer.c: Likewise.
82427         * lib/csharpcomp.c: Likewise.
82428         * lib/csharpcomp.h: Likewise.
82429         * lib/csharpexec.c: Likewise.
82430         * lib/csharpexec.h: Likewise.
82431         * lib/cycle-check.c: Likewise.
82432         * lib/cycle-check.h: Likewise.
82433         * lib/diacrit.c: Likewise.
82434         * lib/diacrit.h: Likewise.
82435         * lib/diffseq.h: Likewise.
82436         * lib/dirchownmod.c: Likewise.
82437         * lib/dirent.in.h: Likewise.
82438         * lib/dirfd.c: Likewise.
82439         * lib/dirfd.h: Likewise.
82440         * lib/dirname.c: Likewise.
82441         * lib/dirname.h: Likewise.
82442         * lib/dummy.c: Likewise.
82443         * lib/dup-safer.c: Likewise.
82444         * lib/dup2.c: Likewise.
82445         * lib/eealloc.h: Likewise.
82446         * lib/error.c: Likewise.
82447         * lib/error.h: Likewise.
82448         * lib/euidaccess.c: Likewise.
82449         * lib/exclude.c: Likewise.
82450         * lib/exclude.h: Likewise.
82451         * lib/execute.c: Likewise.
82452         * lib/execute.h: Likewise.
82453         * lib/exitfail.c: Likewise.
82454         * lib/exitfail.h: Likewise.
82455         * lib/expl.c: Likewise.
82456         * lib/fatal-signal.c: Likewise.
82457         * lib/fatal-signal.h: Likewise.
82458         * lib/fbufmode.c: Likewise.
82459         * lib/fbufmode.h: Likewise.
82460         * lib/fchdir.c: Likewise.
82461         * lib/fchmodat.c: Likewise.
82462         * lib/fchownat.c: Likewise.
82463         * lib/fcntl--.h: Likewise.
82464         * lib/fcntl-safer.h: Likewise.
82465         * lib/fcntl.in.h: Likewise.
82466         * lib/fd-safer.c: Likewise.
82467         * lib/fflush.c: Likewise.
82468         * lib/file-has-acl.c: Likewise.
82469         * lib/file-set.c: Likewise.
82470         * lib/file-type.c: Likewise.
82471         * lib/file-type.h: Likewise.
82472         * lib/fileblocks.c: Likewise.
82473         * lib/filemode.c: Likewise.
82474         * lib/filemode.h: Likewise.
82475         * lib/filename.h: Likewise.
82476         * lib/filenamecat.c: Likewise.
82477         * lib/filenamecat.h: Likewise.
82478         * lib/findprog.c: Likewise.
82479         * lib/findprog.h: Likewise.
82480         * lib/float.in.h: Likewise.
82481         * lib/floor.c: Likewise.
82482         * lib/floorf.c: Likewise.
82483         * lib/floorl.c: Likewise.
82484         * lib/fopen-safer.c: Likewise.
82485         * lib/fopen.c: Likewise.
82486         * lib/fpending.c: Likewise.
82487         * lib/fpending.h: Likewise.
82488         * lib/fprintf.c: Likewise.
82489         * lib/fprintftime.h: Likewise.
82490         * lib/fpucw.h: Likewise.
82491         * lib/fpurge.c: Likewise.
82492         * lib/fpurge.h: Likewise.
82493         * lib/freadable.c: Likewise.
82494         * lib/freadable.h: Likewise.
82495         * lib/freadahead.c: Likewise.
82496         * lib/freadahead.h: Likewise.
82497         * lib/freading.c: Likewise.
82498         * lib/freading.h: Likewise.
82499         * lib/free.c: Likewise.
82500         * lib/freopen.c: Likewise.
82501         * lib/frexp.c: Likewise.
82502         * lib/frexpl.c: Likewise.
82503         * lib/fseek.c: Likewise.
82504         * lib/fseterr.c: Likewise.
82505         * lib/fseterr.h: Likewise.
82506         * lib/fstatat.c: Likewise.
82507         * lib/fstrcmp.c: Likewise.
82508         * lib/fstrcmp.h: Likewise.
82509         * lib/fsusage.c: Likewise.
82510         * lib/fsusage.h: Likewise.
82511         * lib/ftell.c: Likewise.
82512         * lib/ftello.c: Likewise.
82513         * lib/fts-cycle.c: Likewise.
82514         * lib/fts.c: Likewise.
82515         * lib/fts_.h: Likewise.
82516         * lib/full-read.c: Likewise.
82517         * lib/full-read.h: Likewise.
82518         * lib/full-write.c: Likewise.
82519         * lib/full-write.h: Likewise.
82520         * lib/fwritable.c: Likewise.
82521         * lib/fwritable.h: Likewise.
82522         * lib/fwriteerror.c: Likewise.
82523         * lib/fwriteerror.h: Likewise.
82524         * lib/fwriting.c: Likewise.
82525         * lib/fwriting.h: Likewise.
82526         * lib/gcd.c: Likewise.
82527         * lib/gcd.h: Likewise.
82528         * lib/getcwd.c: Likewise.
82529         * lib/getdate.h: Likewise.
82530         * lib/getdate.y: Likewise.
82531         * lib/getdomainname.c: Likewise.
82532         * lib/getdomainname.h: Likewise.
82533         * lib/getgroups.c: Likewise.
82534         * lib/gethostname.c: Likewise.
82535         * lib/gethrxtime.c: Likewise.
82536         * lib/gethrxtime.h: Likewise.
82537         * lib/getloadavg.c: Likewise.
82538         * lib/getndelim2.c: Likewise.
82539         * lib/getndelim2.h: Likewise.
82540         * lib/getnline.c: Likewise.
82541         * lib/getnline.h: Likewise.
82542         * lib/getopt.c: Likewise.
82543         * lib/getopt.in.h: Likewise.
82544         * lib/getopt1.c: Likewise.
82545         * lib/getopt_int.h: Likewise.
82546         * lib/getpagesize.h: Likewise.
82547         * lib/getsubopt.c: Likewise.
82548         * lib/gettime.c: Likewise.
82549         * lib/getugroups.c: Likewise.
82550         * lib/getugroups.h: Likewise.
82551         * lib/getusershell.c: Likewise.
82552         * lib/gl_anyavltree_list1.h: Likewise.
82553         * lib/gl_anyavltree_list2.h: Likewise.
82554         * lib/gl_anyhash_list1.h: Likewise.
82555         * lib/gl_anyhash_list2.h: Likewise.
82556         * lib/gl_anylinked_list1.h: Likewise.
82557         * lib/gl_anylinked_list2.h: Likewise.
82558         * lib/gl_anyrbtree_list1.h: Likewise.
82559         * lib/gl_anyrbtree_list2.h: Likewise.
82560         * lib/gl_anytree_list1.h: Likewise.
82561         * lib/gl_anytree_list2.h: Likewise.
82562         * lib/gl_anytree_oset.h: Likewise.
82563         * lib/gl_anytreehash_list1.h: Likewise.
82564         * lib/gl_anytreehash_list2.h: Likewise.
82565         * lib/gl_array_list.c: Likewise.
82566         * lib/gl_array_list.h: Likewise.
82567         * lib/gl_array_oset.c: Likewise.
82568         * lib/gl_array_oset.h: Likewise.
82569         * lib/gl_avltree_list.c: Likewise.
82570         * lib/gl_avltree_list.h: Likewise.
82571         * lib/gl_avltree_oset.c: Likewise.
82572         * lib/gl_avltree_oset.h: Likewise.
82573         * lib/gl_avltreehash_list.c: Likewise.
82574         * lib/gl_avltreehash_list.h: Likewise.
82575         * lib/gl_carray_list.c: Likewise.
82576         * lib/gl_carray_list.h: Likewise.
82577         * lib/gl_linked_list.c: Likewise.
82578         * lib/gl_linked_list.h: Likewise.
82579         * lib/gl_linkedhash_list.c: Likewise.
82580         * lib/gl_linkedhash_list.h: Likewise.
82581         * lib/gl_list.c: Likewise.
82582         * lib/gl_list.h: Likewise.
82583         * lib/gl_oset.c: Likewise.
82584         * lib/gl_oset.h: Likewise.
82585         * lib/gl_rbtree_list.c: Likewise.
82586         * lib/gl_rbtree_list.h: Likewise.
82587         * lib/gl_rbtree_oset.c: Likewise.
82588         * lib/gl_rbtree_oset.h: Likewise.
82589         * lib/gl_rbtreehash_list.c: Likewise.
82590         * lib/gl_rbtreehash_list.h: Likewise.
82591         * lib/gl_sublist.c: Likewise.
82592         * lib/gl_sublist.h: Likewise.
82593         * lib/group-member.c: Likewise.
82594         * lib/group-member.h: Likewise.
82595         * lib/hard-locale.c: Likewise.
82596         * lib/hard-locale.h: Likewise.
82597         * lib/hash-pjw.c: Likewise.
82598         * lib/hash-pjw.h: Likewise.
82599         * lib/hash-triple.c: Likewise.
82600         * lib/hash.c: Likewise.
82601         * lib/hash.h: Likewise.
82602         * lib/human.c: Likewise.
82603         * lib/human.h: Likewise.
82604         * lib/i-ring.c: Likewise.
82605         * lib/i-ring.h: Likewise.
82606         * lib/idcache.c: Likewise.
82607         * lib/imaxabs.c: Likewise.
82608         * lib/imaxdiv.c: Likewise.
82609         * lib/inet_pton.c: Likewise.
82610         * lib/inet_pton.h: Likewise.
82611         * lib/intprops.h: Likewise.
82612         * lib/inttostr.c: Likewise.
82613         * lib/inttostr.h: Likewise.
82614         * lib/inttypes.in.h: Likewise.
82615         * lib/isapipe.c: Likewise.
82616         * lib/isdir.c: Likewise.
82617         * lib/isnan.c: Likewise.
82618         * lib/isnan.h: Likewise.
82619         * lib/isnanf.c: Likewise.
82620         * lib/isnanf.h: Likewise.
82621         * lib/isnanl-nolibm.h: Likewise.
82622         * lib/isnanl.c: Likewise.
82623         * lib/isnanl.h: Likewise.
82624         * lib/javacomp.c: Likewise.
82625         * lib/javacomp.h: Likewise.
82626         * lib/javaexec.c: Likewise.
82627         * lib/javaexec.h: Likewise.
82628         * lib/javaversion.c: Likewise.
82629         * lib/javaversion.h: Likewise.
82630         * lib/javaversion.java: Likewise.
82631         * lib/lbrkprop.h: Likewise.
82632         * lib/lchmod.h: Likewise.
82633         * lib/lchown.c: Likewise.
82634         * lib/ldexpl.c: Likewise.
82635         * lib/linebreak.c: Likewise.
82636         * lib/linebreak.h: Likewise.
82637         * lib/linebuffer.c: Likewise.
82638         * lib/linebuffer.h: Likewise.
82639         * lib/locale.in.h: Likewise.
82640         * lib/logl.c: Likewise.
82641         * lib/long-options.c: Likewise.
82642         * lib/long-options.h: Likewise.
82643         * lib/lstat.c: Likewise.
82644         * lib/lstat.h: Likewise.
82645         * lib/math.in.h: Likewise.
82646         * lib/mbchar.c: Likewise.
82647         * lib/mbchar.h: Likewise.
82648         * lib/mbfile.h: Likewise.
82649         * lib/mbiter.h: Likewise.
82650         * lib/mbscasecmp.c: Likewise.
82651         * lib/mbscasestr.c: Likewise.
82652         * lib/mbschr.c: Likewise.
82653         * lib/mbscspn.c: Likewise.
82654         * lib/mbslen.c: Likewise.
82655         * lib/mbsncasecmp.c: Likewise.
82656         * lib/mbsnlen.c: Likewise.
82657         * lib/mbspbrk.c: Likewise.
82658         * lib/mbspcasecmp.c: Likewise.
82659         * lib/mbsrchr.c: Likewise.
82660         * lib/mbssep.c: Likewise.
82661         * lib/mbsspn.c: Likewise.
82662         * lib/mbsstr.c: Likewise.
82663         * lib/mbstok_r.c: Likewise.
82664         * lib/mbswidth.c: Likewise.
82665         * lib/mbswidth.h: Likewise.
82666         * lib/mbuiter.h: Likewise.
82667         * lib/memcasecmp.c: Likewise.
82668         * lib/memcasecmp.h: Likewise.
82669         * lib/memchr.c: Likewise.
82670         * lib/memcmp.c: Likewise.
82671         * lib/memcoll.c: Likewise.
82672         * lib/memcoll.h: Likewise.
82673         * lib/memcpy.c: Likewise.
82674         * lib/memrchr.c: Likewise.
82675         * lib/mkancesdirs.c: Likewise.
82676         * lib/mkdir-p.c: Likewise.
82677         * lib/mkdir-p.h: Likewise.
82678         * lib/mkdir.c: Likewise.
82679         * lib/mkdirat.c: Likewise.
82680         * lib/mkdtemp.c: Likewise.
82681         * lib/mkstemp-safer.c: Likewise.
82682         * lib/mkstemp.c: Likewise.
82683         * lib/modechange.c: Likewise.
82684         * lib/modechange.h: Likewise.
82685         * lib/mountlist.c: Likewise.
82686         * lib/mountlist.h: Likewise.
82687         * lib/mpsort.c: Likewise.
82688         * lib/nanosleep.c: Likewise.
82689         * lib/obstack.c: Likewise.
82690         * lib/obstack.h: Likewise.
82691         * lib/open-safer.c: Likewise.
82692         * lib/open.c: Likewise.
82693         * lib/openat-die.c: Likewise.
82694         * lib/openat-priv.h: Likewise.
82695         * lib/openat-proc.c: Likewise.
82696         * lib/openat.c: Likewise.
82697         * lib/openat.h: Likewise.
82698         * lib/pagealign_alloc.c: Likewise.
82699         * lib/pagealign_alloc.h: Likewise.
82700         * lib/physmem.c: Likewise.
82701         * lib/physmem.h: Likewise.
82702         * lib/pipe-safer.c: Likewise.
82703         * lib/pipe.c: Likewise.
82704         * lib/pipe.h: Likewise.
82705         * lib/posixtm.c: Likewise.
82706         * lib/posixtm.h: Likewise.
82707         * lib/posixver.c: Likewise.
82708         * lib/printf-frexp.c: Likewise.
82709         * lib/printf-frexp.h: Likewise.
82710         * lib/printf-frexpl.c: Likewise.
82711         * lib/printf-frexpl.h: Likewise.
82712         * lib/printf.c: Likewise.
82713         * lib/progname.c: Likewise.
82714         * lib/progname.h: Likewise.
82715         * lib/progreloc.c: Likewise.
82716         * lib/putenv.c: Likewise.
82717         * lib/quote.c: Likewise.
82718         * lib/quote.h: Likewise.
82719         * lib/quotearg.c: Likewise.
82720         * lib/quotearg.h: Likewise.
82721         * lib/raise.c: Likewise.
82722         * lib/readline.c: Likewise.
82723         * lib/readline.h: Likewise.
82724         * lib/readlink.c: Likewise.
82725         * lib/readtokens.c: Likewise.
82726         * lib/readtokens.h: Likewise.
82727         * lib/readtokens0.c: Likewise.
82728         * lib/readtokens0.h: Likewise.
82729         * lib/readutmp.c: Likewise.
82730         * lib/readutmp.h: Likewise.
82731         * lib/realloc.c: Likewise.
82732         * lib/relocwrapper.c: Likewise.
82733         * lib/rename-dest-slash.c: Likewise.
82734         * lib/rename.c: Likewise.
82735         * lib/rmdir.c: Likewise.
82736         * lib/rpmatch.c: Likewise.
82737         * lib/safe-read.c: Likewise.
82738         * lib/safe-read.h: Likewise.
82739         * lib/safe-write.c: Likewise.
82740         * lib/safe-write.h: Likewise.
82741         * lib/same-inode.h: Likewise.
82742         * lib/same.c: Likewise.
82743         * lib/same.h: Likewise.
82744         * lib/save-cwd.c: Likewise.
82745         * lib/save-cwd.h: Likewise.
82746         * lib/savedir.c: Likewise.
82747         * lib/savedir.h: Likewise.
82748         * lib/savewd.c: Likewise.
82749         * lib/savewd.h: Likewise.
82750         * lib/search.in.h: Likewise.
82751         * lib/setenv.c: Likewise.
82752         * lib/setenv.h: Likewise.
82753         * lib/settime.c: Likewise.
82754         * lib/sh-quote.c: Likewise.
82755         * lib/sh-quote.h: Likewise.
82756         * lib/sig2str.c: Likewise.
82757         * lib/sig2str.h: Likewise.
82758         * lib/signal.in.h: Likewise.
82759         * lib/signbitd.c: Likewise.
82760         * lib/signbitf.c: Likewise.
82761         * lib/signbitl.c: Likewise.
82762         * lib/sigprocmask.c: Likewise.
82763         * lib/sincosl.c: Likewise.
82764         * lib/sleep.c: Likewise.
82765         * lib/sprintf.c: Likewise.
82766         * lib/sqrtl.c: Likewise.
82767         * lib/stat-time.h: Likewise.
82768         * lib/stdio--.h: Likewise.
82769         * lib/stdio-safer.h: Likewise.
82770         * lib/stdlib--.h: Likewise.
82771         * lib/stdlib-safer.h: Likewise.
82772         * lib/stdlib.in.h: Likewise.
82773         * lib/stpcpy.c: Likewise.
82774         * lib/stpncpy.c: Likewise.
82775         * lib/strchrnul.c: Likewise.
82776         * lib/strcspn.c: Likewise.
82777         * lib/strerror.c: Likewise.
82778         * lib/strftime.c: Likewise.
82779         * lib/strftime.h: Likewise.
82780         * lib/striconveh.c: Likewise.
82781         * lib/striconveh.h: Likewise.
82782         * lib/striconveha.c: Likewise.
82783         * lib/striconveha.h: Likewise.
82784         * lib/stripslash.c: Likewise.
82785         * lib/strnlen1.c: Likewise.
82786         * lib/strnlen1.h: Likewise.
82787         * lib/strtod.c: Likewise.
82788         * lib/strtoimax.c: Likewise.
82789         * lib/strtok_r.c: Likewise.
82790         * lib/strtol.c: Likewise.
82791         * lib/strtoll.c: Likewise.
82792         * lib/strtoul.c: Likewise.
82793         * lib/strtoull.c: Likewise.
82794         * lib/sysexits.in.h: Likewise.
82795         * lib/tempname.c: Likewise.
82796         * lib/tempname.h: Likewise.
82797         * lib/timespec.h: Likewise.
82798         * lib/tls.c: Likewise.
82799         * lib/tls.h: Likewise.
82800         * lib/tmpdir.c: Likewise.
82801         * lib/tmpdir.h: Likewise.
82802         * lib/tmpfile-safer.c: Likewise.
82803         * lib/tmpfile.c: Likewise.
82804         * lib/trigl.c: Likewise.
82805         * lib/trigl.h: Likewise.
82806         * lib/trim.c: Likewise.
82807         * lib/trim.h: Likewise.
82808         * lib/trunc.c: Likewise.
82809         * lib/truncf.c: Likewise.
82810         * lib/truncl.c: Likewise.
82811         * lib/tsearch.c: Likewise.
82812         * lib/unicodeio.c: Likewise.
82813         * lib/unicodeio.h: Likewise.
82814         * lib/unistd--.h: Likewise.
82815         * lib/unistd-safer.h: Likewise.
82816         * lib/unistdio/ulc-fprintf.c: Likewise.
82817         * lib/unistdio/ulc-vfprintf.c: Likewise.
82818         * lib/unlinkdir.c: Likewise.
82819         * lib/unlinkdir.h: Likewise.
82820         * lib/unlocked-io.h: Likewise.
82821         * lib/unsetenv.c: Likewise.
82822         * lib/userspec.c: Likewise.
82823         * lib/utime.c: Likewise.
82824         * lib/utimecmp.c: Likewise.
82825         * lib/utimecmp.h: Likewise.
82826         * lib/utimens.c: Likewise.
82827         * lib/verify.h: Likewise.
82828         * lib/verror.c: Likewise.
82829         * lib/verror.h: Likewise.
82830         * lib/version-etc-fsf.c: Likewise.
82831         * lib/version-etc.c: Likewise.
82832         * lib/version-etc.h: Likewise.
82833         * lib/vfprintf.c: Likewise.
82834         * lib/vprintf.c: Likewise.
82835         * lib/vsprintf.c: Likewise.
82836         * lib/w32spawn.h: Likewise.
82837         * lib/wait-process.c: Likewise.
82838         * lib/wait-process.h: Likewise.
82839         * lib/wcwidth.c: Likewise.
82840         * lib/write-any-file.c: Likewise.
82841         * lib/xalloc-die.c: Likewise.
82842         * lib/xalloc.h: Likewise.
82843         * lib/xasprintf.c: Likewise.
82844         * lib/xgetcwd.c: Likewise.
82845         * lib/xgetcwd.h: Likewise.
82846         * lib/xgetdomainname.c: Likewise.
82847         * lib/xgetdomainname.h: Likewise.
82848         * lib/xgethostname.c: Likewise.
82849         * lib/xmalloc.c: Likewise.
82850         * lib/xmalloca.c: Likewise.
82851         * lib/xmalloca.h: Likewise.
82852         * lib/xmemcoll.c: Likewise.
82853         * lib/xnanosleep.c: Likewise.
82854         * lib/xreadlink.c: Likewise.
82855         * lib/xreadlink.h: Likewise.
82856         * lib/xsetenv.c: Likewise.
82857         * lib/xsetenv.h: Likewise.
82858         * lib/xstriconv.c: Likewise.
82859         * lib/xstriconv.h: Likewise.
82860         * lib/xstrndup.c: Likewise.
82861         * lib/xstrndup.h: Likewise.
82862         * lib/xstrtod.c: Likewise.
82863         * lib/xstrtod.h: Likewise.
82864         * lib/xstrtol-error.c: Likewise.
82865         * lib/xstrtol.c: Likewise.
82866         * lib/xstrtol.h: Likewise.
82867         * lib/xtime.h: Likewise.
82868         * lib/xvasprintf.c: Likewise.
82869         * lib/xvasprintf.h: Likewise.
82870         * lib/yesno.c: Likewise.
82871         * lib/yesno.h: Likewise.
82872         * posix-modules: Likewise.
82873         * tests/test-alloca-opt.c: Likewise.
82874         * tests/test-arcfour.c: Likewise.
82875         * tests/test-arctwo.c: Likewise.
82876         * tests/test-argmatch.c: Likewise.
82877         * tests/test-argp-2.sh: Likewise.
82878         * tests/test-argp.c: Likewise.
82879         * tests/test-arpa_inet.c: Likewise.
82880         * tests/test-array_list.c: Likewise.
82881         * tests/test-array_oset.c: Likewise.
82882         * tests/test-atexit.c: Likewise.
82883         * tests/test-avltree_list.c: Likewise.
82884         * tests/test-avltree_oset.c: Likewise.
82885         * tests/test-avltreehash_list.c: Likewise.
82886         * tests/test-base64.c: Likewise.
82887         * tests/test-binary-io.c: Likewise.
82888         * tests/test-byteswap.c: Likewise.
82889         * tests/test-c-ctype.c: Likewise.
82890         * tests/test-c-strcasecmp.c: Likewise.
82891         * tests/test-c-strcasestr.c: Likewise.
82892         * tests/test-c-strncasecmp.c: Likewise.
82893         * tests/test-c-strstr.c: Likewise.
82894         * tests/test-canonicalize-lgpl.c: Likewise.
82895         * tests/test-canonicalize.c: Likewise.
82896         * tests/test-carray_list.c: Likewise.
82897         * tests/test-ceilf.c: Likewise.
82898         * tests/test-ceill.c: Likewise.
82899         * tests/test-count-one-bits.c: Likewise.
82900         * tests/test-crc.c: Likewise.
82901         * tests/test-dirname.c: Likewise.
82902         * tests/test-fbufmode.c: Likewise.
82903         * tests/test-fcntl.c: Likewise.
82904         * tests/test-fflush.c: Likewise.
82905         * tests/test-floorf.c: Likewise.
82906         * tests/test-floorl.c: Likewise.
82907         * tests/test-fopen.c: Likewise.
82908         * tests/test-fprintf-posix.c: Likewise.
82909         * tests/test-fprintf-posix.h: Likewise.
82910         * tests/test-fpurge.c: Likewise.
82911         * tests/test-freadable.c: Likewise.
82912         * tests/test-freadahead.c: Likewise.
82913         * tests/test-freading.c: Likewise.
82914         * tests/test-freopen.c: Likewise.
82915         * tests/test-frexp.c: Likewise.
82916         * tests/test-frexpl.c: Likewise.
82917         * tests/test-fseek.c: Likewise.
82918         * tests/test-fseeko.c: Likewise.
82919         * tests/test-fseterr.c: Likewise.
82920         * tests/test-fstrcmp.c: Likewise.
82921         * tests/test-ftell.c: Likewise.
82922         * tests/test-ftello.c: Likewise.
82923         * tests/test-fwritable.c: Likewise.
82924         * tests/test-fwriting.c: Likewise.
82925         * tests/test-getaddrinfo.c: Likewise.
82926         * tests/test-getpass.c: Likewise.
82927         * tests/test-gettimeofday.c: Likewise.
82928         * tests/test-hmac-md5.c: Likewise.
82929         * tests/test-hmac-sha1.c: Likewise.
82930         * tests/test-iconv.c: Likewise.
82931         * tests/test-iconvme.c: Likewise.
82932         * tests/test-inttypes.c: Likewise.
82933         * tests/test-isnan.c: Likewise.
82934         * tests/test-isnanf.c: Likewise.
82935         * tests/test-isnanl-nolibm.c: Likewise.
82936         * tests/test-isnanl.c: Likewise.
82937         * tests/test-isnanl.h: Likewise.
82938         * tests/test-ldexpl.c: Likewise.
82939         * tests/test-linked_list.c: Likewise.
82940         * tests/test-linkedhash_list.c: Likewise.
82941         * tests/test-locale.c: Likewise.
82942         * tests/test-localename.c: Likewise.
82943         * tests/test-lock.c: Likewise.
82944         * tests/test-lseek.c: Likewise.
82945         * tests/test-malloca.c: Likewise.
82946         * tests/test-math.c: Likewise.
82947         * tests/test-mbscasecmp.c: Likewise.
82948         * tests/test-mbscasestr1.c: Likewise.
82949         * tests/test-mbscasestr2.c: Likewise.
82950         * tests/test-mbscasestr3.c: Likewise.
82951         * tests/test-mbscasestr4.c: Likewise.
82952         * tests/test-mbschr.c: Likewise.
82953         * tests/test-mbscspn.c: Likewise.
82954         * tests/test-mbsncasecmp.c: Likewise.
82955         * tests/test-mbspbrk.c: Likewise.
82956         * tests/test-mbspcasecmp.c: Likewise.
82957         * tests/test-mbsrchr.c: Likewise.
82958         * tests/test-mbsspn.c: Likewise.
82959         * tests/test-mbsstr1.c: Likewise.
82960         * tests/test-mbsstr2.c: Likewise.
82961         * tests/test-mbsstr3.c: Likewise.
82962         * tests/test-md5.c: Likewise.
82963         * tests/test-memmem.c: Likewise.
82964         * tests/test-netinet_in.c: Likewise.
82965         * tests/test-open.c: Likewise.
82966         * tests/test-printf-frexp.c: Likewise.
82967         * tests/test-printf-frexpl.c: Likewise.
82968         * tests/test-printf-posix.c: Likewise.
82969         * tests/test-printf-posix.h: Likewise.
82970         * tests/test-rbtree_list.c: Likewise.
82971         * tests/test-rbtree_oset.c: Likewise.
82972         * tests/test-rbtreehash_list.c: Likewise.
82973         * tests/test-read-file.c: Likewise.
82974         * tests/test-rijndael.c: Likewise.
82975         * tests/test-search.c: Likewise.
82976         * tests/test-signbit.c: Likewise.
82977         * tests/test-sleep.c: Likewise.
82978         * tests/test-snprintf-posix.c: Likewise.
82979         * tests/test-snprintf-posix.h: Likewise.
82980         * tests/test-snprintf.c: Likewise.
82981         * tests/test-sprintf-posix.c: Likewise.
82982         * tests/test-sprintf-posix.h: Likewise.
82983         * tests/test-stat-time.c: Likewise.
82984         * tests/test-stdbool.c: Likewise.
82985         * tests/test-stdint.c: Likewise.
82986         * tests/test-stdio.c: Likewise.
82987         * tests/test-stdlib.c: Likewise.
82988         * tests/test-stpncpy.c: Likewise.
82989         * tests/test-strcasestr.c: Likewise.
82990         * tests/test-striconv.c: Likewise.
82991         * tests/test-striconveh.c: Likewise.
82992         * tests/test-striconveha.c: Likewise.
82993         * tests/test-string.c: Likewise.
82994         * tests/test-sys_select.c: Likewise.
82995         * tests/test-sys_socket.c: Likewise.
82996         * tests/test-sys_stat.c: Likewise.
82997         * tests/test-sys_time.c: Likewise.
82998         * tests/test-sysexits.c: Likewise.
82999         * tests/test-time.c: Likewise.
83000         * tests/test-tls.c: Likewise.
83001         * tests/test-trunc.c: Likewise.
83002         * tests/test-truncf.c: Likewise.
83003         * tests/test-truncl.c: Likewise.
83004         * tests/test-unistd.c: Likewise.
83005         * tests/test-vasnprintf-posix.c: Likewise.
83006         * tests/test-vasnprintf-posix2.c: Likewise.
83007         * tests/test-vasnprintf.c: Likewise.
83008         * tests/test-vasprintf-posix.c: Likewise.
83009         * tests/test-vasprintf.c: Likewise.
83010         * tests/test-verify.c: Likewise.
83011         * tests/test-vfprintf-posix.c: Likewise.
83012         * tests/test-vprintf-posix.c: Likewise.
83013         * tests/test-vsnprintf-posix.c: Likewise.
83014         * tests/test-vsnprintf.c: Likewise.
83015         * tests/test-vsprintf-posix.c: Likewise.
83016         * tests/test-wchar.c: Likewise.
83017         * tests/test-wctype.c: Likewise.
83018         * tests/test-wcwidth.c: Likewise.
83019         * tests/test-xstrtol.c: Likewise.
83020         * tests/test-xvasprintf.c: Likewise.
83021         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
83022         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
83023         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
83024         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
83025         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
83026         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
83027         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
83028         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
83029         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
83030         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
83031         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
83032         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
83033         * tests/uniname/test-uninames.c: Likewise.
83034         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
83035         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
83036         * tests/unistdio/test-u16-printf1.h: Likewise.
83037         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
83038         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
83039         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
83040         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
83041         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
83042         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
83043         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
83044         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
83045         * tests/unistdio/test-u32-printf1.h: Likewise.
83046         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
83047         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
83048         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
83049         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
83050         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
83051         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
83052         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
83053         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
83054         * tests/unistdio/test-u8-printf1.h: Likewise.
83055         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
83056         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
83057         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
83058         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
83059         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
83060         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
83061         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
83062         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
83063         * tests/unistdio/test-ulc-printf1.h: Likewise.
83064         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
83065         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
83066         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
83067         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
83068         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
83069         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
83070         * tests/uniwidth/test-u16-strwidth.c: Likewise.
83071         * tests/uniwidth/test-u16-width.c: Likewise.
83072         * tests/uniwidth/test-u32-strwidth.c: Likewise.
83073         * tests/uniwidth/test-u32-width.c: Likewise.
83074         * tests/uniwidth/test-u8-strwidth.c: Likewise.
83075         * tests/uniwidth/test-u8-width.c: Likewise.
83076         * tests/uniwidth/test-uc_width.c: Likewise.
83077         * config/srclist-update: Likewise.
83078         (fixlicense): Update to GPLv3+.
83080         Change copyright notice from LGPLv2.1+ to LGPLv3+.
83081         * tests/test-tsearch.c: Change copyright notice.
83083         Change copyright notice from LGPLv2.0+ to LGPLv3+.
83084         * lib/c-strcaseeq.h: Change copyright notice.
83085         * lib/streq.h: Likewise.
83086         * lib/uniconv.h: Likewise.
83087         * lib/uniconv/u-conv-from-enc.h: Likewise.
83088         * lib/uniconv/u-conv-to-enc.h: Likewise.
83089         * lib/uniconv/u-strconv-from-enc.h: Likewise.
83090         * lib/uniconv/u-strconv-to-enc.h: Likewise.
83091         * lib/uniconv/u16-conv-from-enc.c: Likewise.
83092         * lib/uniconv/u16-conv-to-enc.c: Likewise.
83093         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
83094         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
83095         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
83096         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
83097         * lib/uniconv/u32-conv-from-enc.c: Likewise.
83098         * lib/uniconv/u32-conv-to-enc.c: Likewise.
83099         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
83100         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
83101         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
83102         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
83103         * lib/uniconv/u8-conv-from-enc.c: Likewise.
83104         * lib/uniconv/u8-conv-to-enc.c: Likewise.
83105         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
83106         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
83107         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
83108         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
83109         * lib/uniname.h: Likewise.
83110         * lib/uniname/uniname.c: Likewise.
83111         * lib/unistdio.h: Likewise.
83112         * lib/unistdio/u-asnprintf.h: Likewise.
83113         * lib/unistdio/u-asprintf.h: Likewise.
83114         * lib/unistdio/u-printf-args.c: Likewise.
83115         * lib/unistdio/u-printf-args.h: Likewise.
83116         * lib/unistdio/u-printf-parse.h: Likewise.
83117         * lib/unistdio/u-snprintf.h: Likewise.
83118         * lib/unistdio/u-sprintf.h: Likewise.
83119         * lib/unistdio/u-vasprintf.h: Likewise.
83120         * lib/unistdio/u-vsnprintf.h: Likewise.
83121         * lib/unistdio/u-vsprintf.h: Likewise.
83122         * lib/unistdio/u16-asnprintf.c: Likewise.
83123         * lib/unistdio/u16-asprintf.c: Likewise.
83124         * lib/unistdio/u16-printf-parse.c: Likewise.
83125         * lib/unistdio/u16-snprintf.c: Likewise.
83126         * lib/unistdio/u16-sprintf.c: Likewise.
83127         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
83128         * lib/unistdio/u16-u16-asprintf.c: Likewise.
83129         * lib/unistdio/u16-u16-snprintf.c: Likewise.
83130         * lib/unistdio/u16-u16-sprintf.c: Likewise.
83131         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
83132         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
83133         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
83134         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
83135         * lib/unistdio/u16-vasnprintf.c: Likewise.
83136         * lib/unistdio/u16-vasprintf.c: Likewise.
83137         * lib/unistdio/u16-vsnprintf.c: Likewise.
83138         * lib/unistdio/u16-vsprintf.c: Likewise.
83139         * lib/unistdio/u32-asnprintf.c: Likewise.
83140         * lib/unistdio/u32-asprintf.c: Likewise.
83141         * lib/unistdio/u32-printf-parse.c: Likewise.
83142         * lib/unistdio/u32-snprintf.c: Likewise.
83143         * lib/unistdio/u32-sprintf.c: Likewise.
83144         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
83145         * lib/unistdio/u32-u32-asprintf.c: Likewise.
83146         * lib/unistdio/u32-u32-snprintf.c: Likewise.
83147         * lib/unistdio/u32-u32-sprintf.c: Likewise.
83148         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
83149         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
83150         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
83151         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
83152         * lib/unistdio/u32-vasnprintf.c: Likewise.
83153         * lib/unistdio/u32-vasprintf.c: Likewise.
83154         * lib/unistdio/u32-vsnprintf.c: Likewise.
83155         * lib/unistdio/u32-vsprintf.c: Likewise.
83156         * lib/unistdio/u8-asnprintf.c: Likewise.
83157         * lib/unistdio/u8-asprintf.c: Likewise.
83158         * lib/unistdio/u8-printf-parse.c: Likewise.
83159         * lib/unistdio/u8-snprintf.c: Likewise.
83160         * lib/unistdio/u8-sprintf.c: Likewise.
83161         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
83162         * lib/unistdio/u8-u8-asprintf.c: Likewise.
83163         * lib/unistdio/u8-u8-snprintf.c: Likewise.
83164         * lib/unistdio/u8-u8-sprintf.c: Likewise.
83165         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
83166         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
83167         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
83168         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
83169         * lib/unistdio/u8-vasnprintf.c: Likewise.
83170         * lib/unistdio/u8-vasprintf.c: Likewise.
83171         * lib/unistdio/u8-vsnprintf.c: Likewise.
83172         * lib/unistdio/u8-vsprintf.c: Likewise.
83173         * lib/unistdio/ulc-asnprintf.c: Likewise.
83174         * lib/unistdio/ulc-asprintf.c: Likewise.
83175         * lib/unistdio/ulc-printf-parse.c: Likewise.
83176         * lib/unistdio/ulc-snprintf.c: Likewise.
83177         * lib/unistdio/ulc-sprintf.c: Likewise.
83178         * lib/unistdio/ulc-vasnprintf.c: Likewise.
83179         * lib/unistdio/ulc-vasprintf.c: Likewise.
83180         * lib/unistdio/ulc-vsnprintf.c: Likewise.
83181         * lib/unistdio/ulc-vsprintf.c: Likewise.
83182         * lib/unistr.h: Likewise.
83183         * lib/unistr/u-cpy-alloc.h: Likewise.
83184         * lib/unistr/u-cpy.h: Likewise.
83185         * lib/unistr/u-endswith.h: Likewise.
83186         * lib/unistr/u-move.h: Likewise.
83187         * lib/unistr/u-set.h: Likewise.
83188         * lib/unistr/u-startswith.h: Likewise.
83189         * lib/unistr/u-stpcpy.h: Likewise.
83190         * lib/unistr/u-stpncpy.h: Likewise.
83191         * lib/unistr/u-strcat.h: Likewise.
83192         * lib/unistr/u-strcpy.h: Likewise.
83193         * lib/unistr/u-strcspn.h: Likewise.
83194         * lib/unistr/u-strdup.h: Likewise.
83195         * lib/unistr/u-strlen.h: Likewise.
83196         * lib/unistr/u-strncat.h: Likewise.
83197         * lib/unistr/u-strncpy.h: Likewise.
83198         * lib/unistr/u-strnlen.h: Likewise.
83199         * lib/unistr/u-strpbrk.h: Likewise.
83200         * lib/unistr/u-strspn.h: Likewise.
83201         * lib/unistr/u-strstr.h: Likewise.
83202         * lib/unistr/u-strtok.h: Likewise.
83203         * lib/unistr/u16-check.c: Likewise.
83204         * lib/unistr/u16-chr.c: Likewise.
83205         * lib/unistr/u16-cmp.c: Likewise.
83206         * lib/unistr/u16-cpy-alloc.c: Likewise.
83207         * lib/unistr/u16-cpy.c: Likewise.
83208         * lib/unistr/u16-endswith.c: Likewise.
83209         * lib/unistr/u16-mblen.c: Likewise.
83210         * lib/unistr/u16-mbsnlen.c: Likewise.
83211         * lib/unistr/u16-mbtouc-aux.c: Likewise.
83212         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
83213         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
83214         * lib/unistr/u16-mbtouc.c: Likewise.
83215         * lib/unistr/u16-mbtoucr.c: Likewise.
83216         * lib/unistr/u16-move.c: Likewise.
83217         * lib/unistr/u16-next.c: Likewise.
83218         * lib/unistr/u16-prev.c: Likewise.
83219         * lib/unistr/u16-set.c: Likewise.
83220         * lib/unistr/u16-startswith.c: Likewise.
83221         * lib/unistr/u16-stpcpy.c: Likewise.
83222         * lib/unistr/u16-stpncpy.c: Likewise.
83223         * lib/unistr/u16-strcat.c: Likewise.
83224         * lib/unistr/u16-strchr.c: Likewise.
83225         * lib/unistr/u16-strcmp.c: Likewise.
83226         * lib/unistr/u16-strcpy.c: Likewise.
83227         * lib/unistr/u16-strcspn.c: Likewise.
83228         * lib/unistr/u16-strdup.c: Likewise.
83229         * lib/unistr/u16-strlen.c: Likewise.
83230         * lib/unistr/u16-strmblen.c: Likewise.
83231         * lib/unistr/u16-strmbtouc.c: Likewise.
83232         * lib/unistr/u16-strncat.c: Likewise.
83233         * lib/unistr/u16-strncmp.c: Likewise.
83234         * lib/unistr/u16-strncpy.c: Likewise.
83235         * lib/unistr/u16-strnlen.c: Likewise.
83236         * lib/unistr/u16-strpbrk.c: Likewise.
83237         * lib/unistr/u16-strrchr.c: Likewise.
83238         * lib/unistr/u16-strspn.c: Likewise.
83239         * lib/unistr/u16-strstr.c: Likewise.
83240         * lib/unistr/u16-strtok.c: Likewise.
83241         * lib/unistr/u16-to-u32.c: Likewise.
83242         * lib/unistr/u16-to-u8.c: Likewise.
83243         * lib/unistr/u16-uctomb-aux.c: Likewise.
83244         * lib/unistr/u16-uctomb.c: Likewise.
83245         * lib/unistr/u32-check.c: Likewise.
83246         * lib/unistr/u32-chr.c: Likewise.
83247         * lib/unistr/u32-cmp.c: Likewise.
83248         * lib/unistr/u32-cpy-alloc.c: Likewise.
83249         * lib/unistr/u32-cpy.c: Likewise.
83250         * lib/unistr/u32-endswith.c: Likewise.
83251         * lib/unistr/u32-mblen.c: Likewise.
83252         * lib/unistr/u32-mbsnlen.c: Likewise.
83253         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
83254         * lib/unistr/u32-mbtouc.c: Likewise.
83255         * lib/unistr/u32-mbtoucr.c: Likewise.
83256         * lib/unistr/u32-move.c: Likewise.
83257         * lib/unistr/u32-next.c: Likewise.
83258         * lib/unistr/u32-prev.c: Likewise.
83259         * lib/unistr/u32-set.c: Likewise.
83260         * lib/unistr/u32-startswith.c: Likewise.
83261         * lib/unistr/u32-stpcpy.c: Likewise.
83262         * lib/unistr/u32-stpncpy.c: Likewise.
83263         * lib/unistr/u32-strcat.c: Likewise.
83264         * lib/unistr/u32-strchr.c: Likewise.
83265         * lib/unistr/u32-strcmp.c: Likewise.
83266         * lib/unistr/u32-strcpy.c: Likewise.
83267         * lib/unistr/u32-strcspn.c: Likewise.
83268         * lib/unistr/u32-strdup.c: Likewise.
83269         * lib/unistr/u32-strlen.c: Likewise.
83270         * lib/unistr/u32-strmblen.c: Likewise.
83271         * lib/unistr/u32-strmbtouc.c: Likewise.
83272         * lib/unistr/u32-strncat.c: Likewise.
83273         * lib/unistr/u32-strncmp.c: Likewise.
83274         * lib/unistr/u32-strncpy.c: Likewise.
83275         * lib/unistr/u32-strnlen.c: Likewise.
83276         * lib/unistr/u32-strpbrk.c: Likewise.
83277         * lib/unistr/u32-strrchr.c: Likewise.
83278         * lib/unistr/u32-strspn.c: Likewise.
83279         * lib/unistr/u32-strstr.c: Likewise.
83280         * lib/unistr/u32-strtok.c: Likewise.
83281         * lib/unistr/u32-to-u16.c: Likewise.
83282         * lib/unistr/u32-to-u8.c: Likewise.
83283         * lib/unistr/u32-uctomb.c: Likewise.
83284         * lib/unistr/u8-check.c: Likewise.
83285         * lib/unistr/u8-chr.c: Likewise.
83286         * lib/unistr/u8-cmp.c: Likewise.
83287         * lib/unistr/u8-cpy-alloc.c: Likewise.
83288         * lib/unistr/u8-cpy.c: Likewise.
83289         * lib/unistr/u8-endswith.c: Likewise.
83290         * lib/unistr/u8-mblen.c: Likewise.
83291         * lib/unistr/u8-mbsnlen.c: Likewise.
83292         * lib/unistr/u8-mbtouc-aux.c: Likewise.
83293         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
83294         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
83295         * lib/unistr/u8-mbtouc.c: Likewise.
83296         * lib/unistr/u8-mbtoucr.c: Likewise.
83297         * lib/unistr/u8-move.c: Likewise.
83298         * lib/unistr/u8-next.c: Likewise.
83299         * lib/unistr/u8-prev.c: Likewise.
83300         * lib/unistr/u8-set.c: Likewise.
83301         * lib/unistr/u8-startswith.c: Likewise.
83302         * lib/unistr/u8-stpcpy.c: Likewise.
83303         * lib/unistr/u8-stpncpy.c: Likewise.
83304         * lib/unistr/u8-strcat.c: Likewise.
83305         * lib/unistr/u8-strchr.c: Likewise.
83306         * lib/unistr/u8-strcmp.c: Likewise.
83307         * lib/unistr/u8-strcpy.c: Likewise.
83308         * lib/unistr/u8-strcspn.c: Likewise.
83309         * lib/unistr/u8-strdup.c: Likewise.
83310         * lib/unistr/u8-strlen.c: Likewise.
83311         * lib/unistr/u8-strmblen.c: Likewise.
83312         * lib/unistr/u8-strmbtouc.c: Likewise.
83313         * lib/unistr/u8-strncat.c: Likewise.
83314         * lib/unistr/u8-strncmp.c: Likewise.
83315         * lib/unistr/u8-strncpy.c: Likewise.
83316         * lib/unistr/u8-strnlen.c: Likewise.
83317         * lib/unistr/u8-strpbrk.c: Likewise.
83318         * lib/unistr/u8-strrchr.c: Likewise.
83319         * lib/unistr/u8-strspn.c: Likewise.
83320         * lib/unistr/u8-strstr.c: Likewise.
83321         * lib/unistr/u8-strtok.c: Likewise.
83322         * lib/unistr/u8-to-u16.c: Likewise.
83323         * lib/unistr/u8-to-u32.c: Likewise.
83324         * lib/unistr/u8-uctomb-aux.c: Likewise.
83325         * lib/unistr/u8-uctomb.c: Likewise.
83326         * lib/unitypes.h: Likewise.
83327         * lib/uniwidth.h: Likewise.
83328         * lib/uniwidth/cjk.h: Likewise.
83329         * lib/uniwidth/u16-strwidth.c: Likewise.
83330         * lib/uniwidth/u16-width.c: Likewise.
83331         * lib/uniwidth/u32-strwidth.c: Likewise.
83332         * lib/uniwidth/u32-width.c: Likewise.
83333         * lib/uniwidth/u8-strwidth.c: Likewise.
83334         * lib/uniwidth/u8-width.c: Likewise.
83335         * lib/uniwidth/width.c: Likewise.
83337 2007-10-07  Bruno Haible  <bruno@clisp.org>
83339         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
83340         The file is still under LGPL (see modules/inttypes).
83342 2007-10-06  Bruno Haible  <bruno@clisp.org>
83344         * modules/trunc (Dependencies): Add 'extensions'.
83345         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
83346         Reported by Ben Pfaff <blp@gnu.org>.
83348 2007-10-06  Bruno Haible  <bruno@clisp.org>
83350         * modules/freopen-tests: New file.
83351         * tests/test-freopen.c: New file.
83353         * modules/fopen-tests: New file.
83354         * tests/test-fopen.c: New file.
83356         * modules/fopen: New file.
83357         * lib/fopen.c: New file.
83358         * m4/fopen.m4: New file.
83359         * modules/freopen: New file.
83360         * lib/freopen.c: New file.
83361         * m4/freopen.m4: New file.
83362         * lib/stdio.in.h (fopen, freopen): New declarations.
83363         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
83364         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
83365         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
83366         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
83367         * doc/functions/fopen.texi: Mention the 'fopen' module.
83368         * doc/functions/freopen.texi: Mention the 'freopen' module.
83370 2007-10-06  Bruno Haible  <bruno@clisp.org>
83372         * modules/open-tests: New file.
83373         * tests/test-open.c: New file.
83375         * modules/open: New file.
83376         * lib/open.c: New file.
83377         * m4/open.m4: New file.
83378         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
83379         lib/open.c does.
83380         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
83381         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
83382         macros.
83383         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
83384         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
83385         REPLACE_OPEN.
83386         * doc/functions/open.texi: Mention the 'open' module.
83388 2007-10-04  Bruno Haible  <bruno@clisp.org>
83390         * modules/ceill-tests: New file.
83391         * tests/test-ceill.c: New file.
83393         * modules/ceill: New file.
83394         * lib/ceill.c: Replace entire file.
83395         * m4/ceill.m4: New file.
83396         * lib/math.in.h (ceill): Replace declaration.
83397         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
83398         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
83399         * doc/functions/ceill.texi: Mention the 'ceill' module.
83400         * modules/mathl (Files): Remove lib/ceill.c.
83401         (Depends-on): Add ceill.
83403 2007-10-04  Bruno Haible  <bruno@clisp.org>
83405         * modules/ceilf-tests: New file.
83406         * tests/test-ceilf.c: New file.
83408         * modules/ceilf: New file.
83409         * lib/ceil.c: New file.
83410         * lib/ceilf.c: New file.
83411         * m4/ceilf.m4: New file.
83412         * lib/math.in.h (ceilf): New declaration.
83413         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
83414         HAVE_DECL_CEILF.
83415         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
83416         HAVE_DECL_CEILF.
83417         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
83419 2007-10-04  Bruno Haible  <bruno@clisp.org>
83421         * modules/floorl-tests: New file.
83422         * tests/test-floorl.c: New file.
83424         * modules/floorl: New file.
83425         * lib/floorl.c: Replace entire file.
83426         * m4/floorl.m4: New file.
83427         * lib/math.in.h (floorl): Replace declaration.
83428         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
83429         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
83430         * doc/functions/floorl.texi: Mention the 'floorl' module.
83431         * modules/mathl (Files): Remove lib/floorl.c.
83432         (Depends-on): Add floorl.
83434 2007-10-04  Bruno Haible  <bruno@clisp.org>
83436         * modules/floorf-tests: New file.
83437         * tests/test-floorf.c: New file.
83439         * modules/floorf: New file.
83440         * lib/floor.c: New file.
83441         * lib/floorf.c: New file.
83442         * m4/floorf.m4: New file.
83443         * lib/math.in.h (floorf): New declaration.
83444         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
83445         HAVE_DECL_FLOORF.
83446         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
83447         HAVE_DECL_FLOORF.
83448         * doc/functions/floorf.texi: Mention the 'floorf' module.
83450 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
83451             Bruno Haible  <bruno@clisp.org>
83453         Advertise for the Git server instead of the CVS server.
83454         * doc/gnulib-intro.texi (Steady Development): Mention the Git
83455         repository instead of the CVS one.
83456         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
83457         about all VCS systems generically.
83458         * doc/gnulib.texi (Introduction): Capitalize `Git'.
83460 2007-10-04  Bruno Haible  <bruno@clisp.org>
83462         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
83463         means.
83464         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
83466 2007-10-04  Bruno Haible  <bruno@clisp.org>
83468         * modules/truncl-tests: New file.
83469         * tests/test-truncl.c: New file.
83471         * modules/truncl: New file.
83472         * lib/truncl.c: New file.
83473         * m4/truncl.m4: New file.
83474         * lib/math.in.h (truncl): New declaration.
83475         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
83476         HAVE_DECL_TRUNCL.
83477         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
83478         HAVE_DECL_TRUNCL.
83479         * doc/functions/truncl.texi: Mention the 'truncl' module.
83481 2007-10-04  Bruno Haible  <bruno@clisp.org>
83483         * modules/truncf-tests: New file.
83484         * tests/test-truncf.c: New file.
83486         * modules/truncf: New file.
83487         * lib/trunc.c: Make paramerizable through USE_* macros.
83488         * lib/truncf.c: New file.
83489         * m4/truncf.m4: New file.
83490         * lib/math.in.h (truncf): New declaration.
83491         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
83492         HAVE_DECL_TRUNCF.
83493         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
83494         HAVE_DECL_TRUNCF.
83495         * doc/functions/truncf.texi: Mention the 'truncf' module.
83497 2007-10-03  Bruno Haible  <bruno@clisp.org>
83499         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
83500         augmentation also for tests modules.
83501         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
83502         * modules/atexit-tests (Makefile.am): Likewise.
83503         * modules/binary-io-tests (Makefile.am): Likewise.
83504         * modules/c-strcase-tests (Makefile.am): Likewise.
83505         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
83506         * modules/canonicalize-tests (Makefile.am): Likewise.
83507         * modules/closein-tests (Makefile.am): Likewise.
83508         * modules/fprintf-posix-tests (Makefile.am): Likewise.
83509         * modules/freadahead-tests (Makefile.am): Likewise.
83510         * modules/fseek-tests (Makefile.am): Likewise.
83511         * modules/fseeko-tests (Makefile.am): Likewise.
83512         * modules/ftell-tests (Makefile.am): Likewise.
83513         * modules/ftello-tests (Makefile.am): Likewise.
83514         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
83515         * modules/isnanl-tests (Makefile.am): Likewise.
83516         * modules/lseek-tests (Makefile.am): Likewise.
83517         * modules/mbscasecmp-tests (Makefile.am): Likewise.
83518         * modules/mbscasestr-tests (Makefile.am): Likewise.
83519         * modules/mbschr-tests (Makefile.am): Likewise.
83520         * modules/mbscspn-tests (Makefile.am): Likewise.
83521         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
83522         * modules/mbspbrk-tests (Makefile.am): Likewise.
83523         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
83524         * modules/mbsrchr-tests (Makefile.am): Likewise.
83525         * modules/mbsspn-tests (Makefile.am): Likewise.
83526         * modules/mbsstr-tests (Makefile.am): Likewise.
83527         * modules/printf-posix-tests (Makefile.am): Likewise.
83528         * modules/snprintf-posix-tests (Makefile.am): Likewise.
83529         * modules/sprintf-posix-tests (Makefile.am): Likewise.
83530         * modules/tsearch-tests (Makefile.am): Likewise.
83531         * modules/uniname/uniname-tests (Makefile.am): Likewise.
83532         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
83533         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
83534         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
83535         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
83536         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
83537         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
83538         * modules/vprintf-posix-tests (Makefile.am): Likewise.
83539         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
83540         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
83541         * modules/xstrtoimax-tests (Makefile.am): Likewise.
83542         * modules/xstrtol-tests (Makefile.am): Likewise.
83543         * modules/xstrtoumax-tests (Makefile.am): Likewise.
83544         * modules/yesno-tests (Makefile.am): Likewise.
83546 2007-10-03  Bruno Haible  <bruno@clisp.org>
83548         * modules/trunc-tests: New file.
83549         * tests/test-trunc.c: New file.
83551         * modules/trunc: New file.
83552         * lib/trunc.c: New file.
83553         * m4/trunc.m4: New file.
83554         * lib/math.in.h (trunc): New declaration.
83555         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
83556         HAVE_DECL_TRUNC.
83557         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
83558         HAVE_DECL_TRUNC.
83559         * doc/functions/trunc.texi: Mention the 'trunc' module.
83561 2007-10-03  Bruno Haible  <bruno@clisp.org>
83563         * tests/test-fpending.c: New file, mostly copied
83564         from coreutils/lib/t-fpending.c.
83565         * modules/fpending-tests: New file.
83567 2007-10-03  Bruno Haible  <bruno@clisp.org>
83569         Port the stdio extensions to QNX (untested).
83570         * lib/fseterr.c (fseterr): Add support for QNX.
83571         * lib/fbufmode.c (fbufmode): Likewise.
83572         * lib/freadable.c (freadable): Likewise.
83573         * lib/fwritable.c (fwritable): Likewise.
83574         * lib/freading.c (freading): Likewise.
83575         * lib/fwriting.c (fwriting): Likewise.
83576         * lib/freadahead.c (freadahed): Likewise.
83577         * lib/fpurge.c (fpurge): Likewise.
83578         * lib/fseeko.c (rpl_fseeko): Likewise.
83580 2007-10-03  Bruno Haible  <bruno@clisp.org>
83581             Jim Meyering  <jim@meyering.net>
83582             Eric Blake  <ebb9@byu.net>
83584         * doc/relocatable.texi: Use @command instead of @program.
83586 2007-10-02  Jim Meyering  <jim@meyering.net>
83588         Perform one more "_.h" -> ".in.h" substitution.
83589         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
83590         instead of unistd_.h here, too.
83592 2007-10-01  Bruno Haible  <bruno@clisp.org>
83594         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
83595         Needed for the alloca-opt module.
83597 2007-09-30  Bruno Haible  <bruno@clisp.org>
83599         * lib/alloca.in.h: Renamed from lib/alloca_.h.
83600         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
83601         alloca_.h.
83602         * lib/argz.in.h: Renamed from lib/argz_.h.
83603         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
83604         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
83605         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
83606         byteswap_.h.
83607         * lib/dirent.in.h: Renamed from lib/dirent_.h.
83608         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
83609         dirent_.h.
83610         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
83611         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
83612         fcntl_.h.
83613         * lib/float.in.h: Renamed from lib/float_.h.
83614         * modules/float (Files, Makefile.am): Use float.in.h instead of
83615         float_.h.
83616         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
83617         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
83618         fnmatch_.h.
83619         * lib/getopt.in.h: Renamed from lib/getopt_.h.
83620         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
83621         getopt_.h.
83622         * lib/glob.in.h: Renamed from lib/glob_.h.
83623         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
83624         * lib/iconv.in.h: Renamed from lib/iconv_.h.
83625         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
83626         iconv_.h.
83627         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
83628         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
83629         inttypes_.h.
83630         * lib/locale.in.h: Renamed from lib/locale_.h.
83631         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
83632         locale_.h.
83633         * lib/math.in.h: Renamed from lib/math_.h.
83634         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
83635         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
83636         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
83637         of netinet_in_.h. Add dependency.
83638         * lib/poll.in.h: Renamed from lib/poll_.h.
83639         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
83640         * lib/search.in.h: Renamed from lib/search_.h.
83641         * modules/search (Files, Makefile.am): Use search.in.h instead of
83642         search_.h.
83643         * lib/signal.in.h: Renamed from lib/signal_.h.
83644         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
83645         _signal.h.
83646         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
83647         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
83648         stdbool_.h.
83649         * lib/stdint.in.h: Renamed from lib/stdint_.h.
83650         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
83651         stdint_.h.
83652         * lib/stdio.in.h: Renamed from lib/stdio_.h.
83653         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
83654         stdio_.h.
83655         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
83656         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
83657         stdlib_.h.
83658         * lib/string.in.h: Renamed from lib/string_.h.
83659         * modules/string (Files, Makefile.am): Use string.in.h instead of
83660         string_.h.
83661         * doc/gnulib-tool.texi (Initial import): Update.
83662         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
83663         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
83664         of sys_select_.h. Add dependency.
83665         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
83666         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
83667         of sys_socket_.h.
83668         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
83669         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
83670         sys_stat_.h.
83671         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
83672         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
83673         sys_time_.h.
83674         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
83675         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
83676         sysexits_.h.
83677         * lib/time.in.h: Renamed from lib/time_.h.
83678         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
83679         * lib/unistd.in.h: Renamed from lib/unistd_.h.
83680         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
83681         unistd_.h.
83682         * lib/wchar.in.h: Renamed from lib/wchar_.h.
83683         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
83684         wchar_.h.
83685         * lib/wctype.in.h: Renamed from lib/wctype_.h.
83686         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
83687         wctype_.h.
83688         * build-aux/bootstrap (slurp): Update.
83689         * lib/.cppi-disable: Update.
83691 2007-09-30  Bruno Haible  <bruno@clisp.org>
83693         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
83694         Needed on BeOS.
83696 2007-09-30  Bruno Haible  <bruno@clisp.org>
83698         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
83700 2007-09-29  Bruno Haible  <bruno@clisp.org>
83702         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
83704 2007-09-29  Bruno Haible  <bruno@clisp.org>
83706         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
83707         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
83708         * build-aux/install-reloc: Compile also areadlink.c.
83709         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
83711 2007-09-29  Bruno Haible  <bruno@clisp.org>
83713         * gnulib-tool (func_emit_initmacro_done): Indentation.
83715 2007-09-29  Bruno Haible  <bruno@clisp.org>
83717         * README: Add CVS checkout update instructions.
83718         Info from Bob Proulx <bob@proulx.com>.
83720 2007-09-28  Eric Blake  <ebb9@byu.net>
83722         Provide move-if-change.
83723         * build-aux/move-if-change: New file, based on best practice
83724         rather than any canonical upstream location.
83726 2007-09-28  Jim Meyering  <jim@meyering.net>
83728         Fix canonicalize loop-detection corner case.
83729         Do not attempt to stat the symlink values stored via seen_triple.
83730         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
83731         on linux-2.6.18, (but not 2.6.22).
83732         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
83733         triple_compare.  The former compares dev,ino,filename, while the latter
83734         would actually stat dirname(filename) when dev and ino were equal.
83735         * lib/hash-triple.c: Install <string.h>.
83736         (STREQ): Define.
83737         (triple_compare_ino_str): New function.
83738         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
83740 2007-09-28  Eric Blake  <ebb9@byu.net>
83742         Enforce that AC_REPLACE_FUNCS files exist.
83743         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
83744         override check for typos.
83746         Fix test-closein on Solaris 10.
83747         * tests/test-closein.c (main): Don't assume stdin can be inherited
83748         closed on all systems.
83749         * tests/test-closein.sh: Likewise.
83750         Reported by Piotr Tarnowski.
83752 2007-09-28  Jim Meyering  <jim@meyering.net>
83754         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
83756 2007-09-27  Jim Meyering  <jim@meyering.net>
83758         canonicalize: Avoid a false-positive cycle failure.
83759         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
83760         Sort.  Remove cycle-check.
83761         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
83762         not cycle-check.h.
83763         (seen_triple): New function.
83764         (canonicalize_filename_mode): Use it instead of cycle-check.
83765         * tests/test-canonicalize.c: Add a test for this bug.
83766         * tests/test-canonicalize.sh: Set up and run the test.
83768         New module, file-set, from coreutils.
83769         * modules/file-set: Define it.
83770         * lib/file-set.c, lib/file-set.h: Implement.
83772         New module, hash-triple, from coreutils.
83773         * modules/hash-triple: Define it.
83774         * lib/hash-triple.c, lib/hash-triple.h: Implement.
83776 2007-09-25  Eric Blake  <ebb9@byu.net>
83778         Fix strerror on Interix.
83779         * lib/string_.h (strerror): Declare replacement.
83780         * doc/functions/strerror.texi (strerror): Document the Interix
83781         shortcoming.
83782         * modules/string (Makefile.am): Support new hooks.
83783         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
83784         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
83785         gl_FUNC_STRERROR_SEPARATE.
83786         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
83787         * lib/strerror.c (rpl_strerror): Provide replacement.
83788         * modules/strerror (Depends-on): Add string.
83789         (configure.ac): Detect use of module.
83790         * tests/test-strerror.c: New file.
83791         * modules/strerror-tests: New test module.
83792         * modules/argp (Depends-on): Add strerror.
83793         * modules/error (Depends-on): Likewise.
83794         Reported by Martin Koeppe.
83796 2007-09-24  Bruno Haible  <bruno@clisp.org>
83798         * README: Update git instructions.
83800 2007-09-24  Eric Blake  <ebb9@byu.net>
83802         Revert fpending breakage from 2007-09-08.
83803         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
83804         __fpending.c.
83806 2007-09-24  Jim Meyering  <jim@meyering.net>
83808         filenamecat.c: Add a test.
83809         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
83810         showing how the function works when DIR is the empty string.
83812 2007-09-21  Simon Josefsson  <simon@josefsson.org>
83814         * tests/test-canonicalize.sh: Turn on executable bit.
83816 2007-09-19  Eric Blake  <ebb9@byu.net>
83818         * README: Update CVS instructions.
83820 2007-09-18  Bruno Haible  <bruno@clisp.org>
83822         * modules/areadlink: New file.
83823         * lib/areadlink.h (areadlink): New declaration.
83824         * lib/areadlink.c: New file, based on lib/xreadlink.c.
83826 2007-09-17  Jim Meyering  <jim@meyering.net>
83828         * lib/savewd.c (ESTALE) [!defined]: Define.
83829         Reported to be required on Interix by Martin Koeppe.
83831 2007-09-17  Bruno Haible  <bruno@clisp.org>
83833         * gnulib-tool (func_version): Use $version.
83835 2007-09-16  Bruno Haible  <bruno@clisp.org>
83837         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
83838         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
83839         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
83840         Reported by Greg Schafer <gschafer@zip.com.au>.
83842 2007-09-15  Bruno Haible  <bruno@clisp.org>
83844         * gnulib-tool (sed): Try a little harder to make bash understand the
83845         alias.
83846         Reported by Bruce Korb <bruce.korb@gmail.com>.
83848 2007-09-13  Eric Blake  <ebb9@byu.net>
83850         * ChangeLog: Remove conflict markers.
83852 2007-09-13  Simon Josefsson  <simon@josefsson.org>
83854         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
83855         Reported by Bruno Haible <bruno@clisp.org>.
83857 2007-09-12  Bruno Haible  <bruno@clisp.org>
83859         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
83860         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
83861         is not defined.
83863 2007-09-12  Eric Blake  <ebb9@byu.net>
83865         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
83866         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
83867         Autoconf definition.
83868         * modules/euidaccess (Depends-on): Add extensions, for
83869         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
83870         * modules/fnmatch (Depends-on): Likewise.
83871         * modules/getaddrinfo (Depends-on): Likewise.
83872         * modules/getdelim (Depends-on): Likewise.
83873         * modules/getline (Depends-on): Likewise.
83874         * modules/getsubopt (Depends-on): Likewise.
83875         * modules/gettext (Depends-on): Likewise.
83876         * modules/group-member (Depends-on): Likewise.
83877         * modules/mbchar (Depends-on): Likewise.
83878         * modules/memmem (Depends-on): Likewise.
83879         * modules/mempcpy (Depends-on): Likewise.
83880         * modules/memrchr (Depends-on): Likewise.
83881         * modules/pagealign_alloc (Depends-on): Likewise.
83882         * modules/readutmp (Depends-on): Likewise.
83883         * modules/stpcpy (Depends-on): Likewise.
83884         * modules/stpncpy (Depends-on): Likewise.
83885         * modules/strchrnul (Depends-on): Likewise.
83886         * modules/strndup (Depends-on): Likewise.
83887         * modules/strsep (Depends-on): Likewise.
83888         * modules/strverscmp (Depends-on): Likewise.
83889         * modules/vasprintf (Depends-on): Likewise.
83890         * modules/wcwidth (Depends-on): Likewise.
83891         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
83892         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
83893         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
83894         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
83895         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
83896         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
83897         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
83898         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
83899         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
83900         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
83901         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
83902         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
83903         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
83904         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
83905         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
83906         * m4/readutmp.m4 (gl_READUTMP): Likewise.
83907         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
83908         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
83909         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
83910         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
83911         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
83912         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
83913         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
83914         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
83915         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
83916         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
83917         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
83918         so that lock.m4 can be used in gettext without extensions module.
83920 2007-09-11  Bruno Haible  <bruno@clisp.org>
83922         * m4/isc-posix.m4: Remove file.
83923         Suggested by Eric Blake.
83925 2007-09-11  Eric Blake  <ebb9@byu.net>
83927         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
83929 2007-09-10  Bruno Haible  <bruno@clisp.org>
83931         * posix-modules: Fix typo in error message.
83932         Reported by Matt <mkraai@beckman.com>.
83934 2007-09-09  Bruno Haible  <bruno@clisp.org>
83936         * doc/functions/getdelim.texi: Update list of platforms lacking the
83937         function.
83938         * doc/functions/getline.texi: Likewise.
83940 2007-09-09  Jim Meyering  <jim@meyering.net>
83942         * lib/hash.c (hash_initialize): Detect calloc failure.
83943         Reported by Bruno Haible.
83945 2007-09-09  Bruno Haible  <bruno@clisp.org>
83947         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
83948         malloc or realloc fails.
83950 2007-09-09  Bruno Haible  <bruno@clisp.org>
83952         * modules/getcwd (Depends-on): Add malloc-posix.
83953         * modules/glob (Depends-on): Likewise.
83954         * modules/putenv (Depends-on): Likewise.
83955         * modules/strdup (Depends-on): Likewise.
83956         * modules/getdelim (Depends-on): Add realloc-posix.
83957         * modules/read-file (Depends-on): Likewise.
83959 2007-09-09  Bruno Haible  <bruno@clisp.org>
83961         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
83962         (gl_FUNC_MALLOC_POSIX): Require it.
83963         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
83964         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
83965         * modules/realloc (Files): Add m4/malloc.m4.
83966         * modules/calloc (Files): Likewise.
83968 2007-09-09  Bruno Haible  <bruno@clisp.org>
83970         * modules/malloc-posix: New file.
83971         * modules/malloc (Depends-on): Add malloc-posix.
83972         * lib/malloc.c: Include errno.h.
83973         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
83974         and a POSIX-compatible malloc into a single function. Set ENOMEM
83975         when returning NULL.
83976         * m4/malloc.m4: New file.
83977         * doc/functions/malloc.texi: Mention the malloc-posix module.
83978         * lib/stdlib_.h (malloc): New declaration.
83979         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
83980         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
83981         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
83982         and HAVE_MALLOC_POSIX.
83984 2007-09-09  Bruno Haible  <bruno@clisp.org>
83986         * modules/realloc-posix: New file.
83987         * modules/realloc (Depends-on): Add realloc-posix.
83988         * lib/realloc.c: Include errno.h.
83989         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
83990         and a POSIX-compatible realloc into a single function. Set ENOMEM
83991         when returning NULL.
83992         * m4/realloc.m4: New file.
83993         * doc/functions/realloc.texi: Mention the realloc-posix module.
83994         * lib/stdlib_.h (realloc): New declaration.
83995         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
83996         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
83997         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
83998         and HAVE_REALLOC_POSIX.
84000 2007-09-09  Bruno Haible  <bruno@clisp.org>
84002         * modules/calloc-posix: New file.
84003         * modules/calloc (Depends-on): Add calloc-posix.
84004         * lib/calloc.c: Include errno.h.
84005         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
84006         and a POSIX-compatible calloc into a single function. Set ENOMEM
84007         when returning NULL.
84008         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
84009         * doc/functions/calloc.texi: Mention the calloc-posix module.
84010         * lib/stdlib_.h (calloc): New declaration.
84011         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
84012         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
84013         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
84014         and HAVE_CALLOC_POSIX.
84016 2007-09-09  Bruno Haible  <bruno@clisp.org>
84018         Allow for modules to show an arbitrary notice.
84019         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
84020         * gnulib-tool: New option --extract-notice.
84021         (func_usage): Document it.
84022         (sed_extract_prog): Update.
84023         (func_get_notice): New function.
84024         (func_modules_notice): New function.
84025         (func_import, func_create_testdir): Invoke it.
84026         Suggested by Jim Meyering.
84028 2007-09-09  Bruno Haible  <bruno@clisp.org>
84030         * gnulib-tool: New options --verbose, --quiet.
84031         (func_usage): Document them.
84032         (verbose): New variable.
84033         (func_execute_command): New function.
84034         (func_import): Don't show the module list and the file list if
84035         $verbose < 0.
84036         (func_create_testdir): Likewise. Use func_execute_command.
84037         (func_create_megatestdir): Use func_execute_command.
84039 2007-09-08  Bruno Haible  <bruno@clisp.org>
84041         * gnulib-tool (func_import): Prefer rsync over wget when available,
84042         for fetching the PO files.
84044 2007-09-08  Bruno Haible  <bruno@clisp.org>
84046         * posix-modules: New file. Portions copied from gnulib-tool.
84047         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
84049 2007-09-08  Jim Meyering  <jim@meyering.net>
84051         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
84052         * lib/fpending.h: Rename from __fpending.h.
84053         * lib/fpending.c: Rename from __fpending.c.
84054         Include "fpending.h", not "__fpending.h".
84055         * lib/__fpending.h, lib/__fpending.c: Remove files.
84056         * modules/fpending (Files): Reflect new file names.
84057         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
84059 2007-09-08  Bruno Haible  <bruno@clisp.org>
84061         * m4/inttypes-h.m4: Remove stub file.
84063 2007-09-07  Simon Josefsson  <simon@josefsson.org>
84065         * doc/headers/stdint.texi: Discuss #include_next issue.
84067 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
84069         * build-aux/bootstrap: Remove obsolete comment about wget --help.
84071 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84073         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
84074         in variable name.
84076 2007-09-03  Jim Meyering  <jim@meyering.net>
84078         New module: git-version-gen.
84079         * modules/git-version-gen: New file.
84081         Import changes from coreutils for bootstrap script.
84083         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
84085         bootstrap: uses rsync to download the .po files
84086         * build-aux/bootstrap (po_download_command_format): New global.
84087         (download_po_files): Use rsync.
84088         (update_po_files): Don't remove .po files after download,
84089         so future rsync runs can take advantage of the copies.
84091         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
84093         Solve the unnecessary-.po-file-regeneration problem once and for all.
84094         * build-aux/bootstrap (download_po_files): New function, renamed from
84095         get_translations.  Now, downloads, but doesn't update LINGUAS.
84096         (update_po_files): New function.
84098         bootstrap: Ignore more.
84099         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
84100         uniwidth to e.g., lib/.gitignore.
84101         (slurp): Handle the sys_stat_.h -> sys mapping, too.
84103         * build-aux/bootstrap: New setting: vc_ignore.
84104         (insert_sorted_if_absent): Create $file if absent.
84105         Adapt to new, possibly empty, list: $vc_ignore.
84107         bootstrap: generate more ignorable names
84108         * build-aux/bootstrap (slurp): When generating ignorable names,
84109         also map .sin to .sed, .gperf to .c, and .y to .c.
84111 2007-09-03  Jim Meyering  <jim@meyering.net>
84113         * build-aux/git-version-gen: New file, from coreutils.  For details, see
84114         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
84116 2007-09-02  Bruno Haible  <bruno@clisp.org>
84118         Fix mis-recognition of 'mcs' on QNX 6.
84119         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
84120         output contains the string "Mono".
84121         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
84122         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
84124 2007-09-01  Bruno Haible  <bruno@clisp.org>
84126         Fix collision between uniwidth/* and linebreak modules.
84127         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
84128         u32_width): Remove declarations.
84129         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
84130         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
84131         streq3, streq2, streq1, streq0): Remove functions.
84132         (STREQ): Remove macro.
84133         (is_cjk_encoding): Remove function.
84134         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
84135         (uc_width, u8_width, u16_width, u32_width): Remove functions.
84136         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
84137         * NEWS: Document the change.
84139 2007-09-01  Bruno Haible  <bruno@clisp.org>
84141         * lib/streq.h: Add double-inclusion guard.
84143 2007-09-01  Karl Berry  <karl@gnu.org>
84145         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
84147 2007-08-28  Jim Meyering  <jim@meyering.net>
84149         Rename mreadlink_with_size to areadlink_with_size.
84150         * NEWS: Document the change.
84151         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
84152         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
84153         * lib/mreadlink.h: Rename this to...
84154         * lib/areadlink.h: ...this.
84155         * modules/mreadlink-with-size: Rename this to...
84156         * modules/areadlink-with-size: ...this.
84157         * lib/canonicalize.c: Reflect the renaming.
84158         * modules/canonicalize: Likewise.
84160 2007-08-26  Bruno Haible  <bruno@clisp.org>
84162         * gnulib-tool (func_import): When deciding which files to remove,
84163         consider also dangling symbolic links.
84164         Reported by Eric Blake.
84166 2007-08-26  Bruno Haible  <bruno@clisp.org>
84168         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
84170 2007-08-23  Simon Josefsson  <simon@josefsson.org>
84172         * lib/readline.c: Don't include getline.h, the prototype is now
84173         found in stdio.h.
84175 2007-08-23  Jim Meyering  <jim@meyering.net>
84177         Getdelim touchup.
84178         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
84179         around the funlockfile call, since funlockfile never sets errno.
84180         Don't set errno upon failed realloc.
84182 2007-08-22  Eric Blake  <ebb9@byu.net>
84184         Getline touchups.
84185         * lib/getdelim.c (getdelim): Revert regression that required *n to
84186         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
84187         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
84188         getdelim, rather than whether implementation is missing.
84189         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
84190         * lib/stdio_.h (getline): Also declare if replacement is
84191         required.
84192         * doc/functions/getdelim.texi: New file.
84193         * doc/functions/getline.texi: Likewise.
84194         * doc/gnulib.texi (Function Substitutes): Add new files.
84195         Reported by Bruno Haible.
84197 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
84199         * users.txt: Add Guile.
84201 2007-08-22  Eric Blake  <ebb9@byu.net>
84203         * tests/test-getdelim.c (main): Use remove, not unlink.
84204         * tests/test-getline.c (main): Likewise.
84206         Move getline and getdelim into stdio.h, per POSIX 200x.
84207         * modules/getline (Files): Remove getline.h.
84208         (Depends-on): Add stdio.
84209         (configure.ac): Add module indicator.
84210         * modules/getdelim (Files): Remove getdelim.h.
84211         (Depends-on): Add stdio.
84212         (configure.ac): Add module indicator.
84213         * modules/stdio (Makefile.am): Work with new indicators.
84214         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
84215         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
84216         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
84217         * lib/getdelim.h: Delete.
84218         * lib/getline.h: Delete.
84219         * lib/stdio_.h (getdelim, getline): Declare.
84220         * modules/getdelim-tests: New module.
84221         * modules/getline-tests: Likewise.
84222         * tests/test-getdelim.c: New file.
84223         * tests/test-getline.c: Likewise.
84224         * NEWS: Document the change.
84225         * lib/getline.c: Update choice of header.
84226         * lib/csharpcomp.c: Likewise.
84227         * lib/getpass.c: Likewise.
84228         * lib/javacomp.c: Likewise.
84229         * lib/javaversion.c: Likewise.
84230         * lib/yesno.c: Likewise.
84231         * lib/getdelim.c: Likewise.
84232         (getdelim): Set errno on failure, and avoid memory leak.
84234 2007-08-19  Bruno Haible  <bruno@clisp.org>
84236         * modules/closein (Depends-on): Add freadahead.
84237         * lib/closein.c: Include freadahead.h.
84238         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
84239         is zero.
84241 2007-08-19  Bruno Haible  <bruno@clisp.org>
84243         * modules/freadahead-tests: New file.
84244         * tests/test-freadahead.sh: New file.
84245         * tests/test-freadahead.c: New file.
84247         * modules/freadahead: New file.
84248         * lib/freadahead.h: New file.
84249         * lib/freadahead.c: New file.
84250         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
84251         fbufmode, fpurge, freadable, fwritable.
84253 2007-08-19  Eric Blake  <ebb9@byu.net>
84255         Test yesno in combination with closein.
84256         * lib/yesno.c (yesno): Document use of stdin.
84257         * modules/yesno-tests (Files): New module.
84258         * tests/test-yesno.c (main): New file.
84259         * tests/test-yesno.sh: Likewise.
84261 2007-08-19  Bruno Haible  <bruno@clisp.org>
84263         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
84264         * lib/fseeko.c (rpl_fseeko): Likewise.
84265         * lib/fseterr.c (fseterr): Likewise.
84267 2007-08-19  Bruno Haible  <bruno@clisp.org>
84269         * tests/test-lseek.c (main): Disable a test for BeOS.
84270         * doc/functions/lseek.texi: Document the BeOS bug.
84272 2007-08-19  Bruno Haible  <bruno@clisp.org>
84273             Eric Blake  <ebb9@byu.net>
84275         * lib/lseek.c: Include <sys/stat.h>.
84276         (rpl_lseek): Add workaround code also for Unix platforms.
84277         Needed for BeOS.
84278         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
84279         * doc/functions/lseek.texi: Document BeOS definiency.
84281 2007-08-18  Bruno Haible  <bruno@clisp.org>
84283         * modules/fstrcmp-tests: New file.
84284         * tests/test-fstrcmp.c: New file.
84286 2007-08-18  Bruno Haible  <bruno@clisp.org>
84288         * modules/fstrcmp: New file, from GNU gettext with modifications.
84289         * lib/fstrcmp.h: New file, from GNU gettext.
84290         * lib/fstrcmp.c: New file, from GNU gettext.
84291         * MODULES.html.sh (String handling): Add fstrcmp.
84293 2007-08-18  Bruno Haible  <bruno@clisp.org>
84295         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
84296         'bool'.
84297         (diag, compareseq): Remove const from the ctxt argument.
84298         (USE_HEURISTIC): Undefine at the end.
84300 2007-08-18  Jim Meyering  <jim@meyering.net>
84302         New file: lib/idcache.h
84303         * NEWS: Mention the addition.
84304         * modules/idcache (Files): Add lib/idcache.h
84305         * lib/idcache.c: Include "idcache.h".
84306         Don't include <sys/types.h>.
84307         Add a FIXME comment.
84308         Move file-scoped "static" declarations to the top.
84309         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
84311 2007-08-17  Bruno Haible  <bruno@clisp.org>
84312         and Paul Eggert  <eggert@cs.ucla.edu>
84314         * MODULES.html.sh: Add diffseq.
84315         * modules/diffseq: New file.
84316         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
84317         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
84319 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
84321         Import changes from coreutils for bootstrap script.
84323         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
84325         * build-aux/bootstrap (slurp): Work even in environments where
84326         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
84327         current code does not slurp files whose names start with ".", and
84328         this looks like it might be a troublesome area.
84330         2007-07-11  Jim Meyering  <jim@meyering.net>
84332         If there's a GPL vN copyright comment, require that N == 3.
84334         2007-07-08  Jim Meyering  <jim@meyering.net>
84336         Run the coreutils-specific code only if tests/Makefile.am.in exists.
84337         * build-aux/bootstrap (mam_template): Move definition out of loop.
84339         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
84341         * build-aux/bootstrap (symlink_to_dir): Rename function from
84342         symlink_to_gnulib.  Add a directory parameter.  Update all
84343         callers.
84344         (cp_mark_as_generated): Also check for -- and link to -- files in
84345         gl/.
84347         2007-07-08  Jim Meyering  <jim@meyering.net>
84349         Adapt to deeper hierarchy in gnulib.
84350         * build-aux/bootstrap (symlink_to_dir): If the destination
84351         directory doesn't exist, create it. This is required at least for
84352         "lib/uniwidth/cjk.h".
84354         2007-05-15  Jim Meyering  <jim@meyering.net>
84356         * build-aux/bootstrap: Now that generated Makefile.am files
84357         are no longer under version control, they must be created at
84358         bootstrap time.
84360 2007-08-14  Ben Pfaff  <blp@gnu.org>
84362         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
84364 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
84366         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
84367         given the changes below.
84368         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
84369         even on hosts that have padding bits beyond the supported 64.
84371 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
84373         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
84374         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
84375         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
84376         depends on it.
84377         (xstrtol_error): Remove.
84378         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
84379         but with a different signature.
84380         (ATTRIBUTE_NORETURN, __attribute__): New macros.
84381         * lib/xstrtol-error.c: Include exitfail.h.
84382         (xstrtol_fatal): New function, with a different signature from the
84383         old xstrtol_error, so that the caller need not worry about passing
84384         in an exit status, or about storage management of the option argument.
84385         (xstrtol_error): Now a static function.  Redo signature to
84386         implement xstrtol_fatal.  Output the correct number of hyphens in
84387         front of the option so that the caller need not worry about
84388         storage management.
84389         (N_): New macro.
84390         (_): Remove; not used now.
84391         * modules/xstrtol: Depend on getopt.
84392         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
84393         of old STRTOL_FATAL_ERROR macro.
84394         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
84395         of test program.
84396         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
84397         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
84399 2007-08-08  Eric Blake  <ebb9@byu.net>
84401         * lib/xstrtol-error.c: Add missing include.
84403         Move xstrtol messages into gnulib domain, when --pobase is used.
84404         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
84405         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
84406         * modules/xstrtol (Files): Distribute new file.
84407         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
84408         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
84409         * tests/test-xstrtol.c: ...into new file.
84410         * tests/test-xstrtoul.c: Also test xstrtoul.
84411         * tests/test-xstrtoimax.c: Also test xstrtoimax.
84412         * tests/test-xstrtoumax.c: Also test xstrtoumax.
84413         * tests/test-xstrtol.sh: Drive the tests.
84414         * tests/test-xstrtoimax.sh: Likewise.
84415         * tests/test-xstrtoumax.sh: Likewise.
84416         * modules/xstrtol-tests: New module.
84417         * modules/xstrtoimax-tests: Likewise.
84418         * modules/xstrtoumax-tests: Likewise.
84420 2007-08-08  Jim Meyering  <jim@meyering.net>
84422         New function: mfile_name_concat.
84423         * lib/filenamecat.c (mfile_name_concat): New function, just like
84424         file_name_concat, but return NULL upon failure rather than exiting
84425         with a diagnostic.
84426         * lib/filenamecat.h: Declare it.
84428 2007-08-07  Bruno Haible  <bruno@clisp.org>
84430         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
84431         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
84432         warning from gcc.
84433         Reported by Eric Blake.
84435 2007-08-07  Simon Josefsson  <simon@josefsson.org>
84437         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
84438         * modules/crypto/arcfour (License): Likewise.
84439         * modules/crypto/des-tests (License): Likewise.
84440         * modules/crypto/gc-arctwo-tests (License): Likewise.
84441         * modules/crypto/gc-des-tests (License): Likewise.
84442         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
84443         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
84444         * modules/crypto/gc-md2-tests (License): Likewise.
84445         * modules/crypto/gc-md4-tests (License): Likewise.
84446         * modules/crypto/gc-md5-tests (License): Likewise.
84447         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
84448         * modules/crypto/gc-rijndael-tests (License): Likewise.
84449         * modules/crypto/gc-sha1-tests (License): Likewise.
84450         * modules/crypto/gc-tests (License): Likewise.
84451         * modules/crypto/hmac-md5 (License): Likewise.
84452         * modules/crypto/hmac-sha1 (License): Likewise.
84453         * modules/crypto/md2-tests (License): Likewise.
84454         * modules/crypto/md4-tests (License): Likewise.
84455         * modules/crypto/md5 (License): Likewise.
84456         * modules/crypto/rijndael (License): Likewise.
84457         * modules/crypto/sha1 (License): Likewise.
84458         * modules/memxor (License): Likewise.
84460 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84461         and Bruno Haible  <bruno@clisp.org>
84463         * NEWS: Describe interface changes to human, xstrtol.
84464         * lib/human.h: Include <xstrtol.h>.
84465         (human_options): Return enum strtol_error, not int.  Remove
84466         bool arg; take int * instead.
84467         * lib/human.c: Don't include "gettext.h".
84468         (_): Remove; no longer used.
84469         Don't include <xstrtol.h>, since human.h does it.
84470         (human_options): Adjust to abovementioned interface changes.
84471         Do not report error to stderr; that's now the caller's
84472         responsibility.
84473         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
84474         interface change.
84475         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
84476         Str, Argument_type_string.  All uses changed.  Put " argument"
84477         in diagnostics to make them clearer.  Change wording of suffix
84478         message for clarity.
84479         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
84480         Argument_type_string.
84481         (STRTOL_FATAL_WARN): Remove; no longer used.
84482         * modules/human (Depends-on): Remove gettext-h.
84484 2007-08-06  Simon Josefsson  <simon@josefsson.org>
84486         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
84488 2007-07-31  Bruno Haible  <bruno@clisp.org>
84490         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
84491         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
84492         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
84494 2007-07-31  Bruno Haible  <bruno@clisp.org>
84496         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
84497         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
84499 2007-07-30  Bruno Haible  <bruno@clisp.org>
84501         * modules/base64 (License): Use the synonymous term "LGPLv2+".
84502         * modules/c-ctype (License): Likewise.
84503         * modules/c-strcase (License): Likewise.
84504         * modules/check-version (License): Likewise.
84505         * modules/iconv (License): Likewise.
84506         * modules/iconv_open (License): Likewise.
84507         * modules/read-file (License): Likewise.
84508         * modules/striconv (License): Likewise.
84509         * modules/strverscmp (License): Likewise.
84510         * modules/vasprintf (License): Likewise.
84511         * modules/crypto/des (License): Likewise.
84512         * modules/crypto/gc (License): Likewise.
84513         * modules/crypto/gc-arcfour (License): Likewise.
84514         * modules/crypto/gc-arctwo (License): Likewise.
84515         * modules/crypto/gc-des (License): Likewise.
84516         * modules/crypto/gc-hmac-md5 (License): Likewise.
84517         * modules/crypto/gc-hmac-sha1 (License): Likewise.
84518         * modules/crypto/gc-md2 (License): Likewise.
84519         * modules/crypto/gc-md4 (License): Likewise.
84520         * modules/crypto/gc-md5 (License): Likewise.
84521         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
84522         * modules/crypto/gc-random (License): Likewise.
84523         * modules/crypto/gc-rijndael (License): Likewise.
84524         * modules/crypto/gc-sha1 (License): Likewise.
84525         * modules/crypto/md2 (License): Likewise.
84526         * modules/crypto/md4 (License): Likewise.
84528 2007-07-30  Jim Meyering  <jim@meyering.net>
84530         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
84531         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
84532         it has valid stat data.  This bug would cause du not to count the
84533         sizes of inaccessible directories.
84534         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
84535         in <http://bugzilla.redhat.com/250077>.
84537 2007-07-25  Peter O'Gorman  <peter@pogma.com>
84538             Bruno Haible  <bruno@clisp.org>
84540         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
84541         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
84542         #include_next, gives a diagnostic about it, but reports no error in
84543         the exit code.
84544         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
84546 2007-07-24  Ben Pfaff  <blp@gnu.org>
84548         Improve name: "count-one-bits" is better than "popcount".
84549         * MODULES.html.sh: Update name.
84550         * lib/popcount.h: Renamed lib/count-one-bits.h.
84551         (popcount): Renamed count_one_bits.
84552         (popcountl): Renamed count_one_bits_l.
84553         (popcountll): Renamed count_one_bits_ll.
84554         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
84555         * modules/popcount: Renamed module/count-one-bits.
84556         * modules/popcount-tests: Renamed module/count-one-bits-tests.
84557         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
84559 2007-07-23  Ben Pfaff  <blp@gnu.org>
84561         * lib/popcount.h (popcount32): Reduce size of constants, to allow
84562         better code generation, and add U to large constants to avoid
84563         warnings, in non-GCC case.
84564         Suggested by Bruno Haible.
84566 2007-07-23  Ben Pfaff  <blp@gnu.org>
84568         * lib/popcount.h: Use verify_true instead of if...abort.
84569         * modules/popcount: Depend on verify module.
84570         Suggested by Jim Meyering.
84572 2007-07-23  Bruno Haible  <bruno@clisp.org>
84574         * gnulib-tool (func_import): Create a .cvsignore file also when the
84575         directory is not yet in CVS but the toplevel directory is. When
84576         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
84577         Reported by Karl Berry.
84579 2007-07-22  Ben Pfaff  <blp@gnu.org>
84581         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
84582         case.
84583         Suggested by Eric Blake.
84585 2007-07-22  Ben Pfaff  <blp@gnu.org>
84587         New module: popcount.
84588         * MODULES.html.sh: Add popcount.
84589         * modules/popcount: New file.
84590         * modules/popcount-tests: New file.
84591         * tests/test-popcount.c: New file.
84592         * lib/popcount.h: New file.
84593         * m4/popcount.m4: New file.
84595 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
84597         * build-aux/announce-gen: Update to GPLv3.
84599         * build-aux/config.guess: Update from config.
84601 2007-07-21  Bruno Haible  <bruno@clisp.org>
84603         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
84604         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
84606 2007-07-20  Jim Meyering  <jim@meyering.net>
84608         * check-module: Diagnose a self-dependency.
84610 2007-07-19  Bruno Haible  <bruno@clisp.org>
84612         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
84613         empty.
84614         Reported by Eric Blake.
84616 2007-07-18  Bruno Haible  <bruno@clisp.org>
84618         * gnulib-tool: New options --po-base, --po-domain.
84619         (func_usage): Document them.
84620         (pobase, po_domain): New variables.
84621         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
84622         DEFAULT_TEXT_DOMAIN.
84623         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
84624         (func_import): Consider pobase and po_domain. Create a po/ directory.
84625         (func_create_testdir): Set pobase and po_domain to empty.
84626         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
84627         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
84629 2007-07-18  Bruno Haible  <bruno@clisp.org>
84631         * gnulib-tool (func_get_automake_snippet): Synthesize also an
84632         EXTRA_DIST augmentation for files in build-aux/.
84634 2007-07-16  Bruno Haible  <bruno@clisp.org>
84636         * modules/lseek (License): Use the synonymous term "LGPLv2+".
84637         * modules/getdelim (License): Likewise.
84639 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84641         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
84642         * modules/d-type (License): Likewise.
84643         * modules/extensions (License): Likewise.
84644         * modules/fnmatch (License): Likewise.
84645         * modules/fseeko (License): Likewise.
84646         * modules/getaddrinfo (License): Likewise.
84647         * modules/getline (License): Likewise.
84648         * modules/getlogin_r (License): Likewise.
84649         * modules/getpass (License): Likewise.
84650         * modules/gettimeofday (License): Likewise.
84651         * modules/glob (License): Likewise.
84652         * modules/inet_ntop (License): Likewise.
84653         * modules/malloc (License): Likewise.
84654         * modules/malloca (License): Likewise.
84655         * modules/memmem (License): Likewise.
84656         * modules/mempcpy (License): Likewise.
84657         * modules/memset (License): Likewise.
84658         * modules/minmax (License): Likewise.
84659         * modules/mktime (License): Likewise.
84660         * modules/netinet_in (License): Likewise.
84661         * modules/pathmax (License): Likewise.
84662         * modules/poll (License): Likewise.
84663         * modules/regex (License): Likewise.
84664         * modules/snprintf (License): Likewise.
84665         * modules/stdbool (License): Likewise.
84666         * modules/stdint (License): Likewise.
84667         * modules/stdio (License): Likewise.
84668         * modules/strcase (License): Likewise.
84669         * modules/strcasestr (License): Likewise.
84670         * modules/strdup (License): Likewise.
84671         * modules/string (License): Likewise.
84672         * modules/strndup (License): Likewise.
84673         * modules/strnlen (License): Likewise.
84674         * modules/strpbrk (License): Likewise.
84675         * modules/strptime (License): Likewise.
84676         * modules/strsep (License): Likewise.
84677         * modules/sys_select (License): Likewise.
84678         * modules/sys_socket (License): Likewise.
84679         * modules/sys_stat (License): Likewise.
84680         * modules/sys_time (License): Likewise.
84681         * modules/time (License): Likewise.
84682         * modules/time_r (License): Likewise.
84683         * modules/timegm (License): Likewise.
84684         * modules/unistd (License): Likewise.
84685         * modules/vsnprintf (License): Likewise.
84686         * modules/wctype (License): Likewise.
84688 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84690         * modules/argz (License): LGPLv2+.
84692 2007-07-15  Karl Berry  <karl@gnu.org>
84694         * doc/gnulib.texi: revise node structure per new fdl.texi.
84696 2007-07-14  Bruno Haible  <bruno@clisp.org>
84698         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
84699         the output file.
84700         * lib/uniname/uninames.h: Regenerated.
84702 2007-07-14  Karl Berry  <karl@gnu.org>
84704         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
84705         omitting sectioning and index commands.
84707 2007-07-13  Bruno Haible  <bruno@clisp.org>
84709         New gnulib-tool option --more-symlinks.
84710         * gnulib-tool (func_usage): Document --more-symlinks.
84711         (do_copyrights): New variable.
84712         Recognize option --more-symlinks.
84713         (func_import): Don't add a copyright notice transform to
84714         sed_transform_lib_file if do_copyrights is empty.
84716 2007-07-13  Bruno Haible  <bruno@clisp.org>
84718         * lib/vasnprintf.c (decimal_point_char): Define also if
84719         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
84720         && !NEED_PRINTF_DIRECTIVE_A.
84721         Reported by Clemens Koller <clemens.koller@anagramm.de> via
84722         Gary V. Vaughan <gary@gnu.org>.
84724 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
84726         * lib/inttypes_.h: Undo previous change, since it was fixed
84727         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
84729 2007-07-13  Bruno Haible  <bruno@clisp.org>
84731         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
84732         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
84734 2007-07-13  Jim Meyering  <jim@meyering.net>
84736         df: Don't fail for Tru64's "file-on-file mount".
84737         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
84738         so we fall through and use statfs instead.  Details here:
84739         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
84740         Reported by Albert Chin.
84742 2007-07-13  Bruno Haible  <bruno@clisp.org>
84744         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
84745         * modules/configmake (License): Likewise.
84746         * modules/gettext (License): Likewise.
84747         * modules/gettext-h (License): Likewise.
84748         * modules/include_next (License): Likewise.
84749         * modules/link-warning (License): Likewise.
84750         * modules/localcharset (License): Likewise.
84751         * modules/localename (License): Likewise.
84752         * modules/lock (License): Likewise.
84753         * modules/relocatable-lib-lgpl (License): Likewise.
84754         * modules/size_max (License): Likewise.
84755         * modules/vasnprintf (License): Likewise.
84756         * modules/wchar (License): Likewise.
84757         * modules/xsize (License): Likewise.
84759 2007-07-13  Bruno Haible  <bruno@clisp.org>
84761         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
84762         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
84764 2007-07-12  Bruno Haible  <bruno@clisp.org>
84766         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
84767         in the modules files.
84769 2007-07-11  Karl Berry  <karl@gnu.org>
84771         * MODULES.html.sh (func_module): use
84772          sed -e '\|^'"${includefile}"'$|d'
84773          instead of /.../d, to avoid errors on $includefile's containing /.
84775 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
84777         * gnulib-tool (func_import): Avoid duplication of --avoid
84778         statements
84779         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
84780         names to `_' in variable names.
84782 2007-07-10  Eric Blake  <ebb9@byu.net>
84784         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
84785         * NEWS: Document this change.
84787 2007-07-08  Bruno Haible  <bruno@clisp.org>
84789         Update to Unicode 5.0.
84790         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
84791         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
84792         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
84793         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
84794         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
84795         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
84796         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
84797         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
84798         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
84799         U+10A3F, U+1D242..U+1D244.
84800         (nonspacing_table_ind): Update.
84801         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
84802         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
84804 2007-07-08  Bruno Haible  <bruno@clisp.org>
84806         Update to Unicode 5.0.
84807         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
84808         code transform. Extend the name index field of unicode_name_to_code and
84809         unicode_code_to_name from 16 to 24 bits.
84810         * lib/uniname/uniname.c (unicode_character_name,
84811         unicode_name_character): Add the range 0x12xxx to the code transform.
84812         * lib/uniname/uninames.h: Regenerated.
84813         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
84815 2007-07-07  Bruno Haible  <bruno@clisp.org>
84817         * modules/wcwidth-tests: New file.
84818         * tests/test-wcwidth.c: New file.
84820         Work around MacOS X wcwidth() bug.
84821         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
84822         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
84823         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
84824         original wcwidth in non-UTF-8 locales.
84825         * modules/wcwidth (Depends-on): Add localcharset, streq,
84826         uniwidth/width.
84827         * doc/functions/wcwidth.texi: Update.
84829 2007-07-07  Bruno Haible  <bruno@clisp.org>
84831         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
84832         (wcwidth): New declaration.
84833         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
84834         macros.
84835         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
84836         here. Prepare for creating <wchar.h> unconditionally.
84837         * modules/wchar (Depends-on): Add link-warning.
84838         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
84839         REPLACE_WCWIDTH, and GL_LINK_WARNING.
84840         * lib/wcwidth.h: Remove file.
84841         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
84842         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
84843         * modules/wcwidth (Files): Remove lib/wcwidth.h.
84844         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
84845         (Include): Replace wcwidth.h with <wchar.h>.
84846         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
84847         * lib/mbchar.h: Don't include wcwidth.h.
84848         * lib/mbswidth.c: Likewise.
84849         * NEWS: Mention the change.
84851 2007-07-07  Bruno Haible  <bruno@clisp.org>
84853         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
84854         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
84855         definition with an external declaration.
84856         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
84857         defined as a function. Remove AC_C_INLINE requirement.
84858         * modules/wcwidth (Files): Add lib/wcwidth.c.
84859         (Makefile.am): Remove redundant statement.
84861 2007-07-07  Bruno Haible  <bruno@clisp.org>
84863         * MODULES.html.sh (Unicode string functions): Add the new modules.
84865         * tests/uniwidth/test-u32-strwidth.c: New file.
84866         * modules/uniwidth/u32-strwidth-tests: New file.
84868         * lib/uniwidth/u32-strwidth.c: New file.
84869         * modules/uniwidth/u32-strwidth: New file.
84871         * tests/uniwidth/test-u16-strwidth.c: New file.
84872         * modules/uniwidth/u16-strwidth-tests: New file.
84874         * lib/uniwidth/u16-strwidth.c: New file.
84875         * modules/uniwidth/u16-strwidth: New file.
84877         * tests/uniwidth/test-u8-strwidth.c: New file.
84878         * modules/uniwidth/u8-strwidth-tests: New file.
84880         * lib/uniwidth/u8-strwidth.c: New file.
84881         * modules/uniwidth/u8-strwidth: New file.
84883         * tests/uniwidth/test-u32-width.c: New file.
84884         * modules/uniwidth/u32-width-tests: New file.
84886         * lib/uniwidth/u32-width.c: New file.
84887         * modules/uniwidth/u32-width: New file.
84889         * tests/uniwidth/test-u16-width.c: New file.
84890         * modules/uniwidth/u16-width-tests: New file.
84892         * lib/uniwidth/u16-width.c: New file.
84893         * modules/uniwidth/u16-width: New file.
84895         * tests/uniwidth/test-u8-width.c: New file.
84896         * modules/uniwidth/u8-width-tests: New file.
84898         * lib/uniwidth/u8-width.c: New file.
84899         * modules/uniwidth/u8-width: New file.
84901         * tests/uniwidth/test-uc_width.c: New file.
84902         * modules/uniwidth/width-tests: New file.
84904         * lib/uniwidth/width.c: New file, from GNU libiconv.
84905         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
84906         * modules/uniwidth/width: New file.
84908         * lib/uniwidth.h: New file, from GNU libiconv.
84909         * modules/uniwidth/base: New file.
84911 2007-07-07  Bruno Haible  <bruno@clisp.org>
84913         * lib/uniname.h: New file, from GNU gettext.
84914         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
84915         * lib/uniname/uninames.h: New file, from GNU gettext.
84916         * lib/uniname/uniname.c: New file, from GNU gettext.
84917         * tests/uniname/test-uninames.sh: New file.
84918         * tests/uniname/test-uninames.c: New file, from GNU gettext.
84919         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
84920         * modules/uniname/base: New file.
84921         * modules/uniname/uniname: New file.
84922         * modules/uniname/uniname-tests: New file.
84923         * MODULES.html.sh (Unicode string functions): Add the new modules.
84925 2007-07-06  Bruno Haible  <bruno@clisp.org>
84927         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
84929 2007-07-06  Bruno Haible  <bruno@clisp.org>
84931         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
84932         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
84933         includes <cygwin/sys_time.h> which includes <sys/select.h> which
84934         include <sys/time.h>.
84935         Reported by Eric Blake.
84937 2007-07-06  Eric Blake  <ebb9@byu.net>
84939         Fix testing canonicalize on cygwin.
84940         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
84941         Revert patch from 2007-06-19.
84942         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
84943         canonicalize module is also in use.
84944         * tests/test-canonicalize.c: New file.
84945         * tests/test-canonicalize.sh: Likewise.
84946         * modules/canonicalize-tests: Likewise.
84948 2007-07-06  Jim Meyering  <jim@meyering.net>
84950         * lib/getugroups.c (getugroups): Detect getgrent failure.
84951         Adjust comment to reflect reality: this function may return -1.
84953 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
84955         * build-aux/bootstrap (TP_URL,get_translations): Update to use
84956         the new TP address.
84957         (usage): Fix typo
84958         (gnulib_mk): New variable.
84960 2007-07-05  Jim Meyering  <jim@meyering.net>
84962         Don't let endgrent clobber errno, no matter how improbable.
84963         * lib/getugroups.c (getugroups): Save and restore errno around
84964         endgrent call.
84966         Close the group DB even when failing with 2^31 or more members.
84967         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
84969 2007-07-04  Jim Meyering  <jim@meyering.net>
84971         * lib/getugroups.h: New file.
84972         * lib/getugroups.c: Include "getugroups.h".
84973         Remove uses of "register" keyword.
84974         Move local variable, "cp", down into scope where used.
84975         Give "username" parameter the "const" attribute.
84976         * modules/getugroups (Files): Add lib/getugroups.h
84978 2007-07-04  Karl Berry  <karl@gnu.org>
84980         * MODULES.html.sh (func_all_modules): Complete rename of
84981         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
84983 2007-07-02  Bruno Haible  <bruno@clisp.org>
84985         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
84986         mode, when inttypes.h comes from gnulib.
84987         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
84989 2007-07-02  Simon Josefsson  <simon@josefsson.org>
84991         * NEWS: Mention lgpl module name change.
84993         * modules/lgpl-2.1: Renamed from lgpl.
84995         * NEWS: Mention gpl module name change.
84997         * modules/gpl-3.0: New file, based on gpl-2.0.
84999         * modules/gpl-2.0: Renamed from gpl.
85001         * modules/gpl: Fix filename, doc/gpl.texi is now found at
85002         doc/gpl-2.0.texi.
85004 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
85006         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
85007         #define __STDC_LIMIT_MACROS temporarily while including
85008         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
85009         Problem reported by Joel E. Denny in
85010         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
85012 2007-07-01  Bruno Haible  <bruno@clisp.org>
85014         * lib/unistdio.h: New file.
85015         * lib/unistdio/u-asnprintf.h: New file.
85016         * lib/unistdio/u-asprintf.h: New file.
85017         * lib/unistdio/u-printf-args.c: New file.
85018         * lib/unistdio/u-printf-args.h: New file.
85019         * lib/unistdio/u-printf-parse.h: New file.
85020         * lib/unistdio/u-snprintf.h: New file.
85021         * lib/unistdio/u-sprintf.h: New file.
85022         * lib/unistdio/u-vasprintf.h: New file.
85023         * lib/unistdio/u-vsnprintf.h: New file.
85024         * lib/unistdio/u-vsprintf.h: New file.
85025         * lib/unistdio/ulc-asnprintf.c: New file.
85026         * lib/unistdio/ulc-asprintf.c: New file.
85027         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
85028         * lib/unistdio/ulc-printf-parse.c: New file.
85029         * lib/unistdio/ulc-snprintf.c: New file.
85030         * lib/unistdio/ulc-sprintf.c: New file.
85031         * lib/unistdio/ulc-vasnprintf.c: New file.
85032         * lib/unistdio/ulc-vasprintf.c: New file.
85033         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
85034         * lib/unistdio/ulc-vsnprintf.c: New file.
85035         * lib/unistdio/ulc-vsprintf.c: New file.
85036         * lib/unistdio/u8-asnprintf.c: New file.
85037         * lib/unistdio/u8-asprintf.c: New file.
85038         * lib/unistdio/u8-printf-parse.c: New file.
85039         * lib/unistdio/u8-snprintf.c: New file.
85040         * lib/unistdio/u8-sprintf.c: New file.
85041         * lib/unistdio/u8-vasnprintf.c: New file.
85042         * lib/unistdio/u8-vasprintf.c: New file.
85043         * lib/unistdio/u8-vsnprintf.c: New file.
85044         * lib/unistdio/u8-vsprintf.c: New file.
85045         * lib/unistdio/u8-u8-asnprintf.c: New file.
85046         * lib/unistdio/u8-u8-asprintf.c: New file.
85047         * lib/unistdio/u8-u8-snprintf.c: New file.
85048         * lib/unistdio/u8-u8-sprintf.c: New file.
85049         * lib/unistdio/u8-u8-vasnprintf.c: New file.
85050         * lib/unistdio/u8-u8-vasprintf.c: New file.
85051         * lib/unistdio/u8-u8-vsnprintf.c: New file.
85052         * lib/unistdio/u8-u8-vsprintf.c: New file.
85053         * lib/unistdio/u16-asnprintf.c: New file.
85054         * lib/unistdio/u16-asprintf.c: New file.
85055         * lib/unistdio/u16-printf-parse.c: New file.
85056         * lib/unistdio/u16-snprintf.c: New file.
85057         * lib/unistdio/u16-sprintf.c: New file.
85058         * lib/unistdio/u16-vasnprintf.c: New file.
85059         * lib/unistdio/u16-vasprintf.c: New file.
85060         * lib/unistdio/u16-vsnprintf.c: New file.
85061         * lib/unistdio/u16-vsprintf.c: New file.
85062         * lib/unistdio/u16-u16-asnprintf.c: New file.
85063         * lib/unistdio/u16-u16-asprintf.c: New file.
85064         * lib/unistdio/u16-u16-snprintf.c: New file.
85065         * lib/unistdio/u16-u16-sprintf.c: New file.
85066         * lib/unistdio/u16-u16-vasnprintf.c: New file.
85067         * lib/unistdio/u16-u16-vasprintf.c: New file.
85068         * lib/unistdio/u16-u16-vsnprintf.c: New file.
85069         * lib/unistdio/u16-u16-vsprintf.c: New file.
85070         * lib/unistdio/u32-asnprintf.c: New file.
85071         * lib/unistdio/u32-asprintf.c: New file.
85072         * lib/unistdio/u32-printf-parse.c: New file.
85073         * lib/unistdio/u32-snprintf.c: New file.
85074         * lib/unistdio/u32-sprintf.c: New file.
85075         * lib/unistdio/u32-vasnprintf.c: New file.
85076         * lib/unistdio/u32-vasprintf.c: New file.
85077         * lib/unistdio/u32-vsnprintf.c: New file.
85078         * lib/unistdio/u32-vsprintf.c: New file.
85079         * lib/unistdio/u32-u32-asnprintf.c: New file.
85080         * lib/unistdio/u32-u32-asprintf.c: New file.
85081         * lib/unistdio/u32-u32-snprintf.c: New file.
85082         * lib/unistdio/u32-u32-sprintf.c: New file.
85083         * lib/unistdio/u32-u32-vasnprintf.c: New file.
85084         * lib/unistdio/u32-u32-vasprintf.c: New file.
85085         * lib/unistdio/u32-u32-vsnprintf.c: New file.
85086         * lib/unistdio/u32-u32-vsprintf.c: New file.
85087         * tests/unistdio/test-ulc-asnprintf1.c: New file.
85088         * tests/unistdio/test-ulc-asnprintf1.h: New file.
85089         * tests/unistdio/test-ulc-printf1.h: New file.
85090         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
85091         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
85092         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
85093         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
85094         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
85095         * tests/unistdio/test-ulc-vasprintf1.c: New file.
85096         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
85097         * tests/unistdio/test-ulc-vsprintf1.c: New file.
85098         * tests/unistdio/test-u8-asnprintf1.c: New file.
85099         * tests/unistdio/test-u8-asnprintf1.h: New file.
85100         * tests/unistdio/test-u8-printf1.h: New file.
85101         * tests/unistdio/test-u8-vasnprintf1.c: New file.
85102         * tests/unistdio/test-u8-vasnprintf2.c: New file.
85103         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
85104         * tests/unistdio/test-u8-vasnprintf3.c: New file.
85105         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
85106         * tests/unistdio/test-u8-vasprintf1.c: New file.
85107         * tests/unistdio/test-u8-vsnprintf1.c: New file.
85108         * tests/unistdio/test-u8-vsprintf1.c: New file.
85109         * tests/unistdio/test-u16-asnprintf1.c: New file.
85110         * tests/unistdio/test-u16-asnprintf1.h: New file.
85111         * tests/unistdio/test-u16-printf1.h: New file.
85112         * tests/unistdio/test-u16-vasnprintf1.c: New file.
85113         * tests/unistdio/test-u16-vasnprintf2.c: New file.
85114         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
85115         * tests/unistdio/test-u16-vasnprintf3.c: New file.
85116         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
85117         * tests/unistdio/test-u16-vasprintf1.c: New file.
85118         * tests/unistdio/test-u16-vsnprintf1.c: New file.
85119         * tests/unistdio/test-u16-vsprintf1.c: New file.
85120         * tests/unistdio/test-u32-asnprintf1.c: New file.
85121         * tests/unistdio/test-u32-asnprintf1.h: New file.
85122         * tests/unistdio/test-u32-printf1.h: New file.
85123         * tests/unistdio/test-u32-vasnprintf1.c: New file.
85124         * tests/unistdio/test-u32-vasnprintf2.c: New file.
85125         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
85126         * tests/unistdio/test-u32-vasnprintf3.c: New file.
85127         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
85128         * tests/unistdio/test-u32-vasprintf1.c: New file.
85129         * tests/unistdio/test-u32-vsnprintf1.c: New file.
85130         * tests/unistdio/test-u32-vsprintf1.c: New file.
85131         * modules/unistdio/base: New file.
85132         * modules/unistdio/u-printf-args: New file.
85133         * modules/unistdio/ulc-asnprintf: New file.
85134         * modules/unistdio/ulc-asprintf: New file.
85135         * modules/unistdio/ulc-fprintf: New file.
85136         * modules/unistdio/ulc-printf-parse: New file.
85137         * modules/unistdio/ulc-snprintf: New file.
85138         * modules/unistdio/ulc-sprintf: New file.
85139         * modules/unistdio/ulc-vasnprintf: New file.
85140         * modules/unistdio/ulc-vasprintf: New file.
85141         * modules/unistdio/ulc-vfprintf: New file.
85142         * modules/unistdio/ulc-vsnprintf: New file.
85143         * modules/unistdio/ulc-vsprintf: New file.
85144         * modules/unistdio/u8-asnprintf: New file.
85145         * modules/unistdio/u8-asprintf: New file.
85146         * modules/unistdio/u8-printf-parse: New file.
85147         * modules/unistdio/u8-snprintf: New file.
85148         * modules/unistdio/u8-sprintf: New file.
85149         * modules/unistdio/u8-vasnprintf: New file.
85150         * modules/unistdio/u8-vasprintf: New file.
85151         * modules/unistdio/u8-vsnprintf: New file.
85152         * modules/unistdio/u8-vsprintf: New file.
85153         * modules/unistdio/u8-u8-asnprintf: New file.
85154         * modules/unistdio/u8-u8-asprintf: New file.
85155         * modules/unistdio/u8-u8-snprintf: New file.
85156         * modules/unistdio/u8-u8-sprintf: New file.
85157         * modules/unistdio/u8-u8-vasnprintf: New file.
85158         * modules/unistdio/u8-u8-vasprintf: New file.
85159         * modules/unistdio/u8-u8-vsnprintf: New file.
85160         * modules/unistdio/u8-u8-vsprintf: New file.
85161         * modules/unistdio/u16-asnprintf: New file.
85162         * modules/unistdio/u16-asprintf: New file.
85163         * modules/unistdio/u16-printf-parse: New file.
85164         * modules/unistdio/u16-snprintf: New file.
85165         * modules/unistdio/u16-sprintf: New file.
85166         * modules/unistdio/u16-vasnprintf: New file.
85167         * modules/unistdio/u16-vasprintf: New file.
85168         * modules/unistdio/u16-vsnprintf: New file.
85169         * modules/unistdio/u16-vsprintf: New file.
85170         * modules/unistdio/u16-u16-asnprintf: New file.
85171         * modules/unistdio/u16-u16-asprintf: New file.
85172         * modules/unistdio/u16-u16-snprintf: New file.
85173         * modules/unistdio/u16-u16-sprintf: New file.
85174         * modules/unistdio/u16-u16-vasnprintf: New file.
85175         * modules/unistdio/u16-u16-vasprintf: New file.
85176         * modules/unistdio/u16-u16-vsnprintf: New file.
85177         * modules/unistdio/u16-u16-vsprintf: New file.
85178         * modules/unistdio/u32-asnprintf: New file.
85179         * modules/unistdio/u32-asprintf: New file.
85180         * modules/unistdio/u32-printf-parse: New file.
85181         * modules/unistdio/u32-snprintf: New file.
85182         * modules/unistdio/u32-sprintf: New file.
85183         * modules/unistdio/u32-vasnprintf: New file.
85184         * modules/unistdio/u32-vasprintf: New file.
85185         * modules/unistdio/u32-vsnprintf: New file.
85186         * modules/unistdio/u32-vsprintf: New file.
85187         * modules/unistdio/u32-u32-asnprintf: New file.
85188         * modules/unistdio/u32-u32-asprintf: New file.
85189         * modules/unistdio/u32-u32-snprintf: New file.
85190         * modules/unistdio/u32-u32-sprintf: New file.
85191         * modules/unistdio/u32-u32-vasnprintf: New file.
85192         * modules/unistdio/u32-u32-vasprintf: New file.
85193         * modules/unistdio/u32-u32-vsnprintf: New file.
85194         * modules/unistdio/u32-u32-vsprintf: New file.
85195         * modules/unistdio/ulc-asnprintf-tests: New file.
85196         * modules/unistdio/ulc-vasnprintf-tests: New file.
85197         * modules/unistdio/ulc-vasprintf-tests: New file.
85198         * modules/unistdio/ulc-vsnprintf-tests: New file.
85199         * modules/unistdio/ulc-vsprintf-tests: New file.
85200         * modules/unistdio/u8-asnprintf-tests: New file.
85201         * modules/unistdio/u8-vasnprintf-tests: New file.
85202         * modules/unistdio/u8-vasprintf-tests: New file.
85203         * modules/unistdio/u8-vsnprintf-tests: New file.
85204         * modules/unistdio/u8-vsprintf-tests: New file.
85205         * modules/unistdio/u16-asnprintf-tests: New file.
85206         * modules/unistdio/u16-vasnprintf-tests: New file.
85207         * modules/unistdio/u16-vasprintf-tests: New file.
85208         * modules/unistdio/u16-vsnprintf-tests: New file.
85209         * modules/unistdio/u16-vsprintf-tests: New file.
85210         * modules/unistdio/u32-asnprintf-tests: New file.
85211         * modules/unistdio/u32-vasnprintf-tests: New file.
85212         * modules/unistdio/u32-vasprintf-tests: New file.
85213         * modules/unistdio/u32-vsnprintf-tests: New file.
85214         * modules/unistdio/u32-vsprintf-tests: New file.
85215         * MODULES.html.sh (Unicode string functions): Add the new modules.
85217 2007-07-01  Bruno Haible  <bruno@clisp.org>
85219         * lib/sprintf.c (sprintf): Limit the available length estimation,
85220         to avoid address wraparound.
85221         * lib/vsprintf.c (vsprintf): Likewise.
85222         * modules/sprintf-posix (Dependencies): Add stdint.
85223         * modules/vsprintf-posix (Dependencies): Likewise.
85225 2007-07-01  Bruno Haible  <bruno@clisp.org>
85227         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
85228         Windows PATH as well. Conservative double-quoting. Comments.
85230 2007-07-01  Bruno Haible  <bruno@clisp.org>
85231             Eric Blake  <ebb9@byu.net>
85232             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85234         * gnulib-tool (self_abspathname): Fix algorithm to cope with
85235         empty components in $PATH, denoting '.'.
85237 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85239         * gnulib-tool: Fix indentation.
85240         (func_create_megatestdir): Likewise.
85241         Report by Bruno Haible.
85243 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85245         Sync from Automake.
85246         * build-aux/gnupload: Fix shell portability issues with for loops.
85247         Report by Karl Berry.
85249 2007-06-29  Simon Josefsson  <simon@josefsson.org>
85251         * build-aux/maint.mk (POURL): Use translationproject.org.
85253 2007-06-27  Simon Josefsson  <simon@josefsson.org>
85254             Bruno Haible  <bruno@clisp.org>
85256         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
85257         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
85258         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
85259         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
85260         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
85262 2007-06-27  Bruno Haible  <bruno@clisp.org>
85264         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
85265         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
85267 2007-06-26  Karl Berry  <karl@gnu.org>
85269         * MODULES.html.sh: remove xreadlink-with-size.
85271 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
85273         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
85274         method that I hope also handles the double-include problem noted
85275         by Bruno Haible in
85276         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
85278 2007-06-23  Bruno Haible  <bruno@clisp.org>
85280         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
85281         Don't let the 'mostlyclean' target fail if the last subdirectory could
85282         not be removed.
85283         Reported by Karl Berry.
85285 2007-06-23  Bruno Haible  <bruno@clisp.org>
85287         * gnulib-tool (echo): Add a speedier workaround for ksh.
85288         * tests/test-echo.sh: Likewise.
85290 2007-06-23  Bruno Haible  <bruno@clisp.org>
85292         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
85293         * tests/test-echo.sh: Likewise.
85295 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85297         * gnulib-tool (IFS): Initialize early, so we don't set it to
85298         empty later.
85299         (self_abspathname): Rewrite algorithm to set it, reindent.
85300         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
85301         (func_create_megatestdir): Merge some sed scripts.
85303 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
85305         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
85306         exposed by Sun Studio 11 cc on Solaris 8.
85308 2007-06-22  Bruno Haible  <bruno@clisp.org>
85310         * gnulib-tool (echo): Ensure the echo primitive does not interpret
85311         backslashes.
85312         * tests/test-echo.sh: New file.
85314 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85316         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
85317         simplify `sed_replace_build_aux' scripts, they are portable but
85318         echoing them with `echo' is not.
85319         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
85321 2007-06-21  Karl Berry  <karl@gnu.org>
85323         * config/srclist.txt: guess we can't handle the licenses via
85324         srclist at the moment.
85326 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
85328         * MODULES.html.sh: Add include_next.
85329         * modules/include_next: New file.
85331 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
85333         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
85334         INCLUDE_NEXT.
85335         (gl_CHECK_NEXT_HEADERS): New macro.
85336         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
85337         the obsolescent gl_ABSOLUTE_HEADER.
85338         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
85339         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
85340         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
85341         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
85342         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
85343         * m4/math_h.m4 (gl_MATH_H): Likewise.
85344         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
85345         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
85346         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
85347         * m4/stdint.m4 (gl_STDINT_H): Likewise.
85348         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
85349         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
85350         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
85351         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
85352         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
85353         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
85354         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
85355         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
85356         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
85357         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
85358         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
85359         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
85360         * m4/inttypes.m4 (gl_INTTYPES_H): Define
85361         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
85362         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
85363         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
85364         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
85365         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
85366         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
85367         * lib/float_.h: Likewise.
85368         * lib/inttypes_.h: Likewise.
85369         * lib/math_.h: Likewise.
85370         * lib/search_.h: Likewise.
85371         * lib/signal_.h: Likewise.
85372         * lib/stdint_.h: Likewise.
85373         * lib/stdio_.h: Likewise.
85374         * lib/stdlib_.h: Likewise.
85375         * lib/string_.h: Likewise.
85376         * lib/sys_stat_.h: Likewise.
85377         * lib/sys_time_.h: Likewise.
85378         * lib/time_.h: Likewise.
85379         * lib/unistd_.h: Likewise.
85380         * lib/wchar_.h: Likewise.
85381         * lib/wctype_.h: Likewise.
85382         * lib/dirent_.h: Likewise.
85383         * lib/iconv_.h: Likewise.
85384         * lib/locale_.h: Likewise.
85385         * lib/netinet_in_.h: Likewise.
85386         * lib/sys_select_.h: Likewise.
85387         * lib/sys_socket_.h: Likewise.
85388         * lib/sysexits_.h: Likewise.
85389         * modules/fcntl (Depends-on): Depend on include_next, not
85390         absolute_header.
85391         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
85392         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
85393         * modules/fchdir: Likewise.
85394         * modules/float: Likewise.
85395         * modules/iconv_open: Likewise.
85396         * modules/inttypes: Likewise.
85397         * modules/locale: Likewise.
85398         * modules/math: Likewise.
85399         * modules/netinet_in: Likewise.
85400         * modules/search: Likewise.
85401         * modules/signal: Likewise.
85402         * modules/stdint: Likewise.
85403         * modules/stdio: Likewise.
85404         * modules/stdlib: Likewise.
85405         * modules/string: Likewise.
85406         * modules/sys_select: Likewise.
85407         * modules/sys_socket: Likewise.
85408         * modules/sys_stat: Likewise.
85409         * modules/sys_time: Likewise.
85410         * modules/sysexits: Likewise.
85411         * modules/time: Likewise.
85412         * modules/unistd: Likewise.
85413         * modules/wchar: Likewise.
85414         * modules/wctype: Likewise.
85415         * modules/sys_stat: Change maintainer to "all".
85416         * modules/unistd: Likewise.
85418 2007-06-20  Karl Berry  <karl@gnu.org>
85420         * config/srclist.txt: track www changes in license files.
85422 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
85424         * build-aux/bootstrap: Remove stray dot.
85425         Make sure build_aux settings are honored when linking
85426         gnulib_extra_files.
85428 2007-06-19  Eric Blake  <ebb9@byu.net>
85430         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
85431         Allow compilation on cygwin.
85433 2007-06-19  Jim Meyering  <jim@meyering.net>
85435         xreadlink-with-size: Remove module.  No longer used.
85436         Ex-callers now use xreadlink or mreadlink-with-size.
85437         * modules/xreadlink-with-size: Remove module.
85438         * lib/xreadlink-with-size.c: Remove file.
85439         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
85440         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
85441         just before the function definition *is* accurate.
85443         Eliminate one way canonicalize_filename_mode could exit.
85444         * lib/canonicalize.c (canonicalize_filename_mode):
85445         Use mreadlink_with_size, not xreadlink_with_size.
85447 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
85449         Detect porting problems to FreeBSD/arm, which has time_t wider than
85450         long int.  Original problem reported for GNU diff by Xin Li in
85451         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
85452         * modules/getdate (Depends-on): Add intprops, verify.
85453         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
85454         is an integer type no wider than long int.
85456 2007-06-18  Jim Meyering  <jim@meyering.net>
85458         New module: mreadlink-with-size.
85459         * MODULES.html.sh: Add mreadlink-with-size.
85460         * modules/mreadlink-with-size: New module
85461         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
85462         not xreadlink-with-size.
85463         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
85465 2007-06-16  Bruno Haible  <bruno@clisp.org>
85467         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
85468         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
85469         Reported by Gary V. Vaughan <gary@gnu.org>.
85471 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
85473         Revamp lchown so that it lives in unistd.h where it belongs.
85474         * lib/lchown.h: Remove.
85475         * lib/dirchownmod.c: Don't include lib/lchown.h.
85476         * lib/fchownat.c: Likewise.
85477         * lib/openat.c: Likewise.
85478         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
85479         does not follow symlinks.
85480         (EOPNOTSUPP): Define if not defined.
85481         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
85482         is defined to 0.
85483         (lchown): New decl.
85484         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
85485         Do not check for lchown decl.
85486         Set REPLACE_LCHOWN.
85487         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
85488         REPLACE_LCHOWN.
85489         * modules/chown: Make it clear it follows symlinks.
85490         * modules/lchown: Make it clear it doesn't follow symlinks.
85491         (Files): Remove lib/lchown.h
85492         (Depends-on): Add unistd.
85493         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
85494         (Include): Include <unistd.h>, not "lchown.h".
85495         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
85496         REPLACE_LCHOWN.
85498 2007-06-15  Jim Meyering  <jim@meyering.net>
85500         Change license (GPL to LGPL) of fsusage and dependents.
85501         * modules/fsusage (License): Change to LGPL.
85502         * modules/full-read (License): Likewise.
85503         * modules/full-write (License): Likewise.
85504         * modules/safe-read (License): Likewise.
85505         * modules/safe-write (License): Likewise.
85507 2007-06-14  Ben Pfaff  <blp@gnu.org>
85509         Missing part of allocsa -> malloca transition.
85510         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
85511         gl_MALLOCA.
85513 2007-06-12  Bruno Haible  <bruno@clisp.org>
85515         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
85516         to ia64, x86_64, i386.
85517         Reported by Eric Blake.
85519 2007-06-12  Bruno Haible  <bruno@clisp.org>
85521         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
85522         cross-compiling to x86_64.
85524 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
85526         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
85527         glitch reported by Ralf Wildenhues in
85528         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
85530         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
85531         Vin Shelton.
85533 2007-06-11  Bruno Haible  <bruno@clisp.org>
85535         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
85536         replacement string.
85537         Reported by Eric Blake.
85539 2007-06-10  Bruno Haible  <bruno@clisp.org>
85541         Prepare vasnprintf code for use with Unicode strings.
85542         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
85543         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
85544         TYPE_U32_STRING.
85545         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
85546         a_u32_string variants.
85547         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
85548         * lib/printf-args.c: Don't include config.h and the specification
85549         header if PRINTF_FETCHARGS is already defined.
85550         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
85551         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
85552         TYPE_U16_STRING, TYPE_U32_STRING.
85553         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
85554         u16_directive, u16_directives, u32_directive, u32_directives): New
85555         types.
85556         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
85557         New declarations.
85558         * lib/printf-parse.c: Don't include config.h and the specification
85559         header if PRINTF_PARSE is already defined. Eliminate the set of
85560         parameters for WIDE_CHAR_VERSION; the user of this file must provide
85561         them now. Include c-ctype.h.
85562         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
85563         directive and CHAR_T_ONLY_ASCII.
85564         * lib/vasnprintf.c: Don't include config.h and the specification header
85565         if VASNPRINTF is already defined.
85566         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
85567         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
85568         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
85569         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
85570         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
85571         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
85572         code accordingly.
85573         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
85574         pad_ourselves also in this case, with the 'c' and 's' directives, and
85575         with a different notion of "width".
85576         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
85578 2007-06-10  Bruno Haible  <bruno@clisp.org>
85580         * modules/unistr/u32-mbsnlen: New file.
85581         * lib/unistr/u32-mbsnlen.c: New file.
85583         * modules/unistr/u16-mbsnlen: New file.
85584         * lib/unistr/u16-mbsnlen.c: New file.
85586         * modules/unistr/u8-mbsnlen: New file.
85587         * lib/unistr/u8-mbsnlen.c: New file.
85589         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
85590         declarations.
85592 2007-06-10  Bruno Haible  <bruno@clisp.org>
85594         * lib/string_.h (mbsnlen): New declaration.
85595         * lib/mbsnlen.c: New file.
85596         * m4/mbsnlen.m4: New file.
85597         * modules/mbsnlen: New file.
85598         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
85599         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
85600         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
85602 2007-06-10  Bruno Haible  <bruno@clisp.org>
85604         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
85606 2007-06-10  Bruno Haible  <bruno@clisp.org>
85608         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
85609         * lib/mbuiter.h: Likewise.
85611 2007-06-10  Bruno Haible  <bruno@clisp.org>
85613         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
85614         declaration.
85616 2007-06-10  Karl Berry  <karl@gnu.org>
85618         * config/srclist.txt: remove gettext entries, Bruno prefers
85619         to update individually.
85621 2007-06-10  Bruno Haible  <bruno@clisp.org>
85623         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
85624         'maxlen'. Ensure only length + width bytes are allocated, not
85625         length + 1 + width.
85627 2007-06-09  Bruno Haible  <bruno@clisp.org>
85629         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
85630         (CHAR_T): Remove macro.
85631         (VASNPRINTF): Update.
85633 2007-06-09  Bruno Haible  <bruno@clisp.org>
85635         * MODULES.html.sh (Unicode string functions): Add the new modules.
85637         * modules/uniconv/u32-conv-to-enc: New file.
85638         * lib/uniconv/u32-conv-to-enc.c: New file.
85639         * modules/uniconv/u32-conv-to-enc-tests: New file.
85640         * tests/uniconv/test-u32-conv-to-enc.c: New file.
85642         * modules/uniconv/u16-conv-to-enc: New file.
85643         * lib/uniconv/u16-conv-to-enc.c: New file.
85644         * lib/uniconv/u-conv-to-enc.h: New file.
85645         * modules/uniconv/u16-conv-to-enc-tests: New file.
85646         * tests/uniconv/test-u16-conv-to-enc.c: New file.
85648         * modules/uniconv/u8-conv-to-enc: New file.
85649         * lib/uniconv/u8-conv-to-enc.c: New file.
85650         * modules/uniconv/u8-conv-to-enc-tests: New file.
85651         * tests/uniconv/test-u8-conv-to-enc.c: New file.
85653         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
85654         u32_conv_to_encoding): New declarations.
85656 2007-06-09  Bruno Haible  <bruno@clisp.org>
85658         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
85660 2007-06-09  Bruno Haible  <bruno@clisp.org>
85662         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
85663         * modules/malloca: Renamed from modules/allocsa, updated.
85664         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
85665         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
85666         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
85667         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
85668         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
85669         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
85670         * modules/xmalloca: Renamed from modules/xallocsa, updated.
85671         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
85672         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
85673         * modules/c-strcasestr (Depends-on): Update.
85674         * lib/c-strcasestr.c: Update.
85675         * modules/c-strstr (Depends-on): Update.
85676         * lib/c-strstr.c: Update.
85677         * modules/canonicalize-lgpl (Depends-on): Update.
85678         * lib/canonicalize-lgpl.c: Update.
85679         * modules/clean-temp (Depends-on): Update.
85680         * lib/clean-temp.c: Update.
85681         * modules/csharpcomp (Depends-on): Update.
85682         * lib/csharpcomp.c: Update.
85683         * modules/csharpexec (Depends-on): Update.
85684         * lib/csharpexec.c: Update.
85685         * modules/javacomp (Depends-on): Update.
85686         * lib/javacomp.c: Update.
85687         * modules/javaexec (Depends-on): Update.
85688         * lib/javaexec.c: Update.
85689         * modules/mbscasestr (Depends-on): Update.
85690         * lib/mbscasestr.c: Update.
85691         * modules/mbsstr (Depends-on): Update.
85692         * lib/mbsstr.c: Update.
85693         * modules/setenv (Depends-on): Update.
85694         * lib/setenv.c: Update.
85695         * modules/strcasestr (Depends-on): Update.
85696         * lib/strcasestr.c: Update.
85697         * modules/striconveha (Depends-on): Update.
85698         * lib/striconveha.c: Update.
85699         * modules/relocatable-prog-wrapper (Files): Update.
85700         * lib/relocwrapper.c: Update.
85701         * build-aux/install-reloc: Update.
85702         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
85704 2007-06-08  Bruno Haible  <bruno@clisp.org>
85706         Port to uClibc.
85707         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
85708         * lib/fpurge.c (fpurge): Likewise.
85709         * lib/freading.c (freading): Likewise.
85710         * lib/fseeko.c (rpl_fseeko): Likewise.
85711         * lib/fseterr.c (fseterr): Likewise.
85712         * lib/fwriting.c (fwriting): Likewise.
85713         * tests/test-fflush.c (main): Avoid a failure on uClibc.
85715 2007-06-08  Bruno Haible  <bruno@clisp.org>
85717         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
85718         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
85719         * modules/gettext (Files): Add m4/intlmacosx.m4.
85721 2007-06-07  Bruno Haible  <bruno@clisp.org>
85723         * modules/localename-tests: New file.
85724         * tests/test-localename.c: New file.
85726         New module 'localename'.
85727         * lib/localename.h: New file.
85728         * lib/localename.c: New file, from GNU gettext.
85729         * m4/localename.m4: New file.
85730         * modules/localename: New file.
85732 2007-06-07  Bruno Haible  <bruno@clisp.org>
85734         Work around the lack of <wchar.h> on some builds of uClibc.
85735         * doc/headers/wchar.texi: Update.
85736         * lib/wchar_.h: Include <wchar.h> only if it exists.
85737         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
85738         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
85739         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
85740         doesn't exist.
85741         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
85742         * modules/mbfile (Depends-on): Add wchar.
85743         * modules/mbiter (Depends-on): Likewise.
85744         * modules/mbuiter (Depends-on): Likewise.
85745         Reported by Simon Josefsson.
85747 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
85749         Work around problem reported by Steven M. Schweda in
85750         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
85751         Tru64 5.1B with the Compaq compiler environment installed declares
85752         an 'isblank' function but does not define it in the C library.
85753         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
85754         * lib/regex_internal.h (isblank): Likewise.
85755         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
85756         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
85758 2007-06-05  Bruno Haible  <bruno@clisp.org>
85760         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
85761         ia64.
85762         * modules/printf-safe: New file.
85763         * modules/fprintf-posix (Depends-on): Add printf-safe.
85764         * modules/printf-posix (Depends-on): Likewise.
85765         * modules/snprintf-posix (Depends-on): Likewise.
85766         * modules/sprintf-posix (Depends-on): Likewise.
85767         * modules/vasnprintf-posix (Depends-on): Likewise.
85768         * modules/vasprintf-posix (Depends-on): Likewise.
85769         * modules/vfprintf-posix (Depends-on): Likewise.
85770         * modules/vprintf-posix (Depends-on): Likewise.
85771         * modules/vsnprintf-posix (Depends-on): Likewise.
85772         * modules/vsprintf-posix (Depends-on): Likewise.
85773         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
85774         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
85775         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
85776         "no" on i386, x86_64, ia64.
85777         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
85778         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
85779         on i386, x86_64, ia64.
85780         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
85781         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
85782         on i386, x86_64, ia64.
85783         * tests/test-vasnprintf-posix.c: Include float.h.
85784         (LDBL80_WORDS): New macro.
85785         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
85786         on i386, x86_64, ia64.
85787         * tests/test-vasprintf-posix.c: Include float.h.
85788         (LDBL80_WORDS): New macro.
85789         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
85790         on i386, x86_64, ia64.
85791         * tests/test-snprintf-posix.c: Include float.h.
85792         * tests/test-sprintf-posix.c: Likewise.
85793         * tests/test-vsnprintf-posix.c: Likewise.
85794         * tests/test-vsprintf-posix.c: Likewise.
85796 2007-06-05  Bruno Haible  <bruno@clisp.org>
85798         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
85799         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
85800         non-IEEE numbers on i386, x86_64, ia64.
85801         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
85802         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
85803         * tests/test-isnanl.h: Include float.h.
85804         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
85806 2007-06-05  Bruno Haible  <bruno@clisp.org>
85808         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
85809         also the %a / %A. Handle the %a / %A code before this extra handling.
85811 2007-06-05  Bruno Haible  <bruno@clisp.org>
85813         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
85814         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
85816 2007-06-05  Bruno Haible  <bruno@clisp.org>
85818         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
85819         typo in variable name.
85821 2007-06-05  Eric Blake  <ebb9@byu.net>
85823         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
85824         Reported by Simon Josefsson.
85826 2007-06-04  Bruno Haible  <bruno@clisp.org>
85828         Avoid test failures on some PowerPC platforms.
85829         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
85830         Define differently for PowerPC.
85831         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
85832         Reported by Gary V. Vaughan <gary@gnu.org>.
85834 2007-06-02  Bruno Haible  <bruno@clisp.org>
85836         Fix test-stdint failure on FreeBSD/ia64.
85837         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
85838         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
85839         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
85840         * doc/headers/stdint.texi: Update.
85842 2007-06-01  Bruno Haible  <bruno@clisp.org>
85844         * tests/test-binary-io.c (main): Pass a third argument to open().
85845         Reported by Gary V. Vaughan <gary@gnu.org>.
85847 2007-06-01  Bruno Haible  <bruno@clisp.org>
85849         * doc/functions/frexpl.texi: Update for mingw.
85851 2007-06-01  Bruno Haible  <bruno@clisp.org>
85853         * tests/test-lseek.c (main): Disable test of errno for invalid third
85854         argument.
85855         * doc/functions/lseek.texi: Update.
85856         Reported by Gary V. Vaughan <gary@gnu.org>.
85858 2007-05-28  Bruno Haible  <bruno@clisp.org>
85860         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
85862 2007-05-31  Eric Blake  <ebb9@byu.net>
85864         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
85865         cross compiling.
85867 2007-05-30  Eric Blake  <ebb9@byu.net>
85868         and Bruno Haible  <bruno@clisp.org>
85870         Work around mingw test failures exposed by m4-1.4.9b.
85871         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
85872         * tests/test-unistd.c: Disable uid_t and git_t tests for the
85873         moment.
85875 2007-05-30  Bruno Haible  <bruno@clisp.org>
85877         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
85878         assuming that they are closed. Needed on HP-UX 11.
85880 2007-05-29  Bruno Haible  <bruno@clisp.org>
85882         Fix a problem with #include_next.
85883         * lib/dirent_.h: Split the double-inclusion guard.
85884         * lib/fcntl_.h: Likewise.
85885         * lib/float_.h: Likewise.
85886         * lib/iconv_.h: Likewise.
85887         * lib/inttypes_.h: Likewise.
85888         * lib/locale_.h: Likewise.
85889         * lib/math_.h: Likewise.
85890         * lib/netinet_in_.h: Likewise.
85891         * lib/search_.h: Likewise.
85892         * lib/signal_.h: Likewise.
85893         * lib/stdint_.h: Likewise.
85894         * lib/stdio_.h: Likewise.
85895         * lib/stdlib_.h: Likewise.
85896         * lib/string_.h: Likewise.
85897         * lib/sys_select_.h: Likewise.
85898         * lib/sys_socket_.h: Likewise.
85899         * lib/sys_stat_.h: Likewise.
85900         * lib/sys_time_.h: Likewise.
85901         * lib/sysexits_.h: Likewise.
85902         * lib/time_.h: Likewise.
85903         * lib/unistd_.h: Likewise.
85904         * lib/wchar_.h: Likewise.
85905         * lib/wctype_.h: Likewise.
85907 2007-05-29  Bruno Haible  <bruno@clisp.org>
85909         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
85910         for the moment.
85912 2007-05-29  Bruno Haible  <bruno@clisp.org>
85914         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
85915         invocation.
85916         Reported by Eric Blake.
85918 2007-05-29  Bruno Haible  <bruno@clisp.org>
85920         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
85921         compiling case.
85923 2007-05-29  Eric Blake  <ebb9@byu.net>
85924             Bruno Haible  <bruno@clisp.org>
85926         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
85927         cross compiles.
85929 2007-05-28  Eric Blake  <ebb9@byu.net>
85931         * modules/closein-tests (test_closein_LDADD): Support test on
85932         cygwin with libtool.
85934 2007-05-28  Bruno Haible  <bruno@clisp.org>
85936         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
85937         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
85938         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
85939         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
85940         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
85941         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
85942         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
85943         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
85944         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
85946 2007-05-28  Eric Blake  <ebb9@byu.net>
85948         Unconditionally include <config.h> in unit tests.
85949         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
85950         * tests/test-allocsa.c, tests/test-arcfour.c,
85951         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
85952         tests/test-array_list.c, tests/test-array_oset.c,
85953         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
85954         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
85955         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
85956         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
85957         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
85958         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
85959         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
85960         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
85961         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
85962         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
85963         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
85964         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
85965         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
85966         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
85967         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
85968         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
85969         test-md5.c, test-memmem.c, test-printf-posix.c,
85970         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
85971         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
85972         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
85973         test-strcasestr.c, test-striconv.c, test-striconveh.c,
85974         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
85975         test-vasnprintf-posix2.c, test-vasnprintf.c,
85976         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
85977         test-vfprintf-posix.c, test-vprintf-posix.c,
85978         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
85979         test-xvasprintf.c: Likewise.
85981 2007-05-28  Bruno Haible  <bruno@clisp.org>
85983         * gnulib-tool (func_import): Remember the --with-tests command-line
85984         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
85985         Reported by Eric Blake.
85987 2007-05-28  Bruno Haible  <bruno@clisp.org>
85989         * modules/ftell-tests: New file.
85990         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
85991         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
85993         * lib/ftell.c: New file.
85994         * modules/ftell: New file.
85995         * m4/ftell.m4: New file.
85996         * doc/functions/ftell.texi: Update.
85997         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
85998         REPLACE_FTELL.
85999         * lib/stdio_.h (rpl_ftell): New declaration.
86000         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
86001         REPLACE_FTELL.
86003 2007-05-28  Eric Blake  <ebb9@byu.net>
86005         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
86007 2007-05-28  Bruno Haible  <bruno@clisp.org>
86009         * modules/fseek-tests: New file.
86010         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
86011         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
86013         * lib/fseek.c: New file.
86014         * modules/fseek: New file.
86015         * m4/fseek.m4: New file.
86016         * doc/functions/fseek.texi: Update.
86017         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
86018         REPLACE_FSEEK.
86019         * lib/stdio_.h (rpl_fseek): New declaration.
86020         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
86021         REPLACE_FSEEK.
86023 2007-05-28  Bruno Haible  <bruno@clisp.org>
86025         * lib/stdio_.h (fflush): More comments.
86027 2007-05-28  Bruno Haible  <bruno@clisp.org>
86029         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
86030         runtime test.
86032 2007-05-28  Eric Blake  <ebb9@byu.net>
86034         Improve lseek module.
86035         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
86036         * lib/unistd_.h (lseek): Scale back link warning message.
86037         * tests/test-lseek.c: Beef up test.
86038         * tests/test-lseek.sh: Exercise more facets of lseek.
86039         Reported by Bruno Haible.
86041 2007-05-28  Bruno Haible  <bruno@clisp.org>
86043         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
86044         to define.
86046 2007-05-27  Bruno Haible  <bruno@clisp.org>
86048         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
86050 2007-05-27  Bruno Haible  <bruno@clisp.org>
86052         * modules/openmp: New file.
86053         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
86054         Noah Misch.
86056 2007-05-26  Bruno Haible  <bruno@clisp.org>
86058         * modules/chdir-long (Depends-on): Add fchdir.
86059         * modules/chdir-safer (Depends-on): Likewise.
86060         * modules/fts (Depends-on): Likewise.
86061         * modules/fts-lgpl (Depends-on): Likewise.
86062         * modules/openat (Depends-on): Likewise.
86063         * modules/savewd (Depends-on): Likewise.
86065 2007-05-24  Eric Blake  <ebb9@byu.net>
86067         Fix lseek on mingw.
86068         * modules/lseek: New module.
86069         * m4/lseek.m4: New file.
86070         * lib/lseek.c: New file.
86071         * modules/lseek-tests: New file.
86072         * tests/test-lseek.c: New file.
86073         * tests/test-lseek.sh: New file.
86074         * MODULES.html.sh: Document lseek module.
86075         * modules/fflush (Depends-on): Add lseek, fseeko.
86076         * modules/fseeko (Depends-on): Likewise.
86077         * modules/ftello (Depends-on): Likewise.
86078         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
86079         broken.
86080         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
86081         broken.
86082         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
86083         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
86084         * lib/ftello.c (rpl_ftello): Likewise.
86085         * tests/test-fseeko.c (main): Test this.
86086         * tests/test-fseeko.sh: Likewise.
86087         * tests/test-ftello.c (main): Likewise.
86088         * tests/test-ftello.sh: Likewise.
86089         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
86090         implies replacing fseek.
86091         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
86092         HAVE_FTELLO.
86093         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
86094         * modules/unistd (Makefile.am): Likewise.
86095         * lib/unistd_.h (lseek): Declare a replacement.
86096         * doc/functions/lseek.texi (lseek): Document this fix.
86097         * doc/functions/fseek.texi (fseek): Likewise.
86098         * doc/functions/ftell.texi (ftell): Likewise.
86100 2007-05-24  Bruno Haible  <bruno@clisp.org>
86102         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
86103         in the printed representation of a NaN.
86104         * tests/test-vasprintf-posix.c (test_function): Likewise.
86105         * tests/test-snprintf-posix.h (test_function): Likewise.
86106         * tests/test-sprintf-posix.h (test_function): Likewise.
86107         Reported by Eric Blake.
86109 2007-05-23  Eric Blake  <ebb9@byu.net>
86111         Fix fseeko/ftello on cygwin 1.5.24.
86112         * doc/functions/fseeko.texi (fseeko): Document the fix.
86113         * doc/functions/ftello.texi (ftello): Document the fix.
86114         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
86115         * doc/functions/stdout.text (stdout): New file.
86116         * doc/functions/stderr.text (stderr): New file.
86117         * doc/gnulib.texi (Function Substitutes): Use new files.
86118         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
86119         prior to 1.7.0.
86120         * tests/test-ftello.c (main): Likewise for ftello.
86121         * tests/test-fseeko.sh: New file.
86122         * tests/test-ftello.sh: New file.
86123         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
86124         with seekable stdin.
86125         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
86126         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
86127         (gl_REPLACE_FSEEKO): New macro.
86128         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
86129         * modules/fseeko (Files): Distribute fseeko.c.
86130         * modules/ftello (Files): Distribute ftello.c.
86131         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
86132         mode.
86133         * lib/ftello.c (rpl_ftello): New file.
86134         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
86135         fseeko, ftello.
86136         (gl_STDIN_LARGE_OFFSET): New macro.
86137         * modules/stdio (Makefile.am): Perform the replacement.
86138         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
86140 2007-05-23  Bruno Haible  <bruno@clisp.org>
86142         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
86143         GNULIB_POSIXCHECK is defined.
86145 2007-05-21  Bruno Haible  <bruno@clisp.org>
86147         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
86148         Check also the output for NaN arguments. When cross-compiling, guess
86149         no on IRIX.
86150         * lib/vasnprintf.c: Update comments.
86151         * tests/test-vasnprintf-posix.c (strisnan): New function.
86152         (test_function): Use it.
86153         * tests/test-vasprintf-posix.c (strisnan): New function.
86154         (test_function): Use it.
86155         * tests/test-snprintf-posix.h (strisnan): New function.
86156         (test_function): Use it.
86157         * tests/test-sprintf-posix.h (strisnan): New function.
86158         (test_function): Use it.
86159         Reported by Eric Blake.
86161 2007-05-20  Bruno Haible  <bruno@clisp.org>
86163         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
86164         numbers that fails on BeOS.
86165         * doc/functions/frexpl.texi: Update.
86167 2007-05-20  Jim Meyering  <jim@meyering.net>
86169         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
86170         forced upon us by glibc-2.6.
86172 2007-05-20  Bruno Haible  <bruno@clisp.org>
86174         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
86175         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
86176         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
86177         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
86178         NEED_PRINTF_INFINITE.
86179         (is_infinitel): New function.
86180         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
86181         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
86182         gl_PREREQ_VASNPRINTF_INFINITE.
86183         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
86184         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
86185         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
86186         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
86187         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
86188         gl_PREREQ_VASNPRINTF_INFINITE.
86189         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
86190         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
86191         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
86192         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
86193         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
86194         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
86195         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
86196         * doc/functions/fprintf.texi: Update.
86197         * doc/functions/printf.texi: Update.
86198         * doc/functions/snprintf.texi: Update.
86199         * doc/functions/sprintf.texi: Update.
86200         * doc/functions/vfprintf.texi: Update.
86201         * doc/functions/vprintf.texi: Update.
86202         * doc/functions/vsnprintf.texi: Update.
86203         * doc/functions/vsprintf.texi: Update.
86205 2007-05-20  Bruno Haible  <bruno@clisp.org>
86207         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
86208         was not found in libc.
86209         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
86211 2007-05-20  Bruno Haible  <bruno@clisp.org>
86213         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
86214         printed as "-nan" instead of "nan".
86215         * tests/test-vasprintf-posix.c (test_function): Likewise.
86216         * tests/test-snprintf-posix.h (test_function): Likewise.
86217         * tests/test-sprintf-posix.h (test_function): Likewise.
86218         Needed for HP-UX 11.
86220 2007-05-20  Jim Meyering  <jim@meyering.net>
86222         Fix buggy test for the fchownat-deref bug.
86223         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
86224         symlink required for the run-test.  Without it, this test would
86225         always declare that fchownat doesn't work, and client code would
86226         unnecessarily use the replacement function with fixed libc.
86227         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
86228         Reported by Greg Schafer.
86230 2007-05-19  Bruno Haible  <bruno@clisp.org>
86232         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
86233         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
86234         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
86235         Needed for IRIX 6.5 and Solaris 2.5.1.
86237 2007-05-19  Bruno Haible  <bruno@clisp.org>
86239         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
86240         (test_function): Skip tests involving -0.0 on platforms where
86241         -0.0 = 0.0.
86242         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
86243         (test_function): Skip tests involving -0.0 on platforms where
86244         -0.0 = 0.0.
86245         * tests/test-snprintf-posix.h (have_minus_zero): New function.
86246         (test_function): Skip tests involving -0.0 on platforms where
86247         -0.0 = 0.0.
86248         * tests/test-sprintf-posix.h (have_minus_zero): New function.
86249         (test_function): Skip tests involving -0.0 on platforms where
86250         -0.0 = 0.0.
86251         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
86252         tests.
86253         * tests/test-printf-posix.h (test_function): Likewise.
86254         * tests/test-printf-posix.output: Remove all -0.0 related results.
86255         Needed for IRIX 6.5.
86257 2007-05-19  Bruno Haible  <bruno@clisp.org>
86259         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
86260         printed as "nan0x7fffffff" instead of "nan".
86261         * tests/test-vasprintf-posix.c (test_function): Likewise.
86262         * tests/test-snprintf-posix.h (test_function): Likewise.
86263         * tests/test-sprintf-posix.h (test_function): Likewise.
86264         * tests/test-fprintf-posix.h (NaN): Remove macro.
86265         (test_function): Remove all NaN related tests.
86266         * tests/test-printf-posix.h (NaN): Remove macro.
86267         (test_function): Remove all NaN related tests.
86268         * tests/test-printf-posix.output: Remove all NaN related results.
86269         Needed for IRIX 6.5.
86271 2007-05-19  Bruno Haible  <bruno@clisp.org>
86273         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
86274         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
86276 2007-05-19  Bruno Haible  <bruno@clisp.org>
86278         * lib/float_.h: New file.
86279         * m4/float_h.m4: New file.
86280         * modules/float: New file.
86281         * modules/isnanl (Dependencies): Add float.
86282         * modules/isnanl-nolibm (Dependencies): Likewise.
86283         * modules/mathl (Dependencies): Likewise.
86284         * modules/printf-frexpl (Dependencies): Likewise.
86285         * modules/signbit (Dependencies): Likewise.
86286         * modules/vasnprintf (Dependencies): Likewise.
86287         * doc/headers/float.texi: Update.
86289 2007-05-19  Jim Meyering  <jim@meyering.net>
86291         * lib/utimens.c (gl_futimens): Rename from futimens,
86292         now that glibc-2.6 declares futimens.
86293         * lib/utimens.h: Likewise.
86295 2007-05-19  Bruno Haible  <bruno@clisp.org>
86297         Avoid test failures on mingw.
86298         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
86299         * tests/test-printf-posix.sh: Likewise.
86300         * tests/test-vfprintf-posix.sh: Likewise.
86301         * tests/test-vprintf-posix.sh: Likewise.
86303 2007-05-19  Bruno Haible  <bruno@clisp.org>
86305         Fix *printf result for NaN, Inf, -0.0 on mingw.
86306         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
86307         * lib/vasnprintf.c: Include math.h and isnan.h.
86308         (is_infinite_or_zero): New function.
86309         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
86310         values in the %f, %F, %e, %E, %g, %G directives.
86311         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
86312         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
86313         gl_PRINTF_INFINITE and test its result. Invoke
86314         gl_PREREQ_VASNPRINTF_INFINITE.
86315         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
86316         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
86317         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
86318         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
86319         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
86320         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
86321         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
86322         * doc/functions/fprintf.texi: Update.
86323         * doc/functions/printf.texi: Update.
86324         * doc/functions/snprintf.texi: Update.
86325         * doc/functions/sprintf.texi: Update.
86326         * doc/functions/vfprintf.texi: Update.
86327         * doc/functions/vprintf.texi: Update.
86328         * doc/functions/vsnprintf.texi: Update.
86329         * doc/functions/vsprintf.texi: Update.
86331 2007-05-19  Bruno Haible  <bruno@clisp.org>
86333         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
86334         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
86335         Instead of multiplying with 10^k, set extra_zeroes to k.
86336         (scale10_round_long_double): Remove function.
86338 2007-05-18  Bruno Haible  <bruno@clisp.org>
86340         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
86341         introduced on 2007-05-06.
86343 2007-05-18  Bruno Haible  <bruno@clisp.org>
86345         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
86346         %g directives.
86347         * tests/test-vasprintf-posix.c (test_function): Likewise.
86348         * tests/test-snprintf-posix.h (test_function): Likewise.
86349         * tests/test-sprintf-posix.h (test_function): Likewise.
86351 2007-05-18  Bruno Haible  <bruno@clisp.org>
86353         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
86354         (strmatch): New function.
86355         (test_function): Test the %f directive on numbers of various exponents.
86356         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
86357         (strmatch): New function.
86358         (test_function): Test the %f directive on numbers of various exponents.
86359         * tests/test-snprintf-posix.h (strmatch): New function.
86360         (test_function): Test the %f directive on numbers of various exponents.
86361         * tests/test-sprintf-posix.h (strmatch): New function.
86362         (test_function): Test the %f directive on numbers of various exponents.
86363         * tests/test-snprintf-posix.c (SIZEOF): New macro.
86364         * tests/test-sprintf-posix.c (SIZEOF): New macro.
86365         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
86366         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
86368 2007-05-18  Bruno Haible  <bruno@clisp.org>
86370         Add support for 'long double' number output.
86371         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
86372         * lib/vasnprintf.c: Include math.h and float+.h.
86373         (mp_limb_t): New type.
86374         (GMP_LIMB_BITS): New macro.
86375         (mp_twolimb_t): New type.
86376         (GMP_TWOLIMB_BITS): New macro.
86377         (mpn_t): New type.
86378         (multiply, divide, convert_to_decimal, decode_long_double,
86379         scale10_round_long_double, scale10_round_decimal_long_double,
86380         floorlog10l): New functions.
86381         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
86382         for the %f, %F, %e, %E, %g, %G directives.
86383         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
86384         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
86385         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
86386         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
86387         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
86388         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
86389         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
86390         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
86391         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
86392         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
86393         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
86394         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
86395         * modules/snprintf-posix (Depends-on): Likewise.
86396         * modules/sprintf-posix (Depends-on): Likewise.
86397         * modules/vasnprintf-posix (Depends-on): Likewise.
86398         * modules/vasprintf-posix (Depends-on): Likewise.
86399         * modules/vfprintf-posix (Depends-on): Likewise.
86400         * modules/vsnprintf-posix (Depends-on): Likewise.
86401         * modules/vsprintf-posix (Depends-on): Likewise.
86402         * modules/vasnprintf (Files): Add lib/float+.h.
86403         * doc/functions/fprintf.texi: Update.
86404         * doc/functions/printf.texi: Update.
86405         * doc/functions/snprintf.texi: Update.
86406         * doc/functions/sprintf.texi: Update.
86407         * doc/functions/vfprintf.texi: Update.
86408         * doc/functions/vprintf.texi: Update.
86409         * doc/functions/vsnprintf.texi: Update.
86410         * doc/functions/vsprintf.texi: Update.
86412 2007-05-18  Bruno Haible  <bruno@clisp.org>
86414         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
86416 2007-05-18  Bruno Haible  <bruno@clisp.org>
86418         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
86419         for printing 64-bit integers. Needed for mingw.
86421 2007-05-18  Bruno Haible  <bruno@clisp.org>
86423         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
86424         gl_FUNC_FREXPL_WORKS.
86425         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
86427 2007-05-18  Bruno Haible  <bruno@clisp.org>
86429         * modules/frexpl-nolibm-tests: New file.
86431         * modules/frexpl-nolibm: New file.
86432         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
86434 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86436         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
86437         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
86438         GCC 4.2, which otherwise issues a lot of warnings.
86439         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
86440         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
86441         Likewise.
86442         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
86443         * modules/iconv_open (iconv.h): Likewise.
86444         * modules/locale (locale.h): Likewise.
86445         * modules/netinet_in (netinet/in.h): Likewise.
86446         * modules/sys_select (sys_select.h): Likewise.
86447         * modules/sys_socket (sys/socket.h): Likewise.
86448         * modules/sys_stat (sys/stat.h): Likewise.
86449         * modules/sysexits (sysexits.h): Likewise.
86450         * modules/unistd (unistd.h): Likewise.
86452 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86454         * modules/closein-tests (Makefile.am): Distribute
86455         `test-closein.sh'.
86457 2007-05-17  Bruno Haible  <bruno@clisp.org>
86459         * tests/test-printf-posix.output: Renamed from
86460         tests/test-fprintf-posix.out.
86461         * modules/fprintf-posix-tests: Update.
86462         * modules/printf-posix-tests: Update.
86463         * modules/vfprintf-posix-tests: Update.
86464         * modules/vprintf-posix-tests: Update.
86465         * tests/test-fprintf-posix.sh: Update.
86466         * tests/test-printf-posix.sh: Update.
86467         * tests/test-vfprintf-posix.sh: Update.
86468         * tests/test-vprintf-posix.sh: Update.
86469         Reported by Ralf Wildenhues.
86471 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86473         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
86474         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
86475         GCC 4.2, which otherwise issues a lot of warnings.
86476         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
86477         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
86478         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
86479         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
86480         it should no longer be needed.
86481         * lib/string_.h: Likewise.
86482         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
86483         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
86484         * modules/inttypes (inttypes.h): Likewise.
86485         * modules/math (math.h): Likewise.
86486         * modules/search (search.h): Likewise.
86487         * modules/signal (signal.h): Likewise.
86488         * modules/stdint (stdint.h): Likewise.
86489         * modules/stdio (stdio.h): Likewise.
86490         * modules/stdlib (stdlib.h): Likewise.
86491         * modules/string (string.h): Likewise.
86492         * modules/sys_time (sys/time.h): Likewise.
86493         * modules/time (time.h): Likewise.
86494         * modules/wchar (wchar.h): Likewise.
86495         * modules/wctype (wtype.h): Likewise.
86497 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
86499         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
86501 2007-05-13  Bruno Haible  <bruno@clisp.org>
86503         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
86504         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
86505         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
86506         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
86507         (gl_PREREQ_STRTOK_R): Don't require it here.
86509 2007-05-13  Bruno Haible  <bruno@clisp.org>
86511         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
86512         when used in C++ mode.
86514 2007-05-12  Bruno Haible  <bruno@clisp.org>
86516         * lib/linebuffer.h: Tweak doc.
86517         * lib/linebuffer.c: Likewise.
86519 2007-05-12  James Youngman  <jay@gnu.org>
86521         * lib/linebuffer.c (readlinebuffer_delim): New function,
86522         like readlinebuffer, but use a caller-specified delimiter.
86523         (readlinebuffer): Just call readlinebuffer_delim with '\n'
86524         as the delimiter.
86525         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
86527 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
86529         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
86530         * modules/openat (Files): Remove openat-die.c.
86531         (Depends-on): Add openat-die.
86532         * modules/openat-die: New module.
86534 2007-05-06  Bruno Haible  <bruno@clisp.org>
86536         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
86537         Update with info about Cygwin.
86538         * doc/functions/fprintf.texi: Update.
86539         * doc/functions/printf.texi: Update.
86540         * doc/functions/snprintf.texi: Update.
86541         * doc/functions/sprintf.texi: Update.
86542         * doc/functions/vfprintf.texi: Update.
86543         * doc/functions/vprintf.texi: Update.
86544         * doc/functions/vsnprintf.texi: Update.
86545         * doc/functions/vsprintf.texi: Update.
86546         Reported by Eric Blake.
86548 2007-05-06  Bruno Haible  <bruno@clisp.org>
86550         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
86551         padding ourselves for the floating-point directives.
86552         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
86553         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
86554         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
86555         gl_PRINTF_FLAG_ZERO and test its result. Invoke
86556         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
86557         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
86558         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
86559         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
86560         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
86561         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
86562         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
86563         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
86564         * tests/test-snprintf-posix.h (test_function): Also check the width
86565         and some flags in the %f directive.
86566         * tests/test-sprintf-posix.h (test_function): Likewise.
86567         * tests/test-vasnprintf-posix.c (test_function): Likewise.
86568         * tests/test-vasprintf-posix.c (test_function): Likewise.
86569         * doc/functions/fprintf.texi: Update.
86570         * doc/functions/printf.texi: Update.
86571         * doc/functions/snprintf.texi: Update.
86572         * doc/functions/sprintf.texi: Update.
86573         * doc/functions/vfprintf.texi: Update.
86574         * doc/functions/vprintf.texi: Update.
86575         * doc/functions/vsnprintf.texi: Update.
86576         * doc/functions/vsprintf.texi: Update.
86578 2007-05-06  Bruno Haible  <bruno@clisp.org>
86580         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
86581         pass the ' flag character to sprintf or snprintf.
86582         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
86583         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
86584         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
86585         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
86586         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
86587         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
86588         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
86589         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
86590         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
86591         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
86592         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
86593         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
86594         * tests/test-snprintf-posix.h (test_function): Also check the grouping
86595         flag.
86596         * tests/test-sprintf-posix.h (test_function): Likewise.
86597         * tests/test-vasnprintf-posix.c (test_function): Likewise.
86598         * tests/test-vasprintf-posix.c (test_function): Likewise.
86599         * doc/functions/fprintf.texi: Update.
86600         * doc/functions/printf.texi: Update.
86601         * doc/functions/snprintf.texi: Update.
86602         * doc/functions/sprintf.texi: Update.
86603         * doc/functions/vfprintf.texi: Update.
86604         * doc/functions/vprintf.texi: Update.
86605         * doc/functions/vsnprintf.texi: Update.
86606         * doc/functions/vsprintf.texi: Update.
86608 2007-05-01  Bruno Haible  <bruno@clisp.org>
86610         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
86612 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
86614         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
86615         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
86617 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
86619         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
86620         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
86621         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
86623 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
86625         * lib/argp-help.c (struct hol_entry): New member `ord'.
86626         (HOL_ENTRY_PTRCMP): Use ord for comparison
86627         (hol_sort): Initialize ord.
86629 2007-05-01  Bruno Haible  <bruno@clisp.org>
86631         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
86632         Reported by Eric Blake.
86633         * doc/gnulib.texi (Function Substitutes): Update.
86635 2007-05-01  Bruno Haible  <bruno@clisp.org>
86637         * doc/functions.texi: Remove file, now redundant through
86638         doc/functions/*.texi.
86640 2007-05-01  Bruno Haible  <bruno@clisp.org>
86642         * modules/argp (Depends-on): Add sleep.
86644 2007-05-01  Bruno Haible  <bruno@clisp.org>
86646         * modules/sleep-tests: New file.
86647         * tests/test-sleep.c: New file.
86649         * modules/sleep: New file.
86650         * lib/sleep.c: New file.
86651         * m4/sleep.m4: New file.
86652         * lib/unistd_.h (sleep): New declaration.
86653         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
86654         HAVE_SLEEP.
86655         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
86656         * doc/functions/sleep.texi: Document the sleep module.
86658 2007-05-01  Bruno Haible  <bruno@clisp.org>
86660         * lib/sigprocmask.h: Remove file.
86661         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
86662         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
86663         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
86664         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
86665         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
86666         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
86667         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
86668         HAVE_SIGSET_T as a shell variable.
86669         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
86670         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
86671         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
86672         (Depends-on): Add signal. Remove verify.
86673         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
86674         (Include): Mention <signal.h> instead of sigprocmask.h.
86675         * NEWS: Mention the change.
86676         * lib/fatal-signal.c: Don't include sigprocmask.h.
86678 2007-05-01  Bruno Haible  <bruno@clisp.org>
86680         * modules/signal: New file.
86681         * lib/signal_.h: New file.
86682         * m4/signal_h.m4: New file.
86684 2007-05-01  Bruno Haible  <bruno@clisp.org>
86686         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
86687         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
86688         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
86689         HAVE_WCTYPE_CTMP_BUG into wctype.h.
86691 2007-05-01  Bruno Haible  <bruno@clisp.org>
86693         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
86694         configure time.
86695         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
86696         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
86697         * modules/sys_stat (Makefile.am): Substitute their values into
86698         sys/stat.h.
86700 2007-05-01  Bruno Haible  <bruno@clisp.org>
86702         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
86703         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
86704         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
86706 2007-05-01  Bruno Haible  <bruno@clisp.org>
86708         * doc/header/assert.texi: Undo last change: don't mention the gnulib
86709         'assert' module here.
86711 2007-05-01  Bruno Haible  <bruno@clisp.org>
86713         * doc/functions/*.texi: New files.
86714         * doc/functions/google-ranking.txt: New file.
86715         * doc/gnulib.texi (Function Substitutes): New chapter.
86716         (ctime, inet_ntoa): Remove sections.
86717         * doc/ctime.texi: Remove file.
86718         * doc/inet_ntoa.texi: Remove file.
86719         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
86720         dependencies.
86721         (%.info): New rule, specifying a --reference-limit.
86723 2007-05-01  Bruno Haible  <bruno@clisp.org>
86725         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
86727 2007-05-01  Bruno Haible  <bruno@clisp.org>
86729         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
86730         the portability of 'mkdir' to mingw systems.
86732 2007-05-01  Bruno Haible  <bruno@clisp.org>
86734         * doc/headers/google-ranking.txt: New file.
86736 2007-04-30  Eric Blake  <ebb9@byu.net>
86738         Prefer fseeko to fseek.
86739         * modules/getpass (Depends-on): Add fseeko.
86740         * lib/getpass.c (getpass): Use fseeko, not fseek.
86742 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
86744         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
86745         assumes the sorting is stable, while most qsort implementations
86746         are not.  Use argument addresses to ensure they never compare as
86747         equal.
86749         * tests/test-argp-2.sh (usage-indent test): Fix output
86750         (func_compare): Restore diff options
86751         * tests/test-argp.c: Restore #include "progname.h"
86753 2007-04-29  Bruno Haible  <bruno@clisp.org>
86755         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
86756         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
86757         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
86758         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
86759         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
86760         (configure.ac): Define CHECK_SNPRINTF_POSIX.
86761         (TESTS, check_PROGRAMS): Add test-snprintf.
86762         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
86763         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
86764         (TESTS, check_PROGRAMS): Add test-vsnprintf.
86765         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
86766         assertions that fail on HP-UX, OSF/1, or IRIX.
86767         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
86769 2007-04-29  Bruno Haible  <bruno@clisp.org>
86771         * MODULES.html.sh (posix_functions): Remove 'contents'.
86773 2007-04-29  Karl Berry  <karl@gnu.org>
86775         * config/srclist.txt (gendocs_template_min): new entry.
86777 2007-04-29  Bruno Haible  <bruno@clisp.org>
86779         Work around fpurge bug on BSD systems.
86780         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
86781         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
86782         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
86783         fpurge to rpl_fpurge if the system already has this function.
86784         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
86785         the case where the system already has this function. Correct invariants
86786         on BSD systems.
86787         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
86788         BSD systems.
86790 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
86792         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
86793         proposed by Sven Verdoolaege.
86795         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
86796         options.
86797         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
86798         (usage and help tests): Update
86800 2007-04-29  Bruno Haible  <bruno@clisp.org>
86802         * tests/test-fflush.c (main): Use a file of size 17, not 10.
86803         Print more information in case of failure. Disable a test on BeOS.
86805 2007-04-29  Bruno Haible  <bruno@clisp.org>
86807         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
86808         This helps debugging on systems on which no gdb is available.
86810 2007-04-29  Bruno Haible  <bruno@clisp.org>
86812         * lib/freading.h: Improve comments.
86813         * lib/fwriting.h: Likewise.
86814         * tests/test-freading.c (main): Don't check freading immediately after
86815         repositioning. Needed for glibc.
86817 2007-04-29  Bruno Haible  <bruno@clisp.org>
86819         * lib/freading.c (freading): Trivial simplification.
86821 2007-04-28  Bruno Haible  <bruno@clisp.org>
86823         * tests/test-fwriting.c (main): Also test the interaction between
86824         fflush and fwriting.
86825         * modules/fwriting-tests (Depends-on): Add fflush.
86827         * tests/test-freading.c (main): Also test the interaction between
86828         fflush and freading.
86829         * modules/freading-tests (Depends-on): Add fflush.
86831 2007-04-28  Bruno Haible  <bruno@clisp.org>
86833         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
86834         fseeko and ftello.
86835         Suggested by Eric Blake.
86837 2007-04-28  Jim Meyering  <jim@meyering.net>
86839         Avoid false-negative in gl_STDINT_H's C99 conformance test.
86840         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
86841         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
86843 2007-04-27  Eric Blake  <ebb9@byu.net>
86845         * doc/headers/assert.texi (assert.h): Document assert module use.
86847 2007-04-27  Bruno Haible  <bruno@clisp.org>
86849         * doc/headers/*.texi: New files.
86850         * doc/gnulib.texi (Header File Substitutes): New chapter.
86851         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
86852         dependencies.
86853         (standards.info ,standards.html, standards.dvi): Update dependencies.
86854         (mostlyclean, clean): New targets.
86856 2007-04-27  Bruno Haible  <bruno@clisp.org>
86858         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
86859         * modules/sysexits (Files, Makefile.am): Update.
86861         * lib/sys_socket_.h: Renamed from lib/socket_.h.
86862         * modules/sys_socket (Files, Makefile.am): Update.
86864         * lib/sys_stat_.h: Renamed from lib/stat_.h.
86865         * modules/sys_stat (Files, Makefile.am): Update.
86867 2007-04-27  Eric Blake  <ebb9@byu.net>
86869         * lib/freading.h: Improve comments.
86870         * lib/fwriting.h: Likewise.
86871         * lib/fflush.c: Likewise.
86873         Fix closein for mingw.
86874         * modules/closein-tests: Add tests for closein.
86875         * tests/test-closein.c: New file.
86876         * tests/test-closein.sh: Likewise.
86877         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
86878         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
86880 2007-04-27  Bruno Haible  <bruno@clisp.org>
86882         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
86883         version is < 6.
86884         * lib/math_.h [__DECC]: Likewise.
86885         * lib/stdio_.h [__DECC]: Likewise.
86886         * lib/stdlib_.h [__DECC]: Likewise.
86887         * lib/string_.h [__DECC]: Likewise.
86888         * lib/time_.h [__DECC]: Likewise.
86889         * lib/wchar_.h [__DECC]: Likewise.
86890         * lib/wctype_.h [__DECC]: Likewise.
86892 2007-04-27  Bruno Haible  <bruno@clisp.org>
86894         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
86896 2007-04-27  Bruno Haible  <bruno@clisp.org>
86898         * lib/fflush.c: Add comments.
86899         * modules/fpurge-tests (Depends-on): Add fflush.
86900         * modules/freadable-tests (Depends-on): Likewise.
86901         * modules/fwritable-tests (Depends-on): Likewise.
86903 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
86905         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
86906         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
86907         Report by Bruno Haible <bruno@clisp.org>.
86909 2007-04-26  Eric Blake  <ebb9@byu.net>
86911         Fix fflush on mingw.
86912         * modules/fflush (Depends-on): Add freading.
86913         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
86914         but unread data.
86916 2007-04-26  Eric Blake  <ebb9@byu.net>
86917         and Bruno Haible  <bruno@clisp.org>
86919         Implement freading and fwriting.
86920         * lib/freading.c: New file.
86921         * lib/freading.h: Likewise.
86922         * m4/freading.m4: Likewise.
86923         * modules/freading: Likewise.
86924         * modules/freading-tests: Likewise.
86925         * tests/test-freading.c: Likewise.
86926         * lib/fwriting.c: New file.
86927         * lib/fwriting.h: Likewise.
86928         * m4/fwriting.m4: Likewise.
86929         * modules/fwriting: Likewise.
86930         * modules/fwriting-tests: Likewise.
86931         * tests/test-fwriting.c: Likewise.
86932         * MODULES.html.sh (File stream based Input/Output): Mention them.
86934 2007-04-26  Bruno Haible  <bruno@clisp.org>
86936         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
86937         'long' when we assume it.
86938         Suggested by Eric Blake.
86940 2007-04-26  Bruno Haible  <bruno@clisp.org>
86942         Ensure fseeko, ftello are declared on glibc systems.
86943         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
86944         * modules/fseeko (configure.ac-early): Likewise.
86945         * modules/ftello (configure.ac-early): Likewise.
86946         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
86947         AC_FUNC_FSEEKO for this.
86948         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
86949         (gl_CHECK_FSEEKO): Remove macro.
86951 2007-04-26  Bruno Haible  <bruno@clisp.org>
86953         * tests/test-fflush.c (main): Also check the ftell result after
86954         fflush and fseek/fseeko.
86955         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
86956         file descriptor position cache in the stream.
86957         * lib/fseeko.c (rpl_fseeko): Likewise.
86959 2007-04-26  Bruno Haible  <bruno@clisp.org>
86961         * modules/fflush-tests (Depends-on): Add fseeko.
86963 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
86964             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86966         * lib/argz_.h: ensure error_t definition is obtained in same
86967         mechanism system argz.h would have.
86968         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
86969         argz facilities are known bad.  Err on the side of caution if
86970         cross-compiling.
86972 2007-04-25  Eric Blake  <ebb9@byu.net>
86974         * lib/fpurge.c (includes): Use stdlib.h for free.
86975         * tests/test-fflush.c (main): Also test fflush-fseeko.
86977 2007-04-25  Bruno Haible  <bruno@clisp.org>
86979         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
86980         * lib/fseeko.c: New file.
86981         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
86982         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
86983         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
86984         gl_FUNC_FSEEKO.
86985         (gl_FUNC_FSEEKO): Invoke it.
86986         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
86987         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
86988         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
86990 2007-04-25  Bruno Haible  <bruno@clisp.org>
86992         * modules/fflush (Depends-on): Add ftello.
86994 2007-04-25  Bruno Haible  <bruno@clisp.org>
86996         * modules/ftello-tests: New file.
86997         * tests/test-ftello.c: New file.
86999         * modules/ftello: New file.
87000         * m4/ftello.m4: New file.
87001         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
87002         HAVE_FTELLO.
87003         * lib/stdio_.h (ftello): New declaration.
87004         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
87005         HAVE_FTELLO.
87007 2007-04-25  Bruno Haible  <bruno@clisp.org>
87009         * modules/fseeko-tests: New file.
87010         * tests/test-fseeko.c: New file.
87012         * modules/fseeko: New file.
87013         * m4/fseeko.m4: New file.
87014         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
87015         HAVE_FSEEKO.
87016         * lib/stdio_.h (fseeko): New declaration.
87017         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
87018         HAVE_FSEEKO.
87020 2007-04-25  Bruno Haible  <bruno@clisp.org>
87022         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
87024 2007-04-25  Bruno Haible  <bruno@clisp.org>
87026         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
87027         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
87028         * tests/test-unistd.c: Likewise.
87029         * tests/test-fcntl.c: Likewise.
87031 2007-04-23  Eric Blake  <ebb9@byu.net>
87033         * lib/fflush.c: Fix missing include.
87034         Reported by Bruno Haible.
87036 2007-04-23  Bruno Haible  <bruno@clisp.org>
87038         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
87039         Reported by Eric Blake.
87041 2007-04-23  Bruno Haible  <bruno@clisp.org>
87043         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
87045 2007-04-23  Bruno Haible  <bruno@clisp.org>
87047         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
87049 2007-04-23  Bruno Haible  <bruno@clisp.org>
87051         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
87052         Needed on HP-UX 11.
87054 2007-04-16  Eric Blake  <ebb9@byu.net>
87056         Make fflush rely on fpurge.
87057         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
87058         open coding all variants.
87059         * modules/fflush (Depends-on): Add fpurge and unistd.
87060         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
87061         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
87063         Fix --with-tests compilation on cygwin.
87064         * modules/argmatch-tests (Makefile.am): List gnulib library first
87065         in LDADD.
87066         * modules/argp-tests (Makefile.am): Likewise.
87067         * modules/array-list-tests (Makefile.am): Likewise.
87068         * modules/array-oset-tests (Makefile.am): Likewise.
87069         * modules/avltree-list-tests (Makefile.am): Likewise.
87070         * modules/avltree-oset-tests (Makefile.am): Likewise.
87071         * modules/avltreehash-list-tests (Makefile.am): Likewise.
87072         * modules/carray-list-tests (Makefile.am): Likewise.
87073         * modules/dirname-tests (Makefile.am): Likewise.
87074         * modules/frexp-tests (Makefile.am): Likewise.
87075         * modules/isnanl-tests (Makefile.am): Likewise.
87076         * modules/linked-list-tests (Makefile.am): Likewise.
87077         * modules/linkedhash-list-tests (Makefile.am): Likewise.
87078         * modules/lock-tests (Makefile.am): Likewise.
87079         * modules/rbtree-list-tests (Makefile.am): Likewise.
87080         * modules/rbtree-oset-tests (Makefile.am): Likewise.
87081         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
87082         * modules/tls-tests (Makefile.am): Likewise.
87083         * modules/tsearch-tests (Makefile.am): Likewise.
87084         * modules/xvasprintf-tests (Makefile.am): Likewise.
87086         Fix fpurge for cygwin.
87087         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
87088         value.
87089         * modules/fpurge-tests (Depends-on): Clean up trash.
87091 2007-04-16  Simon Josefsson  <simon@josefsson.org>
87093         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
87095         * m4/autobuild.m4: Re-indent.
87097 2007-04-13  Bruno Haible  <bruno@clisp.org>
87099         * modules/fpurge-tests: New file.
87100         * tests/test-fpurge.c: New file.
87102         * modules/fpurge: New file.
87103         * lib/fpurge.h: New file.
87104         * lib/fpurge.c: New file.
87105         * m4/fpurge.m4: New file.
87107 2007-04-13  Bruno Haible  <bruno@clisp.org>
87109         * modules/fbufmode-tests: New file.
87110         * tests/test-fbufmode.c: New file.
87112         * modules/fbufmode: New file.
87113         * lib/fbufmode.h: New file.
87114         * lib/fbufmode.c: New file.
87115         * m4/fbufmode.m4: New file.
87117 2007-04-13  Bruno Haible  <bruno@clisp.org>
87119         * modules/fwritable-tests: New file.
87120         * tests/test-fwritable.c: New file.
87122         * modules/fwritable: New file.
87123         * lib/fwritable.h: New file.
87124         * lib/fwritable.c: New file.
87125         * m4/fwritable.m4: New file.
87127 2007-04-13  Bruno Haible  <bruno@clisp.org>
87129         * modules/freadable-tests: New file.
87130         * tests/test-freadable.c: New file.
87132         * modules/freadable: New file.
87133         * lib/freadable.h: New file.
87134         * lib/freadable.c: New file.
87135         * m4/freadable.m4: New file.
87137 2007-04-13  Bruno Haible  <bruno@clisp.org>
87139         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
87140         MOSTLYCLEANFILES.
87142 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
87144         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
87145         gzip bootstrap.conf to avoid dragging in i18n machinery.
87146         (gnulib_tool_option): Use it.
87148 2007-04-13  Bruno Haible  <bruno@clisp.org>
87150         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
87151         %F directives.
87152         * tests/test-vasprintf-posix.c (test_function): Likewise.
87153         * tests/test-snprintf-posix.h (test_function): Likewise.
87154         * tests/test-sprintf-posix.h (test_function): Likewise.
87155         * tests/test-fprintf-posix.h (test_function): Likewise.
87156         * tests/test-printf-posix.h (test_function): Likewise.
87157         * tests/test-fprintf-posix.out: Likewise.
87159 2007-04-13  Bruno Haible  <bruno@clisp.org>
87161         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
87162         * modules/tls-tests (configure.ac): Likewise.
87163         Reported by Arto C. Nirkko <anirkko@insel.ch>.
87165 2007-04-13  Bruno Haible  <bruno@clisp.org>
87167         * lib/tls.c (glthread_tls_get): Fix return type.
87168         Patch by Arto C. Nirkko <anirkko@insel.ch>.
87170 2007-04-12  Eric Blake  <ebb9@byu.net>
87172         * modules/gettime (Depends-on): Remove gettime.
87173         Reported by Dmitry V. Levin.
87175 2007-04-12  Bruno Haible  <bruno@clisp.org>
87177         * modules/fflush (Include): Mention <stdio.h>.
87178         * modules/strtoimax (Include): Mention <inttypes.h>.
87179         * modules/strtoumax (Include): Likewise.
87181 2007-04-12  Eric Blake  <ebb9@byu.net>
87183         * .cvsignore: New file.
87184         * .gitignore: Likewise.
87186 2007-04-12  Bruno Haible  <bruno@clisp.org>
87188         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
87189         not before, since $(LDADD) often contains libgnu.a.
87190         * modules/striconv-tests (test_striconv_LDADD): Likewise.
87191         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
87192         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
87193         Needed on Cygwin.
87195 2007-04-12  Eric Blake  <ebb9@byu.net>
87197         Work around glibc's failure to flush stdin on fclose.
87198         * lib/closein.c (close_stdin): Flush stdin before closing.
87200         Work around glibc's failure to reset seekable stdin on exit.
87201         * modules/closein: New module.
87202         * lib/closein.c: New file.
87203         * lib/closein.h: Likewise.
87204         * m4/closein.m4: Likewise.
87205         * MODULES.html.sh (File stream based Input/Output): Document it.
87207 2007-04-12  Simon Josefsson  <simon@josefsson.org>
87209         * gnulib-tool: Rename generated 'autobuild' script to
87210         'do-autobuild' in --create-megatestdir output.
87212         * doc/gnulib.texi (Build robot for gnulib): Fix.
87214 2007-04-12  Simon Josefsson  <simon@josefsson.org>
87216         * modules/sysexits (Depends-on): Add absolute-header.
87218 2007-04-12  Eric Blake  <ebb9@byu.net>
87220         No need to preserve errno on success.
87221         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
87222         Reported by Bruno Haible.
87224 2007-04-12  Simon Josefsson  <simon@josefsson.org>
87226         * MODULES.html.sh (Support for maintaining and releasing
87227         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
87229 2007-04-12  Simon Josefsson  <simon@josefsson.org>
87231         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
87233 2007-04-12  Simon Josefsson  <simon@josefsson.org>
87235         * modules/autobuild: New module.
87237         * m4/autobuild.m4: New file.
87239 2007-04-11  Bruno Haible  <bruno@clisp.org>
87241         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
87242         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
87243         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
87244         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
87245         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
87246         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
87247         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
87248         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
87249         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
87250         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
87251         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
87252         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
87253         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
87254         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
87255         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
87256         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
87257         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
87258         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
87259         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
87260         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
87261         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
87262         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
87263         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
87264         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
87265         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
87266         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
87267         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
87268         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
87269         Reported by Eric Blake.
87271 2007-04-11  Bruno Haible  <bruno@clisp.org>
87273         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
87275 2007-04-10  Bruno Haible  <bruno@clisp.org>
87277         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
87278         for NaN and Infinity. Needed on FreeBSD 6.1.
87279         * tests/test-vasnprintf-posix.c (test_function): Undo last change
87280         regarding results for "%010a" of Infinity and NaN.
87281         * tests/test-vasprintf-posix.c (test_function): Likewise.
87282         * tests/test-snprintf-posix.h (test_function): Likewise.
87283         * tests/test-sprintf-posix.h (test_function): Likewise.
87284         * tests/test-fprintf-posix.h (test_function): Likewise.
87285         * tests/test-printf-posix.h (test_function): Likewise.
87286         * tests/test-fprintf-posix.out: Likewise.
87288 2007-04-10  Bruno Haible  <bruno@clisp.org>
87290         * modules/locale-tests: New file.
87291         * tests/test-locale.c: New file.
87293         * modules/locale: New file.
87294         * lib/locale_.h: New file.
87295         * m4/locale_h.m4: New file.
87297 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
87298             Bruno Haible  <bruno@clisp.org>
87300         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
87301         be determined, test for availability of the copysignf, copysign,
87302         copysignl functions.
87303         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
87304         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
87305         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
87307 2007-04-09  Eric Blake  <ebb9@byu.net>
87309         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
87310         * modules/stdio (Makefile.am): Support fflush.
87311         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
87312         * modules/fflush: New file.
87313         * lib/fflush.c: Likewise.
87314         * m4/fflush.m4: Likewise.
87315         * modules/fflush-tests: New test.
87316         * tests/test-fflush.c: Likewise.
87317         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
87319 2007-04-06  Bruno Haible  <bruno@clisp.org>
87321         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
87322         (VASNPRINTF): Use signbit for faster determination whether to print a
87323         minus sign.
87324         * modules/vasnprintf (Files): Remove lib/float+.h.
87325         * modules/fprintf-posix (Depends-on): Add signbit.
87326         * modules/snprintf-posix (Depends-on): Likewise.
87327         * modules/sprintf-posix (Depends-on): Likewise.
87328         * modules/vasnprintf-posix (Depends-on): Likewise.
87329         * modules/vasprintf-posix (Depends-on): Likewise.
87330         * modules/vfprintf-posix (Depends-on): Likewise.
87331         * modules/vsnprintf-posix (Depends-on): Likewise.
87332         * modules/vsprintf-posix (Depends-on): Likewise.
87334 2007-04-06  Bruno Haible  <bruno@clisp.org>
87336         * tests/test-frexp.c (main): Test also the sign bit of zero results.
87337         * tests/test-frexpl.c (main): Likewise.
87338         * tests/test-ldexpl.c (main): Likewise.
87339         * modules/frexp-tests (Depends-on): Add signbit.
87340         * modules/frexpl-tests (Depdends-on): Likewise.
87341         * modules/ldexpl-tests (Depdends-on): Likewise.
87343 2007-04-06  Bruno Haible  <bruno@clisp.org>
87345         * modules/signbit-tests: New file.
87346         * tests/test-signbit.c: New file.
87348         * modules/signbit: New file.
87349         * lib/signbitf.c: New file.
87350         * lib/signbitd.c: New file.
87351         * lib/signbitl.c: New file.
87352         * m4/signbit.m4: New file.
87353         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
87354         (signbit): New macro.
87355         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
87356         REPLACE_SIGNBIT.
87357         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
87358         REPLACE_FREXPL into math.h.
87360 2007-04-06  Bruno Haible  <bruno@clisp.org>
87362         * modules/isnanf-nolibm-tests: New file.
87363         * tests/test-isnanf.c: New file.
87365         * modules/isnanf-nolibm: New file.
87366         * lib/isnanf.h: New file.
87367         * lib/isnanf.c: New file.
87368         * lib/isnan.c: Consider the USE_FLOAT macro.
87369         * m4/isnanf.m4: New file.
87371 2007-04-06  Bruno Haible  <bruno@clisp.org>
87373         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
87374         (Link): New section.
87376         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
87378 2007-04-06  Bruno Haible  <bruno@clisp.org>
87380         Assume the 'long double' type.
87381         * m4/longdouble.m4: Remove file.
87382         * config/srclist.txt: Don't mention longdouble.m4.
87383         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
87384         * lib/float+.h: Likewise.
87385         * lib/frexp.c: Likewise.
87386         * lib/printf-args.h: Likewise.
87387         * lib/printf-args.c: Likewise.
87388         * lib/printf-frexp.c: Likewise.
87389         * lib/printf-parse.c: Likewise.
87390         * lib/vasnprintf.c: Likewise.
87391         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
87392         * m4/intl.m4: Likewise.
87393         * m4/isnanl.m4: Likewise.
87394         * m4/printf.m4: Likewise.
87395         * m4/printf-frexpl.m4: Likewise.
87396         * m4/vasnprintf.m4: Likewise.
87397         * modules/allocsa (Files): Remove m4/longdouble.m4.
87398         * modules/gettext (Files): Likewise.
87399         * modules/relocatable-prog-wrapper (Files): Likewise.
87400         * modules/vasnprintf (Files): Likewise.
87401         * modules/isnanl (Files): Likewise.
87402         (Include): Simplify.
87403         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
87404         (Include): Simplify.
87405         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
87406         (Include): Simplify.
87407         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
87408         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
87409         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
87410         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
87411         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
87412         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
87413         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
87414         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
87415         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
87416         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
87417         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
87418         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
87419         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
87420         * tests/test-isnanl.c: Likewise.
87421         * tests/test-snprintf-posix.h: Likewise.
87422         * tests/test-sprintf-posix.h: Likewise.
87423         * tests/test-vasnprintf-posix.c: Likewise.
87424         * tests/test-vasnprintf-posix2.c: Likewise.
87425         * tests/test-vasprintf-posix.c: Likewise.
87427 2007-04-06  Bruno Haible  <bruno@clisp.org>
87429         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
87430         * lib/math_.h [__DECC]: Include the overridden include file through
87431         #include_next, outside the double-inclusion guard.
87432         * lib/stdio_.h [__DECC]: Likewise.
87433         * lib/stdlib_.h [__DECC]: Likewise.
87434         * lib/string_.h [__DECC]: Likewise.
87435         * lib/time_.h [__DECC]: Likewise.
87436         * lib/wchar_.h [__DECC]: Likewise.
87437         * lib/wctype_.h [__DECC]: Likewise.
87438         * lib/inttypes_.h [__DECC]: Likewise.
87439         Reported by Albert Chin <china@thewrittenword.com> in
87440         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
87442 2007-04-04  Eric Blake  <ebb9@byu.net>
87444         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
87445         1.5.x.
87447 2007-04-04  Bruno Haible  <bruno@clisp.org>
87449         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
87450         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
87452 2007-04-04  Bruno Haible  <bruno@clisp.org>
87454         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
87455         results for "%010a" of Infinity and NaN.
87456         * tests/test-vasprintf-posix.c (test_function): Likewise.
87457         * tests/test-snprintf-posix.h (test_function): Likewise.
87458         * tests/test-sprintf-posix.h (test_function): Likewise.
87459         * tests/test-fprintf-posix.h (test_function): Remove these tests.
87460         * tests/test-printf-posix.h (test_function): Likewise.
87461         * tests/test-fprintf-posix.out: Update.
87462         Needed for FreeBSD 6.1.
87464 2007-04-04  Bruno Haible  <bruno@clisp.org>
87466         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
87467         directly used by the gnulib modules nor by gnulib-tool.
87469 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
87471         * DEPENDENCIES: Give overall description of version dependency
87472         desirability.  Use more-typical names for apps.
87473         Add shell, coreutils, diffutils, grep, tar, gzip.
87475 2007-04-04  Simon Josefsson  <simon@josefsson.org>
87477         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
87479 2007-04-04  Karl Berry  <karl@gnu.org>
87481         * MODULES.html.sh (func_module): missing '.
87483 2007-04-03  Bruno Haible  <bruno@clisp.org>
87485         * modules/argmatch-tests (Makefile.am): New variable
87486         test_argmatch_LDADD.
87487         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
87488         * modules/array-list-tests (Makefile.am): New variable
87489         test_array_list_LDADD.
87490         * modules/array-oset-tests (Makefile.am): New variable
87491         test_array_oset_LDADD.
87492         * modules/avltree-list-tests (Makefile.am): New variable
87493         test_avltree_list_LDADD.
87494         * modules/avltree-oset-tests (Makefile.am): New variable
87495         test_avltree_oset_LDADD.
87496         * modules/avltreehash-list-tests (Makefile.am): New variable
87497         test_avltreehash_list_LDADD.
87498         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
87499         test_canonicalize_lgpl_LDADD.
87500         * modules/carray-list-tests (Makefile.am): New variable
87501         test_carray_list_LDADD.
87502         * modules/dirname-tests (Makefile.am): New variable
87503         test_dirname_LDADD.
87504         * modules/linked-list-tests (Makefile.am): New variable
87505         test_linked_list_LDADD.
87506         * modules/linkedhash-list-tests (Makefile.am): New variable
87507         test_linkedhash_list_LDADD.
87508         * modules/rbtree-list-tests (Makefile.am): New variable
87509         test_rbtree_list_LDADD.
87510         * modules/rbtree-oset-tests (Makefile.am): New variable
87511         test_rbtree_oset_LDADD.
87512         * modules/rbtreehash-list-tests (Makefile.am): New variable
87513         test_rbtreehash_list_LDADD.
87514         * modules/xvasprintf-tests (Makefile.am): New variable
87515         test_xvasprintf_LDADD.
87516         Reported by Eric Blake.
87518 2007-04-03  Eric Blake  <ebb9@byu.net>
87520         * DEPENDENCIES: Weaken m4 requirements.
87522 2007-04-03  Bruno Haible  <bruno@clisp.org>
87524         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
87525         * modules/isnanl-tests (configure.ac): Likewise.
87527 2007-04-03  Ben Pfaff  <blp@gnu.org>
87529         * modules/iconv_open: Add $(srcdir)/ to source directory
87530         references in Makefile fragments that call gperf, to fix VPATH
87531         builds.
87533 2007-04-03  Bruno Haible  <bruno@clisp.org>
87535         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
87536         * lib/ldexpl.c: Undo last change.
87538 2007-04-03  Bruno Haible  <bruno@clisp.org>
87540         * modules/printf-frexpl (Depends-on): Undo last change.
87541         (Files): Add m4/ldexpl.m4.
87543 2007-04-03  Bruno Haible  <bruno@clisp.org>
87545         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
87546         * modules/isnanl (Link): New section.
87548         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
87549         * modules/frexp (Link): New section.
87551         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
87552         * modules/frexpl (Link): New section.
87554         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
87555         * modules/ldexpl (Link): New section.
87557 2007-04-03  Bruno Haible  <bruno@clisp.org>
87559         * modules/TEMPLATE-EXTENDED: New file.
87560         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
87562 2007-04-03  Bruno Haible  <bruno@clisp.org>
87564         * DEPENDENCIES: New file.
87565         Suggested by Simon Josefsson.
87567 2007-04-03  Bruno Haible  <bruno@clisp.org>
87569         * doc/gnulib.texi: Escape @.
87571 2007-04-03  James Youngman  <jay@gnu.org>
87572         and Paul Eggert  <eggert@cs.ucla.edu>
87574         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
87575         birthtime on all systems that have birthtime, not just those which
87576         use st_birthtimensec rather than st_birthtim.  Putting zero in
87577         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
87578         that the birth time is not available for files on an NFS mount.
87580 2007-04-03  Simon Josefsson  <simon@josefsson.org>
87582         * modules/memxor: Move back from crypto/, suggested by Bruno.
87583         * modules/crypto/hmac-sha1: Fix memxor dependency.
87585         * modules/crypto/gc: Moved from ../.
87587 2007-04-02  Eric Blake  <ebb9@byu.net>
87589         * lib/ldexpl.c (includes): Avoid libm.
87591         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
87593 2007-04-02  Bruno Haible  <bruno@clisp.org>
87595         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
87596         on IRIX.
87598 2007-04-02  Bruno Haible  <bruno@clisp.org>
87600         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
87601         x86 or x86_64 platforms running MacOS X.
87602         Reported by Ryan Schmidt <@ryandesign.com>.
87604 2007-04-02  Bruno Haible  <bruno@clisp.org>
87606         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
87607         i386.
87609 2007-04-01  Simon Josefsson  <simon@josefsson.org>
87611         * modules/crypto/arcfour: Moved from ../.
87612         * modules/crypto/arcfour-tests: Moved from ../.
87613         * modules/crypto/arctwo: Moved from ../.
87614         * modules/crypto/arctwo-tests: Moved from ../.
87615         * modules/crypto/des: Moved from ../.
87616         * modules/crypto/des-tests: Moved from ../.
87617         * modules/crypto/gc-arcfour: Moved from ../.
87618         * modules/crypto/gc-arcfour-tests: Moved from ../.
87619         * modules/crypto/gc-arctwo: Moved from ../.
87620         * modules/crypto/gc-arctwo-tests: Moved from ../.
87621         * modules/crypto/gc-des: Moved from ../.
87622         * modules/crypto/gc-des-tests: Moved from ../.
87623         * modules/crypto/gc-hmac-md5: Moved from ../.
87624         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
87625         * modules/crypto/gc-hmac-sha1: Moved from ../.
87626         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
87627         * modules/crypto/gc-md2: Moved from ../.
87628         * modules/crypto/gc-md2-tests: Moved from ../.
87629         * modules/crypto/gc-md4: Moved from ../.
87630         * modules/crypto/gc-md4-tests: Moved from ../.
87631         * modules/crypto/gc-md5: Moved from ../.
87632         * modules/crypto/gc-md5-tests: Moved from ../.
87633         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
87634         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
87635         * modules/crypto/gc-random: Moved from ../.
87636         * modules/crypto/gc-rijndael: Moved from ../.
87637         * modules/crypto/gc-rijndael-tests: Moved from ../.
87638         * modules/crypto/gc-sha1: Moved from ../.
87639         * modules/crypto/gc-sha1-tests: Moved from ../.
87640         * modules/crypto/gc-tests: Moved from ../.
87641         * modules/crypto/hmac-md5: Moved from ../.
87642         * modules/crypto/hmac-md5-tests: Moved from ../.
87643         * modules/crypto/hmac-sha1: Moved from ../.
87644         * modules/crypto/hmac-sha1-tests: Moved from ../.
87645         * modules/crypto/md2: Moved from ../.
87646         * modules/crypto/md2-tests: Moved from ../.
87647         * modules/crypto/md4: Moved from ../.
87648         * modules/crypto/md4-tests: Moved from ../.
87649         * modules/crypto/md5: Moved from ../.
87650         * modules/crypto/md5-tests: Moved from ../.
87651         * modules/crypto/memxor: Moved from ../.
87652         * modules/crypto/rijndael: Moved from ../.
87653         * modules/crypto/rijndael-tests: Moved from ../.
87654         * modules/crypto/sha1: Moved from ../.
87656 2007-03-30  James Youngman  <jay@gnu.org>
87658         * tests/test-stat-time.c (prepare_test): use chmod() rather than
87659         rename() to change the ctime of a file (because ctime is unaffected
87660         by rename on jfs2 on AIX 5.1).
87661         (main): Start by doing cleanup, in case a previous run failed leaving
87662         test files behind.
87664 2007-03-31  Bruno Haible  <bruno@clisp.org>
87666         Support old proprietary implementations of iconv.
87667         * modules/iconv_open: New file.
87668         * lib/iconv_.h: New file.
87669         * m4/iconv_h.m4: New file.
87670         * lib/iconv_open.c: New file.
87671         * lib/iconv_open-aix.gperf: New file.
87672         * lib/iconv_open-hpux.gperf: New file.
87673         * lib/iconv_open-irix.gperf: New file.
87674         * lib/iconv_open-osf.gperf: New file.
87675         * m4/iconv_open.m4: New file.
87676         * modules/linebreak (Depends-on): Add iconv_open.
87677         * modules/striconv (Depends-on): Likewise.
87678         * modules/striconveh (Depends-on): Likewise.
87679         * modules/unicodeio (Depends-on): Likewise.
87680         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
87681         (iconv_t)(-1).
87682         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
87683         conversion if cd is (iconv_t)(-1).
87684         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
87685         is not possible.
87687 2007-03-31  Bruno Haible  <bruno@clisp.org>
87689         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
87690         work on Solaris either. Protect also second use of "autodetect_jp".
87692 2007-03-31  Bruno Haible  <bruno@clisp.org>
87694         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
87695         the function is not present.
87697 2007-03-31  Bruno Haible  <bruno@clisp.org>
87699         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
87700         the function is not present.
87702 2007-03-31  Bruno Haible  <bruno@clisp.org>
87704         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
87705         a bug in HP-UX iconv_open().
87707 2007-03-31  Bruno Haible  <bruno@clisp.org>
87709         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
87710         (Mathematics <math.h>): New section, add fpieee.
87711         (Input/output <stdio.h>): Add fseterr.
87712         (Mathematics <math.h>): New section, add printf-frexp.
87713         (Container data structures): Add sublist.
87714         (Core language properties): Add fpucw, inline.
87715         (Functions for greatest-width integer types <inttypes.h>): Add
87716         imaxabs, imaxdiv, inttypes.
87717         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
87718         isnanl-nolibm, ldexp.
87719         (Mathematics <math.h>): New section, add printf-frexpl.
87720         (Support for systems lacking POSIX:2001): Add fprintf-posix,
87721         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
87722         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
87723         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
87724         (Unicode string functions): Add unistr/u*-mbtoucr.
87725         (Java): Add javacomp-script, javaexec-script.
87726         (C#): Add csharpcomp-script, csharpexec-script.
87727         (Support for building libraries and executables): Add havelib,
87728         relocatable-*.
87729         (Support for maintaining and releasing projects): Renamed from
87730         'Support for maintaining and release projects'. Add announce-gen.
87732 2007-03-31  Bruno Haible  <bruno@clisp.org>
87734         * README: Talk primarily about git.
87735         (git and CVS): Renamed from CVS.
87736         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
87737         gnulib is available through git.
87738         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
87740 2007-03-30  Bruno Haible  <bruno@clisp.org>
87742         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
87743         * lib/poll_.h: Likewise.
87744         * lib/stat_.h: Likewise.
87745         * lib/sys_time_.h: Likewise.
87746         * lib/sysexit_.h: Likewise.
87747         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
87748         * lib/stdbool_.h: Likewise.
87749         * lib/byteswap_.h: Add double-inclusion guard.
87751 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
87753         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
87755 2007-03-30  Karl Berry  <karl@gnu.org>
87757         * config/srclist-update: double space after USA in the license
87758         substitution, since that's how it's usually (?) written.
87760 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
87762         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
87763         reported by Bruno Haible.
87765 2007-03-29  Bruno Haible  <bruno@clisp.org>
87767         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
87768         a bug in AIX iconv().
87770 2007-03-29  Bruno Haible  <bruno@clisp.org>
87772         * modules/ldexpl-tests: New file.
87773         * tests/test-ldexpl.c: New file.
87775 2007-03-29  Bruno Haible  <bruno@clisp.org>
87777         * lib/ldexpl.c: Include fpucw.h.
87778         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
87779         multiplication.
87780         * modules/ldexpl (Depends-on): Add fpucw.
87782 2007-03-29  Bruno Haible  <bruno@clisp.org>
87784         * modules/ldexpl: New file.
87785         * m4/ldexpl.m4: New file.
87786         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
87787         set.
87788         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
87789         REPLACE_LDEXPL.
87790         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
87791         REPLACE_LDEXPL.
87792         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
87793         gl_FUNC_LDEXPL_WORKS.
87794         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
87795         * modules/mathl (Files): Remove lib/ldexpl.c.
87796         (Depends-on): Add ldexpl.
87798 2007-03-29  Bruno Haible  <bruno@clisp.org>
87800         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
87802 2007-03-29  Bruno Haible  <bruno@clisp.org>
87804         * tests/test-striconveh.c (main): Don't assume that a direct conversion
87805         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
87806         and possibly also HP-UX.
87807         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
87808         work on AIX, IRIX, HP-UX, OSF/1.
87809         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
87810         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
87811         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
87812         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
87813         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
87814         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
87816 2007-03-29  Bruno Haible  <bruno@clisp.org>
87818         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
87820 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
87822         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
87823         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
87825 2007-03-29  Eric Blake  <ebb9@byu.net>
87827         * lib/acl-internal.h: Remove redundant include.
87828         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
87829         Cygwin when a file is locked.
87831 2007-03-29  Bruno Haible  <bruno@clisp.org>
87833         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
87834         file.
87835         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
87837 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
87839         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
87840         try to remove a parent directory if the child couldn't be removed
87841         (except for the first rmdir, which could fail because the child
87842         doesn't exist).  Problem reported by Jeff Blaine in
87843         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
87845 2007-03-28  Bruno Haible  <bruno@clisp.org>
87847         * lib/striconveh.c (utf8conv_carefully): New function.
87848         (mem_cd_iconveh_internal): Invoke it.
87850 2007-03-28  Bruno Haible  <bruno@clisp.org>
87852         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
87853         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
87854         input.
87855         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
87856         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
87857         unistr/u8-uctomb.
87859 2007-03-28  Bruno Haible  <bruno@clisp.org>
87861         * modules/unistr/u8-mbtoucr: New file.
87862         * lib/unistr/u8-mbtoucr.c: New file.
87863         * modules/unistr/u16-mbtoucr: New file.
87864         * lib/unistr/u16-mbtoucr.c: New file.
87865         * modules/unistr/u16-mbtoucr: New file.
87866         * lib/unistr/u16-mbtoucr.c: New file.
87867         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
87869 2007-03-27  Simon Josefsson  <simon@josefsson.org>
87870             Bruno Haible  <bruno@clisp.org>
87872         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
87873         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
87874         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
87876         * m4/stdio_h.m4: Add stubs for vasprintf too.
87878         * modules/stdio: Support vasprintf in sed command.
87880         * modules/vasprintf: Depend on stdio for prototypes.  Remove
87881         vasprintf.h.  Add stdio module indicator.
87883         * lib/stdio_.h: Declare asprintf and vasprintf, based on
87884         vasprintf.h.
87886         * lib/vasprintf.h: File removed.
87888         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
87889         * lib/vasprintf.c: Ditto.
87890         * lib/xvasprintf.c: Ditto.
87891         * tests/test-vasprintf-posix.c: Ditto.
87892         * tests/test-vasprintf.c: Ditto.
87894 2007-03-27  Bruno Haible  <bruno@clisp.org>
87896         Make vasnprintf multithread-safe.
87897         * lib/vasnprintf.c (decimal_point_char): New function.
87898         (VASNPRINTF): Use it.
87899         Suggested by Simon Josefsson.
87901 2007-03-27  Eric Blake  <ebb9@byu.net>
87903         Support sub-second birthtime on cygwin.
87904         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
87905         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
87906         (get_stat_birthtime): Also work with st_birthtim.
87908 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
87910         * lib/stat-time.h (USE_BIRTHTIME): Remove.
87911         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
87912         (get_stat_birthtime_ns): Do not try to use "spare" fields.
87913         (get_stat_birthtime_ns): Simplify compile-time tests.
87914         (get_stat_birthtime): Change the API to look like
87915         get_stat_mtime etc., except return a negative tv_nsec on error.
87916         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
87917         Don't check for "spare" fields.
87918         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
87919         or for struct stat.st_birthtime, as these tests aren't used.
87920         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
87922 2007-03-27  Bruno Haible  <bruno@clisp.org>
87924         * lib/stat-time.h: Include <sys/stat.h>.
87926 2007-03-27  James Youngman  <jay@gnu.org>
87928         * lib/stat-time.h (get_stat_birthtime): New function for
87929           retrieving st_birthtime as provided by UFS2 (hence *BSD).
87930         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
87931           and its variants.
87932         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
87933         * modules/stat-time-test: New file.
87934         * tests/test-stat-time.c: New test, devised by Bruno Haible.
87936 2007-03-26  Bruno Haible  <bruno@clisp.org>
87938         Better support of signalling NaNs.
87939         * lib/atanl.c: Include isnanl.h.
87940         (atanl): Perform test for NaN at the beginning of the function and
87941         through a call to isnanl.
87942         * lib/cosl.c: Include isnanl.h.
87943         (cosl): Perform test for NaN at the beginning of the function and
87944         through a call to isnanl.
87945         * lib/ldexpl.c: Include isnanl.h.
87946         (ldexpl): Perform test for NaN through a call to isnanl.
87947         * lib/logl.c: Include isnanl.h.
87948         (logl): Perform test for NaN at the beginning of the function and
87949         through a call to isnanl.
87950         * lib/sinl.c: Include isnanl.h.
87951         (sinl): Perform test for NaN at the beginning of the function and
87952         through a call to isnanl.
87953         * lib/sqrtl.c: Include isnanl.h.
87954         (sqrtl): Perform test for NaN at the beginning of the function and
87955         through a call to isnanl.
87956         * lib/tanl.c: Include isnanl.h.
87957         (tanl): Perform test for NaN at the beginning of the function and
87958         through a call to isnanl.
87959         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
87960         * modules/mathl (Depends-on): Add isnanl.
87962 2007-03-26  Eric Blake  <ebb9@byu.net>
87964         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
87965         regression in logic sense of previous patch.
87967 2007-03-26  Bruno Haible  <bruno@clisp.org>
87969         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
87970         unportable shell command "if ! ...".
87971         Reported by Ralf Wildenhues.
87973 2007-03-25  Bruno Haible  <bruno@clisp.org>
87975         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
87976         <sysexits.h> file, and only add EX_CONFIG.
87977         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
87978         absolute file name and whether it is sufficient. Substitute also
87979         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
87980         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
87981         ABSOLUTE_SYSEXITS_H into sysexits.h.
87983 2007-03-25  Bruno Haible  <bruno@clisp.org>
87985         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
87986         hints is NULL.
87988 2007-03-25  Bruno Haible  <bruno@clisp.org>
87990         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
87991         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
87993 2007-03-25  Bruno Haible  <bruno@clisp.org>
87995         * lib/vasnprintf.c: Include langinfo.h.
87996         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
87997         multithread-safe.
87998         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
87999         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
88000         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
88001         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88002         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88003         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88004         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88005         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
88006         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88007         Reported by Simon Josefsson.
88009 2007-03-25  Bruno Haible  <bruno@clisp.org>
88011         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
88012         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
88013         * modules/vasnprintf (Depends-on): Add stdint.
88015 2007-03-25  Bruno Haible  <bruno@clisp.org>
88017         * modules/fpieee: New file.
88018         * m4/fpieee.m4: New file.
88019         * modules/isnan-nolibm (Depends-on): Add fpieee.
88020         * modules/isnanl-nolibm (Depends-on): Add fpieee.
88021         * modules/isnanl (Depends-on): Add fpieee.
88023 2007-03-25  Bruno Haible  <bruno@clisp.org>
88025         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
88027 2007-03-25  Bruno Haible  <bruno@clisp.org>
88029         Avoid test failures on IRIX 6.5.
88030         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
88031         (main): Use it.
88032         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
88033         macros.
88034         (main): Use them.
88036 2007-03-25  Bruno Haible  <bruno@clisp.org>
88038         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
88039         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
88040         exists but doesn't work.
88041         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
88042         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
88043         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
88044         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
88045         math.h.
88047 2007-03-25  Bruno Haible  <bruno@clisp.org>
88049         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
88050         returns inf. Needed on IRIX 6.5.
88052 2007-03-25  Bruno Haible  <bruno@clisp.org>
88054         * tests/test-frexpl.c: Include isnanl-nolibm.h.
88055         (main): Use isnanl instead of x != x idiom.
88056         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
88058         * tests/test-frexp.c: Include isnan.h.
88059         (main): Use isnan instead of x != x idiom.
88060         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
88062 2007-03-25  Bruno Haible  <bruno@clisp.org>
88064         * tests/test-frexp.c (NaN): New function/macro.
88065         (main): Use it instead of 0.0 / 0.0.
88066         * tests/test-isnan.c (NaN): New function/macro.
88067         (main): Use it instead of 0.0 / 0.0.
88068         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
88069         (test_function): Use it instead of 0.0 / 0.0.
88070         * tests/test-vasprintf-posix.c (NaN): New function/macro.
88071         (test_function): Use it instead of 0.0 / 0.0.
88072         * tests/test-snprintf-posix.h (NaN): New function/macro.
88073         (test_function): Use it instead of 0.0 / 0.0.
88074         * tests/test-sprintf-posix.h (NaN): New function/macro.
88075         (test_function): Use it instead of 0.0 / 0.0.
88076         * tests/test-fprintf-posix.h (NaN): New function/macro.
88077         (test_function): Use it instead of 0.0 / 0.0.
88078         * tests/test-printf-posix.h (NaN): New function/macro.
88079         (test_function): Use it instead of 0.0 / 0.0.
88081         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
88083 2007-03-25  Bruno Haible  <bruno@clisp.org>
88085         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
88087 2007-03-25  Bruno Haible  <bruno@clisp.org>
88089         * lib/regexec.c (merge_state_with_log): Make static.
88091 2007-03-25  Bruno Haible  <bruno@clisp.org>
88093         * lib/trigl.c (kernel_rem_pio2): Make static.
88095 2007-03-25  Bruno Haible  <bruno@clisp.org>
88097         * lib/sincosl.c (sincosl_table): Make static.
88099 2007-03-25  Bruno Haible  <bruno@clisp.org>
88101         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
88102         if the compiler does not support C99.
88104 2007-03-25  Bruno Haible  <bruno@clisp.org>
88106         * modules/time (Makefile.am): Ensure all rule action lines start with a
88107         tab.
88109 2007-03-24  Bruno Haible  <bruno@clisp.org>
88111         * modules/tsearch-tests: New file.
88112         * tests/test-tsearch.sh: New file.
88113         * tests/test-tsearch.c: New file, mostly copied from glibc.
88115         * modules/search-tests: New file.
88116         * tests/test-search.c: New file.
88118         * modules/search: New file.
88119         * lib/search_.h: New file, incorporating lib/tsearch.h.
88120         * m4/search_h.m4: New file.
88121         * lib/tsearch.h: Remove file.
88122         * lib/tsearch.c: Include search.h instead of tsearch.h.
88123         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
88124         HAVE_TSEARCH.
88125         * modules/tsearch (Files): Remove lib/tsearch.h.
88126         (Depends-on): Add search.
88127         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
88128         (Include): Change tsearch.h into search.h.
88130 2007-03-24  Bruno Haible  <bruno@clisp.org>
88132         * modules/fpucw: New file.
88133         * lib/fpucw.h: New file.
88134         * lib/frexp.c: Include fpucw.h.
88135         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
88136         (FUNC): Use them.
88137         * lib/printf-frexp.c: Include fpucw.h.
88138         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
88139         (FUNC): Use them.
88140         * lib/vasnprintf.c: Include fpucw.h.
88141         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
88142         'long double' calculations.
88143         * tests/test-frexpl.c: Include fpucw.h.
88144         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
88145         * tests/test-printf-frexpl.c: Include fpucw.h.
88146         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
88147         * modules/frexpl (Depends-on): Add fpucw.
88148         * modules/printf-frexpl (Depends-on): Likewise.
88149         * modules/fprintf-posix (Depends-on): Likewise.
88150         * modules/snprintf-posix (Depends-on): Likewise.
88151         * modules/sprintf-posix (Depends-on): Likewise.
88152         * modules/vasnprintf-posix (Depends-on): Likewise.
88153         * modules/vasprintf-posix (Depends-on): Likewise.
88154         * modules/vfprintf-posix (Depends-on): Likewise.
88155         * modules/vsnprintf-posix (Depends-on): Likewise.
88156         * modules/vsprintf-posix (Depends-on): Likewise.
88157         * modules/frexpl-tests (Depends-on): Likewise.
88158         * modules/printf-frexpl-tests (Depends-on): Likewise.
88160 2007-03-24  Bruno Haible  <bruno@clisp.org>
88162         * lib/float+.h: New file.
88163         * lib/isnan.c: Include float+.h.
88164         (SIZE): New macro.
88165         (FUNC): Compare only SIZE bytes of the value.
88166         * lib/vasnprintf.c: Include float+.h.
88167         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
88168         SIZEOF_LDBL or SIZEOF_DBL bytes.
88169         * modules/isnan-nolibm (Files): Add lib/float+.h.
88170         * modules/isnanl-nolibm (Files): Add lib/float+.h.
88171         * modules/isnanl (Files): Add lib/float+.h.
88172         * modules/vasnprintf (Files): Add lib/float+.h.
88174 2007-03-24  Bruno Haible  <bruno@clisp.org>
88176         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
88177         include isnanl-nolibm.h.
88179 2007-03-24  Bruno Haible  <bruno@clisp.org>
88181         * tests/test-read-file.c (main): Don't produce spurious output for
88182         expected situations. Make the test fail if it encountered unexpected
88183         results.
88185 2007-03-24  Bruno Haible  <bruno@clisp.org>
88187         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
88188         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
88190 2007-03-24  Bruno Haible  <bruno@clisp.org>
88192         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
88194 2007-03-24  Bruno Haible  <bruno@clisp.org>
88196         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
88197         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
88199         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
88200         * modules/utf8-ucs4: Turn into a symbolic link to module
88201         unistr/u8-mbtouc.
88203         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
88204         utf8-ucs4-unsafe.
88205         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
88206         unistr/u8-mbtouc-unsafe.
88208         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
88209         * modules/utf16-ucs4: Turn into a symbolic link to module
88210         unistr/u16-mbtouc.
88212         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
88213         utf16-ucs4-unsafe.
88214         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
88215         unistr/u16-mbtouc-unsafe.
88217         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
88218         * modules/ucs4-utf8: Turn into a symbolic link to module
88219         unistr/u8-ubtomb.
88221         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
88222         * modules/ucs4-utf16: Turn into a symbolic link to module
88223         unistr/u16-ubtomb.
88225 2007-03-24  Bruno Haible  <bruno@clisp.org>
88227         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
88228         Enable the function only if HAVE_INLINE.
88229         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
88230         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
88231         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
88232         Enable the function only if HAVE_INLINE.
88233         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
88234         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
88235         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
88236         Enable the function only if HAVE_INLINE.
88237         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
88238         Enable the function only if HAVE_INLINE.
88239         * modules/utf8-ucs4: Update.
88240         * modules/utf8-ucs4-unsafe: Update.
88241         * modules/utf16-ucs4: Update.
88242         * modules/utf16-ucs4-unsafe: Update.
88243         * modules/ucs4-utf8: Update.
88244         * modules/ucs4-utf16: Update.
88246 2007-03-24  Bruno Haible  <bruno@clisp.org>
88248         * lib/utf8-ucs4.h: Remove file.
88249         * lib/utf8-ucs4-unsafe.h: Remove file.
88250         * lib/utf16-ucs4.h: Remove file.
88251         * lib/utf16-ucs4-unsafe.h: Remove file.
88252         * lib/ucs4-utf8.h: Remove file.
88253         * lib/ucs4-utf16.h: Remove file.
88254         * lib/unistr.h: Include their previous contents.
88255         * m4/utf-ucs4.m4: Remove file.
88256         * m4/ucs4-utf.m4: Remove file.
88257         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
88258         (Depends-on): Add unistr/base.
88259         (configure.ac): Remove gl_UTF_UCS4.
88260         (Makefile.am): Update.
88261         (Include): Change to unistr.h.
88262         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
88263         (Depends-on): Add unistr/base.
88264         (configure.ac): Remove gl_UTF_UCS4.
88265         (Makefile.am): Update.
88266         (Include): Change to unistr.h.
88267         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
88268         (Depends-on): Add unistr/base.
88269         (configure.ac): Remove gl_UTF_UCS4.
88270         (Makefile.am): Update.
88271         (Include): Change to unistr.h.
88272         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
88273         (Depends-on): Add unistr/base.
88274         (configure.ac): Remove gl_UTF_UCS4.
88275         (Makefile.am): Update.
88276         (Include): Change to unistr.h.
88277         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
88278         (Depends-on): Add unistr/base.
88279         (configure.ac): Remove gl_UCS4_UTF.
88280         (Makefile.am): Update.
88281         (Include): Change to unistr.h.
88282         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
88283         (Depends-on): Add unistr/base.
88284         (configure.ac): Remove gl_UCS4_UTF.
88285         (Makefile.am): Update.
88286         (Include): Change to unistr.h.
88287         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
88288         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
88289         utf8-ucs4-unsafe.h.
88290         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
88291         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
88292         utf16-ucs4-unsafe.h.
88293         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
88294         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
88295         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
88296         * lib/unistr/u8-strchr.c: Likewise.
88297         * lib/unistr/u8-strrchr.c: Likewise.
88298         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
88299         * lib/unistr/u16-strchr.c: Likewise.
88300         * lib/unistr/u16-strrchr.c: Likewise.
88301         * lib/striconveh.c: Update.
88302         * lib/linebreak.c: Update.
88304 2007-03-24  Bruno Haible  <bruno@clisp.org>
88306         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
88307         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
88309 2007-03-22  Bruno Haible  <bruno@clisp.org>
88311         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
88313 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
88315         * MODULES.html.sh (File system functions): New module write-any-file.
88316         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
88317         * m4/write-any-file.m4: New files.
88319 2007-03-23  Eric Blake  <ebb9@byu.net>
88321         * gnulib-tool: Rearrange space-tab sequences, since some editors
88322         like to eat them.
88324 2007-03-23  Eric Blake  <ebb9@byu.net>
88326         * lib/version-etc.c (version_etc_va): Update license wording to
88327         be more concise.  Recommended by Richard Stallman.
88329 2007-03-22  Bruno Haible  <bruno@clisp.org>
88331         * lib/poll.c (MSG_PEEK): New fallback definition.
88333 2007-03-22  Bruno Haible  <bruno@clisp.org>
88335         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
88336         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
88337         (main): Update.
88338         Fixes a compilation error on BeOS.
88340 2007-03-22  Bruno Haible  <bruno@clisp.org>
88342         * modules/frexpl-tests: New file.
88343         * tests/test-frexpl.c: New file.
88345         * modules/frexpl: New file.
88346         * m4/frexpl.m4: New file.
88347         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
88348         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
88349         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
88350         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
88351         (Depends-on): Add frexpl. Remove isnanl-nolibm.
88352         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
88354 2007-03-22  Bruno Haible  <bruno@clisp.org>
88356         * lib/frexpl.c: Share code with lib/frexp.c.
88357         * modules/mathl (Files): Add lib/frexp.c.
88358         (Depends-on): Add isnanl-nolibm.
88360 2007-03-22  Bruno Haible  <bruno@clisp.org>
88362         * modules/printf-frexp (Files): Add m4/frexp.m4.
88363         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
88364         only if the found frexp function actually works.
88366 2007-03-22  Bruno Haible  <bruno@clisp.org>
88368         * lib/frexp.c: Remove older implementation that uses divisions.
88370 2007-03-21  Bruno Haible  <bruno@clisp.org>
88372         * modules/frexp-tests: New file.
88373         * tests/test-frexp.c: New file.
88375         * modules/frexp: New file.
88376         * lib/frexp.c: New file.
88377         * m4/frexp.m4: New file.
88378         * lib/math_.h (frexp): New declaration.
88379         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
88380         REPLACE_FREXP.
88381         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
88383 2007-03-21  Bruno Haible  <bruno@clisp.org>
88385         * modules/isnanl-tests: New file.
88386         * tests/test-isnanl.c: New file.
88388         * modules/isnanl: New file.
88389         * lib/isnanl.h: New file.
88390         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
88391         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
88392         gl_FUNC_ISNANL_WORKS.
88393         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
88394         New macros.
88396 2007-03-21  Bruno Haible  <bruno@clisp.org>
88398         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
88399         lib/isnanl.h.
88400         (Include): Update.
88401         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
88402         * lib/vasnprintf.c: Update.
88403         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
88404         tests/test-isnanl.h, remove tests/test-isnanl.c.
88405         (Makefile.am): Update.
88406         * tests/test-isnanl-nolibm.c: New file.
88407         * tests/test-isnanl.h: New file.
88408         * tests/test-isnanl.c: Remove file.
88410 2007-03-21  Jim Meyering  <jim@meyering.net>
88412         When trying to open ".", treat ESTALE like EACCES.
88413         * lib/savewd.c (savewd_save): Resort to forking not just upon
88414         failure with EACCES, but also when errno is ESTALE.
88416 2007-03-20  Bruno Haible  <bruno@clisp.org>
88418         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
88419         Needed on AIX 5.1. Reported by Matthew Woehlke.
88421 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
88423         Suggestions by Bruno Haible:
88424         * lib/acl-internal.h: Include "gettext.h" rather than rolling
88425         our own.
88426         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
88427         * modules/acl (Depends-on): Add gettext.
88429 2007-03-19  Bruno Haible  <bruno@clisp.org>
88431         * modules/iconvme: Remove file.
88432         * lib/iconvme.h: Remove file.
88433         * lib/iconvme.c: Remove file.
88434         * m4/iconvme.m4: Remove file.
88436 2007-03-19  Bruno Haible  <bruno@clisp.org>
88438         * doc/relocatable-maint.texi: Break long shell script line.
88439         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
88441 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
88443         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
88444         handle file_has_acl.
88445         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
88446         * lib/acl.c: Move header inclusions and related macro defns into
88447         lib/acl-internal.h.
88448         (S_ISLNK): Remove defn, since that's now done for us.
88449         (file_has_acl): Move to lib/file-has-acl.c.
88450         Call acl_trivial if available.  This is the crucial part of the fix.
88451         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
88452         shared within the library.  Rewrite a bit, partly to make it compatible
88453         with the GNU coding style.
88454         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
88455         Remove unnecessary double-quotes.
88456         Don't test for acl_to_text; the build will catch that.
88457         Replace acl_entries if it doesn't exist and it is needed.
88458         Check for -lsec and acl_trivial (as used on Solaris 10).
88459         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
88460         lib/file-has-acl.c.
88461         (Depends-on): Add sys_stat, for S_ISLNK.
88463 2007-03-19  Ben Pfaff  <blp@gnu.org>
88465         * doc/gnulib.texi: Fix typos.
88466         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
88468 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
88470         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
88471         If size is zero here, buf must be zero.
88473 2007-03-19  Simon Josefsson  <simon@josefsson.org>
88475         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
88476         <bruno@clisp.org>.
88478 2007-03-18  Bruno Haible  <bruno@clisp.org>
88480         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
88481         Suggested by Eric Blake.
88483 2007-03-18  Ben Pfaff  <blp@gnu.org>
88485         * doc/relocatable.texi: Recommend using as prefix a directory
88486         that does not exist and will never be created.  Based on
88487         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
88488         and others.
88490 2007-03-17  Bruno Haible  <bruno@clisp.org>
88492         * lib/fchownat.c: Include lchown.h.
88494 2007-03-17  Bruno Haible  <bruno@clisp.org>
88496         Fix endless loop when the given allocated size was > INT_MAX.
88497         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
88498         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
88499         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
88500         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
88501         * lib/sprintf.c (sprintf): Likewise.
88503 2007-03-17  Bruno Haible  <bruno@clisp.org>
88505         * tests/test-argp-2.sh (func_compare): Output a context diff.
88507 2007-03-17  Bruno Haible  <bruno@clisp.org>
88509         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
88510         locale's decimal-point character.
88512 2007-03-17  Bruno Haible  <bruno@clisp.org>
88514         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
88515         before comparing it. Needed because on some platforms (e.g. x86) a
88516         'long double' occupies less bytes than sizeof (long double).
88518 2007-03-17  Bruno Haible  <bruno@clisp.org>
88520         * tests/test-crc.c (main): Make printf statements 64-bit clean.
88521         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
88522         * tests/test-getaddrinfo.c (simple): Likewise.
88523         * tests/test-read-file.c (main): Likewise.
88525 2007-03-17  Bruno Haible  <bruno@clisp.org>
88527         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
88529 2007-03-17  Bruno Haible  <bruno@clisp.org>
88531         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
88532         unused variable.
88534 2007-03-17  Bruno Haible  <bruno@clisp.org>
88536         * tests/test-c-strcasecmp.c: Include c-strcase.h.
88537         * tests/test-c-strncasecmp.c: Likewise.
88539 2007-03-17  Bruno Haible  <bruno@clisp.org>
88541         * modules/stdlib (Depends-on): Add unistd.
88542         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
88543         Needed for MacOS X 10.3.
88545 2007-03-17  Bruno Haible  <bruno@clisp.org>
88547         * lib/unistr/u-strdup.h: Include <stdlib.h>.
88549 2007-03-17  Bruno Haible  <bruno@clisp.org>
88551         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
88553 2007-03-17  Bruno Haible  <bruno@clisp.org>
88555         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
88556         to reflect files copied from gnulib (with or without modifications).
88557         Suggested by Jim Meyering.
88559 2007-03-17  Eric Blake  <ebb9@byu.net>
88561         * NEWS: Document stdlib change from 2007-02-18.
88563 2007-03-17  Jim Meyering  <jim@meyering.net>
88565         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
88566         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
88567         someone uses a name containing shell meta-characters.
88568         Reported by Alfred M. Szmidt.
88570         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
88572 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
88574         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
88575         and copy gettext configuration files only if configure.ac contains
88576         a use of AM_GNU_GETTEXT_VERSION.
88578 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
88580         * build-aux/bootstrap (gnulib_name): New variable.
88581         (gnulib_tool_options): Use it.
88583 2007-03-13  Simon Josefsson  <simon@josefsson.org>
88585         * tests/test-des.c: Use new namespace.
88587 2007-03-15  Bruno Haible  <bruno@clisp.org>
88589         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
88590         Reported by James Youngman <jay@gnu.org>.
88592 2007-03-15  Bruno Haible  <bruno@clisp.org>
88594         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
88595         declared prototype. Needed with cc on OSF/1 5.1.
88597 2007-03-15  Bruno Haible  <bruno@clisp.org>
88599         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
88600         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
88601         (struct gl_list_implementation): Add dispose_fn argument to the
88602         'create_empty', 'create' methods.
88603         (struct gl_list_impl_base): Add field 'dispose_fn'.
88604         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
88605         argument.
88606         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
88607         dispose_fn argument.
88608         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
88609         dispose_fn on the dropped values.
88610         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
88611         dispose_fn argument.
88612         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
88613         dropped values.
88614         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
88615         (gl_tree_remove_node): Call dispose_fn on the dropped value.
88616         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
88617         (gl_tree_remove_node): Call dispose_fn on the dropped value.
88618         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
88619         argument.
88620         (gl_tree_list_free): Call dispose_fn on the dropped values.
88621         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
88622         the dropped values.
88623         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
88624         Add dispose_fn argument.
88625         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
88626         Call dispose_fn on the dropped values.
88627         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
88628         Add dispose_fn argument.
88629         (gl_sublist_create): Initialize the 'dispose_fn' field.
88630         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
88631         * tests/test-array_list.c (main): Update.
88632         * tests/test-carray_list.c (main): Update.
88633         * tests/test-avltree_list.c (main): Update.
88634         * tests/test-rbtree_list.c (main): Update.
88635         * tests/test-avltreehash_list.c (main): Update.
88636         * tests/test-rbtreehash_list.c (main): Update.
88637         * tests/test-linked_list.c (main): Update.
88638         * tests/test-linkedhash_list.c (main): Update.
88639         * tests/test-array_oset.c (main): Update.
88641 2007-03-15  Bruno Haible  <bruno@clisp.org>
88643         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
88644         (gl_oset_create_empty): Add dispose_fn argument.
88645         (struct gl_oset_implementation): Add dispose_fn argument to
88646         'create_empty' method.
88647         (struct gl_oset_impl_base): Add dispose_fn field.
88648         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
88649         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
88650         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
88651         values.
88652         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
88653         (gl_tree_oset_free): Call dispose_fn on the dropped values.
88654         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
88655         dropped value.
88656         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
88657         dropped value.
88658         * tests/test-array_oset.c (main): Update.
88659         * tests/test-avltree_oset.c (main): Update.
88660         * tests/test-rbtree_oset.c (main): Update.
88661         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
88663 2007-03-13  Bruno Haible  <bruno@clisp.org>
88665         * tests/test-stdbool.c (i): Update after last patch.
88667 2007-03-12  Bruno Haible  <bruno@clisp.org>
88669         * lib/quotearg.c: Include <wctype.h> early, before the definition of
88670         the iswprint macro. Needed on Solaris 2.5.1.
88672 2007-03-12  Bruno Haible  <bruno@clisp.org>
88674         * tests/test-printf-frexp.c (main): Declare x as volatile.
88676 2007-03-12  Simon Josefsson  <simon@josefsson.org>
88678         * doc/gnulib.texi (Build robot for gnulib): New section.
88680 2007-03-12  Jim Meyering  <jim@meyering.net>
88682         * build-aux/bootstrap: New file.
88683         * build-aux/bootstrap.conf: New file, from coreutils.
88685 2007-03-11  Bruno Haible  <bruno@clisp.org>
88687         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
88689 2007-03-12  Simon Josefsson  <simon@josefsson.org>
88691         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
88692         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
88693         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
88695 2007-03-11  Bruno Haible  <bruno@clisp.org>
88697         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
88698         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
88700 2007-03-11  Bruno Haible  <bruno@clisp.org>
88702         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
88703         formula. Needed for SunPRO C 5.0.
88705 2007-03-11  Bruno Haible  <bruno@clisp.org>
88707         * modules/long-options (Depends-on): Add getopt.
88709 2007-03-11  Bruno Haible  <bruno@clisp.org>
88711         * modules/modechange (Depends-on): Add stdbool.
88713 2007-03-11  Bruno Haible  <bruno@clisp.org>
88715         * modules/i-ring (Depends-on): Add stdbool.
88717 2007-03-11  Bruno Haible  <bruno@clisp.org>
88719         * modules/gc-des (Depends-on): Add stdbool.
88721 2007-03-11  Bruno Haible  <bruno@clisp.org>
88723         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
88725 2007-03-11  Bruno Haible  <bruno@clisp.org>
88727         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
88729 2007-03-11  Bruno Haible  <bruno@clisp.org>
88731         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
88733 2007-03-11  Bruno Haible  <bruno@clisp.org>
88735         * lib/vasnprintf.c (sprintf): Undefine.
88737 2007-03-11  Bruno Haible  <bruno@clisp.org>
88739         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
88740         initializers in SunPRO C and Compaq C compilers.
88742 2007-03-11  Bruno Haible  <bruno@clisp.org>
88744         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
88745         decrementing code ANSI C compliant.
88747 2007-03-11  Bruno Haible  <bruno@clisp.org>
88749         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
88750         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
88752 2007-03-11  Bruno Haible  <bruno@clisp.org>
88754         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
88755         <stdbool.h> substitute doesn't pass.
88757 2007-03-11  Bruno Haible  <bruno@clisp.org>
88759         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
88761 2007-03-11  Bruno Haible  <bruno@clisp.org>
88763         * gnulib-tool (func_create_megatestdir): Create also an autobuild
88764         script, for submission to autobuild.josefsson.org.
88766 2007-03-10  Bruno Haible  <bruno@clisp.org>
88768         * modules/canonicalize-lgpl-tests: New file.
88769         * tests/test-canonicalize-lgpl.sh: New file.
88770         * tests/test-canonicalize-lgpl.c: New file.
88772         * modules/c-strcase-tests: New file.
88773         * tests/test-c-strcase.sh: New file.
88774         * tests/test-c-strcasecmp.c: New file.
88775         * tests/test-c-strncasecmp.c: New file.
88777         * modules/atexit-tests: New file.
88778         * tests/test-atexit.sh: New file.
88779         * tests/test-atexit.c: New file.
88781 2007-03-10  Bruno Haible  <bruno@clisp.org>
88783         * tests/test-binary-io.sh: Use temporary filenames that are not so
88784         likely to clash with those of other tests (in a parallel make).
88785         * tests/test-binary-io.c: Likewise.
88787 2007-03-10  Bruno Haible  <bruno@clisp.org>
88789         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
88790         fallback; use #error instead.
88791         Suggested by Simon Josefsson.
88793 2007-03-10  Bruno Haible  <bruno@clisp.org>
88795         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
88796         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
88797         first and the last.
88799 2007-03-10  Bruno Haible  <bruno@clisp.org>
88801         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
88803 2007-03-10  Bruno Haible  <bruno@clisp.org>
88805         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
88806         "make distcheck".
88807         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
88808         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
88809         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
88811 2007-03-10  Bruno Haible  <bruno@clisp.org>
88813         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
88814         variable.
88815         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
88816         variable.
88818 2007-03-09  Eric Blake  <ebb9@byu.net>
88819         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
88821         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
88822         types are not being provided by gnulib.
88823         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
88824         types are supported.
88826 2007-03-10  Bruno Haible  <bruno@clisp.org>
88828         * lib/stdio_.h (__attribute__): New macro.
88829         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
88830         vsprintf): Specify __attribute__ __format__ for GCC.
88831         Suggested by Eric Blake.
88833 2007-03-09  Bruno Haible  <bruno@clisp.org>
88835         * modules/printf-posix-tests: New file.
88836         * tests/test-printf-posix.sh: New file.
88837         * tests/test-printf-posix.c: New file.
88839         * modules/printf-posix: New file.
88840         * lib/printf.c: New file.
88841         * m4/printf-posix-rpl.m4: New file.
88842         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
88843         REPLACE_PRINTF.
88844         * lib/stdio_.h (printf): New declaration.
88845         (format, __format__, ____printf____, ____scanf____, ____strftime____,
88846         ____strfmon____): New macros.
88847         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
88848         REPLACE_PRINTF.
88850 2007-03-09  Bruno Haible  <bruno@clisp.org>
88852         * tests/test-vasnprintf-posix2.sh: New file.
88853         * tests/test-vasnprintf-posix2.c: New file.
88854         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
88855         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
88856         (Makefile.am): Activate test-vasnprintf-posix2.sh.
88858         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
88859         a locale dependent decimal point, rather than always '.'.
88861 2007-03-09  Eric Blake  <ebb9@byu.net>
88863         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
88864         spite of platforms like Tandem/NSK that define it to -1.
88866 2007-03-08  Bruno Haible  <bruno@clisp.org>
88868         * modules/vprintf-posix-tests: New file.
88869         * tests/test-vprintf-posix.sh: New file.
88870         * tests/test-vprintf-posix.c: New file.
88871         * tests/test-printf-posix.h: New file.
88873         * modules/vprintf-posix: New file.
88874         * lib/vprintf.c: New file.
88875         * m4/vprintf-posix.m4: New file.
88876         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
88877         REPLACE_VPRINTF.
88878         * lib/stdio_.h (vprintf): New declaration.
88879         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
88880         REPLACE_VPRINTF.
88882 2007-03-08  Bruno Haible  <bruno@clisp.org>
88884         * modules/fprintf-posix-tests: New file.
88885         * tests/test-fprintf-posix.sh: New file.
88886         * tests/test-fprintf-posix.c: New file.
88888         * modules/fprintf-posix: New file.
88889         * lib/fprintf.c: New file.
88890         * m4/fprintf-posix.m4: New file.
88891         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
88892         REPLACE_FPRINTF.
88893         * lib/stdio_.h (fprintf): New declaration.
88894         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
88895         REPLACE_FPRINTF.
88897 2007-03-08  Bruno Haible  <bruno@clisp.org>
88899         * modules/vfprintf-posix-tests: New file.
88900         * tests/test-vfprintf-posix.sh: New file.
88901         * tests/test-vfprintf-posix.c: New file.
88902         * tests/test-fprintf-posix.h: New file.
88903         * tests/test-fprintf-posix.out: New file.
88905         * modules/vfprintf-posix: New file.
88906         * lib/vfprintf.c: New file.
88907         * m4/vfprintf-posix.m4: New file.
88908         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
88909         REPLACE_VFPRINTF.
88910         * lib/stdio_.h (vfprintf): New declaration.
88911         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
88912         REPLACE_VFPRINTF.
88914 2007-03-08  Bruno Haible  <bruno@clisp.org>
88916         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
88918 2007-03-08  Bruno Haible  <bruno@clisp.org>
88920         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
88921         instead of 'expr' invocations.
88922         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88923         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88924         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88925         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88926         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88927         Suggested by Paul Eggert.
88929 2007-03-08  Bruno Haible  <bruno@clisp.org>
88931         * modules/fseterr-tests: New file.
88932         * tests/test-fseterr.c: New file.
88934         * modules/fseterr: New file.
88935         * lib/fseterr.h: New file.
88936         * lib/fseterr.c: New file.
88938 2007-03-08  Bruno Haible  <bruno@clisp.org>
88940         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
88941         * lib/getopt_.h: Likewise.
88942         * lib/mbswidth.h: Likewise.
88943         * lib/setenv.h: Likewise.
88944         * lib/vasnprintf.h: Likewise.
88945         * lib/vasprintf.h: Likewise.
88946         * lib/verror.h: Likewise.
88947         * lib/xsetenv.h: Likewise.
88948         * lib/xvasprintf.h: Likewise.
88950 2007-03-08  Jim Meyering  <jim@meyering.net>
88952         * users.txt: Add parted.
88954         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
88956 2007-03-07  Bruno Haible  <bruno@clisp.org>
88958         * m4/printf.m4: Make the shell script snippets copy&pastable.
88960 2007-03-02  Bruno Haible  <bruno@clisp.org>
88962         * lib/netinet_in_.h: New file.
88963         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
88964         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
88965         * modules/netinet_in (Files): Add lib/netinet_in_.h.
88966         (Depends-on): Add absolute-header.
88967         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
88968         into netinet/in.h.
88970 2007-03-03  Bruno Haible  <bruno@clisp.org>
88972         * lib/sys_select_.h: New file.
88973         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
88974         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
88975         * modules/sys_select (Files): Add lib/sys_select_.h.
88976         (Depends-on): Add absolute-header.
88977         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
88978         into sys/select.h.
88980 2007-03-02  Bruno Haible  <bruno@clisp.org>
88982         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
88983         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
88984         values.
88985         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
88986         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
88987         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
88988         * modules/sys_socket (Depends-on): Add absolute-header.
88989         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
88990         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
88991         (Include): Remove requirement of inclusion of <sys/types.h>.
88993 2007-03-02  Bruno Haible  <bruno@clisp.org>
88995         * lib/byteswap_.h (bswap_32): Fix formula.
88997 2007-03-06  Bruno Haible  <bruno@clisp.org>
88999         * modules/sprintf-posix-tests: New file.
89000         * tests/test-sprintf-posix.c: New file.
89002         * modules/sprintf-posix: New file.
89003         * lib/sprintf.c: New file.
89004         * m4/sprintf-posix.m4: New file.
89005         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
89006         REPLACE_SPRINTF.
89007         * lib/stdio_.h (sprintf): New declaration.
89008         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
89009         REPLACE_SPRINTF.
89011 2007-03-06  Bruno Haible  <bruno@clisp.org>
89013         * modules/vsprintf-posix-tests: New file.
89014         * tests/test-vsprintf-posix.c: New file.
89015         * tests/test-sprintf-posix.h: New file.
89017         * modules/vsprintf-posix: New file.
89018         * lib/vsprintf.c: New file.
89019         * m4/vsprintf-posix.m4: New file.
89020         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
89021         REPLACE_VSPRINTF.
89022         * lib/stdio_.h (vsprintf): New declaration.
89023         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
89024         REPLACE_VSPRINTF.
89026 2007-03-06  Bruno Haible  <bruno@clisp.org>
89028         * modules/vsnprintf (Depend-on): Remove minmax.
89030 2007-03-06  Bruno Haible  <bruno@clisp.org>
89032         * modules/snprintf-posix-tests: New file.
89033         * tests/test-snprintf-posix.c: New file.
89035         * modules/snprintf-posix: New file.
89036         * m4/snprintf-posix.m4: New file.
89037         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
89038         gl_FUNC_SNPRINTF.
89039         (gl_FUNC_SNPRINTF): Invoke it.
89040         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
89041         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
89042         is set.
89043         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
89045 2007-03-06  Bruno Haible  <bruno@clisp.org>
89047         * modules/vsnprintf-posix-tests: New file.
89048         * tests/test-vsnprintf-posix.c: New file.
89049         * tests/test-snprintf-posix.h: New file.
89051         * modules/vsnprintf-posix: New file.
89052         * m4/vsnprintf-posix.m4: New file.
89053         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
89054         gl_FUNC_VSNPRINTF.
89055         (gl_FUNC_VSNPRINTF): Invoke it.
89056         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
89057         * lib/stdio_.h (vsnprintf): Define as a replacement if
89058         REPLACE_VSNPRINTF is set.
89059         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
89061 2007-03-06  Bruno Haible  <bruno@clisp.org>
89063         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
89064         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
89066 2007-03-06  Bruno Haible  <bruno@clisp.org>
89068         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
89069         (asinl): Declare also if HAVE_DECL_ASINL is set.
89070         (atanl): Declare also if HAVE_DECL_ATANL is set.
89071         (ceill): Declare also if HAVE_DECL_CEILL is set.
89072         (cosl): Declare also if HAVE_DECL_COSL is set.
89073         (expl): Declare also if HAVE_DECL_EXPL is set.
89074         (floorl): Declare also if HAVE_DECL_FLOORL is set.
89075         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
89076         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
89077         (logl): Declare also if HAVE_DECL_LOGL is set.
89078         (sinl): Declare also if HAVE_DECL_SINL is set.
89079         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
89080         (tanl): Declare also if HAVE_DECL_TANL is set.
89081         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
89082         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
89083         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
89084         declaration of frexpl, ldexpl.
89085         * modules/printf-frexpl (Depends-on): Add math.
89086         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
89088 2007-03-05  Bruno Haible  <bruno@clisp.org>
89090         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
89091         frexpl and ldexpl are declared.
89092         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
89094 2007-03-05  Bruno Haible  <bruno@clisp.org>
89096         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
89097         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
89099 2007-03-05  Bruno Haible  <bruno@clisp.org>
89101         * lib/stdio_.h: Include <stddef.h>.
89103 2007-03-05  Bruno Haible  <bruno@clisp.org>
89105         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
89107 2007-03-05  Bruno Haible  <bruno@clisp.org>
89109         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
89110         NetBSD 4, from Ralf Wildenhues.
89112 2007-03-04  Bruno Haible  <bruno@clisp.org>
89114         * lib/vasprintf.h: Update #if logic for the case when the functions
89115         exist but are overridden.
89117 2007-03-04  Bruno Haible  <bruno@clisp.org>
89119         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
89120         implementations: glibc-2.4 and MacOS X 10.3.
89121         * tests/test-vasnprintf-posix.c (test_function): Test also the case
89122         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
89123         * tests/test-vasprintf-posix.c (test_function): Likewise.
89125 2007-03-04  Bruno Haible  <bruno@clisp.org>
89127         * modules/vasprintf-posix-tests: New file.
89128         * tests/test-vasprintf-posix.c: New file.
89130         * modules/vasprintf-posix: New file.
89131         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
89132         defined.
89133         * m4/vasprintf-posix.m4: New file.
89134         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
89135         gl_FUNC_VASPRINTF.
89136         (gl_FUNC_VASPRINTF): Invoke it.
89137         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
89138         here.
89139         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
89141 2007-03-04  Bruno Haible  <bruno@clisp.org>
89143         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
89144         REPLACE_GETTIMEOFDAY.
89145         * modules/sys_time (Makefile.am): Likewise.
89146         * m4/sys_time_h.m4: Likewise.
89147         * m4/gettimeofday.m4: Likewise.
89149 2007-03-04  Bruno Haible  <bruno@clisp.org>
89151         * modules/vasnprintf-posix-tests: New file.
89152         * tests/test-vasnprintf-posix.c: New file.
89154         * modules/vasnprintf-posix: New file.
89155         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
89156         printf-frexpl.h.
89157         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
89158         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
89159         REPLACE_VASNPRINTF is defined.
89160         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
89161         gl_FUNC_VASNPRINTF.
89162         (gl_FUNC_VASNPRINTF): Invoke it.
89163         * m4/vasnprintf-posix.m4: New file.
89164         * m4/printf.m4: New file.
89166 2007-03-04  Bruno Haible  <bruno@clisp.org>
89168         Compile progreloc.c only if --enable-relocatable is specified.
89169         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
89170         if --enable-relocatable was specified.
89171         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
89172         lib_SOURCES.
89174 2007-03-04  Jim Meyering  <jim@meyering.net>
89176         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
89177         Use it consistently, rather than enumerating errno constants.
89179 2007-03-04  Bruno Haible  <bruno@clisp.org>
89181         * modules/xvasprintf-tests: New file.
89182         * tests/test-xvasprintf.c: New file.
89184         * modules/vasprintf-tests: New file.
89185         * tests/test-vasprintf.c: New file.
89187         * modules/vasnprintf-tests: New file.
89188         * tests/test-vasnprintf.c: New file.
89190         * modules/vsnprintf-tests: New file.
89191         * tests/test-vsnprintf.c: New file.
89193         * modules/snprintf-tests: New file.
89194         * tests/test-snprintf.c: New file.
89196 2007-03-04  Bruno Haible  <bruno@clisp.org>
89198         Compile relocatable.c only if --enable-relocatable is specified.
89199         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
89200         gl_RELOCATABLE_LIBRARY.
89201         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
89202         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
89203         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
89204         gl_RELOCATABLE_LIBRARY.
89205         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
89206         (Makefile.am): Remove lib_SOURCES.
89207         * modules/relocatable-lib-lgpl (configure.ac): Invoke
89208         gl_RELOCATABLE_LIBRARY.
89209         (Makefile.am): Remove lib_SOURCES.
89210         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
89211         always.
89212         * modules/relocatable-prog-wrapper (configure.ac): Invoke
89213         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
89215 2007-03-04  Bruno Haible  <bruno@clisp.org>
89217         * modules/argmatch-tests: New file.
89218         * tests/test-argmatch.c: New file.
89220         * tests/test-allocsa.c (main): Halve the number of loop runs.
89222         * modules/alloca-opt-tests: New file.
89223         * tests/test-alloca-opt.c: New file.
89225 2007-03-04  Jim Meyering  <jim@meyering.net>
89227         Work around difference between Linux ACLs and Solaris 10 ZFS.
89228         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
89229         for EINVAL.
89231 2007-03-03  Bruno Haible  <bruno@clisp.org>
89233         * modules/relocatable-prog (Depends-on): Add back progreloc's
89234         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
89236 2007-03-03  Bruno Haible  <bruno@clisp.org>
89238         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
89239         * modules/relocatable-lib: New file.
89241 2007-03-03  Bruno Haible  <bruno@clisp.org>
89243         * modules/relocatable-prog: Renamed from modules/relocatable.
89244         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
89246 2007-03-03  Bruno Haible  <bruno@clisp.org>
89248         * modules/relocatable-script (Files): Add doc/relocatable.texi,
89249         m4/relocatable-lib.m4.
89250         (Depends-on): Remove 'relocatable'.
89251         (configure.ac): Add gl_RELOCATABLE_NOP.
89253 2007-03-03  Bruno Haible  <bruno@clisp.org>
89255         * modules/relocatable-prog-wrapper: New file.
89256         * modules/relocatable (Depends-on): Add it. Remove all other
89257         dependencies except progname.
89258         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
89260         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
89261         (gl_FUNC_STRERROR): Nop.
89262         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
89264         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
89265         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
89267         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
89268         (gl_FUNC_READLINK): Update.
89270         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
89272 2007-03-03  Bruno Haible  <bruno@clisp.org>
89274         * lib/xreadlink.c: Include <unistd.h> unconditionally.
89275         * modules/xreadlink (Depends-on): Add unistd.
89276         * modules/xreadlink-with-size (Depends-on): Likewise.
89278 2007-03-03  Bruno Haible  <bruno@clisp.org>
89280         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
89281         extracted from gt_FUNC_SETENV.
89282         (gt_FUNC_SETENV): Remove macro.
89283         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
89284         remove gt_FUNC_SETENV.
89286 2007-03-03  Bruno Haible  <bruno@clisp.org>
89288         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
89289         ENABLE_RELOCATABLE here.
89290         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
89292 2007-03-03  Bruno Haible  <bruno@clisp.org>
89294         * modules/rbtreehash-list-tests (Depends-on): Add progname.
89295         * tests/test-rbtreehash_list.c: Include progname.h.
89296         (main): Call set_program_name.
89298         * modules/rbtree-oset-tests (Depends-on): Add progname.
89299         * tests/test-rbtree_oset.c: Include progname.h.
89300         (main): Call set_program_name.
89302         * modules/rbtree-list-tests (Depends-on): Add progname.
89303         * tests/test-rbtree_list.c: Include progname.h.
89304         (main): Call set_program_name.
89306         * modules/linked-list-tests (Depends-on): Add progname.
89307         * tests/test-linked_list.c: Include progname.h.
89308         (main): Call set_program_name.
89310 2007-03-03  Bruno Haible  <bruno@clisp.org>
89312         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
89313         All uses of __restrict changed to _Restrict_.
89314         * lib/glob_.h (__restrict): Remove macro.
89316 2007-03-02  Bruno Haible  <bruno@clisp.org>
89318         * modules/gettext (configure.ac): Require gettext infrastructure
89319         from version 0.16.1.
89321 2007-03-02  Bruno Haible  <bruno@clisp.org>
89323         * modules/linkedhash-list-tests (Depends-on): Add progname.
89324         * tests/test-linkedhash_list.c: Include progname.h.
89325         (main): Call set_program_name.
89327         * modules/carray-list-tests (Depends-on): Add progname.
89328         * tests/test-carray_list.c: Include progname.h.
89329         (main): Call set_program_name.
89331         * modules/avltreehash-list-tests (Depends-on): Add progname.
89332         * tests/test-avltreehash_list.c: Include progname.h.
89333         (main): Call set_program_name.
89335         * modules/avltree-oset-tests (Depends-on): Add progname.
89336         * tests/test-avltree_oset.c: Include progname.h.
89337         (main): Call set_program_name.
89339         * modules/avltree-list-tests (Depends-on): Add progname.
89340         * tests/test-avltree_list.c: Include progname.h.
89341         (main): Call set_program_name.
89343         * modules/array-oset-tests (Depends-on): Add progname.
89344         * tests/test-array_oset.c: Include progname.h.
89345         (main): Call set_program_name.
89347         * modules/array-list-tests (Depends-on): Add progname.
89348         * tests/test-array_list.c: Include progname.h.
89349         (main): Call set_program_name.
89351         * modules/argp-tests (Depends-on): Add progname.
89352         * tests/test-argp.c: Include argp.h first. Include progname.h.
89353         (main): Call set_program_name.
89355 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
89357         * doc/gnulib-tool.texi (Initial import): Reword description of
89358         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
89359         limited effect even if defined after the first system include.
89361 2007-03-01  Bruno Haible  <bruno@clisp.org>
89363         * build-aux/config.libpath: Update to libtool-1.5.22.
89364         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
89366 2007-03-01  Bruno Haible  <bruno@clisp.org>
89368         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
89369         foo_CFLAGS.
89370         Reported by Ralf Wildenhues.
89372 2007-03-01  Bruno Haible  <bruno@clisp.org>
89374         * build-aux/install-reloc: Remove object files left over by some
89375         compilers.
89376         Reported by Ralf Wildenhues.
89378 2007-03-01  Bruno Haible  <bruno@clisp.org>
89380         * build-aux/install-reloc: Break long lines.
89382 2007-03-01  Bruno Haible  <bruno@clisp.org>
89384         * doc/relocatable.texi: Document that it may not work on OpenBSD.
89385         Reported by Ralf Wildenhues.
89387 2007-03-01  Bruno Haible  <bruno@clisp.org>
89389         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
89390         include ordering constraints.
89392 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
89394         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
89395         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
89396         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
89397         as another example.
89398         * lib/time_.h: Fix misspelling.
89399         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
89400         Require gl_HEADER_TIME_H_DEFAULTS.
89401         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
89402         * m4/time_r.m4 (gl_TIME_R): Likewise.
89403         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
89405 2007-03-01  Bruno Haible  <bruno@clisp.org>
89407         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
89408         * m4/utimens.m4 (gl_UTIMENS): Likewise.
89410 2007-03-01  Jim Meyering  <jim@meyering.net>
89412         * modules/xreadlink (Maintainer): Add my name.
89413         * modules/xreadlink-with-size (Depends-on): Alphabetize.
89415 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
89416             Bruno Haible  <bruno@clisp.org>
89418         * build-aux/install-reloc: Compile also c-ctype.c.
89419         * build-aux/relocatable.sh.in: New file.
89420         * doc/relocatable.texi: New file.
89421         * doc/relocatable-maint.texi: New file.
89422         * doc/gnulib.texi: Include relocatable-maint.texi.
89423         * lib/progreloc.c: Include unistd.h unconditionally.
89424         * lib/relocwrapper.c: Include unistd.h unconditionally.
89425         Include c-ctype.h.
89426         (add_dotbin): Use c_tolower.
89427         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
89428         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
89429         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
89430         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
89431         to m4/relocatable-lib.m4.
89432         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
89433         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
89434         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
89435         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
89436         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
89437         * modules/relocatable: New file.
89438         * modules/relocatable-lib: New file.
89439         * modules/relocatable-script: New file.
89441 2007-02-28  Bruno Haible  <bruno@clisp.org>
89443         Import --enable-relocatable infrastructure.
89444         * build-aux/config.libpath: New file, from GNU gettext.
89445         * build-aux/install-reloc: New file, from GNU gettext.
89446         * build-aux/reloc-ldflags: New file, from GNU gettext.
89447         * lib/relocatable.h: New file, from GNU gettext.
89448         * lib/relocatable.c: New file, from GNU gettext.
89449         * lib/relocwrapper.c: New file, from GNU gettext.
89450         * m4/relocatable.m4: New file, from GNU gettext.
89452 2007-02-28  Bruno Haible  <bruno@clisp.org>
89454         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
89456         * modules/xreadlink: New file, from GNU gettext with modifications.
89457         * lib/xreadlink.c: New file, from GNU gettext.
89458         * lib/xreadlink.h: Add comments.
89459         (xreadlink): New declaration.
89461         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
89462         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
89463         lib/xreadlink-with-size.c.
89464         (configure.ac): Remove gl_XREADLINK invocation.
89465         (Makefile.am): Augment lib_SOURCES.
89466         * m4/xreadlink.m4: Remove file.
89467         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
89468         (xreadlink_with_size): Renamed from xreadink.
89469         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
89470         * modules/canonicalize (Depends-on): Replace xreadlink with
89471         xreadlink-with-size.
89472         * lib/canonicalize.c (canonicalize_filename_mode): Update.
89474 2007-02-25  Jim Meyering  <jim@meyering.net>
89476         * build-aux/announce-gen: When complaining about excess arguments,
89477         list them.
89479 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
89481         * README: Document signed integer overflow situation more
89482         accurately.
89484 2007-02-25  Bruno Haible  <bruno@clisp.org>
89486         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
89487         'a' or 'A' conversion.
89489 2007-02-25  Bruno Haible  <bruno@clisp.org>
89491         * modules/filename: Renamed from modules/pathname.
89492         (Files): Replace lib/pathname.h with lib/filename.h. Replace
89493         lib/concatpath.c with lib/concat-filename.c.
89494         (Makefile.am): Update.
89495         (Include): Replace pathname.h with filename.h.
89496         * lib/filename.h: Renamed from lib/pathname.h.
89497         (concatenated_filename): Renamed from concatenated_pathname.
89498         * lib/concat-filename.c: Renamed from lib/concatpath.c.
89499         (concatenated_filename): Renamed from concatenated_pathname.
89500         * lib/findprog.c: Include filename.h instead of pathname.h.
89501         (find_in_path): Update.
89502         * lib/javacomp.c: Include filename.h instead of pathname.h.
89503         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
89504         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
89505         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
89506         is_oldgcj_14_13_usable, is_javac_usable): Update.
89507         * lib/javaexec.c: Include filename.h instead of pathname.h.
89508         (execute_java_class): Update.
89509         * modules/findprog: Update.
89510         * modules/javacomp: Update.
89511         * modules/javaexec: Update.
89512         * MODULES.html.sh (File system functions): Add 'filename', remove
89513         'pathname'.
89515 2007-02-25  Bruno Haible  <bruno@clisp.org>
89517         * modules/printf-frexpl-tests: New file.
89518         * tests/test-printf-frexpl.c: New file.
89520         * modules/printf-frexpl: New file.
89521         * lib/printf-frexpl.h: New file.
89522         * lib/printf-frexpl.c: New file.
89523         * m4/printf-frexpl.m4: New file.
89525 2007-02-25  Bruno Haible  <bruno@clisp.org>
89527         * modules/printf-frexp-tests: New file.
89528         * tests/test-printf-frexp.c: New file.
89530         * modules/printf-frexp: New file.
89531         * lib/printf-frexp.h: New file.
89532         * lib/printf-frexp.c: New file.
89533         * m4/printf-frexp.m4: New file.
89535 2007-02-25  Bruno Haible  <bruno@clisp.org>
89537         Assume automake >= 1.10 for the tests.
89538         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
89539         * modules/arctwo-tests: Likewise.
89540         * modules/argp-tests: Likewise.
89541         * modules/avltree-list-tests: Likewise.
89542         * modules/avltree-oset-tests: Likewise.
89543         * modules/avltreehash-list-tests: Likewise.
89544         * modules/carray-list-tests: Likewise.
89545         * modules/crc-tests: Likewise.
89546         * modules/des-tests: Likewise.
89547         * modules/gc-arcfour-tests: Likewise.
89548         * modules/gc-arctwo-tests: Likewise.
89549         * modules/gc-des-tests: Likewise.
89550         * modules/gc-hmac-md5-tests: Likewise.
89551         * modules/gc-hmac-sha1-tests: Likewise.
89552         * modules/gc-md2-tests: Likewise.
89553         * modules/gc-md4-tests: Likewise.
89554         * modules/gc-md5-tests: Likewise.
89555         * modules/gc-pbkdf2-sha1-tests: Likewise.
89556         * modules/gc-rijndael-tests: Likewise.
89557         * modules/gc-sha1-tests: Likewise.
89558         * modules/gc-tests: Likewise.
89559         * modules/getaddrinfo-tests: Likewise.
89560         * modules/hmac-md5-tests: Likewise.
89561         * modules/hmac-sha1-tests: Likewise.
89562         * modules/linked-list-tests: Likewise.
89563         * modules/linkedhash-list-tests: Likewise.
89564         * modules/lock-tests: Likewise.
89565         * modules/md2-tests: Likewise.
89566         * modules/md4-tests: Likewise.
89567         * modules/md5-tests: Likewise.
89568         * modules/rbtree-list-tests: Likewise.
89569         * modules/rbtree-oset-tests: Likewise.
89570         * modules/rbtreehash-list-tests: Likewise.
89571         * modules/read-file-tests: Likewise.
89572         * modules/rijndael-tests: Likewise.
89573         * modules/stdint-tests: Likewise.
89574         * modules/tls-tests: Likewise.
89576 2007-02-24  Bruno Haible  <bruno@clisp.org>
89578         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
89579         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
89580         function; instead check whether isnan with a double argument links.
89581         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
89582         function; instead check whether isnan with a 'long double' argument
89583         links.
89584         Reported by Eric Blake <ebb9@byu.net>.
89586 2007-02-24  Bruno Haible  <bruno@clisp.org>
89588         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
89589         defined.
89590         * lib/isnanl.c: Remove all code. Just include isnan.c.
89591         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
89593 2007-02-25  Jim Meyering  <jim@meyering.net>
89595         Avoid conflicting types for 'unsetenv' on FreeBSD.
89596         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
89597         conflicting with FreeBSD's (5.0 and 6.1) function declaration
89598         in stdlib.h.
89600 2007-02-24  Bruno Haible  <bruno@clisp.org>
89602         * modules/isnanl-nolibm-tests: New file.
89603         * tests/test-isnanl.c: New file.
89605         * modules/isnanl-nolibm: New file.
89606         * lib/isnanl.h: New file.
89607         * lib/isnanl.c: New file.
89608         * m4/isnanl.m4: New file.
89610 2007-02-24  Bruno Haible  <bruno@clisp.org>
89612         * modules/isnan-nolibm-tests: New file.
89613         * tests/test-isnan.c: New file.
89615         * modules/isnan-nolibm: New file.
89616         * lib/isnan.h: New file.
89617         * lib/isnan.c: New file.
89618         * m4/isnan.m4: New file.
89620 2007-02-24  Bruno Haible  <bruno@clisp.org>
89622         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
89623         assume that an exponent fits in 20 bits.
89625 2007-02-24  Jim Meyering  <jim@meyering.net>
89627         * m4/regex.m4: Update the description of the configure-time option,
89628         --without-included-regex, to state accurately what the defaults are,
89629         and perhaps to give people an idea why using this option is risky.
89631 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
89633         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
89634         loops on small arguments.  This attempts to avoid the problem
89635         Bruno Haible reported for AIX 4.3.2 in
89636         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
89638 2007-02-23  Bruno Haible  <bruno@clisp.org>
89640         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
89641         Needed for help2man.
89643 2007-02-23  Karl Berry  <karl@gnu.org>
89645         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
89646         exists, foo.h should be cvs-ignored, not committed.
89648 2007-02-23  Eric Blake  <ebb9@byu.net>
89650         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
89651         * lib/stat-time.h (includes): Likewise.
89652         * lib/utimecmp.c (includes): Likewise.
89653         * lib/utimens.h (includes): Likewise.
89654         * lib/getdate.y (includes): Also include "timespec.h" for use
89655         internal to the module.
89656         * modules/utimens (Depends-on): Revert yesterday's patch.
89657         * modules/nanosleep (Depends-on): Add missing dependency.
89659 2007-02-22  Bruno Haible  <bruno@clisp.org>
89661         * lib/glob.c: Don't include getlogin_r.h.
89663 2007-02-22  Jim Meyering  <jim@meyering.net>
89665         * modules/utimens (Depends-on): Add timespec, required for
89666         utimens.h's inclusion of timespec.h.
89668 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
89670         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
89671         long unreadable paths in GNU/Linux.  Problem reported by Andreas
89672         Schwab in
89673         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
89674         I'll try to think of a better way to fix the Solaris problem.
89676         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
89677         like glibc; on Solaris 10, it fails with errno == EINVAL.
89678         POSIX says the behavior is unspecified if the first argument is NULL,
89679         so play it safe and never pass NULL to the system getcwd.
89681 2007-02-21  Jim Meyering  <jim@meyering.net>
89683         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
89684         of gettimeofday.  It would conflict with the one now always
89685         provided via sys_time_.h.  Reported by Matthew Woehlke, as
89686         an IRIX 6.5 build failure.
89688 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
89690         Minor fixups to port to Solaris 10 with Sun C 5.8.
89691         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
89692         * modules/getcwd (Depends-on): Add dirfd.
89693         * lib/putenv.c (putenv): #undef it.
89694         (rpl_putenv): New decl.
89695         (malloc, free): Include <stdlib.h> rather than prototyping separately.
89697 2007-02-20  Bruno Haible  <bruno@clisp.org>
89699         * modules/stdio-tests: New file.
89700         * tests/test-stdio.c: New file.
89702         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
89703         (Depends-on): Add stdio.
89704         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
89705         (Include): Use <stdio.h> instead of vsnprintf.h.
89706         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
89707         HAVE_DECL_VSNPRINTF.
89708         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
89710         * modules/snprintf (Files): Remove lib/snprintf.h.
89711         (Depends-on): Add stdio.
89712         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
89713         (Include): Use <stdio.h> instead of snprintf.h.
89714         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
89715         HAVE_DECL_SNPRINTF.
89716         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
89717         * lib/getaddrinfo.c: Likewise.
89719         * modules/stdio: New file.
89720         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
89721         * lib/snprintf.h: Remove file.
89722         * lib/vsnprintf.h: Remove file.
89723         * lib/.cppi-disable: Remove snprintf.h.
89724         * m4/stdio_h.m4: New file.
89725         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
89727 2007-02-20  Jim Meyering  <jim@meyering.net>
89729         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
89730         used by e.g., mingw.  From Bruno Haible.
89732 2007-02-19  Bruno Haible  <bruno@clisp.org>
89734         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
89735         warnings.
89736         Reported by Ben Pfaff <blp@cs.stanford.edu>.
89738 2007-02-19  Bruno Haible  <bruno@clisp.org>
89740         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
89741         from mingw users.
89743 2007-02-19  Bruno Haible  <bruno@clisp.org>
89745         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
89746         warnings.
89747         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
89749 2007-02-19  Jim Meyering  <jim@meyering.net>
89751         Don't use FD after a successful "fdopendir (fd)".
89752         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
89753         Reset it by calling dirfd on the just-obtained DIR*.
89755         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
89756         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
89758 2007-02-18  Bruno Haible  <bruno@clisp.org>
89760         * lib/readlink.c: Include <unistd.h>.
89761         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
89762         HAVE_READLINK.
89763         * modules/readlink (Depends-on): Add unistd.
89764         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89765         (Include): Add <unistd.h>.
89767         * lib/getlogin_r.h: Remove file.
89768         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
89769         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
89770         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
89771         HAVE_DECL_GETLOGIN_R.
89772         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
89773         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89774         (Include): Use <unistd.h> instead of getlogin_r.h.
89776         * lib/getcwd.h: Remove file.
89777         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
89778         * lib/xgetcwd.c: Likewise.
89779         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
89780         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
89781         * modules/getcwd (Files): Remove lib/getcwd.h.
89782         (Depends-on): Add unistd.
89783         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89784         (Include): Use <unistd.h> instad of getcwd.h.
89786         * lib/ftruncate.c: Include <unistd.h> first.
89787         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
89788         Set HAVE_FTRUNCATE.
89789         * modules/ftruncate (Depends-on): Add unistd.
89790         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89792         * lib/fchdir.c: Include <unistd.h> first.
89793         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
89794         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
89795         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
89796         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89797         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
89799         * lib/dup2.c: Include <unistd.h> first.
89800         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
89801         HAVE_DUP2.
89802         * modules/dup2 (Depends-on): Add unistd.
89803         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89805         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
89806         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
89807         REPLACE_CHOWN. Don't define chown as a macro here.
89808         * modules/chown (Depends-on): Add unistd.
89809         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89811         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
89812         Add definition for GL_LINK_WARNING.
89813         (chown, dup2): New declarations.
89814         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
89815         link warning.
89816         (ftruncate): New declaration.
89817         (getcwd): New declaration, taken from old getcwd.h.
89818         (getlogin_r): New declaration, taken from old getlogin_r.h.
89819         (readlink): New declaration.
89820         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
89821         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
89822         (gl_PREREQ_UNISTD): Remove macro.
89823         (gl_UNISTD_MODULE_INDICATOR): New macro.
89824         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
89825         many new variables. Don't set UNISTD_H.
89826         * modules/unistd (Description): Change.
89827         (Depends-on): Add link-warning.
89828         (configure.ac): Update.
89829         (Makefile.am): Create unistd.h always. Substitute many new variables
89830         into it.
89832 2007-02-18  Bruno Haible  <bruno@clisp.org>
89834         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
89835         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
89836         HAVE_GETSUBOPT.
89837         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
89838         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
89839         * lib/getsubopt.h: Remove file.
89840         * modules/getsubopt (Files): Remove lib/getsubopt.h.
89841         (Depends-on): Add stdlib.
89842         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89843         (Includes): Use <stdlib.h> instead of getsubopt.h.
89844         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
89845         Set HAVE_GETSUBOPT.
89846         * lib/getsubopt.c: Don't include getsubopt.h.
89848 2007-02-18  Bruno Haible  <bruno@clisp.org>
89850         * modules/fchdir (Depends-on): Add dup2.
89852 2007-02-18  Bruno Haible  <bruno@clisp.org>
89854         * lib/stdlib_.h: Handle glibc's special invocation convention
89855         specially.
89857 2007-02-18  Bruno Haible  <bruno@clisp.org>
89859         * modules/stdlib-tests: New file.
89860         * tests/test-stdlib.c: New file.
89862         * modules/mkstemp (Files): Remove lib/mkstemp.h.
89863         (Depends-on): Add stdlib.
89864         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89865         (Includes): Use <stdlib.h> instead of mkstemp.h.
89866         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
89867         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
89868         * lib/mkstemp.c: Don't include mkstemp.h.
89869         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
89870         * lib/stdlib--.h: Don't include mkstemp.h.
89872         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
89873         (Depends-on): Add stdlib.
89874         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89875         (Includes): Use <stdlib.h> instead of mkdtemp.h.
89876         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
89877         HAVE_MKDTEMP.
89878         * lib/mkdtemp.c: Don't include mkdtemp.h.
89879         * lib/clean-temp.c: Don't include mkdtemp.h.
89881         * modules/exit (Files): Remove lib/exit.h.
89882         (Depends-on): Add stdlib.
89883         (Makefile.am): Remove lib_SOURCES.
89884         (Include): Use <stdlib.h> instead of exit.h.
89885         * lib/argmatch.c: Don't include exit.h.
89886         * lib/execute.c: Likewise.
89887         * lib/pagealign_alloc.c: Likewise.
89888         * lib/pipe.c: Likewise.
89889         * lib/wait-process.c: Likewise.
89890         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
89891         * lib/exitfail.c: Likewise.
89892         * lib/savewd.c: Likewise.
89893         * lib/xsetenv.c: Likewise.
89895         * modules/stdlib: New file.
89896         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
89897         and extra comments about mkstemp().
89898         * lib/exit.h: Remove file.
89899         * lib/mkdtemp.h: Remove file.
89900         * lib/mkstemp.h: Remove file.
89901         * m4/stdlib_h.m4: New file.
89902         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
89904 2007-02-18  Bruno Haible  <bruno@clisp.org>
89906         * modules/math-tests: New file.
89907         * tests/test-math.c: New file.
89909         * modules/math: New file.
89910         * modules/mathl (Files): Remove lib/mathl.h.
89911         (Depends-on): Add math.
89912         (Makefile.am): Don't mention mathl.h.
89913         (Include): Use <math.h> instead of mathl.h.
89914         * lib/math_.h: New file.
89915         * lib/mathl.h: Remove file.
89916         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
89917         mathl.h.
89918         * lib/asinl.c: Likewise.
89919         * lib/atanl.c: Likewise.
89920         * lib/ceill.c: Likewise.
89921         * lib/cosl.c: Likewise.
89922         * lib/expl.c: Likewise.
89923         * lib/floorl.c: Likewise.
89924         * lib/frexpl.c: Likewise.
89925         * lib/ldexpl.c: Likewise.
89926         * lib/logl.c: Likewise.
89927         * lib/sincosl.c: Likewise.
89928         * lib/sinl.c: Likewise.
89929         * lib/sqrtl.c: Likewise.
89930         * lib/tanl.c: Likewise.
89931         * lib/trigl.c: Likewise.
89932         * m4/math_h.m4: New file.
89933         * MODULES.html.sh (Mathematics): Add math.
89935 2007-02-17  Bruno Haible  <bruno@clisp.org>
89937         * modules/wctype-tests: New file.
89938         * tests/test-wctype.c: New file.
89940         * modules/wchar-tests: New file.
89941         * tests/test-wchar.c: New file.
89943         * modules/unistd-tests: New file.
89944         * tests/test-unistd.c: New file.
89946         * modules/time-tests: New file.
89947         * tests/test-time.c: New file.
89949         * modules/sysexits-tests: New file.
89950         * tests/test-sysexits.c: New file.
89952         * modules/sys_time-tests: New file.
89953         * tests/test-sys_time.c: New file.
89955         * modules/sys_stat-tests: New file.
89956         * tests/test-sys_stat.c: New file.
89958         * modules/sys_socket-tests: New file.
89959         * tests/test-sys_socket.c: New file.
89961         * modules/sys_select-tests: New file.
89962         * tests/test-sys_select.c: New file.
89964         * modules/string-tests: New file.
89965         * tests/test-string.c: New file.
89967         * modules/stdbool-tests: New file.
89968         * tests/test-stdbool.c: New file.
89970         * modules/netinet_in-tests: New file.
89971         * tests/test-netinet_in.c: New file.
89973         * modules/inttypes-tests: New file.
89974         * tests/test-inttypes.c: New file.
89976         * modules/fcntl-tests: New file.
89977         * tests/test-fcntl.c: New file.
89979         * modules/byteswap-tests: New file.
89980         * tests/test-byteswap.c: New file.
89982         * modules/arpa_inet-tests: New file.
89983         * tests/test-arpa_inet.c: New file.
89985 2007-02-17  Bruno Haible  <bruno@clisp.org>
89987         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
89988         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
89989         if the corresponding module is not enabled. Emit link warnings if
89990         the function is used nevertheless.
89991         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
89992         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
89993         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
89994         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
89995         * modules/inttypes (Depends-on): Add link-warning.
89996         (Makefile.am): Copy the contents of build-aux/link-warning.h into
89997         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
89998         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
89999         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
90000         * modules/imaxdiv (configure.ac): Likewise.
90001         * modules/strtoimax (configure.ac): Likewise.
90002         * modules/strtoumax (configure.ac): Likewise.
90004 2007-02-17  Bruno Haible  <bruno@clisp.org>
90006         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
90007         gl_STRING_MODULE_INDICATOR_DEFAULTS.
90008         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
90009         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
90011 2007-02-17  Bruno Haible  <bruno@clisp.org>
90013         * modules/link-warning: New file.
90014         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
90015         * lib/string_.h (GL_LINK_WARNING): Remove definition.
90016         * modules/string (Depends-on): Add link-warning.
90017         (Makefile.am): Copy the contents of build-aux/link-warning.h into
90018         string.h.
90019         * MODULES.html.sh (Support for building libraries and executables): Add
90020         link-warning.
90022 2007-02-17  Bruno Haible  <bruno@clisp.org>
90024         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
90025         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
90026         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
90027         long lines.
90029 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
90030             Bruno Haible  <bruno@clisp.org>
90032         * modules/tmpfile: New file.
90033         * lib/tmpfile.c: New file.
90034         * m4/tmpfile.m4: New file.
90035         * MODULES.html.sh (func_all_modules): New section "Input/output".
90037 2007-02-15  Bruno Haible  <bruno@clisp.org>
90039         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
90040         (supports_delete_on_close): New function.
90041         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
90043 2007-02-14  Bruno Haible  <bruno@clisp.org>
90045         * modules/mbspcasecmp-tests: New file.
90046         * tests/test-mbspcasecmp.sh: New file.
90047         * tests/test-mbspcasecmp.c: New file.
90049         New module mbspcasecmp.
90050         * modules/mbspcasecmp: New file.
90051         * lib/mbspcasecmp.c: New file.
90052         * lib/string_.h (strncasecmp): Change warning message.
90053         (mbspcasecmp): New declaration.
90054         * m4/mbspcasecmp.m4: New file.
90055         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90056         GNULIB_MBSPCASECMP.
90057         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
90058         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
90060 2007-02-14  Bruno Haible  <bruno@clisp.org>
90062         * modules/mbsncasecmp-tests: New file.
90063         * tests/test-mbsncasecmp.sh: New file.
90064         * tests/test-mbsncasecmp.c: New file.
90066         New module mbsncasecmp.
90067         * modules/mbsncasecmp: New file.
90068         * lib/mbsncasecmp.c: New file.
90069         * lib/string_.h (mbsncasecmp): New declaration.
90070         * m4/mbsncasecmp.m4: New file.
90071         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90072         GNULIB_MBSNCASECMP.
90073         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
90074         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
90076 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
90078         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
90079         Verify that it doesn't overlap with our flags.
90080         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
90081         do not have the desired effect in multibyte locales; instead, use
90082         mbscasecmp.
90083         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
90084         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
90085         we don't require GNU fnmatch ourselves (if our users require it, they
90086         should do so explicitly).
90088         Fix regex code so it doesn't rely on strcasecmp.
90089         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
90090         Otherwise, include gnulib's langinfo.h.
90091         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
90092         undesirable behavior in non-C locales.  Instead, rely on localecharset.
90093         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
90094         * modules/regex (FILES): Remove m4/codeset.m4.
90095         (Depends-on): Add localcharset.  Remove strcase.
90097 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90099         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
90100         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
90102 2007-02-13  Bruno Haible  <bruno@clisp.org>
90104         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
90105         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
90107 2007-02-12  Bruno Haible  <bruno@clisp.org>
90109         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
90110         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
90111         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
90112         time warning rather than a link error.
90114 2007-02-12  Bruno Haible  <bruno@clisp.org>
90116         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
90117         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
90118         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
90120 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
90122         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
90123         args, not 2.
90125 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
90127         New module 'time', so that apps can include <time.h> as per
90128         POSIX and GNU instead of separate include files like time_r.h
90129         and timegm.h.  This implementation tries out a simpler approach
90130         for replacing decls in standard include files (as compared to
90131         the string module), somewhat as an experiment.
90133         * config/srclist.txt: Comment out mktime.c for now.
90134         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
90135         since it doesn't apply any more.  Use generic wording instead.
90136         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
90137         'time'.
90138         * lib/time_.h, m4/time_h.m4, modules/time: New files.
90139         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
90140         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
90141         Don't include <sys/types.h>; no longer needed since we assume C89.
90142         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
90143         * lib/strftime.c: Likewise.
90144         * lib/time_r.c: Likewise.
90145         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
90146         * lib/nanosleep.c: Include <time.h> first, to check interface.
90147         * lib/strptime.c: Likewise.
90148         * lib/time_r.c: Likewise.
90149         * lib/timegm.c: Likewise.
90150         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
90151         needed.
90152         * lib/timegm.c: Don't include timegm.h; no longer needed.
90153         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
90154         time.h now handles any problems in that area.
90155         (struct timespec, nanosleep): Remove; time.h now arranges for these.
90156         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
90157         that time.h defines struct timespec.
90158         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
90159         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
90160         handles that.
90161         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
90162         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
90163         needed.  Set REPLACE_LOCALTIME.
90164         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
90165         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
90166         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
90167         nanosleep; time_h.m4 now does that.  Don't require
90168         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
90169         module handles this now.
90170         * modules/getdate (Depends-on): Remove timespec.  Add time.
90171         * modules/nanosleep (Depends-on): Likewise.
90172         * modules/stat-time (Depends-on): Likewise.
90173         * modules/nanosleep (Include): Include time.h, not timespec.h.
90174         * modules/strptime (Files): Remove lib/strptime.h.
90175         (Depends-on): Add extensions, time.
90176         (Include): Include time.h, not strptime.h.
90177         * modules/time_r (Files): Remove lib/time_r.h.
90178         (Depends-on): Add time.
90179         (Include): Include time.h, not time_r.h.
90180         * modules/timegm: Likewise.
90181         * modules/timespec (Description): Now does timespec-related decls
90182         of our own, instead of struct timespec itself.
90183         (Depends-on): Add time; remove extensions.
90184         (Maintainer): Add self.
90185         * modules/utimecmp (Depends-on): Add time; remove timespec.
90186         * modules/utimens (Depends-on): Likewise.
90187         * modules/xnanosleep (Depends-on): Likewise.
90189 2007-02-11  Bruno Haible  <bruno@clisp.org>
90191         * lib/c-strstr.c: Include allocsa.h.
90192         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
90193         * lib/c-strcasestr.c: Include allocsa.h.
90194         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
90195         * lib/strcasestr.c: Include allocsa.h.
90196         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
90197         * lib/mbsstr.c: Include allocsa.h.
90198         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
90199         allocsa/freesa instead of malloc/free.
90200         * lib/mbscasestr.c: Include allocsa.h.
90201         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
90202         allocsa/freesa instead of malloc/free.
90203         * modules/c-strstr (Depends-on): Add allocsa.
90204         * modules/c-strcasestr (Depends-on): Likewise.
90205         * modules/strcasestr (Depends-on): Likewise.
90206         * modules/mbsstr (Depends-on): Likewise.
90207         * modules/mbscasestr (Depends-on): Likewise.
90209 2007-02-11  Bruno Haible  <bruno@clisp.org>
90211         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
90213         * modules/mbsspn-tests: New file.
90214         * tests/test-mbsspn.sh: New file.
90215         * tests/test-mbsspn.c: New file.
90217 2007-02-11  Bruno Haible  <bruno@clisp.org>
90219         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
90221         * modules/mbspbrk-tests: New file.
90222         * tests/test-mbspbrk.sh: New file.
90223         * tests/test-mbspbrk.c: New file.
90225 2007-02-11  Bruno Haible  <bruno@clisp.org>
90227         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
90228         unneeded cast.
90230         * modules/mbscspn-tests: New file.
90231         * tests/test-mbscspn.sh: New file.
90232         * tests/test-mbscspn.c: New file.
90234 2007-02-11  Bruno Haible  <bruno@clisp.org>
90236         * modules/mbscasecmp-tests: New file.
90237         * tests/test-mbscasecmp.sh: New file.
90238         * tests/test-mbscasecmp.c: New file.
90240 2007-02-11  Bruno Haible  <bruno@clisp.org>
90242         Ensure O(n) worst-case complexity of mbscasestr.
90243         * lib/mbscasestr.c: Include stdbool.h.
90244         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
90245         functions.
90246         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
90247         the bookkeeping indicates that it's worth it.
90248         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
90250         * modules/mbscasestr-tests: New file.
90251         * tests/test-mbscasestr1.c: New file.
90252         * tests/test-mbscasestr2.sh: New file.
90253         * tests/test-mbscasestr2.c: New file.
90254         * tests/test-mbscasestr3.sh: New file.
90255         * tests/test-mbscasestr3.c: New file.
90256         * tests/test-mbscasestr4.sh: New file.
90257         * tests/test-mbscasestr4.c: New file.
90258         * m4/locale-tr.m4: New file.
90260 2007-02-11  Bruno Haible  <bruno@clisp.org>
90262         Ensure O(n) worst-case complexity of mbsstr.
90263         * lib/mbsstr.c: Include stdbool.h.
90264         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
90265         functions.
90266         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
90267         bookkeeping indicates that it's worth it.
90268         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
90270         * modules/mbsstr-tests: New file.
90271         * tests/test-mbsstr1.c: New file.
90272         * tests/test-mbsstr2.sh: New file.
90273         * tests/test-mbsstr2.c: New file.
90274         * tests/test-mbsstr3.sh: New file.
90275         * tests/test-mbsstr3.c: New file.
90276         * m4/locale-fr.m4: New file.
90278 2007-02-11  Bruno Haible  <bruno@clisp.org>
90280         * lib/mbsrchr.c (mbsrchr): Fix bug.
90282         * modules/mbsrchr-tests: New file.
90283         * tests/test-mbsrchr.sh: New file.
90284         * tests/test-mbsrchr.c: New file.
90286 2007-02-11  Bruno Haible  <bruno@clisp.org>
90288         * lib/mbschr.c (mbschr): Fix bug.
90290         * modules/mbschr-tests: New file.
90291         * tests/test-mbschr.sh: New file.
90292         * tests/test-mbschr.c: New file.
90293         * m4/locale-zh.m4: New file.
90295 2007-02-11  Bruno Haible  <bruno@clisp.org>
90297         Support for copying multibyte string iterators.
90298         * lib/mbiter.h: Include <string.h>.
90299         (mbiter_multi_copy): New function.
90300         (mbi_copy): New macro.
90301         * lib/mbuiter.h: Include <string.h>.
90302         (mbuiter_multi_copy): New function.
90303         (mbui_copy): New macro.
90305 2007-02-11  Bruno Haible  <bruno@clisp.org>
90307         New module mbslen.
90308         * modules/mbslen: New file.
90309         * lib/mbslen.c: New file.
90310         * lib/string_.h (mbslen): New declaration.
90311         * m4/mbslen.m4: New file.
90312         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90313         GNULIB_MBSLEN.
90314         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
90315         * MODULES.html.sh (Internationalization functions): Add mbslen.
90317 2007-02-11  Bruno Haible  <bruno@clisp.org>
90319         Ensure O(n) worst-case complexity of strcasestr substitute.
90320         * lib/strcasestr.c: Include stdbool.h.
90321         (knuth_morris_pratt): New function.
90322         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
90323         bookkeeping indicates that it's worth it.
90324         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
90326         * modules/strcasestr-tests: New file.
90327         * tests/test-strcasestr.c: New file.
90329 2007-02-11  Bruno Haible  <bruno@clisp.org>
90331         Ensure O(n) worst-case complexity of c_strcasestr.
90332         * lib/c-strcasestr.c: Include stdbool.h, string.h.
90333         (knuth_morris_pratt): New function.
90334         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
90335         the bookkeeping indicates that it's worth it.
90336         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
90338         * modules/c-strcasestr-tests: New file.
90339         * tests/test-c-strcasestr.c: New file.
90341 2007-02-11  Bruno Haible  <bruno@clisp.org>
90343         Ensure O(n) worst-case complexity of c_strstr.
90344         * lib/c-strstr.c: Include stdbool.h, string.h.
90345         (knuth_morris_pratt): New function.
90346         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
90347         bookkeeping indicates that it's worth it.
90348         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
90350         * lib/c-strstr.c: Complete rewrite for maintainability.
90352         * modules/c-strstr-tests: New file.
90353         * tests/test-c-strstr.c: New file.
90355 2007-02-11  Bruno Haible  <bruno@clisp.org>
90357         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
90358         5.2.1 and earlier, whereby \055 was treated just like the range
90359         delimiter '-'.
90360         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
90362 2007-02-08  Bruno Haible  <bruno@clisp.org>
90364         * modules/regex (Depends-on): Add stdbool.
90365         Reported by Dalibor Topic <robilad@kaffe.org>.
90367 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
90369         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
90370         Prefer returning from main to exiting from it.
90371         Remove unnecessary parens after sizeof.
90373 2007-02-05  Bruno Haible  <bruno@clisp.org>
90375         New module mbssep.
90376         * modules/mbssep: New file.
90377         * lib/mbssep.c: New file.
90378         * lib/string_.h (strsep): Add a conditional link warning.
90379         (mbssep): New declaration.
90380         * m4/mbssep.m4: New file.
90381         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90382         GNULIB_MBSSEP.
90383         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
90384         * MODULES.html.sh (Internationalization functions): Add mbssep.
90386 2007-02-05  Bruno Haible  <bruno@clisp.org>
90388         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
90389         Optimize search in case of 1 delimiter.
90391 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
90393         * lib/acl.h: Include sys/types.h before sys/acl.h.
90395 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
90397         Merge upstream fix for glibc bugzilla #3957:
90399         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
90401         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
90402         bit for RE_HAT_LISTS_NOT_NEWLINE.
90403         (build_charclass_op): Remove bogus comment.
90405 2007-02-05  Simon Josefsson  <simon@josefsson.org>
90407         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
90409 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
90411         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
90412         * lib/memmem.c [!defined _LIBC]: Include config.h.
90414 2007-02-04  Bruno Haible  <bruno@clisp.org>
90416         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
90417         warning message.
90419 2007-02-04  Bruno Haible  <bruno@clisp.org>
90421         New module mbstok_r.
90422         * modules/mbstok_r: New file.
90423         * lib/mbstok_r.c: New file.
90424         * lib/string_.h (strtok_r): Change argument names to match the
90425         comments. Add a conditional link warning.
90426         (mbstok_r): New declaration.
90427         * m4/mbstok_r.m4: New file.
90428         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90429         GNULIB_MBSTOK_R.
90430         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
90431         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
90433 2007-02-04  Bruno Haible  <bruno@clisp.org>
90435         New module mbsspn.
90436         * modules/mbsspn: New file.
90437         * lib/mbsspn.c: New file.
90438         * lib/string_.h (strspn): Add a conditional link warning.
90439         (mbsspn): New declaration.
90440         * m4/mbsspn.m4: New file.
90441         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90442         GNULIB_MBSSPN.
90443         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
90444         * MODULES.html.sh (Internationalization functions): Add mbsspn.
90446 2007-02-04  Bruno Haible  <bruno@clisp.org>
90448         New module mbspbrk.
90449         * modules/mbspbrk: New file.
90450         * lib/mbspbrk.c: New file.
90451         * lib/string_.h (strpbrk): Add a conditional link warning.
90452         (mbspbrk): New declaration.
90453         * m4/mbspbrk.m4: New file.
90454         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90455         GNULIB_MBSPBRK.
90456         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
90457         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
90459 2007-02-04  Bruno Haible  <bruno@clisp.org>
90461         New module mbscspn.
90462         * modules/mbscspn: New file.
90463         * lib/mbscspn.c: New file.
90464         * lib/string_.h (strcspn): Add a conditional link warning.
90465         (mbscspn): New declaration.
90466         * m4/mbscspn.m4: New file.
90467         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90468         GNULIB_MBSCSPN.
90469         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
90470         * MODULES.html.sh (Internationalization functions): Add mbscspn.
90472 2007-02-04  Bruno Haible  <bruno@clisp.org>
90474         New module mbscasestr, reduced goal of strcasestr.
90475         * modules/mbscasestr: New file.
90476         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
90477         (mbscasestr): Renamed from strcasestr.
90478         * lib/strcasestr.c: Don't include mbuiter.h.
90479         (strcasestr): Remove support for multibyte locales.
90480         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
90481         Change the conditional link warning.
90482         (mbscasestr): New declaration.
90483         * m4/mbscasestr.m4: New file.
90484         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
90485         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
90486         REPLACE_STRCASESTR.
90487         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
90488         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
90489         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
90490         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
90491         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
90492         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
90493         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
90494         (Depends-on): Remove mbuiter.
90495         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
90497 2007-02-04  Bruno Haible  <bruno@clisp.org>
90499         Simplify handling of strncasecmp.
90500         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
90501         the conditional link warning.
90502         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
90503         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
90504         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
90505         * modules/strcase (configure.ac): Don't invoke
90506         gl_STRING_MODULE_INDICATOR.
90507         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
90509 2007-02-04  Bruno Haible  <bruno@clisp.org>
90511         New module mbscasecmp, reduced goal of strcasecmp.
90512         * modules/mbscasecmp: New file.
90513         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
90514         (mbscasecmp): Renamed from strcasecmp.
90515         * lib/strcasecmp.c: Don't include mbuiter.h.
90516         (strcasecmp): Remove support for multibyte locales.
90517         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
90518         Change the conditional link warning.
90519         (mbscasecmp): New declaration.
90520         * m4/mbscasecmp.m4: New file.
90521         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
90522         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
90523         REPLACE_STRCASECMP.
90524         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
90525         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90526         GNULIB_MBSCASECMP.
90527         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
90528         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
90529         * modules/strcase (Files): Remove m4/mbrtowc.m4.
90530         (Depends-on): Remove mbuiter.
90531         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
90533 2007-02-04  Bruno Haible  <bruno@clisp.org>
90535         New module mbsstr. Remove module strstr.
90536         * modules/mbsstr: New file.
90537         * modules/strstr: Remove file.
90538         * lib/mbsstr.c: Renamed from lib/strstr.c.
90539         (mbsstr): Renamed from strstr.
90540         * lib/string_.h (strstr): Remove declaration. Change the conditional
90541         link warning.
90542         (mbsstr): New declaration.
90543         * m4/mbsstr.m4: New file.
90544         * m4/strstr.m4: Remove file.
90545         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
90546         REPLACE_STRSTR.
90547         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
90548         Don't initialize GNULIB_STRSTR.
90549         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
90550         substitute GNULIB_STRSTR and REPLACE_STRSTR.
90551         * MODULES.html.sh (Internationalization functions): Add mbsstr.
90552         (Support for systems lacking ANSI C 89): Remove strstr.
90554 2007-02-04  Bruno Haible  <bruno@clisp.org>
90556         New module mbsrchr.
90557         * modules/mbsrchr: New file.
90558         * lib/mbsrchr.c: New file.
90559         * lib/string_.h (strrchr): Add a conditional link warning.
90560         (mbsrchr): New declaration.
90561         * m4/mbsrchr.m4: New file.
90562         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90563         GNULIB_MBSRCHR.
90564         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
90565         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
90567 2007-02-04  Bruno Haible  <bruno@clisp.org>
90569         New module mbschr.
90570         * modules/mbschr: New file.
90571         * lib/mbschr.c: New file.
90572         * lib/string_.h (strchr): Add a conditional link warning.
90573         (mbschr): New declaration.
90574         * m4/mbschr.m4: New file.
90575         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
90576         GNULIB_MBSCHR.
90577         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
90578         * MODULES.html.sh (Internationalization functions): Add mbschr.
90580 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
90582         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
90584         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
90586 2007-02-04  Bruno Haible  <bruno@clisp.org>
90588         New module description section 'configure.ac-early'.
90589         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
90590         (func_get_autoconf_early_snippet): New function.
90591         (func_import, func_create_testdir): Use it. Remove special cases for
90592         modules 'extensions' and 'lock'.
90593         * modules/extensions (configure.ac-early): Require
90594         gl_USE_SYSTEM_EXTENSIONS.
90595         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
90597 2007-02-04  Bruno Haible  <bruno@clisp.org>
90599         Make use of gcj-4.3's -fsource and -ftarget option.
90600         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
90601         and if so try the options -fsource and -ftarget.
90602         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
90603         source_version, ftarget_option, target_version arguments.
90604         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
90605         (is_envjavac_oldgcj_14_14_usable): Renamed from
90606         is_envjavac_gcj_14_14_usable.
90607         (is_envjavac_oldgcj_14_13_usable): Renamed from
90608         is_envjavac_gcj_14_13_usable.
90609         (is_gcj_present): Update.
90610         (is_gcj_43, is_gcj43_usable): New functions.
90611         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
90612         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
90613         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
90614         try the options -fsource and -ftarget.
90616 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
90618         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
90619         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
90620         larger value.
90622 2007-02-03  Jim Meyering  <jim@meyering.net>
90624         Give tools a better chance to allocate space for very large buffers.
90625         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
90627         Make pwd and readlink work also when run with an unreadable parent dir
90628         on systems with openat support.
90629         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
90630         provided getcwd function, even when we have openat support.
90631         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
90633 2007-02-02  Bruno Haible  <bruno@clisp.org>
90635         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
90636         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
90637         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
90638         portability problems if one of these functions is only used on specific
90639         platforms.
90640         Reported by Paul Eggert.
90642 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
90644         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
90645         is causing more trouble than it's curing.
90646         * lib/regex_internal.h (__mempcpy): Remove.
90647         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
90648         (and make the code a tad smaller to boot).
90649         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
90651 2007-02-02  Jim Meyering  <jim@meyering.net>
90653         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
90654         section, not in the Makefile.am: one.
90656 2007-02-02  Eric Blake  <ebb9@byu.net>
90658         * lib/strchrnul.c: Always include config.h first.
90660         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
90661         gnulib strstr is not necessary here.
90663 2007-02-02  Simon Josefsson  <simon@josefsson.org>
90665         * m4/socklen.m4: Fix typo.
90667 2007-02-02  Eric Blake  <ebb9@byu.net>
90669         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
90670         * modules/netinet_in (Makefile.am): Likewise.
90672 2007-02-01  Bruno Haible  <bruno@clisp.org>
90674         * lib/string_.h (GL_LINK_WARNING): New macro.
90675         (strcasecmp, strstr, strcasestr): If provided by the system,
90676         conditionally define as a macro that leads to a warning instead of to
90677         an error.
90678         (strncasecmp): Conditionally define as a macro that leads to a warning.
90680 2007-02-01  Karl Berry  <karl@gnu.org>
90682         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
90684 2007-02-01  Bruno Haible  <bruno@clisp.org>
90686         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
90687         renamings.
90689 2007-02-01  Eric Blake  <ebb9@byu.net>
90691         * modules/regex (Depends-on): Revert dependence on mempcpy.
90692         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
90693         module's definition of mempcpy.
90694         Reported by Paul Eggert.
90696 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
90698         * lib/string_.h: If the gnulib module XYZ is not present, undefine
90699         the symbol XYZ before redefining it.  This fixes a problem with
90700         programs that don't use XYZ, when compiled on systems that define
90701         XYZ to something else.
90703 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
90705         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
90706         occurs when "mkdir -m foo" creates a setgid directory that is (1)
90707         writeable to group or other and (2) is intended to have a special
90708         mode bit that is set or cleared.  In such a case, the directory
90709         should be neither group- nor other-writeable until the special
90710         mode bits are right.
90712 2007-01-31  Eric Blake  <ebb9@byu.net>
90714         * modules/mountlist (Depends-on): Add strstr.
90716         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
90717         bug.
90718         * modules/string (Makefile.am): Remove redundant replacement.
90719         * modules/regex (Depends-on): Add mempcpy.
90721 2007-01-31  Bruno Haible  <bruno@clisp.org>
90723         New module description field 'Link'.
90724         * gnulib-tool (func_usage): Document --extract-link-directive.
90725         (sed_extract_prog): Recognize 'Link' directive.
90726         (func_get_link_directive): New function.
90727         (func_import): Show summary of link directives.
90728         Handle --extract-link-directive option.
90729         * modules/acl (Link): New section.
90730         * modules/clock-time (Link): New section.
90731         * modules/euidaccess (Link): New section.
90732         * modules/gettext (Link): New section.
90733         * modules/iconv (Link): New section.
90734         * modules/lock (Link): New section.
90735         * modules/nanosleep (Link): New section.
90736         * modules/readline (Link): New section.
90738 2007-01-27  Bruno Haible  <bruno@clisp.org>
90740         Enforce the use of gnulib modules for unportable <string.h> functions.
90741         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
90742         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
90743         (gl_HEADER_STRING_H_BODY): Require it.
90744         * lib/string_.h: If the gnulib module XYZ is not present, redefine
90745         the symbol XYZ to one that gives a link error.
90746         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
90747         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
90748         * modules/mempcpy (configure.ac): Likewise.
90749         * modules/memrchr (configure.ac): Likewise.
90750         * modules/stpcpy (configure.ac): Likewise.
90751         * modules/stpncpy (configure.ac): Likewise.
90752         * modules/strcase (configure.ac): Likewise.
90753         * modules/strcasestr (configure.ac): Likewise.
90754         * modules/strchrnul (configure.ac): Likewise.
90755         * modules/strdup (configure.ac): Likewise.
90756         * modules/strndup (configure.ac): Likewise.
90757         * modules/strnlen (configure.ac): Likewise.
90758         * modules/strpbrk (configure.ac): Likewise.
90759         * modules/strsep (configure.ac): Likewise.
90760         * modules/strstr (configure.ac): Likewise.
90761         * modules/strtok_r (configure.ac): Likewise.
90763 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
90765         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
90767 2007-01-30  Jim Meyering  <jim@meyering.net>
90769         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
90771 2007-01-29  Bruno Haible  <bruno@clisp.org>
90773         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
90774         * lib/execute.c: Likewise.
90775         * lib/pipe.c: Likewise.
90776         * lib/printf-args.h: Likewise.
90777         * lib/printf-args.c: Likewise.
90778         * lib/printf-parse.c: Likewise.
90779         * lib/vasnprintf.c: Likewise.
90781 2007-01-29  Eric Blake  <ebb9@byu.net>
90783         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
90784         declaration.
90786 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
90788         * lib/strptime.h (strptime): Use 'restrict' for args where
90789         POSIX requires this.
90790         * lib/strptime.c (strptime): Likewise.
90791         Change license notice from LGPL to GPL, since gnulib-tool will
90792         change this as needed.
90793         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
90794         defined.
90795         Include "strptime.h" first, to check interface.
90796         Do not #undef _LIBC and _NL_CURRENT.
90797         Do not include <stdlib.h>; no longer needed.
90798         Include "time_r.h" and declare ptime_locale_status
90799         only if _LIBC is not defined.
90800         (__P): Remove unused macro.
90801         (match_string): Bring back glibc version, but use it only if _LIBC
90802         is defined.
90803         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
90804         Remove unnecessary assertion and abort() call.
90805         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
90806         * m4/strptime.m4: Fix serial number comment.
90807         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
90808         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
90809         (Depends-on): Add time_r.
90811 2007-01-29  Bruno Haible  <bruno@clisp.org>
90813         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90814         strptime.
90815         * modules/strptime (Depends-on): Add stdbool.
90816         * lib/strptime.h: Include <time.h> always. Add comments.
90818 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90820         * modules/strptime: New file.
90821         * lib/strptime.h: New file.
90822         * lib/strptime.c: New file.
90823         * m4/strptime.m4: New file.
90825 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
90827         * MODULES.html.sh: New module mpsort.
90828         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
90830         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
90831         a circularity problem with HP-UX ia64 reported by Bob Proulx in
90832         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
90833         All uses changed.
90834         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
90835         All uses changed.
90836         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
90837         to _Restrict_.
90838         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
90839         the parameter matches the prototype.
90841 2007-01-28  Jim Meyering  <jim@meyering.net>
90843         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
90844         sys/time.h here, reverting that part of the previous patch:
90845         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
90847 2007-01-28  Bruno Haible  <bruno@clisp.org>
90849         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
90850         value of $(SYS_TIME_H).
90851         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
90852         remove it conditionally, too. [added by Jim Meyering]
90853         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
90854         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
90855         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
90856         GETTIMEOFDAY_REPLACEMENT to 1.
90858 2007-01-28  Bruno Haible  <bruno@clisp.org>
90860         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
90861         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
90862         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
90863         Set UNISTD_H instead of UNISTD_H2.
90864         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
90866 2007-01-28  Bruno Haible  <bruno@clisp.org>
90868         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
90869         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
90871 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90873         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
90874         (func_create_testdir): Ensure C locale for `grep' and `tr'
90875         character ranges.
90876         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
90877         ACLOCAL_AMFLAGS parsing state machine.
90879 2007-01-27  Bruno Haible  <bruno@clisp.org>
90881         * modules/unistr/base: Update.
90883 2007-01-27  Bruno Haible  <bruno@clisp.org>
90885         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
90886         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
90887         * modules/unistr/u32-mbtouc-unsafe: Renamed from
90888         modules/unistr/u32-mbtouc.
90889         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
90890         * lib/unistr.h: Update.
90891         * lib/linebreak.c: Update.
90892         * modules/unistr/u32-mbtouc: Renamed from
90893         modules/unistr/u32-mbtouc-safe.
90894         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
90895         * lib/unistr.h: Update.
90896         * lib/unistr/u32-to-u8.c: Update.
90897         * lib/unistr/u32-to-u16.c: Update.
90899 2007-01-27  Bruno Haible  <bruno@clisp.org>
90901         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
90902         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
90903         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
90904         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
90905         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
90906         * modules/unistr/u16-mbtouc-unsafe: Renamed from
90907         modules/unistr/u16-mbtouc.
90908         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
90909         * lib/unistr.h: Update.
90910         * lib/linebreak.c: Update.
90911         * modules/linebreak: Update.
90912         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
90913         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
90914         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
90915         * modules/unistr/u16-mbtouc: Renamed from
90916         modules/unistr/u16-mbtouc-safe.
90917         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
90918         * lib/unistr.h: Update.
90919         * lib/unistr/u16-to-u8.c: Update.
90920         * modules/unistr/u16-to-u8: Update.
90921         * lib/unistr/u16-to-u32.c: Update.
90922         * modules/unistr/u16-to-u32: Update.
90924 2007-01-27  Bruno Haible  <bruno@clisp.org>
90926         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
90927         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
90928         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
90929         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
90930         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
90931         * modules/unistr/u8-mbtouc-unsafe: Renamed from
90932         modules/unistr/u8-mbtouc.
90933         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
90934         * lib/unistr.h: Update.
90935         * lib/striconveh.c: Update.
90936         * modules/striconveh: Update.
90937         * lib/linebreak.c: Update.
90938         * modules/linebreak: Update.
90939         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
90940         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
90941         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
90942         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
90943         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
90944         * lib/unistr.h: Update.
90945         * lib/striconveh.c: Update.
90946         * modules/striconveh: Update.
90947         * lib/unistr/u8-to-u16.c: Update.
90948         * modules/unistr/u8-to-u16: Update.
90949         * lib/unistr/u8-to-u32.c: Update.
90950         * modules/unistr/u8-to-u32: Update.
90952 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90954         Sync from Libtool.
90955         * lib/argz.c: Do not include strings.h nor memory.h, include
90956         string.h unconditionally.  Patch by Simon Josefsson.
90958 2007-01-27  Bruno Haible  <bruno@clisp.org>
90960         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
90961         from gl_HEADER_STRING_H_BODY.
90962         (gl_HEADER_STRING_H_BODY): Require it.
90963         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
90964         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
90965         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
90966         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
90967         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
90968         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
90969         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
90970         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
90971         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
90972         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
90973         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
90974         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
90975         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
90976         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
90977         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
90979 2007-01-27  Bruno Haible  <bruno@clisp.org>
90981         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
90982         check_PROGRAMS into noinst_PROGRAMS.
90983         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
90984         check_PROGRAMS in this case.
90985         (func_import): Set for_test to false.
90986         (func_create_testdir): Set for_test to true.
90988 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90989             Bruno Haible  <bruno@clisp.org>
90991         * modules/strcasestr (Files): Remove lib/strcasestr.h.
90992         (Depends-on): Add string.
90993         (Includes): Use <string.h> instead of strcasestr.h.
90994         * modules/string (Makefile.am): Also substitute the value of
90995         REPLACE_STRCASESTR.
90996         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
90997         assume strcasestr is declared in <string.h> not <strings.h>. Also
90998         set REPLACE_STRCASESTR.
90999         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
91000         REPLACE_STRCASESTR.
91001         * lib/strcasestr.h: Remove file.
91002         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
91003         * lib/string_.h (strcasestr): New declaration.
91005 2007-01-27  Bruno Haible  <bruno@clisp.org>
91007         * lib/string_.h: Use 'extern'.
91009 2007-01-27  Jim Meyering  <jim@meyering.net>
91011         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
91012         of set-but-not-used local, "q".
91014         * lib/mempcpy.c: Include <config.h> before <string.h>.
91015         This fixes a compilation error on HP-UX, due to the system's
91016         "restrict"-using mempcpy prototype.
91018 2007-01-26  Bruno Haible  <bruno@clisp.org>
91020         Small optimization.
91021         * lib/javacomp.c: Include c-strstr.h.
91022          (is_envjavac_gcj): Use c_strstr instead of strstr.
91023         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
91025 2007-01-26  Bruno Haible  <bruno@clisp.org>
91027         * MODULES.html.sh (Unicode string functions): Add the new modules.
91029         * modules/uniconv/u32-strconv-to-locale: New file.
91030         * lib/uniconv/u32-strconv-to-locale.c: New file.
91032         * modules/uniconv/u16-strconv-to-locale: New file.
91033         * lib/uniconv/u16-strconv-to-locale.c: New file.
91035         * modules/uniconv/u8-strconv-to-locale: New file.
91036         * lib/uniconv/u8-strconv-to-locale.c: New file.
91038         * modules/uniconv/u32-strconv-from-locale: New file.
91039         * lib/uniconv/u32-strconv-from-locale.c: New file.
91041         * modules/uniconv/u16-strconv-from-locale: New file.
91042         * lib/uniconv/u16-strconv-from-locale.c: New file.
91044         * modules/uniconv/u8-strconv-from-locale: New file.
91045         * lib/uniconv/u8-strconv-from-locale.c: New file.
91047         * modules/uniconv/u32-strconv-to-enc: New file.
91048         * lib/uniconv/u32-strconv-to-enc.c: New file.
91049         * modules/uniconv/u32-strconv-to-enc-tests: New file.
91050         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
91052         * modules/uniconv/u16-strconv-to-enc: New file.
91053         * lib/uniconv/u16-strconv-to-enc.c: New file.
91054         * lib/uniconv/u-strconv-to-enc.h: New file.
91055         * modules/uniconv/u16-strconv-to-enc-tests: New file.
91056         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
91058         * modules/uniconv/u8-strconv-to-enc: New file.
91059         * lib/uniconv/u8-strconv-to-enc.c: New file.
91060         * modules/uniconv/u8-strconv-to-enc-tests: New file.
91061         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
91063         * modules/uniconv/u32-strconv-from-enc: New file.
91064         * lib/uniconv/u32-strconv-from-enc.c: New file.
91065         * modules/uniconv/u32-strconv-from-enc-tests: New file.
91066         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
91068         * modules/uniconv/u16-strconv-from-enc: New file.
91069         * lib/uniconv/u16-strconv-from-enc.c: New file.
91070         * modules/uniconv/u16-strconv-from-enc-tests: New file.
91071         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
91073         * modules/uniconv/u8-strconv-from-enc: New file.
91074         * lib/uniconv/u8-strconv-from-enc.c: New file.
91075         * lib/uniconv/u-strconv-from-enc.h: New file.
91076         * modules/uniconv/u8-strconv-from-enc-tests: New file.
91077         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
91079         * modules/uniconv/u32-conv-from-enc: New file.
91080         * lib/uniconv/u32-conv-from-enc.c: New file.
91081         * modules/uniconv/u32-conv-from-enc-tests: New file.
91082         * tests/uniconv/test-u32-conv-from-enc.c: New file.
91084         * modules/uniconv/u16-conv-from-enc: New file.
91085         * lib/uniconv/u16-conv-from-enc.c: New file.
91086         * lib/uniconv/u-conv-from-enc.h: New file.
91087         * modules/uniconv/u16-conv-from-enc-tests: New file.
91088         * tests/uniconv/test-u16-conv-from-enc.c: New file.
91090         * modules/uniconv/u8-conv-from-enc: New file.
91091         * lib/uniconv/u8-conv-from-enc.c: New file.
91092         * modules/uniconv/u8-conv-from-enc-tests: New file.
91093         * tests/uniconv/test-u8-conv-from-enc.c: New file.
91095         * modules/uniconv/base: New file.
91096         * lib/uniconv.h: New file.
91098 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
91100         * doc/gnulib-tool.texi (Initial import): Update to match current
91101         behavior with strdup module.
91102         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
91103         * lib/memmem.h: Remove; all uses removed.  This is now done
91104         by <string.h>.
91105         * lib/mempcpy.h: Likewise.
91106         * lib/memrchr.h: Likewise.
91107         * lib/stpcpy.h: Likewise.
91108         * lib/stpncpy.h: Likewise.
91109         * lib/strcase.h: Likewise.
91110         * lib/strchrnul.h: Likewise.
91111         * lib/strdup.h: Likewise.
91112         * lib/strndup.h: Likewise.
91113         * lib/strnlen.h: Likewise.
91114         * lib/strpbrk.h: Likewise.
91115         * lib/strsep.h: Likewise.
91116         * lib/strstr.h: Likewise.
91117         * lib/strtok_r.h: Likewise.
91118         * lib/string_.h: New file.
91119         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
91120         Rely on <string.h> instead.
91121         * lib/canon-host.c: Likewise.
91122         * lib/chdir-long.c: Likewise.
91123         * lib/concatpath.c: Likewise.
91124         * lib/exclude.c: Likewise.
91125         * lib/fchdir.c: Likewise.
91126         * lib/getaddrinfo.c: Likewise.
91127         * lib/getcwd.c: Likewise.
91128         * lib/getsubopt.c: Likewise.
91129         * lib/glob.c: Likewise.
91130         * lib/hard-locale.c: Likewise.
91131         * lib/iconvme.c: Likewise.
91132         * lib/javacomp.c: Likewise.
91133         * lib/mempcpy.c: Likewise.
91134         * lib/memrchr.c: Likewise.
91135         * lib/regex_internal.h: Likewise.
91136         * lib/stpncpy.c: Likewise.
91137         * lib/strcasecmp.c: Likewise.
91138         * lib/strchrnul.c: Likewise.
91139         * lib/strdup.c: Likewise.
91140         * lib/striconv.c: Likewise.
91141         * lib/striconveh.c: Likewise.
91142         * lib/striconveha.c: Likewise.
91143         * lib/strncasecmp.c: Likewise.
91144         * lib/strndup.c: Likewise.
91145         * lib/strnlen.c: Likewise.
91146         * lib/strsep.c: Likewise.
91147         * lib/strstr.c: Likewise.
91148         * lib/strtok_r.c: Likewise.
91149         * lib/userspec.c: Likewise.
91150         * lib/w32spawn.h: Likewise.
91151         * lib/xstrndup.c: Likewise.
91152         * lib/mountlist.c (strstr): Remove decl.
91153         * m4/string_h.m4: New file.
91154         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
91155         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
91156         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
91157         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
91158         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
91159         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
91160         Set REPLACE_STRCASECMP if necessary.
91161         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
91162         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
91163         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
91164         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
91165         HAVE_DECL_STRDUP if necessary.
91166         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
91167         since gl_FUNC_STRNDUP does that now.
91168         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
91169         Check for decl here...
91170         (gl_PREREQ_STRNLEN): ... not here.
91171         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
91172         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
91173         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
91174         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
91175         necessary.
91176         * modules/string: New file.
91177         * modules/memmem (Files): Remove special-purpose include file.
91178         (Depends-on): Add string.
91179         (Include): Include <string.h>, not the removed file.
91180         * modules/mempcpy: Likewise.
91181         * modules/memrchr: Likewise.
91182         * modules/stpcpy: Likewise.
91183         * modules/stpncpy: Likewise.
91184         * modules/strcase: Likewise.
91185         * modules/strchrnul: Likewise.
91186         * modules/strdup: Likewise.
91187         * modules/strndup: Likewise.
91188         * modules/strnlen: Likewise.
91189         * modules/strpbrk: Likewise.
91190         * modules/strsep: Likewise.
91191         * modules/strstr: Likewise.
91192         * modules/strtok_r: Likewise.
91193         * tests/test-dirname.c: Don't include "strdup.h", since
91194         <string.h> now suffices.
91195         * tests/test-memmem.c: Don't include "memmem.h", since
91196         <string.h> now suffices.
91198 2007-01-25  Bruno Haible  <bruno@clisp.org>
91200         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
91201         *resultp is 0.
91203         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
91204         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
91205         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
91206         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
91208         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
91209         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
91210         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
91211         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
91212         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
91213         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
91215 2007-01-24  Bruno Haible  <bruno@clisp.org>
91217         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
91218         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
91219         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
91220         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
91221         gl_FUNC_FTS_CORE.
91222         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
91223         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
91224         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
91225         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
91226         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
91227         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
91228         gl_FUNC_FCHOWNAT.
91229         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
91230         gl_FUNC_STRFTIME.
91231         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
91232         Reported by Ralf Wildenhues.
91234 2007-01-24  Bruno Haible  <bruno@clisp.org>
91236         Drop AC_REQUIRE calls that are redundant with the module dependencies.
91237         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
91238         gl_GETADDRINFO.
91239         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
91240         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
91241         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
91243 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
91245         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
91246         Don't use 'exit'; just return from 'main'.
91247         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
91249         * lib/fnmatch_.h: Readjust white space and comments to match
91250         glibc, to avoid spurious diffs.
91252 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
91254         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
91255         2004-12-01 change by Jakub Jelinek, since this code won't compile
91256         if !LIBC.  Problem reported by Bob Proulx.
91258 2007-01-23  Bruno Haible  <bruno@clisp.org>
91260         * lib/striconveh.c: Include c-strcaseeq.h.
91261         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
91262         * modules/striconveh (Depends-on): Add c-strcaseeq.
91264 2007-01-23  Bruno Haible  <bruno@clisp.org>
91266         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
91268         * modules/c-strcaseeq: New file.
91269         * lib/c-strcaseeq.h: New file.
91271         * modules/streq: New file.
91272         * lib/streq.h: New file.
91274 2007-01-23  Bruno Haible  <bruno@clisp.org>
91276         * modules/striconveha-tests: New file.
91277         * tests/test-striconveha.c: New file.
91279         * lib/striconveha.h: Include <stdbool.h>.
91280         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
91281         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
91282         (mem_iconveha_notranslit): Renamed from mem_iconveha.
91283         (mem_iconveha): New function.
91284         (str_iconveha_notranslit): Renamed from str_iconveha.
91285         (str_iconveha): New function.
91286         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
91287         c-strcase.
91289 2007-01-23  Bruno Haible  <bruno@clisp.org>
91291         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
91292         encodings without forgiving before trying any encoding with handler.
91293         (str_iconveha): Try all encodings without forgiving before trying any
91294         encoding with handler.
91296 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
91298         Import the following changes from libc.
91300         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
91302         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
91304         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
91306         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
91307         normal_bracket label.
91309         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
91311         [BZ #361]
91312         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
91313         to normal_bracket after fetching the next character.
91315 2007-01-22  Bruno Haible  <bruno@clisp.org>
91317         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
91318         argument.
91319         * lib/striconveh.c (iconv_carefully_1): New function.
91320         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
91321         argument.
91322         (str_cd_iconveh): Update.
91323         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
91324         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
91325         * tests/test-striconveh.c (MAGIC): New macro.
91326         (new_offsets): New function.
91327         (main): Test call with and without offsets.
91329 2007-01-22  Bruno Haible  <bruno@clisp.org>
91331         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
91332         * modules/sys_select (Makefile.am): Likewise.
91333         * modules/sys_socket (Makefile.am): Likewise.
91334         * modules/sys_time (Makefile.am): Likewise.
91336 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
91338         * modules/gettimeofday (License): Change from GPL to LGPL, since
91339         gettimeofday is a library function.
91341 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91343         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
91345 2007-01-21  Bruno Haible  <bruno@clisp.org>
91347         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
91349 2007-01-21  Bruno Haible  <bruno@clisp.org>
91351         * modules/striconveha: New file.
91352         * lib/striconveha.h: New file.
91353         * lib/striconveha.c: New file.
91354         * MODULES.html.sh (Internationalization functions): Add striconveha.
91355         * lib/striconv.c (str_iconv): Optimize the case of an empty input
91356         string.
91357         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
91359 2007-01-21  Bruno Haible  <bruno@clisp.org>
91361         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
91362         * lib/striconveh.c (str_iconveh): Likewise.
91364 2007-01-21  Bruno Haible  <bruno@clisp.org>
91366         * lib/striconveh.h (mem_iconveh): New declaration.
91367         * lib/striconveh.c (mem_iconveh): New function.
91368         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
91370 2007-01-21  Bruno Haible  <bruno@clisp.org>
91372         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
91374         * lib/striconveh.h (mem_cd_iconveh): Change specification.
91375         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
91376         original result buffer.
91377         (str_cd_iconveh): Update.
91378         * tests/test-striconveh.c (main): Update.
91380         * lib/striconv.h (mem_cd_iconv): Change specification.
91381         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
91382         result buffer.
91383         (str_cd_iconv): Update.
91384         * tests/test-striconv.c (main): Update.
91386 2007-01-21  Bruno Haible  <bruno@clisp.org>
91388         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
91390 2007-01-20  Jim Meyering  <jim@meyering.net>
91392         * lib/userspec.c (parse_with_separator): If a user or group string
91393         starts with "+", skip the corresponding name-to-ID look-up, since
91394         such a look-up must fail: user and group names may not include "+".
91396 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
91398         * lib/poll.c: Include sys/time.h and time.h unconditionally,
91399         since we now assume the sys_time module.
91400         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
91401         check for sys/time.h; no longer needed.
91402         * modules/poll (Depends-on): Depend on sys_time.
91404 2007-01-18  Bruno Haible  <bruno@clisp.org>
91406         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
91407         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
91409         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
91410         gettimeofday.
91412         * tests/test-gettimeofday.c: Include <time.h>.
91413         (dummy): Remove variable.
91415         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
91416         gl_HEADER_SYS_TIME_H.
91417         (gl_HEADER_SYS_TIME_H): New macro.
91419         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
91420         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
91421         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
91422         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
91423         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
91424         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
91425         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
91426         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
91427         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
91428         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
91429         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
91431         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
91432         last change; it caused a compilation error when cross-compiling to
91433         Cygwin.
91435 2007-01-18  Jim Meyering  <jim@meyering.net>
91437         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
91438         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
91439         than the race-prone "test -d sys || mkdir sys".
91440         (configure.ac): Use AC_PROG_MKDIR_P.
91441         * modules/sys_select: Likewise.
91442         * modules/sys_socket: Likewise.
91443         * modules/sys_time: Likewise.
91445 2007-01-18  Eric Blake  <ebb9@byu.net>
91447         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
91448         replace gettimeofday.
91449         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
91450         name, to avoid infinite recursion.
91452 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
91454         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
91455         module sys_time.
91456         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
91457         assume timespec.h defines struct timeval.
91458         * lib/settime.c: Likewise.
91459         * lib/utimens.c: Likewise.
91460         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
91461         since we now assume the gettimeofday module.
91462         * lib/tempname.c (__gen_tempname): Likewise.
91463         * lib/gettimeofday.h: Remove.
91464         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
91465         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
91466         Include <time.h>, for 'time()'.
91467         (localtime_buffer_addr): Also use this workaround if
91468         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
91469         to simplify the uses.  All uses changed.
91470         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
91471         that #undef is inside {}, and 'const' follows type name consistently.
91472         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
91473         (gettimeofday): Do not use the maximum possible value for
91474         tv->tv_usec, since that might break usages other than ls.c.
91475         Instead, we'll leave ls.c alone.  This undoes today's patch
91476         by Bruno.  Add a compile-time warning for 1s-clock resolution;
91477         we've never observed the problem but might as well keep the
91478         canary.
91479         * lib/nanosleep.c: Include timespec.h first, for interface check.
91480         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
91481         now assume the sys_time module.
91482         * lib/tempname.c: Likewise.
91483         * lib/timespec.h: Likewise.
91484         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
91485         needed.
91486         * lib/strftime.c: Likewise.
91487         * lib/timespec.h: Likewise.
91488         * lib/posixtm.c: Include posixtm.h first, for interface check.
91489         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
91490         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
91491         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
91492         * lib/sys_time_.h: New file.
91493         * lib/timespec.h (struct timespec): Use long int, not long.
91494         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
91495         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
91496         Remove obsolescent call to AC_HEADER_TIME.
91497         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
91498         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
91499         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
91500         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
91501         Likewise.
91502         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
91503         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
91504         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
91505         into the sys_time module.  Check for gettimeofday just once.
91506         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
91507         for gettimeofday signature to just check the signature.  Merely
91508         compile it, since linking doesn't test signature.  Improve test for
91509         whether gettimeofday.o is actually needed.
91510         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
91511         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
91512         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
91513         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
91514         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
91515         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
91516         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
91517         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
91518         than worrying about sys/time.h.
91519         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
91520         Don't bother worrying about TIME_WITH_SYS_TIME.
91521         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
91522         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
91523         * m4/sys_time_h.m4: New file.
91524         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
91525         Don't include sys/time.h.  Return from main rather than exiting.
91526         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
91527         all uses changed.
91528         * modules/gethrxtime (Depends-on): Add sys_time.
91529         * modules/gettime (Depends-on): Likewise.
91530         * modules/gettimeofday (Depends-on): Likewise.
91531         * modules/nanosleep (Depends-on): Likewise.
91532         * modules/settime (Depends-on): Likewise.
91533         * modules/tempname (Depends-on): Likewise.
91534         * modules/utimens (Depends-on): Likewise.
91535         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
91536         (Include): Change back to <sys/time.h>.
91537         (Maintainer): Add self.
91538         * modules/sys_time: New file.
91539         * modules/tempname (Depends-on): Add gettimeofday.
91540         * tests/test-gettimeofday.c: Include <sys/time.h>
91541         rather than gettimeofday.h.
91543 2007-01-17  Bruno Haible  <bruno@clisp.org>
91545         * gnulib-tool (func_get_license): Revert last patch. Instead, let
91546         the license default to GPL.
91547         (func_create_testdir): Don't complain if a module is LGPL and its
91548         tests module depends on GPLed modules.
91550 2007-01-17  Bruno Haible  <bruno@clisp.org>
91552         * lib/gettimeofday.c (gettimeofday): Add code for the case
91553         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
91554         maximum possible value for tv->tv_usec, rather than the minimum one.
91556 2005-10-08  Martin Lambers  <marlam@marlam.de>
91557 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
91558 2007-01-16  Bruno Haible  <bruno@clisp.org>
91560         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
91561         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
91562         gl_FUNC_GETTIMEOFDAY.
91563         (Include): Add gettimeofday.h.
91564         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
91565         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
91566         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
91567         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
91568         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
91569         * lib/gettimeofday.h: New file.
91570         * lib/gettimeofday.c: Include <sys/timeb.h>.
91571         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
91572         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
91573         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
91574         fall back on time().
91576         * tests/test-gettimeofday.c: New file.
91577         * modules/gettimeofday-tests: New file.
91579 2007-01-16  Eric Blake  <ebb9@byu.net>
91581         * modules/fnmatch (Depends-on): Depend on wchar.
91582         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
91583         * m4/fnmatch.m4: Likewise.
91584         * modules/mbchar (Makefile.am): Assume <wchar.h>.
91585         * m4/mbchar.m4: Likewise.
91586         * modules/mbswidth (Depends-on): Depend on wchar.
91587         * lib/mbswidth.c: Assume <wchar.h>.
91588         * m4/mbswidth.m4: Likewise.
91589         * modules/quotearg (Depends-on): Depend on wchar.
91590         * lib/quotearg.c: Assume <wchar.h>.
91591         * m4/quotearg.m4: Likewise.
91592         * modules/regex (Depends-on): Depend on wchar.
91593         * lib/regex_internal.h: Assume <wchar.h>.
91594         * m4/regex.m4: Likewise.
91595         * modules/stdint (Depends-on): Depend on wchar.
91596         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
91597         * m4/stdint.m4: Likewise.
91598         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
91599         * modules/strftime (Depends-on): Depend on wchar.
91600         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
91601         * modules/strtol (Depends-on): Depend on wchar.
91602         * lib/strtol.c: Assume <wchar.h>.
91603         * modules/wcwidth (Depends-on): Depend on wchar.
91604         * lib/wcwidth.h: Assume <wchar.h>.
91605         * m4/wcwidth.m4: Likewise.
91607 2007-01-16  Bruno Haible  <bruno@clisp.org>
91609         * modules/csharpexec-script: New, created from...
91610         * modules/csharpexec: ... this.
91612 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
91614         * modules/javaexec-script: New, created from...
91615         * modules/javaexec: ... this.
91617 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91619         * modules/poll (Dependencies): Add sys_select.
91621 2007-01-15  Jim Meyering  <jim@meyering.net>
91623         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
91624         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
91625         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
91626         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
91628 2007-01-15  Bruno Haible  <bruno@clisp.org>
91630         * modules/striconveh: New file.
91631         * lib/striconveh.h: New file.
91632         * lib/striconveh.c: New file.
91633         * MODULES.html.sh (Internationalization functions): Add striconveh.
91635         * modules/striconveh-tests: New file.
91636         * tests/test-striconveh.c: New file.
91638 2007-01-15  Bruno Haible  <bruno@clisp.org>
91640         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
91641         not from GNU libiconv or GNU libc.
91643 2007-01-15  Bruno Haible  <bruno@clisp.org>
91645         * doc/gnulib-intro.texi (Copyright): Explain the different license
91646         terms for module descriptions, autoconf macros, tests, documentation.
91648 2007-01-14  Bruno Haible  <bruno@clisp.org>
91650         * modules/striconv-tests: New file.
91651         * tests/test-striconv.c: New file.
91653 2007-01-14  Bruno Haible  <bruno@clisp.org>
91655         * modules/iconv-tests: New file.
91656         * tests/test-iconv.c: New file.
91658 2007-01-14  Bruno Haible  <bruno@clisp.org>
91660         * gnulib-tool (func_get_license): For test modules, use the license of
91661         the main module.
91663 2007-01-14  Bruno Haible  <bruno@clisp.org>
91665         * modules/iconv (Include): Clarify that <iconv.h> can only be included
91666         if iconv is found to exist.
91668 2007-01-14  Bruno Haible  <bruno@clisp.org>
91670         * modules/c-ctype-tests: New file.
91671         * tests/test-c-ctype.c: New file.
91673 2007-01-14  Bruno Haible  <bruno@clisp.org>
91675         * modules/binary-io-tests: New file.
91676         * tests/test-binary-io.sh: New file.
91677         * tests/test-binary-io.c: New file.
91679 2007-01-14  Bruno Haible  <bruno@clisp.org>
91681         * modules/array-oset-tests: New file.
91682         * tests/test-array_oset.c: New file.
91684 2007-01-14  Bruno Haible  <bruno@clisp.org>
91686         * modules/array-list-tests: New file.
91687         * tests/test-array_list.c: New file.
91689 2007-01-14  Bruno Haible  <bruno@clisp.org>
91691         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
91692         and make.
91693         Reported by Simon Josefsson in
91694         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
91696 2007-01-14  Bruno Haible  <bruno@clisp.org>
91698         * modules/allocsa-tests: New file.
91699         * tests/test-allocsa.c: New file.
91701 2007-01-14  Bruno Haible  <bruno@clisp.org>
91703         * modules/fchdir (Depends-on): Add absolute-header.
91704         * modules/unistd (Depends-on): Likewise.
91706 2006-12-30  Bruno Haible  <bruno@clisp.org>
91708         * modules/fchdir: New file.
91709         * modules/unistd (Files): Add lib/unistd_.h.
91710         (Makefile.am): Generate unistd.h from unistd_.h.
91711         * lib/fchdir.c: New file.
91712         * lib/dirent_.h: New file.
91713         * lib/unistd_.h: New file.
91714         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
91715         * m4/fchdir.m4: New file.
91716         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
91717         (gl_HEADER_UNISTD): Invoke it.
91718         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
91719         function.
91720         * lib/backupfile.c (opendir, closedir): Undefine.
91721         * lib/chown.c (open, close): Undefine.
91722         * lib/clean-temp.c (open, close): Undefine.
91723         * lib/copy-file.c (open, close): Undefine.
91724         * lib/execute.c (open, close): Undefine.
91725         * lib/fsusage.c (open, close): Undefine.
91726         * lib/gc-gnulib.c (open, close): Undefine.
91727         * lib/getcwd.c (opendir, closedir): Undefine.
91728         * lib/glob.c (opendir, closedir): Undefine.
91729         * lib/javacomp.c (open, close): Undefine.
91730         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
91731         * lib/openat-proc.c (open, close): Undefine.
91732         * lib/pagealign_alloc.c (open, close): Undefine.
91733         * lib/pipe.c (open, close): Undefine.
91734         * lib/progreloc.c (open, close): Undefine.
91735         * lib/savedir.c (opendir, closedir): Undefine.
91736         * lib/utime.c (open, close): Undefine.
91737         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
91739 2007-01-10  Bruno Haible  <bruno@clisp.org>
91741         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
91743 2007-01-12  Eric Blake  <ebb9@byu.net>
91745         Provide a robust <wchar.h>.  Further simplifications are now
91746         possible in other modules, but not included here.
91747         * modules/wchar: New module.
91748         * m4/wchar.m4: New file.
91749         * lib/wchar_.h: Likewise.
91750         * modules/mbchar (Depends-on): Depend on wchar, as the first use
91751         of the new module.
91752         * MODULES.html.sh (Extended multibyte and wide character utilities):
91753         New section.
91755 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
91757         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
91758         to a reasonable default for memory allocation.
91759         (xreadlink): Don't allocate a huge buffer, to work around a buggy
91760         file system that reports garbage st_size values for symlinks.
91761         Problem reported by Liyang Hu.
91763 2007-01-11  Simon Josefsson  <simon@josefsson.org>
91765         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
91766         Emacs .#* auto-save files).
91768 2007-01-11  Bruno Haible  <bruno@clisp.org>
91770         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
91771         directory.
91773 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
91775         Use @...@ consistently in lib/wctype_.h.
91776         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
91777         on it being set to 1 or 0.
91778         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
91779         go back to AC_SUBSTing it.
91780         * modules/wctype (Makefile.am): Undo previous change.
91782 2007-01-10  Eric Blake  <ebb9@byu.net>
91784         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
91785         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
91786         * modules/wctype (Makefile.am): Likewise.
91787         Reported by Chris McGuire.
91789 2007-01-10  Jim Meyering  <jim@meyering.net>
91791         fts.c: a small readability/maintainability improvement
91792         * lib/fts.c (fts_read): Make this code slightly more readable and
91793         maintainable by hoisting the "sp->fts_cur = p" assignments to
91794         immediately follow the statements that set P.  Derived from
91795         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
91797 2007-01-10  Eric Blake  <ebb9@byu.net>
91799         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
91800         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
91801         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
91802         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
91803         Reported by Chris McGuire.
91805 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91807         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
91808         in sed script.
91810 2007-01-09  Bruno Haible  <bruno@clisp.org>
91812         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
91813         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
91814         variables.
91815         (func_module): Use them.
91817 2007-01-09  Bruno Haible  <bruno@clisp.org>
91819         * modules/unistr/base: New file.
91820         * lib/unistr.h: New file.
91822         * modules/unistr/u8-to-u16: New file.
91823         * lib/unistr/u8-to-u16.c: New file.
91825         * modules/unistr/u8-to-u32: New file.
91826         * lib/unistr/u8-to-u32.c: New file.
91828         * modules/unistr/u16-to-u8: New file.
91829         * lib/unistr/u16-to-u8.c: New file.
91831         * modules/unistr/u16-to-u32: New file.
91832         * lib/unistr/u16-to-u32.c: New file.
91834         * modules/unistr/u32-to-u8: New file.
91835         * lib/unistr/u32-to-u8.c: New file.
91837         * modules/unistr/u32-to-u16: New file.
91838         * lib/unistr/u32-to-u16.c: New file.
91840         * modules/unistr/u8-check: New file.
91841         * modules/unistr/u16-check: New file.
91842         * modules/unistr/u32-check: New file.
91843         * lib/unistr/u8-check.c: New file.
91844         * lib/unistr/u16-check.c: New file.
91845         * lib/unistr/u32-check.c: New file.
91847         * modules/unistr/u8-chr: New file.
91848         * modules/unistr/u16-chr: New file.
91849         * modules/unistr/u32-chr: New file.
91850         * lib/unistr/u8-chr.c: New file.
91851         * lib/unistr/u16-chr.c: New file.
91852         * lib/unistr/u32-chr.c: New file.
91854         * modules/unistr/u8-cmp: New file.
91855         * modules/unistr/u16-cmp: New file.
91856         * modules/unistr/u32-cmp: New file.
91857         * lib/unistr/u8-cmp.c: New file.
91858         * lib/unistr/u16-cmp.c: New file.
91859         * lib/unistr/u32-cmp.c: New file.
91861         * modules/unistr/u8-cpy: New file.
91862         * modules/unistr/u16-cpy: New file.
91863         * modules/unistr/u32-cpy: New file.
91864         * lib/unistr/u8-cpy.c: New file.
91865         * lib/unistr/u16-cpy.c: New file.
91866         * lib/unistr/u32-cpy.c: New file.
91867         * lib/unistr/u-cpy.h: New file.
91869         * modules/unistr/u8-cpy-alloc: New file.
91870         * modules/unistr/u16-cpy-alloc: New file.
91871         * modules/unistr/u32-cpy-alloc: New file.
91872         * lib/unistr/u8-cpy-alloc.c: New file.
91873         * lib/unistr/u16-cpy-alloc.c: New file.
91874         * lib/unistr/u32-cpy-alloc.c: New file.
91875         * lib/unistr/u-cpy-alloc.h: New file.
91877         * modules/unistr/u8-endswith: New file.
91878         * modules/unistr/u16-endswith: New file.
91879         * modules/unistr/u32-endswith: New file.
91880         * lib/unistr/u8-endswith.c: New file.
91881         * lib/unistr/u16-endswith.c: New file.
91882         * lib/unistr/u32-endswith.c: New file.
91883         * lib/unistr/u-endswith.h: New file.
91885         * modules/unistr/u8-mblen: New file.
91886         * modules/unistr/u16-mblen: New file.
91887         * modules/unistr/u32-mblen: New file.
91888         * lib/unistr/u8-mblen.c: New file.
91889         * lib/unistr/u16-mblen.c: New file.
91890         * lib/unistr/u32-mblen.c: New file.
91892         * modules/unistr/u8-mbtouc: New file.
91893         * modules/unistr/u16-mbtouc: New file.
91894         * modules/unistr/u32-mbtouc: New file.
91895         * lib/unistr/u8-mbtouc.c: New file.
91896         * lib/unistr/u16-mbtouc.c: New file.
91897         * lib/unistr/u32-mbtouc.c: New file.
91899         * modules/unistr/u8-mbtouc-safe: New file.
91900         * modules/unistr/u16-mbtouc-safe: New file.
91901         * modules/unistr/u32-mbtouc-safe: New file.
91902         * lib/unistr/u8-mbtouc-safe.c: New file.
91903         * lib/unistr/u16-mbtouc-safe.c: New file.
91904         * lib/unistr/u32-mbtouc-safe.c: New file.
91906         * modules/unistr/u8-move: New file.
91907         * modules/unistr/u16-move: New file.
91908         * modules/unistr/u32-move: New file.
91909         * lib/unistr/u8-move.c: New file.
91910         * lib/unistr/u16-move.c: New file.
91911         * lib/unistr/u32-move.c: New file.
91912         * lib/unistr/u-move.h: New file.
91914         * modules/unistr/u8-next: New file.
91915         * modules/unistr/u16-next: New file.
91916         * modules/unistr/u32-next: New file.
91917         * lib/unistr/u8-next.c: New file.
91918         * lib/unistr/u16-next.c: New file.
91919         * lib/unistr/u32-next.c: New file.
91921         * modules/unistr/u8-prev: New file.
91922         * modules/unistr/u16-prev: New file.
91923         * modules/unistr/u32-prev: New file.
91924         * lib/unistr/u8-prev.c: New file.
91925         * lib/unistr/u16-prev.c: New file.
91926         * lib/unistr/u32-prev.c: New file.
91928         * modules/unistr/u8-set: New file.
91929         * modules/unistr/u16-set: New file.
91930         * modules/unistr/u32-set: New file.
91931         * lib/unistr/u8-set.c: New file.
91932         * lib/unistr/u16-set.c: New file.
91933         * lib/unistr/u32-set.c: New file.
91934         * lib/unistr/u-set.h: New file.
91936         * modules/unistr/u8-startswith: New file.
91937         * modules/unistr/u16-startswith: New file.
91938         * modules/unistr/u32-startswith: New file.
91939         * lib/unistr/u8-startswith.c: New file.
91940         * lib/unistr/u16-startswith.c: New file.
91941         * lib/unistr/u32-startswith.c: New file.
91942         * lib/unistr/u-startswith.h: New file.
91944         * modules/unistr/u8-stpcpy: New file.
91945         * modules/unistr/u16-stpcpy: New file.
91946         * modules/unistr/u32-stpcpy: New file.
91947         * lib/unistr/u8-stpcpy.c: New file.
91948         * lib/unistr/u16-stpcpy.c: New file.
91949         * lib/unistr/u32-stpcpy.c: New file.
91950         * lib/unistr/u-stpcpy.h: New file.
91952         * modules/unistr/u8-stpncpy: New file.
91953         * modules/unistr/u16-stpncpy: New file.
91954         * modules/unistr/u32-stpncpy: New file.
91955         * lib/unistr/u8-stpncpy.c: New file.
91956         * lib/unistr/u16-stpncpy.c: New file.
91957         * lib/unistr/u32-stpncpy.c: New file.
91958         * lib/unistr/u-stpncpy.h: New file.
91960         * modules/unistr/u8-strcat: New file.
91961         * modules/unistr/u16-strcat: New file.
91962         * modules/unistr/u32-strcat: New file.
91963         * lib/unistr/u8-strcat.c: New file.
91964         * lib/unistr/u16-strcat.c: New file.
91965         * lib/unistr/u32-strcat.c: New file.
91966         * lib/unistr/u-strcat.h: New file.
91968         * modules/unistr/u8-strchr: New file.
91969         * modules/unistr/u16-strchr: New file.
91970         * modules/unistr/u32-strchr: New file.
91971         * lib/unistr/u8-strchr.c: New file.
91972         * lib/unistr/u16-strchr.c: New file.
91973         * lib/unistr/u32-strchr.c: New file.
91975         * modules/unistr/u8-strcmp: New file.
91976         * modules/unistr/u16-strcmp: New file.
91977         * modules/unistr/u32-strcmp: New file.
91978         * lib/unistr/u8-strcmp.c: New file.
91979         * lib/unistr/u16-strcmp.c: New file.
91980         * lib/unistr/u32-strcmp.c: New file.
91982         * modules/unistr/u8-strcpy: New file.
91983         * modules/unistr/u16-strcpy: New file.
91984         * modules/unistr/u32-strcpy: New file.
91985         * lib/unistr/u8-strcpy.c: New file.
91986         * lib/unistr/u16-strcpy.c: New file.
91987         * lib/unistr/u32-strcpy.c: New file.
91988         * lib/unistr/u-strcpy.h: New file.
91990         * modules/unistr/u8-strcspn: New file.
91991         * modules/unistr/u16-strcspn: New file.
91992         * modules/unistr/u32-strcspn: New file.
91993         * lib/unistr/u8-strcspn.c: New file.
91994         * lib/unistr/u16-strcspn.c: New file.
91995         * lib/unistr/u32-strcspn.c: New file.
91996         * lib/unistr/u-strcspn.h: New file.
91998         * modules/unistr/u8-strdup: New file.
91999         * modules/unistr/u16-strdup: New file.
92000         * modules/unistr/u32-strdup: New file.
92001         * lib/unistr/u8-strdup.c: New file.
92002         * lib/unistr/u16-strdup.c: New file.
92003         * lib/unistr/u32-strdup.c: New file.
92004         * lib/unistr/u-strdup.h: New file.
92006         * modules/unistr/u8-strlen: New file.
92007         * modules/unistr/u16-strlen: New file.
92008         * modules/unistr/u32-strlen: New file.
92009         * lib/unistr/u8-strlen.c: New file.
92010         * lib/unistr/u16-strlen.c: New file.
92011         * lib/unistr/u32-strlen.c: New file.
92012         * lib/unistr/u-strlen.h: New file.
92014         * modules/unistr/u8-strmblen: New file.
92015         * modules/unistr/u16-strmblen: New file.
92016         * modules/unistr/u32-strmblen: New file.
92017         * lib/unistr/u8-strmblen.c: New file.
92018         * lib/unistr/u16-strmblen.c: New file.
92019         * lib/unistr/u32-strmblen.c: New file.
92021         * modules/unistr/u8-strmbtouc: New file.
92022         * modules/unistr/u16-strmbtouc: New file.
92023         * modules/unistr/u32-strmbtouc: New file.
92024         * lib/unistr/u8-strmbtouc.c: New file.
92025         * lib/unistr/u16-strmbtouc.c: New file.
92026         * lib/unistr/u32-strmbtouc.c: New file.
92028         * modules/unistr/u8-strncat: New file.
92029         * modules/unistr/u16-strncat: New file.
92030         * modules/unistr/u32-strncat: New file.
92031         * lib/unistr/u8-strncat.c: New file.
92032         * lib/unistr/u16-strncat.c: New file.
92033         * lib/unistr/u32-strncat.c: New file.
92034         * lib/unistr/u-strncat.h: New file.
92036         * modules/unistr/u8-strncmp: New file.
92037         * modules/unistr/u16-strncmp: New file.
92038         * modules/unistr/u32-strncmp: New file.
92039         * lib/unistr/u8-strncmp.c: New file.
92040         * lib/unistr/u16-strncmp.c: New file.
92041         * lib/unistr/u32-strncmp.c: New file.
92043         * modules/unistr/u8-strncpy: New file.
92044         * modules/unistr/u16-strncpy: New file.
92045         * modules/unistr/u32-strncpy: New file.
92046         * lib/unistr/u8-strncpy.c: New file.
92047         * lib/unistr/u16-strncpy.c: New file.
92048         * lib/unistr/u32-strncpy.c: New file.
92049         * lib/unistr/u-strncpy.h: New file.
92051         * modules/unistr/u8-strnlen: New file.
92052         * modules/unistr/u16-strnlen: New file.
92053         * modules/unistr/u32-strnlen: New file.
92054         * lib/unistr/u8-strnlen.c: New file.
92055         * lib/unistr/u16-strnlen.c: New file.
92056         * lib/unistr/u32-strnlen.c: New file.
92057         * lib/unistr/u-strnlen.h: New file.
92059         * modules/unistr/u8-strpbrk: New file.
92060         * modules/unistr/u16-strpbrk: New file.
92061         * modules/unistr/u32-strpbrk: New file.
92062         * lib/unistr/u8-strpbrk.c: New file.
92063         * lib/unistr/u16-strpbrk.c: New file.
92064         * lib/unistr/u32-strpbrk.c: New file.
92065         * lib/unistr/u-strpbrk.h: New file.
92067         * modules/unistr/u8-strrchr: New file.
92068         * modules/unistr/u16-strrchr: New file.
92069         * modules/unistr/u32-strrchr: New file.
92070         * lib/unistr/u8-strrchr.c: New file.
92071         * lib/unistr/u16-strrchr.c: New file.
92072         * lib/unistr/u32-strrchr.c: New file.
92074         * modules/unistr/u8-strspn: New file.
92075         * modules/unistr/u16-strspn: New file.
92076         * modules/unistr/u32-strspn: New file.
92077         * lib/unistr/u8-strspn.c: New file.
92078         * lib/unistr/u16-strspn.c: New file.
92079         * lib/unistr/u32-strspn.c: New file.
92080         * lib/unistr/u-strspn.h: New file.
92082         * modules/unistr/u8-strstr: New file.
92083         * modules/unistr/u16-strstr: New file.
92084         * modules/unistr/u32-strstr: New file.
92085         * lib/unistr/u8-strstr.c: New file.
92086         * lib/unistr/u16-strstr.c: New file.
92087         * lib/unistr/u32-strstr.c: New file.
92088         * lib/unistr/u-strstr.h: New file.
92090         * modules/unistr/u8-strtok: New file.
92091         * modules/unistr/u16-strtok: New file.
92092         * modules/unistr/u32-strtok: New file.
92093         * lib/unistr/u8-strtok.c: New file.
92094         * lib/unistr/u16-strtok.c: New file.
92095         * lib/unistr/u32-strtok.c: New file.
92096         * lib/unistr/u-strtok.h: New file.
92098         * modules/unistr/u8-uctomb: New file.
92099         * modules/unistr/u16-uctomb: New file.
92100         * modules/unistr/u32-uctomb: New file.
92101         * lib/unistr/u8-uctomb.c: New file.
92102         * lib/unistr/u16-uctomb.c: New file.
92103         * lib/unistr/u32-uctomb.c: New file.
92105         * MODULES.html.sh (Unicode string functions): Add the new modules.
92107 2007-01-08  Bruno Haible  <bruno@clisp.org>
92109         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
92110         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
92111         subdirectories.
92113 2007-01-08  Karl Berry  <karl@gnu.org>
92115         * doc/error.texi: mention that main() fns must set program_name
92116         when progname is used.
92118 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
92120         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
92121         WCTYPE_H is empty, for the benefit of builds from non-distclean
92122         directories.  Problem reported by Eric Blake in
92123         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
92125 2007-01-08  Bruno Haible  <bruno@clisp.org>
92127         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
92128         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
92129         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
92130         PROVIDE_CANONICALIZE_FILENAME_MODE.
92131         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
92133 2007-01-08  Bruno Haible  <bruno@clisp.org>
92135         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
92136         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
92137         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
92138         * lib/fts.c: Likewise.
92139         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
92141 2006-12-25  Bruno Haible  <bruno@clisp.org>
92143         * modules/utf8-ucs4-safe: New file.
92144         * lib/utf8-ucs4-safe.h: New file.
92145         * lib/unistr/utf8-ucs4-safe.c: New file.
92147         * modules/utf16-ucs4-safe: New file.
92148         * lib/utf16-ucs4-safe.h: New file.
92149         * lib/unistr/utf16-ucs4-safe.c: New file.
92151         * MODULES.html.sh (Unicode string functions): Add the new modules.
92153 2007-01-08  Bruno Haible  <bruno@clisp.org>
92155         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
92156         (Depends-on): Add unitypes.
92157         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
92158         (u8_mbtouc_aux): Move out to separate file.
92159         (u8_mbtouc): Use ucs4_t, uint8_t types.
92160         * lib/unistr/utf8-ucs4.c: New file.
92162         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
92163         (Depends-on): Add unitypes.
92164         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
92165         (u16_mbtouc_aux): Move out to separate file.
92166         (u16_mbtouc): Use ucs4_t, uint16_t types.
92167         * lib/unistr/utf16-ucs4.c: New file.
92169         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
92170         (Depends-on): Add unitypes.
92171         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
92172         (u8_uctomb_aux): Move out to separate file.
92173         (u8_uctomb): Use ucs4_t, uint8_t types.
92174         * lib/unistr/ucs4-utf8.c: New file.
92176         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
92177         (Depends-on): Add unitypes.
92178         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
92179         (u16_uctomb_aux): Move out to separate file.
92180         (u16_uctomb): Use ucs4_t, uint16_t types.
92181         * lib/unistr/ucs4-utf16.c: New file.
92183 2006-12-25  Bruno Haible  <bruno@clisp.org>
92185         * modules/unitypes: New file.
92186         * lib/unitypes.h: New file.
92187         * MODULES.html.sh (func_all_modules): New section "Unicode string
92188         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
92189         this section. Add unitypes.
92191 2007-01-08  Bruno Haible  <bruno@clisp.org>
92193         Avoid variable names that conflict with those from libtool.
92194         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
92195         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
92196         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
92197         library_names_spec to acl_library_names_spec, hardcode_* to
92198         acl_hardcode_*.
92199         Reported by Ralf Wildenhues.
92201 2007-01-08  Bruno Haible  <bruno@clisp.org>
92203         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
92204         definition.
92205         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
92206         definition.
92207         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
92208         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
92209         definition.
92210         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
92211         definition.
92212         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
92213         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
92214         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
92215         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
92216         definition.
92217         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
92218         definition.
92219         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
92220         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
92221         GC_USE_<algorithm>.
92222         * lib/gc-libgcrypt.c: Likewise.
92223         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
92224         * modules/gc-arctwo (configure.ac): Likewise.
92225         * modules/gc-des (configure.ac): Likewise.
92226         * modules/gc-hmac-md5 (configure.ac): Likewise.
92227         * modules/gc-hmac-sha1 (configure.ac): Likewise.
92228         * modules/gc-md2 (configure.ac): Likewise.
92229         * modules/gc-md4 (configure.ac): Likewise.
92230         * modules/gc-md5 (configure.ac): Likewise.
92231         * modules/gc-random (configure.ac): Likewise.
92232         * modules/gc-rijndael (configure.ac): Likewise.
92233         * modules/gc-sha1 (configure.ac): Likewise.
92235 2007-01-08  Bruno Haible  <bruno@clisp.org>
92237         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
92238         macro definition.
92239         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
92240         definition.
92241         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
92242         definition.
92243         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
92244         * modules/fcntl-safer (configure.ac): Likewise.
92245         * modules/fopen-safer (configure.ac): Likewise.
92246         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
92247         GNULIB_FWRITEERROR macro definition.
92249 2007-01-08  Bruno Haible  <bruno@clisp.org>
92251         * m4/gnulib-common.m4: New file.
92252         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
92253         (func_get_filelist): Add m4/gnulib-common.m4.
92255 2007-01-08  Bruno Haible  <bruno@clisp.org>
92257         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
92258         command.
92260 2007-01-08  Jim Meyering  <jim@meyering.net>
92262         Use a more robust test for a "can't happen" condition.
92263         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
92264         narrowed the st_size value.  Presuming the "can't happen" condition
92265         is true, that narrowing could conceivably convert an invalid st_size
92266         value into a valid one.  Instead, use a change based on Matthew
92267         Woehlke's original patch.
92269         Slight readability improvement: use an assert-like macro
92270         in place of literal "abort ()" uses.
92271         * lib/fts.c (fts_assert): Define.
92272         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
92273         Use this macro instead of a bare 'abort'.
92275 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
92277         Don't worry about using IRIX 5.3's wctype.h broken definitions;
92278         simply work around them.
92279         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
92280         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
92281         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
92282         declaring.
92283         Don't bother to define as macros, since the standard doesn't require it.
92284         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
92285         longer worry about IRIX 5.3.
92286         (HAVE_WCTYPE_CTMP_BUG): Remove.
92288 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
92290         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
92291         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
92292         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
92293         Problems reported by Georg Schwarz for IRIX 5.3.
92295         * gnulib-tool (autoconf_minversion): Take the maximum version number
92296         found, not the minimum.  Problem reported by James Youngman.
92298 2007-01-03  Karl Berry  <karl@gnu.org>
92300         * doc/error.texi: new file, explaining interaction with progname.
92301         * doc/gnulib.texi: include it.  Update copyright.
92303 2007-01-03  Simon Josefsson  <simon@josefsson.org>
92305         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
92306         AC_CANONICAL_HOST, to improve autobuild outputs.
92308 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
92309             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
92311         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
92312         sockets, server sockets, and other file descriptors.  Count errors
92313         to compute the return value.  Reorder the code a bit to be easier
92314         to follow.  Don't set event bits that were not requested (except
92315         POLLERR and POLLHUP).
92317 2007-01-01  Bruno Haible  <bruno@clisp.org>
92319         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
92321 2007-01-03  Jim Meyering  <jim@meyering.net>
92323         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
92325 2007-01-02  Bruno Haible  <bruno@clisp.org>
92327         * modules/settime (Include): Require timespec.h.
92328         * modules/nanosleep (Include): Likewise.
92330 2007-01-01  Bruno Haible  <bruno@clisp.org>
92332         * gnulib-tool (func_emit_copyright_notice): Bump year.
92333         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
92335 2007-01-01  Bruno Haible  <bruno@clisp.org>
92337         Improve support for OpenBSD.
92338         * build-aux/config.rpath (libname_spec): Export.
92339         (library_names_spec): New variable. Export.
92340         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
92341         library_names_spec from the config.rpath output. Locate shared library
92342         through the name pattern in library_names_spec.
92344 2007-01-01  Eric Blake  <ebb9@byu.net>
92346         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
92348 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
92350         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
92351         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
92352         assume the C locale, and avoid an "eval" that could cause trouble.
92353         Problem with SORT reported by Bob Proulx.
92355         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
92356         Define.  Trivial patch from Henning Nielsen Lund, originally
92357         sent to bug-grep@gnu.org today.
92359 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
92361         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
92362         struct stat.  Problem reported by Henning Nielsen Lund.
92363         * lib/acl.c: Include acl.h first, to check interface.  Don't
92364         bother to include sys/types.h and sys/stat.h again.
92366 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
92368         Import the following change from libc; problem reported by
92369         Sven Verdoolaege.
92371         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
92373         [BZ #1373]
92374         * lib/argp.h: Remove __NTH for __argp_usage inline function.
92376 2006-12-28  Jim Meyering  <jim@meyering.net>
92378         * build-aux/announce-gen: Do not assume that the package
92379         builds any of tar.gz, tar.bz2, and .xdelta files.
92380         Suggestion from Simon Josefsson.
92382 2006-12-28  Simon Josefsson  <simon@josefsson.org>
92384         * modules/announce-gen: New file.
92386 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
92388         * lib/mbchar.h: Just include <wctype.h>; the wctype module
92389         handles its gotchas now.
92390         * lib/mbswidth.c: Likewise.
92391         * lib/wcwidth.h: Likewise.
92392         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
92393         and iswcntrl; the wctype module does this stuff now.
92394         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
92395         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
92396         * modules/mbchar (Depends-on): Add wctype.
92397         * modules/mbswidth (Depends-on): Likewise.
92398         * modules/wcwidth (Depends-on): Likewise.
92400 2006-12-27  Eric Blake  <ebb9@byu.net>
92402         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
92403         module uses more than what <wctype.h> is required to provide.
92405 2006-12-26  Eric Blake  <ebb9@byu.net>
92407         * gnulib-tool (sed_extract_prog): Avoid space-tab.
92409 2006-12-26  Eric Blake  <ebb9@byu.net>
92411         * modules/absolute-header: New module.
92412         * modules/fcntl (Depends-on): Depend on it.
92413         * modules/inttypes (Depends-on): Likewise.
92414         * modules/stdint (Depends-on): Likewise.
92415         * modules/sys_stat (Depends-on): Likewise.
92416         * modules/wctype (Depends-on): Likewise.
92417         * MODULES.html.sh (Support for building libraries and
92418         executables): Document it.
92420 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
92422         * gnulib-tool (SED): Remove, undoing previous change.
92423         The problem was that it broke coreutils on Solaris, because
92424         "sed --posix" leaked into a makefile.
92425         (sed): New alias, if 'alias' and GNU sed.
92427 2006-12-24  Jim Meyering  <jim@meyering.net>
92429         Work around an fchownat bug in glibc-2.4:
92430         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
92431         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
92432         in spite of the -P option.
92433         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
92434         New macros.
92435         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
92436         * modules/openat (Files): Add lib/fchownat.c.
92437         * lib/openat.c (fchownat): Don't define here.  Move to...
92438         * lib/fchownat.c: ...this new file.
92440 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
92442         Fix bug reported by Bruno Haible in
92443         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
92444         where quotearg.c didn't compile on Mac OS X 10.2 because it
92445         lacks <wchar.h> and wint_t.
92446         * lib/wctype_.h (__wctype_wint_t): New type.
92447         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
92448         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
92449         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
92450         Arg is now of type __wctype_wint_t, not wint_t.
92451         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
92452         substitute HAVE_WINT_T.
92453         * modules/wctype (Files): Add m4/wint_t.m4.
92454         (wctype.h): Substitute HAVE_WINT_T.
92456 2006-12-23  Bruno Haible  <bruno@clisp.org>
92458         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
92460 2006-12-23  Bruno Haible  <bruno@clisp.org>
92462         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
92463         S_ISLNK.
92464         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
92465         mingw.
92467 2006-12-22  Bruno Haible  <bruno@clisp.org>
92469         * lib/copy-file.c: Include acl.h.
92470         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
92471         Close the file descriptors only after being done with copy_acl.
92472         * modules/copy-file (Depends-on): Add acl.
92474 2006-12-22  Bruno Haible  <bruno@clisp.org>
92476         * gnulib-tool (SED): New variable.
92477         Use $SED instead of sed everywhere.
92479 2006-12-22  Bruno Haible  <bruno@clisp.org>
92481         * modules/no-c++: New file.
92482         * m4/no-c++.m4: New file.
92483         * MODULES.html.sh (Support for building libraries and executables):
92484         Add no-c++.
92486 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
92488         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
92489         Include <limits.h>, and use its INT_MAX to rewrite the
92490         j loop so that it does not overflow 'int'.  Problem reported by
92491         Ralf Wildenhues in
92492         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
92493         Play it safe by shifting left by 1 rather than multiplying by 2,
92494         as GCC is less likely to optimize this away when the value
92495         is signed (when it assumes overflow leads to undefined behavior).
92496         Also, don't assume time_t uses two's complement.
92498 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
92500         * MODULES.html.sh: New module wctype.
92501         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
92502         * lib/fnmatch.c: Don't bother to include <wchar.h> before
92503         <wctype.h>, since the new wctype module should fix this.
92504         * lib/quotearg.c: Include <wctype.h> unconditionally, since
92505         the wctype module should arrange for it.
92506         * lib/regex_internal.h: Likewise.
92507         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
92508         since the wctype module should handle this now.
92509         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
92510         * modules/fnmatch (Depends-on): Add wctype.
92511         * modules/quotearg (Depends-on): Likewise.
92512         * modules/regex (Depends-on): Likewise.
92514 2006-12-19  Bruno Haible  <bruno@clisp.org>
92516         * lib/strdup.h [C++]: Wrap definitions in extern "C".
92517         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
92519 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92521         * modules/savewd (Depends-on): Fix dependency on fcntl.
92523 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
92525         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
92526         conforms to C99, rather than relying on the user's environment
92527         setting of STDINT_H.
92529 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
92530         and Eric Blake  <ebb9@byu.net>
92532         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
92533         This is more consistent with the other defines here.
92534         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
92535         Port to z/OS.  Problem reported by Paul Gilmartin.
92536         Change local vars to use gl_ prefix rather than ac_.
92537         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
92538         with other defines.
92539         * modules/double-slash-root: New module.
92540         * modules/dirname (Files): Remove m4/double-slash-root.m4.
92541         (Depends-on): Add double-slash-root.
92542         * MODULES.html.sh (File system functions): Mention new module.
92544 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
92546         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
92547         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
92548         This is for the benefit of gzip, which doesn't do i18n.
92550 2006-12-12  Jim Meyering  <jim@meyering.net>
92552         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
92553         Reported by Andreas Schwab <schwab@suse.de>.
92555 2006-12-12  Bruno Haible  <bruno@clisp.org>
92557         Merge these changes.
92558         2006-09-05  Bruno Haible  <bruno@clisp.org>
92559         * lib/iconvme.c (iconv_string): No need to save and restore errno when
92560         iconv_alloc succeeded.
92561         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
92562         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
92563         test for " && dest " at the end - dest is always != NULL there. Call
92564         iconv with 4xNULL arguments initially, to reset the state. Call iconv
92565         with 2xNULL arguments, also to flush the state storage. Handle the
92566         IRIX iconv behaviour. Realloc the final result, to throw away unused
92567         memory.
92569 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
92571         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
92572         and fchmodat unconditionally, since glibc 2.4 has them.
92573         Problem reported by Arkadiusz Miskiewicz.
92575 2006-12-10  Bruno Haible  <bruno@clisp.org>
92577         * gnulib-tool (func_import): Show the include files only for those
92578         modules that are copied and specified.
92579         Reported by Karl Berry.
92581 2006-12-08  Jim Meyering  <jim@meyering.net>
92583         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
92584         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
92586         * build-aux/announce-gen: Add two new options, both optional:
92587         --bootstrap-tools=TOOL_LIST
92588               a comma-separated list of tools, e.g.,
92589               autoconf,automake,bison,gnulib
92590         --gnulib-snapshot-date=DATE
92591               if gnulib is in the bootstrap tool list,
92592               then report this as the snapshot date.
92593               If not specified, use the current date/time.
92594               If you specify a date here, be sure it's UTC.
92596 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92598         * tests/test-argp-2.sh: Fix test to match actual output.
92599         (func_compare): Fix sed script to be portable.
92601 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
92603         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
92604         workaround for this case.  It is not autoconfigured now; offhand
92605         it's hard to see how to autoconfigure it.
92607 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
92609         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
92610         a directory that is about to be chowned.  Such a directory's
92611         initial file permissions should permit the owner only and this
92612         should not be changed until after the chown, since the group and
92613         other bits would be incorrect if they granted permission before
92614         the chown.
92616         Fix porting problem for iswctype reported by Georg Schwarz in:
92617         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
92618         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
92619         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
92620         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
92621         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
92623 2006-12-03  Jim Meyering  <jim@meyering.net>
92625         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
92626         p->fts_statp may not yet be defined.
92627         (fts_read): Instead, set it in the caller, once p->fts_statp is
92628         sure to be defined, and corresponds to a top-level directory.
92629         This bug made du -x fail.  Here's the coreutils test case:
92630         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
92631         Reported by Mike Frysinger.
92633 2006-12-01  Jim Meyering  <jim@meyering.net>
92635         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
92636         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
92637         Reported by Simon Josefsson.
92639 2006-11-30  Jim Meyering  <jim@meyering.net>
92641         * m4/warning.m4: Use the all-permissive copyright notice
92642         recommended by RMS (rather than LGPL).
92643         * m4/vararrays.m4: Likewise.
92644         * m4/flexmember.m4: Likewise.
92646 2006-11-29  Bruno Haible  <bruno@clisp.org>
92648         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
92649         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
92650         using +=.
92651         Reported by Simon Josefsson <simon@josefsson.org>.
92653 2006-11-28  James Youngman  <jay@gnu.org>
92655         * README: Advise users that they might find the bug-gnulib@gnu.org
92656         and autotools-announce@gnu.org mailing lists useful.
92658 2006-11-28  Bruno Haible  <bruno@clisp.org>
92660         * m4/ptrdiff_max.m4: Remove file.
92662 2006-11-21  Bruno Haible  <bruno@clisp.org>
92664         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
92665         _AC_COMPUTE_INT.
92666         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
92667         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
92668         _AC_COMPUTE_INT.
92669         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
92670         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
92671         _AC_COMPUTE_INT.
92672         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
92674 2006-11-28  Jim Meyering  <jim@meyering.net>
92676         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
92677         warning from "gcc -Wshadow" about shadowing the builtin.
92679 2006-11-27  Bruno Haible  <bruno@clisp.org>
92681         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
92682         _AC_COMPUTE_INT.
92683         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
92685 2006-11-27  Bruno Haible  <bruno@clisp.org>
92686             Paul Eggert  <eggert@cs.ucla.edu>
92688         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
92690 2006-11-26  Bruno Haible  <bruno@clisp.org>
92692         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
92693         noinst_LTLIBRARIES.
92695 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
92696             Bruno Haible  <bruno@clisp.org>
92698         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
92699         if compiling with "gcc -ansi".
92701 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
92703         Fix some incompatibilities with gcc -ansi -pedantic.
92704         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
92705         if compiling pedantically with GCC, unless it's C99 or later.
92706         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
92707         it mishandles gcc -ansi -pedantic as well.
92708         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
92709         if gcc -pedantic.
92710         * lib/regexec.c (check_node_accept_bytes): Don't use auto
92711         initializers for struct if -pedantic, unless it's C99 or later.
92713 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
92715         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
92716         Don't close an fd more than once. Identical atimes indicate
92717         success, not failure.
92719 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
92721         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
92723 2006-11-23  Jim Meyering  <jim@meyering.net>
92725         * build-aux/announce-gen: New file.  From coreutils.
92727 2006-11-22  Jim Meyering  <jim@meyering.net>
92729         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
92730         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
92731         (fts_read): Use a temporary to narrow the overused st_size member
92732         before using it in a switch statement.  Reported by Matthew Woehlke.
92734         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
92735         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
92737 2006-11-20  Bruno Haible  <bruno@clisp.org>
92739         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
92740         changequote instead of pairs of brackets.
92741         Reported by Andreas Schwab <schwab@suse.de>.
92743 2006-11-21  Jim Meyering  <jim@meyering.net>
92745         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
92746         so as to remain compatible with older compilers.
92747         Patch from Michael Deutschmann.
92749 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
92751         * MODULES.html.sh (File system functions): Add openat.
92753         * lib/openat.h (rpl_fstatat): New macro, if
92754         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
92755         (fstatat): Define to rpl_fstatat under the same conditions,
92756         unless COMPILING_FSTATAT.
92757         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
92758         seems to have the bug.
92759         * lib/fstatat.c: New file.
92760         * modules/openat (Files): Add it.
92762 2006-11-20  Bruno Haible  <bruno@clisp.org>
92764         * Makefile: New file.
92766 2006-11-20  Jim Meyering  <jim@meyering.net>
92768         The beginnings of syntax-related checks for gnulib.
92769         * lib/Makefile: New file.
92770         * lib/t-idcache: New script.  Ensure that the two halves of
92771         idcache.c stay in sync.
92773         * lib/idcache.c: Adjust comments in user- and group- portions to
92774         be more accurate, and to be consistent with one another.
92776 2006-11-20  Jim Meyering  <jim@meyering.net>
92778         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
92779         continue using the flexible array member (thus, this module performs
92780         half as many malloc calls), with the addition that...
92781         (getgroup, getuser): Consistently record a non-match via an empty
92782         "name" string, and map an empty string match to a NULL return value.
92783         * modules/idcache (Depends-on): Re-add flexmember.
92785         * lib/idcache.c (getuser): Remove all uses of the register keyword.
92786         (getuidbyname, getgroup, getgidbyname): Likewise.
92788         Use cleaner syntax: NULL rather than 0.
92789         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
92791 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
92793         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
92794         It mishandled the case where the group was missing.
92795         Problem reported by Greg Schafer.
92796         * modules/idcache: Likewise.
92798 2006-11-18  Jim Meyering  <jim@meyering.net>
92800         * check-module (%exempt_header): Add exception for some
92801         conditionally-included headers.
92803         * modules/i-ring (Depends-on): Add verify.
92804         (License): Change to LGPL.
92806 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
92808         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
92809         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
92810         and inttostr.h.  Use snprintf rather than uinttostr, so that
92811         LGPLed code doesn't depend on GPLed.
92813 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
92815         * modules/inline (License): Change from GPL to LGPL.
92817 2006-11-17  Jim Meyering  <jim@meyering.net>
92819         * modules/d-type (License): Switch to LGPL.
92821 2006-11-15  Bruno Haible  <bruno@clisp.org>
92823         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
92825 2006-11-15  Eric Blake  <ebb9@byu.net>
92827         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
92828         the module dependency.
92830 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92831             Bruno Haible  <bruno@clisp.org>
92833         * gnulib-tool (func_create_testdir): Add license consistency check.
92835 2006-11-15  Eric Blake  <ebb9@byu.net>
92837         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
92838         random "(cached)" in configure output.
92840 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92842         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
92843         test for conforming inttypes.h is both announced and cached.
92845         * MODULES.html.sh (seen_modules, seen_files): New variables.
92846         (func_module): Rewrite to use a few less gnulib-tool and sed
92847         invocations.  Avoid a couple of quadratic algorithms for ...
92848         (missed_modules, missed_files): ... these, with ...
92849         (func_append, func_tmpdir): ... these new functions, from
92850         gnulib-tool.  Analogously, install traps for cleanup.
92852         * tests/test-gc.c (main): Remove unused variables.
92853         * tests/test-read-file.c: Include stdlib.h, for 'free'.
92855 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
92857         * modules/inttostr (License): Change to LGPL.
92859 2006-11-14  Eric Blake  <ebb9@byu.net>
92861         * modules/tempname (License): Change to LGPL.
92863 2006-11-14  Eric Blake  <ebb9@byu.net>
92865         * doc/functions.texi (Function Portability): *printf functions on
92866         Cygwin now understand all POSIX size specifiers.
92868 2006-11-14  Bruno Haible  <bruno@clisp.org>
92870         * modules/c-ctype (License): Change to LGPL.
92872 2006-11-12  Bruno Haible  <bruno@clisp.org>
92874         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
92875         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
92876         for GNOME libraries, for which the include files are installed in
92877         subdirectories of $prefix/include.
92879 2006-11-12  Bruno Haible  <bruno@clisp.org>
92881         * m4/lib-link.m4: Require at least autoconf-2.54.
92882         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
92883         name to underscores for the --with option.
92885 2006-11-13  Bruno Haible  <bruno@clisp.org>
92887         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
92888         the tests directory.
92889         Reported by Ralf Wildenhues.
92891 2006-11-13  Bruno Haible  <bruno@clisp.org>
92893         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
92894         (func_emit_initmacro_end): Undo the override here.
92895         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
92896         Works around the famous automake error in coreutils.
92898 2006-11-13  Eric Blake  <ebb9@byu.net>
92900         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
92901         element, not its node.
92903 2006-11-12  Bruno Haible  <bruno@clisp.org>
92905         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
92906         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
92908 2006-11-12  Bruno Haible  <bruno@clisp.org>
92910         * gnulib-tool: New option --local-symlink.
92911         (func_usage): Document it.
92912         (lsymbolic): New variable.
92913         (func_import, func_create_testdir): If --symlink was not specified,
92914         test whether --local-symlink was specified and the file comes from
92915         the local_gnulib_dir.
92917 2006-11-12  Bruno Haible  <bruno@clisp.org>
92919         * gnulib-tool (func_ln): New function.
92920         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
92922 2006-11-12  Bruno Haible  <bruno@clisp.org>
92924         Finish support for source files in subdirectories.
92925         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
92926         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
92927         AUTOMAKE_OPTIONS.
92928         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
92930 2006-11-12  Bruno Haible  <bruno@clisp.org>
92932         * gnulib-tool (func_get_automake_snippet): Synthesize also an
92933         EXTRA_lib_SOURCES augmentation.
92934         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
92936 2006-11-12  Jim Meyering  <jim@meyering.net>
92938         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
92939         file descriptors.  This also averts a failure on systems with
92940         native openat support when a traversed directory lacks "x" access.
92941         * lib/fts_.h: Include "i-ring.h"
92942         (struct FTS) [fts_fd_ring]: New member.
92943         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
92944         (FCHDIR): Add parentheses.
92945         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
92946         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
92947         When descending, rather than simply closing the previous
92948         fts_cwd_fd value, push that file descriptor onto the ring.
92949         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
92950         (fts_open): Initialize the new fd_ring member.
92951         (fts_close): Clear the ring.
92952         (fts_safe_changedir): When possible, use our new fd_ring to skip
92953         the diropen and fstat and dev/ino comparison that would normally
92954         accompany a virtual `chdir ("..")'.
92956         * modules/fts (Depends-on): Add i-ring.
92957         * modules/i-ring: New module.
92958         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
92959         * m4/i-ring.m4: New file.
92961 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92963         * gnulib-tool (func_create_testdir): Fix replacement of
92964         `build-aux' in configure.ac.  Run autotools in gltests
92965         subdirectory.
92966         (func_create_testdir, func_create_megatestdir, test): There is
92967         no need for '--force' in most autotool invocations in a new
92968         tree.  Actually fail the whole test if any of the tools, or the
92969         configure or make stages fail.
92971         Sync from Automake.
92972         * build-aux/gnupload: Revert last change.  Add pointer to upload
92973         instructions of the GNU Maintenance Instructions.
92974         Suggestion by Karl Berry.
92976 2006-11-10  Jim Meyering  <jim@meyering.net>
92978         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
92980 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
92982         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
92983         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
92984         (bind_textdomain_codeset) [! ENABLE_NLS]:
92985         Evaluate all the arguments.  That way, callers get compatible behavior
92986         if the arguments have side effects.  Also, it avoids some GCC
92987         diagnostics in some cases; Joel E. Denny reported problems when Bison
92988         was configured with --enable-gcc-warnigs.
92990 2006-11-10  Jim Meyering  <jim@meyering.net>
92992         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
92993         relevant options in CFLAGS (like -O, -fno-inline) are taken into
92994         account.
92996 2006-11-10  Jim Meyering  <jim@meyering.net>
92998         * modules/inline: New file/module.
92999         * modules/xalloc (Files): Remove m4/inline.m4.
93000         (Depends-on): Add inline, instead.
93001         * modules/oset: Likewise.
93002         * modules/list: Likewise.
93004 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
93006         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
93007         Problem reported by Matthew Woehlke.
93009 2006-11-09  Bruno Haible  <bruno@clisp.org>
93011         * lib/tempname.c (gen_tempname): Remove variant that invokes
93012         __gen_tempname.
93013         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
93014         __gen_tempname.
93016 2006-11-08  Bruno Haible  <bruno@clisp.org>
93018         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
93019         to 'yes' instead of 'cross-compiling'.
93021 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
93023         * lib/quotearg.h (quotearg_free): New decl.
93024         * lib/quotearg.c (quotearg_free): New function.
93025         (slot0, nslots, slotvec0, slotvec):
93026         Now file-scope so that quotearg_free can get at them.
93028 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93030         Sync from Automake.
93031         * build-aux/gnupload: Add missing 'gnu' to example URL.
93032         Report by Karl Berry.
93034 2006-11-08  Bruno Haible  <bruno@clisp.org>
93036         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
93037         Suggested by Paul Eggert.
93039 2006-11-08  Jim Meyering  <jim@meyering.net>
93041         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
93042         It's already included if !_LIBC.
93043         (fts_safe_changedir): Add a comment.
93045 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
93047         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
93048         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
93049         Matthew Woehlke.
93051         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
93052         definitions up, to avoid colliding with change below.
93053         (static_inline) [HAVE_INLINE]: New macro.
93054         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
93055         Provide extern decls when !HAVE_INLINE.  Do not define unless
93056         static_inline is defined, either by us or by xmalloc.c.  Use
93057         static_inline rather than static inline.
93058         (XCALLOC): Optimize sizeof(T) = 1 case.
93059         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
93061 2006-11-07  Bruno Haible  <bruno@clisp.org>
93063         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
93064         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
93065         AC_C_INLINE.
93066         * modules/xalloc (Files): Add m4/inline.m4.
93068 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93070         * README: Fix typo.
93071         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
93072         (Miscellanous Notes): ...from this.
93074 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
93076         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
93077         Mention that offsetof should be used instead of sizeof.
93078         From Bruno Haible.
93080 2006-11-07  Bruno Haible  <bruno@clisp.org>
93082         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
93084 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
93086         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
93087         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
93088         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
93089         (gl_tree_add_before, gl_tree_add_after):
93090         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
93091         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
93092         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
93093         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
93094         (gl_linked_add_after, gl_linked_add_at): Likewise.
93095         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
93096         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
93097         (gl_tree_add_before, gl_tree_add_after): Likewise.
93098         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
93099         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
93100         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
93102 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93104         * lib/gl_oset.h: Use C comment style, not C++ comment style.
93106 2006-11-06  Bruno Haible  <bruno@clisp.org>
93108         * m4/inline.m4: New file.
93109         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
93110         * modules/list (Files): Add m4/inline.m4.
93111         * modules/oset (Files): Likewise.
93113 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
93115         * lib/idcache.c: Include <stddef.h>, for offsetof.
93116         (struct userid.name): Change from char * to a flexible array member.
93117         All uses changed.
93118         * modules/idcache (Depends-on): Add flexmember.
93120         * MODULES.html.sh (Core language properties): New module flexmember.
93121         * modules/flexmember, m4/flexmember.m4: New files.
93123         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
93124         inline functions that are identical with the old xnmalloc_inline,
93125         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
93126         that we can avoid some unnecessary integer multiplications and
93127         divisions in the common case where the element size is known at
93128         compile time.
93129         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
93130         needed.
93131         (xnboundedmalloc): Remove.
93132         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
93133         arguments, for consistency with rest of this header.
93134         (xcharalloc): Rewrite using XNMALLOC.
93135         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
93136         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
93137         versions have been moved to lib/xalloc.h and renamed to be the
93138         non-*_inline versions.
93139         (xmalloc, xrealloc): Implement without reference to the xnmalloc
93140         and xnrealloc functions, since those functions are now inline and
93141         now call us.
93142         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
93143         renaming described above.
93144         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
93145         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
93146         captures the dependency in AC_C_INLINE.
93148         New module canonicalize-lgpl, proposed by Charles Wilson in
93149         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
93150         with a few small changes afterwards.
93151         * MODULES.html.sh (File system functions): New module
93152         canonicalize-lgpl.
93153         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
93154         and canonicalize_file_name.
93155         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
93156         * modules/canonicalize-lgpl: New files.
93158 2006-11-05  Bruno Haible  <bruno@clisp.org>
93160         * gnulib-tool (func_import, func_create_testdir): Create directories
93161         also for files in subdirectories of lib/.
93163 2006-11-05  Bruno Haible  <bruno@clisp.org>
93165         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
93166         ANSI C compliant.
93168 2006-11-03  Bruno Haible  <bruno@clisp.org>
93170         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
93171         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
93172         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
93173         (xnboundedmalloc): New inline function.
93174         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
93175         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
93176         xmalloc.
93177         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
93178         xmalloc.
93179         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
93180         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
93181         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
93182         xmalloc.
93183         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
93184         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
93185         xmalloc.
93186         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
93187         gl_tree_add_after): Use XMALLOC instead of xmalloc.
93188         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
93189         xmalloc.
93190         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
93191         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
93192         gl_tree_add_after): Use XMALLOC instead of xmalloc.
93193         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
93194         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
93195         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
93196         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
93198 2006-11-03  Bruno Haible  <bruno@clisp.org>
93200         * lib/c-ctype.h [C++]: Define functions without name mangling.
93201         * lib/fwriteerror.h [C++]: Likewise.
93202         * lib/gcd.h [C++]: Likewise.
93203         * lib/linebreak.h [C++]: Likewise.
93205 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
93207         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
93208         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
93209         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
93210         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
93211         Check for functions and headers just once.
93212         Check for declaration of canonicalize_file_name.
93213         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
93215 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
93217         * gnulib-tool (func_import): Fix typo in actioncmd.
93219 2006-11-02  Bruno Haible  <bruno@clisp.org>
93221         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
93222         newline sequence in the Makefile.am snippet as a space, like "make"
93223         does.
93224         Reported by Roger Persson <perrog@gmail.com>.
93226 2006-11-01  Bruno Haible  <bruno@clisp.org>
93228         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
93229         already declared in <string.h>.
93230         * lib/strcase.h (strncasecmp): Don't declare it if yes.
93232 2006-11-01  Bruno Haible  <bruno@clisp.org>
93234         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
93235         * lib/strcase.h: Include <string.h>.
93236         (strcasecmp): Define to rpl_strcasecmp here.
93238 2006-11-01  Bruno Haible  <bruno@clisp.org>
93240         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
93242 2006-11-01  Eric Blake  <ebb9@byu.net>
93244         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
93246         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
93248 2006-10-29  Bruno Haible  <bruno@clisp.org>
93250         Make it compile in C++ mode.
93251         * lib/full-write.c (full_rw): Add a cast.
93253 2006-11-01  Bruno Haible  <bruno@clisp.org>
93255         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
93256         be POSIX compliant.
93257         Reported by Roger Persson <perrog@gmail.com>.
93259 2006-11-01  Eric Blake  <ebb9@byu.net>
93261         * lib/getopt_.h: Fix comments.
93263 2006-10-31  Eric Blake  <ebb9@byu.net>
93265         * modules/tmpdir (Depends-on): Add sys_stat.
93266         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
93267         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
93268         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
93269         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
93270         tempname.
93272 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
93274         Avoid some C++ diagnostics reported by Bruno Haible.
93275         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
93276         xmalloc.
93277         (quotearg_alloc): Use xcharalloc rather than xmalloc.
93278         (struct slotvec): Move to top level.
93279         (quotearg_n_options): Rewrite to avoid xmalloc.
93280         * lib/xalloc.h (xcharalloc): New function.
93281         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
93282         [defined __cplusplus]: Add function template that provides result
93283         type propagation.  This part of the change is from Bruno Haible.
93285 2006-10-29  Bruno Haible  <bruno@clisp.org>
93287         Make it compile in C++ mode.
93288         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
93289         * lib/strnlen1.c (strnlen1): Cast memchr result.
93290         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
93291         * lib/clean-temp.c (string_equals, string_hash): Add casts.
93292         (create_temp_dir): Rename local variable 'template'.
93293         (compile_csharp_using_sscli): Add cast.
93294         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
93295         * lib/findprog.c (find_in_path): Likewise.
93296         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
93297         * lib/wait-process.c (register_slave_subprocess): Likewise.
93299 2006-10-22  Bruno Haible  <bruno@clisp.org>
93301         * modules/tsearch: New file.
93302         * lib/tsearch.h: New file.
93303         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
93304         * m4/tsearch.m4: New file.
93305         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
93307 2006-10-29  Eric Blake  <ebb9@byu.net>
93309         * lib/arcfour.c: Assume config.h.
93310         * lib/arctwo.c: Likewise.
93311         * lib/base64.c: Likewise.
93312         * lib/check-version.c: Likewise.
93313         * lib/crc.c: Likewise.
93314         * lib/des.c: Likewise.
93315         * lib/gc-gnulib.c: Likewise.
93316         * lib/gc-libgcrypt.c: Likewise.
93317         * lib/gc-pbkdf2-sha1.c: Likewise.
93318         * lib/getaddrinfo.c: Likewise.
93319         * lib/getdelim.c: Likewise.
93320         * lib/getline.c: Likewise.
93321         * lib/hmac-md5.c: Likewise.
93322         * lib/hmac-sha1.c: Likewise.
93323         * lib/iconvme.c: Likewise.
93324         * lib/md2.c: Likewise.
93325         * lib/md4.c: Likewise.
93326         * lib/memxor.c: Likewise.
93327         * lib/read-file.c: Likewise.
93328         * lib/readline.c: Likewise.
93329         * lib/rijndael-alg-fst.c: Likewise.
93330         * lib/rijndael-api-fst.c: Likewise.
93331         * lib/xgetdomainname.c: Likewise.
93333 2006-10-28  Eric Blake  <ebb9@byu.net>
93335         * lib/xstrndup.c: Assume config.h.
93337 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
93339         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
93340         stat-macros.h is now for our own macros, whereas stat_h is for
93341         macros in the <sys/stat.h> name space.
93342         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
93343         (STAT_MACROS_H): Remove.
93344         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
93345         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
93346         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
93347         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
93348         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
93349         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
93350         Move these macros to ...
93351         * lib/stat_.h: here.  Don't include stat-macros.h.
93352         * lib/canonicalize.c: Don't include stat-macros.h.
93353         * lib/chown.c: Likewise.
93354         * lib/euidaccess.c: Likewise.
93355         * lib/file-type.c: Likewise.
93356         * lib/filemode.c: Likewise.
93357         * lib/glob.c: Likewise.
93358         * lib/isapipe.c: Likewise.
93359         * lib/lchown.c: Likewise.
93360         * lib/lstat.c: Likewise.
93361         * lib/mkdir-p.c: Likewise.
93362         * lib/rmdir.c: Likewise.
93363         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
93364         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
93365         unless mkdir isn't declared, to speed up 'configure'.
93366         Always create sys/stat.h, since it's unlikely any real sys/stat.h
93367         would define all the S_* symbols.
93368         * modules/canonicalize (Depends-on):
93369         Depend on sys_stat, not stat-macros.
93370         * modules/chown: Likewise.
93371         * modules/euidaccess: Likewise.
93372         * modules/filemode: Likewise.
93373         * modules/file-type: Likewise.
93374         * modules/glob: Likewise.
93375         * modules/isapipe: Likewise.
93376         * modules/lchown: Likewise.
93377         * modules/lstat: Likewise.
93378         * modules/mkancesdirs: Likewise.
93379         * modules/rmdir: Likewise.
93380         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
93381         * modules/modechange: Likewise.
93382         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
93383         (configure.ac): Remove gl_STAT_MACROS.
93384         * modules/sys_stat (Depends-on): Remove stat-macros.
93386 2006-10-27  Bruno Haible  <bruno@clisp.org>
93388         * m4/signed.m4: Remove file.
93389         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
93390         invocation.
93391         * modules/vasnprintf (Files): Remove m4/signed.m4.
93393 2006-10-27  Bruno Haible  <bruno@clisp.org>
93395         Update to GNU gettext 0.16.
93396         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
93397         m4/inttypes-h.m4, m4/signed.m4.
93398         * m4/gettext.m4: Update to GNU gettext 0.16.
93399         * m4/intl.m4: New file, from GNU gettext.
93400         * m4/intldir.m4: New file, from GNU gettext.
93401         * config/srclist.txt: Update
93403 2006-10-27  Eric Blake  <ebb9@byu.net>
93405         * MODULES.html.sh: Document tempname.
93406         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
93407         dependencies.
93408         (Files): Move lib/tempname.c...
93409         * modules/tempname: ...to this new module.
93410         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
93411         (gl_PREREQ_TEMPNAME): Move...
93412         * m4/tempname.m4: ...to this new file.
93413         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
93414         * modules/sys_stat (Depends-on): Add stat-macros.
93415         * lib/stat_.h (includes): Pick up stat macros.
93416         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
93417         if stat macros are broken.
93418         * lib/tempname.c (includes): No need to include "stat-macros.h".
93419         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
93420         (direxists, __path_search) [!_LIBC]: Don't compile these in
93421         gnulib; the tmpdir module covers that.
93422         * lib/tempname.h: New file.
93424 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
93426         * COPYING: Explain how gnulib-tool converts licence headers.
93427         Almost all wording by Eric Blake.
93429 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
93431         * lib/mbchar.h (is_basic_table): Make read-only.
93432         * lib/mbchar.c (is_basic_table): Likewise.
93433         Reported by John Darrington.
93435 2006-10-25  Bruno Haible  <bruno@clisp.org>
93437         * lib/progname.h (set_program_name): Undefine before defining.
93439 2006-10-25  Bruno Haible  <bruno@clisp.org>
93441         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
93442         false for non-gcc C++ compilers.
93443         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
93445 2006-10-24  Bruno Haible  <bruno@clisp.org>
93447         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
93448         iconv implementations like Irix iconv.
93450 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
93452         * modules/vararrays: New file.
93453         * m4/vararrays.m4: New file, taken from diffutils.
93454         * MODULES.html.sh: New module vararrays.
93456 2006-10-24  Karl Berry  <karl@gnu.org>
93458         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
93459         Don't call GNU Unix.
93461 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93463         * users.txt: Add Libtool.
93465         Sync from Libtool:
93467         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
93469         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
93470         to gnulib's policy of including config.h unconditionally.
93472 2006-10-24  Bruno Haible  <bruno@clisp.org>
93474         * modules/wcwidth (Files): Add m4/wint_t.m4.
93475         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
93476         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
93478 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
93480         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
93481         to pacify GCC with some -W flags enabled.  Problem reported by
93482         Bruno Haible.
93484 2006-10-24  Jim Meyering  <jim@meyering.net>
93486         * MODULES.html.sh: Remove uinttostr.  It's not a module.
93487         Reported by Karl Berry.
93489 2006-10-23  Bruno Haible  <bruno@clisp.org>
93491         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
93493 2006-10-24  Bruno Haible  <bruno@clisp.org>
93495         * lib/gl_list.h: Use C comment style, not C++ comment style.
93497 2006-10-23  Eric Blake  <ebb9@byu.net>
93499         * lib/getaddrinfo.c (includes): Add missing include.
93501 2006-10-23  Bruno Haible  <bruno@clisp.org>
93502             Paul Eggert  <eggert@cs.ucla.edu>
93504         Ability to rename obstack_free.
93505         * lib/obstack.h (__obstack_free): New macro. Declare instead of
93506         obstack_free.
93507         (obstack_free): Invoke the __obstack_free macro.
93508         * lib/obstack.c (obstack_free): Use __obstack_free macro.
93510 2006-10-23  Bruno Haible  <bruno@clisp.org>
93511             Paul Eggert  <eggert@cs.ucla.edu>
93513         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
93514         __argc, __argv from the declaration. (They are defined as macros on
93515         mingw.)
93517 2006-10-22  Bruno Haible  <bruno@clisp.org>
93519         * doc/gnulib-intro.texi: New file.
93520         * doc/gnulib.texi: Include it.
93522 2006-10-21  Bruno Haible  <bruno@clisp.org>
93524         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
93525         "Introduction", "Miscellanous Notes", "Particular Modules".
93527 2006-10-21  Bruno Haible  <bruno@clisp.org>
93529         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
93530         Change mostlyclean-local rule to avoid sh syntax error from bash
93531         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
93533 2006-10-23  Jim Meyering  <jim@meyering.net>
93535         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
93536         in place of snprintf.
93538         * modules/inttostr (Files): Add lib/uinttostr.c.
93539         * lib/uinttostr.c (inttostr): New file/function.
93540         * lib/inttostr.h (uinttostr): Declare.
93541         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
93542         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
93543         Add uinttostr.
93544         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
93546 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
93548         * lib/canonicalize.c (ELOOP): Define if not already defined.
93549         Problem reported by Bruno Haible in
93550         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
93552 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
93554         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
93555         Problem reported by Perry Smith and Ville Laurikari.
93557         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
93558         uses.
93560 2006-10-19  Bruno Haible  <bruno@clisp.org>
93562         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
93563         for mingw.
93565 2006-10-19  Bruno Haible  <bruno@clisp.org>
93567         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
93568         Needed for mingw.
93570 2006-10-19  Bruno Haible  <bruno@clisp.org>
93572         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
93574 2006-10-19  Bruno Haible  <bruno@clisp.org>
93576         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
93577         it.
93579 2006-10-19  Bruno Haible  <bruno@clisp.org>
93581         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
93582         invocation.
93584 2006-10-19  Bruno Haible  <bruno@clisp.org>
93586         * gnulib-tool (func_create_testdir): Don't include ftruncate and
93587         mountlist by default.
93589 2006-10-16  Bruno Haible  <bruno@clisp.org>
93591         * lib/c-strstr.c: Include c-strstr.h.
93593 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
93595         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
93596         in a slash.
93598 2006-10-18  Bruno Haible  <bruno@clisp.org>
93600         * lib/lock.h [C++]: Wrap definitions in extern "C".
93602 2006-10-18  Bruno Haible  <bruno@clisp.org>
93604         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
93605         gl_LIBOBJS list.
93607 2006-10-18  Bruno Haible  <bruno@clisp.org>
93609         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
93611 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
93613         * lib/xstrtol.h: Include gettext.h.
93614         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
93615         Problem reported by Eric Blake.
93616         * modules/xstrtol (Depends-on): Add gettext-h.
93618 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
93620         * lib/strftime.c (advance): New macro.
93621         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
93622         incomplete type, so you can't add 0 to it.  Problem and patch
93623         reported by Eelco Dolstra for dietlibc.
93625 2006-10-18  Jim Meyering  <jim@meyering.net>
93627         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
93628         type for a local, and rename it: s/up/user_proc/.
93630 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
93632         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
93633         READ_UTMP_USER_PROCESS.
93634         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
93636 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
93638         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
93639         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
93641 2006-10-17  Eric Blake  <ebb9@byu.net>
93643         * lib/sigprocmask.c (sigprocmask): Fix typo.
93645         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
93647         * modules/clean-temp (Makefile.am): Don't add to make output...
93648         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
93649         config.h.
93651 2006-10-17  Bruno Haible  <bruno@clisp.org>
93653         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
93654         differently if DEFAULT_TEXT_DOMAIN is set.
93656 2006-10-16  Bruno Haible  <bruno@clisp.org>
93658         * lib/clean-temp.c: Include fwriteerror.h.
93660 2006-10-16  Bruno Haible  <bruno@clisp.org>
93662         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
93664 2006-10-16  Bruno Haible  <bruno@clisp.org>
93666         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
93667         * lib/sigprocmask.h: Include <sys/types.h>.
93668         (sigset_t): Use the system's definition if present.
93670 2006-10-17  Eric Blake  <ebb9@byu.net>
93672         * lib/xvasprintf.c (includes): Assume config.h.
93673         * lib/xasprintf.c (includes): Likewise.
93675 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
93677         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
93678         at least as wide as intmax_t.
93680 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
93682         (Imported from Automake.)
93683         * build-aux/gnupload: Update to version 1.1 of directive file.
93685 2006-10-16  Eric Blake  <ebb9@byu.net>
93687         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
93688         match Automake 1.10a.
93690 2006-10-14  Bruno Haible  <bruno@clisp.org>
93692         * modules/sigprocmask: New file.
93693         * lib/sigprocmask.h: New file.
93694         * lib/sigprocmask.c: New file.
93695         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
93696         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
93697         request sigprocmask.o.
93698         (gl_PREREQ_SIGPROCMASK): New macro.
93699         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
93700         (Depends-on): Add sigprocmask.
93701         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
93702         gt_SIGNALBLOCKING. Test for 'raise' only once.
93703         * lib/fatal-signal.c: Include sigprocmask.h.
93704         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
93705         unblock_fatal_signals): Define always.
93706         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
93707         sigprocmask.
93709 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
93711         Sync from Automake.
93712         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
93713         which incorrectly sets the mode of an existing destination
93714         directory.  In some cases the unpatched install-sh could do the
93715         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
93716         system.  We hope this is rare in practice, but it's clearly worth
93717         fixing.  Problem reported by Alex Unleashed in
93718         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
93719         Also, don't bother to check for -m bugs unless we're using -m;
93720         suggested by Stepan Kasal.
93722 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93724         Sync from Automake.
93725         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
93726         `-c' flag, so they appear at the same position as in %FASTDEP%
93727         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
93728         which ignores unknown options only after the first non-option.
93729         Bug report against M4 by Nelson H. F. Beebe.
93731 2006-10-13  Jim Meyering  <jim@meyering.net>
93733         Fix a bug in yesterday's change.
93734         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
93735         p->fts_statp->st_dev would be used uninitialized.
93736         Ensures that we always call fts_stat on the very first entry.
93737         Miklos Szeredi reported that find -xdev stopped working.
93739 2006-10-12  Bruno Haible  <bruno@clisp.org>
93741         * gnulib-tool (func_get_automake_snippet): Append an automatically
93742         computed EXTRA_DIST augmentation.
93743         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
93744         * modules/alloca-opt (Makefile.am): Likewise.
93745         * modules/allocsa (Makefile.am): Likewise.
93746         * modules/arcfour (Makefile.am): Likewise.
93747         * modules/arctwo (Makefile.am): Likewise.
93748         * modules/argmatch (Makefile.am): Likewise.
93749         * modules/argz (Makefile.am): Likewise.
93750         * modules/atexit (Makefile.am): Likewise.
93751         * modules/backupfile (Makefile.am): Likewise.
93752         * modules/byteswap (Makefile.am): Likewise.
93753         * modules/c-strtod (Makefile.am): Likewise.
93754         * modules/c-strtold (Makefile.am): Likewise.
93755         * modules/calloc (Makefile.am): Likewise.
93756         * modules/canon-host (Makefile.am): Likewise.
93757         * modules/canonicalize (Makefile.am): Likewise.
93758         * modules/chdir-long (Makefile.am): Likewise.
93759         * modules/chdir-safer (Makefile.am): Likewise.
93760         * modules/check-version (Makefile.am): Likewise.
93761         * modules/chown (Makefile.am): Likewise.
93762         * modules/cloexec (Makefile.am): Likewise.
93763         * modules/close-stream (Makefile.am): Likewise.
93764         * modules/closeout (Makefile.am): Likewise.
93765         * modules/crc (Makefile.am): Likewise.
93766         * modules/csharpexec (Makefile.am): Likewise.
93767         * modules/cycle-check (Makefile.am): Likewise.
93768         * modules/des (Makefile.am): Likewise.
93769         * modules/dev-ino (Makefile.am): Likewise.
93770         * modules/dirfd (Makefile.am): Likewise.
93771         * modules/dirname (Makefile.am): Likewise.
93772         * modules/dup2 (Makefile.am): Likewise.
93773         * modules/eealloc (Makefile.am): Likewise.
93774         * modules/error (Makefile.am): Likewise.
93775         * modules/euidaccess (Makefile.am): Likewise.
93776         * modules/exclude (Makefile.am): Likewise.
93777         * modules/exitfail (Makefile.am): Likewise.
93778         * modules/fcntl-safer (Makefile.am): Likewise.
93779         * modules/fcntl (Makefile.am): Likewise.
93780         * modules/file-type (Makefile.am): Likewise.
93781         * modules/fileblocks (Makefile.am): Likewise.
93782         * modules/filemode (Makefile.am): Likewise.
93783         * modules/filenamecat (Makefile.am): Likewise.
93784         * modules/fnmatch (Makefile.am): Likewise.
93785         * modules/fopen-safer (Makefile.am): Likewise.
93786         * modules/fpending (Makefile.am): Likewise.
93787         * modules/fprintftime (Makefile.am): Likewise.
93788         * modules/free (Makefile.am): Likewise.
93789         * modules/fsusage (Makefile.am): Likewise.
93790         * modules/ftruncate (Makefile.am): Likewise.
93791         * modules/fts (Makefile.am): Likewise.
93792         * modules/gc-arcfour (Makefile.am): Likewise.
93793         * modules/gc-des (Makefile.am): Likewise.
93794         * modules/gc-hmac-md5 (Makefile.am): Likewise.
93795         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
93796         * modules/gc-md4 (Makefile.am): Likewise.
93797         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
93798         * modules/gc-sha1 (Makefile.am): Likewise.
93799         * modules/gc (Makefile.am): Likewise.
93800         * modules/getaddrinfo (Makefile.am): Likewise.
93801         * modules/getcwd (Makefile.am): Likewise.
93802         * modules/getdelim (Makefile.am): Likewise.
93803         * modules/getdomainname (Makefile.am): Likewise.
93804         * modules/getgroups (Makefile.am): Likewise.
93805         * modules/gethostname (Makefile.am): Likewise.
93806         * modules/gethrxtime (Makefile.am): Likewise.
93807         * modules/getline (Makefile.am): Likewise.
93808         * modules/getloadavg (Makefile.am): Likewise.
93809         * modules/getlogin_r (Makefile.am): Likewise.
93810         * modules/getndelim2 (Makefile.am): Likewise.
93811         * modules/getopt (Makefile.am): Likewise.
93812         * modules/getpagesize (Makefile.am): Likewise.
93813         * modules/getpass-gnu (Makefile.am): Likewise.
93814         * modules/getpass (Makefile.am): Likewise.
93815         * modules/getsubopt (Makefile.am): Likewise.
93816         * modules/gettime (Makefile.am): Likewise.
93817         * modules/gettimeofday (Makefile.am): Likewise.
93818         * modules/getugroups (Makefile.am): Likewise.
93819         * modules/getusershell (Makefile.am): Likewise.
93820         * modules/glob (Makefile.am): Likewise.
93821         * modules/group-member (Makefile.am): Likewise.
93822         * modules/hard-locale (Makefile.am): Likewise.
93823         * modules/hash (Makefile.am): Likewise.
93824         * modules/hmac-md5 (Makefile.am): Likewise.
93825         * modules/hmac-sha1 (Makefile.am): Likewise.
93826         * modules/human (Makefile.am): Likewise.
93827         * modules/idcache (Makefile.am): Likewise.
93828         * modules/imaxabs (Makefile.am): Likewise.
93829         * modules/imaxdiv (Makefile.am): Likewise.
93830         * modules/inet_ntop (Makefile.am): Likewise.
93831         * modules/inet_pton (Makefile.am): Likewise.
93832         * modules/intprops (Makefile.am): Likewise.
93833         * modules/inttostr (Makefile.am): Likewise.
93834         * modules/inttypes (Makefile.am): Likewise.
93835         * modules/isapipe (Makefile.am): Likewise.
93836         * modules/javaversion (Makefile.am): Likewise.
93837         * modules/lchmod (Makefile.am): Likewise.
93838         * modules/lchown (Makefile.am): Likewise.
93839         * modules/localcharset (Makefile.am): Likewise.
93840         * modules/long-options (Makefile.am): Likewise.
93841         * modules/lstat (Makefile.am): Likewise.
93842         * modules/malloc (Makefile.am): Likewise.
93843         * modules/mathl (Makefile.am): Likewise.
93844         * modules/mbchar (Makefile.am): Likewise.
93845         * modules/md2 (Makefile.am): Likewise.
93846         * modules/md4 (Makefile.am): Likewise.
93847         * modules/md5 (Makefile.am): Likewise.
93848         * modules/memcasecmp (Makefile.am): Likewise.
93849         * modules/memchr (Makefile.am): Likewise.
93850         * modules/memcmp (Makefile.am): Likewise.
93851         * modules/memcoll (Makefile.am): Likewise.
93852         * modules/memcpy (Makefile.am): Likewise.
93853         * modules/memmem (Makefile.am): Likewise.
93854         * modules/memmove (Makefile.am): Likewise.
93855         * modules/mempcpy (Makefile.am): Likewise.
93856         * modules/memrchr (Makefile.am): Likewise.
93857         * modules/memset (Makefile.am): Likewise.
93858         * modules/memxor (Makefile.am): Likewise.
93859         * modules/mkancesdirs (Makefile.am): Likewise.
93860         * modules/mkdir-p (Makefile.am): Likewise.
93861         * modules/mkdir (Makefile.am): Likewise.
93862         * modules/mkdtemp (Makefile.am): Likewise.
93863         * modules/mkstemp (Makefile.am): Likewise.
93864         * modules/mktime (Makefile.am): Likewise.
93865         * modules/modechange (Makefile.am): Likewise.
93866         * modules/mountlist (Makefile.am): Likewise.
93867         * modules/nanosleep (Makefile.am): Likewise.
93868         * modules/obstack (Makefile.am): Likewise.
93869         * modules/openat (Makefile.am): Likewise.
93870         * modules/pagealign_alloc (Makefile.am): Likewise.
93871         * modules/pathmax (Makefile.am): Likewise.
93872         * modules/physmem (Makefile.am): Likewise.
93873         * modules/poll (Makefile.am): Likewise.
93874         * modules/posixtm (Makefile.am): Likewise.
93875         * modules/posixver (Makefile.am): Likewise.
93876         * modules/putenv (Makefile.am): Likewise.
93877         * modules/quote (Makefile.am): Likewise.
93878         * modules/quotearg (Makefile.am): Likewise.
93879         * modules/raise (Makefile.am): Likewise.
93880         * modules/read-file (Makefile.am): Likewise.
93881         * modules/readline (Makefile.am): Likewise.
93882         * modules/readlink (Makefile.am): Likewise.
93883         * modules/readtokens (Makefile.am): Likewise.
93884         * modules/readutmp (Makefile.am): Likewise.
93885         * modules/realloc (Makefile.am): Likewise.
93886         * modules/regex (Makefile.am): Likewise.
93887         * modules/rename-dest-slash (Makefile.am): Likewise.
93888         * modules/rename (Makefile.am): Likewise.
93889         * modules/rijndael (Makefile.am): Likewise.
93890         * modules/rmdir (Makefile.am): Likewise.
93891         * modules/rpmatch (Makefile.am): Likewise.
93892         * modules/safe-read (Makefile.am): Likewise.
93893         * modules/safe-write (Makefile.am): Likewise.
93894         * modules/same-inode (Makefile.am): Likewise.
93895         * modules/same (Makefile.am): Likewise.
93896         * modules/save-cwd (Makefile.am): Likewise.
93897         * modules/savedir (Makefile.am): Likewise.
93898         * modules/setenv (Makefile.am): Likewise.
93899         * modules/settime (Makefile.am): Likewise.
93900         * modules/sha1 (Makefile.am): Likewise.
93901         * modules/sig2str (Makefile.am): Likewise.
93902         * modules/snprintf (Makefile.am): Likewise.
93903         * modules/stat-macros (Makefile.am): Likewise.
93904         * modules/stat-time (Makefile.am): Likewise.
93905         * modules/stdbool (Makefile.am): Likewise.
93906         * modules/stdint (Makefile.am): Likewise.
93907         * modules/stdlib-safer (Makefile.am): Likewise.
93908         * modules/stpcpy (Makefile.am): Likewise.
93909         * modules/stpncpy (Makefile.am): Likewise.
93910         * modules/strcase (Makefile.am): Likewise.
93911         * modules/strcasestr (Makefile.am): Likewise.
93912         * modules/strchrnul (Makefile.am): Likewise.
93913         * modules/strcspn (Makefile.am): Likewise.
93914         * modules/strdup (Makefile.am): Likewise.
93915         * modules/strerror (Makefile.am): Likewise.
93916         * modules/strftime (Makefile.am): Likewise.
93917         * modules/strndup (Makefile.am): Likewise.
93918         * modules/strnlen (Makefile.am): Likewise.
93919         * modules/strpbrk (Makefile.am): Likewise.
93920         * modules/strsep (Makefile.am): Likewise.
93921         * modules/strstr (Makefile.am): Likewise.
93922         * modules/strtod (Makefile.am): Likewise.
93923         * modules/strtoimax (Makefile.am): Likewise.
93924         * modules/strtok_r (Makefile.am): Likewise.
93925         * modules/strtol (Makefile.am): Likewise.
93926         * modules/strtoll (Makefile.am): Likewise.
93927         * modules/strtoul (Makefile.am): Likewise.
93928         * modules/strtoull (Makefile.am): Likewise.
93929         * modules/strtoumax (Makefile.am): Likewise.
93930         * modules/strverscmp (Makefile.am): Likewise.
93931         * modules/sys_socket (Makefile.am): Likewise.
93932         * modules/sys_stat (Makefile.am): Likewise.
93933         * modules/sysexits (Makefile.am): Likewise.
93934         * modules/time_r (Makefile.am): Likewise.
93935         * modules/timegm (Makefile.am): Likewise.
93936         * modules/timespec (Makefile.am): Likewise.
93937         * modules/tmpfile-safer (Makefile.am): Likewise.
93938         * modules/trim (Makefile.am): Likewise.
93939         * modules/unistd-safer (Makefile.am): Likewise.
93940         * modules/unlinkdir (Makefile.am): Likewise.
93941         * modules/unlocked-io (Makefile.am): Likewise.
93942         * modules/userspec (Makefile.am): Likewise.
93943         * modules/utime (Makefile.am): Likewise.
93944         * modules/utimecmp (Makefile.am): Likewise.
93945         * modules/utimens (Makefile.am): Likewise.
93946         * modules/vasnprintf (Makefile.am): Likewise.
93947         * modules/vasprintf (Makefile.am): Likewise.
93948         * modules/vsnprintf (Makefile.am): Likewise.
93949         * modules/xalloc (Makefile.am): Likewise.
93950         * modules/xgetcwd (Makefile.am): Likewise.
93951         * modules/xnanosleep (Makefile.am): Likewise.
93952         * modules/xreadlink (Makefile.am): Likewise.
93953         * modules/xstrtod (Makefile.am): Likewise.
93954         * modules/xstrtol (Makefile.am): Likewise.
93955         * modules/xstrtold (Makefile.am): Likewise.
93956         * modules/yesno (Makefile.am): Likewise.
93957         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
93959 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
93961         * modules/error (Makefile.am): Distribute files through
93962         EXTRA_DIST, not lib_SOURCES.
93964 2006-10-12  Eric Blake  <ebb9@byu.net>
93966         * modules/error (Makefile.am): Distribute files in /lib.
93967         * modules/obstack (Makefile.am): Likewise.
93969 2006-10-12  Bruno Haible  <bruno@clisp.org>
93971         * modules/acl (Makefile.am): Distribute all files in lib/ through
93972         EXTRA_DIST.
93973         * modules/arcfour (Makefile.am): Likewise.
93974         * modules/arctwo (Makefile.am): Likewise.
93975         * modules/argmatch (Makefile.am): Likewise.
93976         * modules/argz (Makefile.am): Likewise.
93977         * modules/atexit (Makefile.am): Likewise.
93978         * modules/backupfile (Makefile.am): Likewise.
93979         * modules/c-strtod (Makefile.am): Likewise.
93980         * modules/c-strtold (Makefile.am): Likewise.
93981         * modules/calloc (Makefile.am): Likewise.
93982         * modules/canon-host (Makefile.am): Likewise.
93983         * modules/canonicalize (Makefile.am): Likewise.
93984         * modules/chdir-long (Makefile.am): Likewise.
93985         * modules/chdir-safer (Makefile.am): Likewise.
93986         * modules/check-version (Makefile.am): Likewise.
93987         * modules/chown (Makefile.am): Likewise.
93988         * modules/cloexec (Makefile.am): Likewise.
93989         * modules/close-stream (Makefile.am): Likewise.
93990         * modules/closeout (Makefile.am): Likewise.
93991         * modules/crc (Makefile.am): Likewise.
93992         * modules/cycle-check (Makefile.am): Likewise.
93993         * modules/des (Makefile.am): Likewise.
93994         * modules/dirfd (Makefile.am): Likewise.
93995         * modules/dirname (Makefile.am): Likewise.
93996         * modules/dup2 (Makefile.am): Likewise.
93997         * modules/euidaccess (Makefile.am): Likewise.
93998         * modules/exclude (Makefile.am): Likewise.
93999         * modules/exitfail (Makefile.am): Likewise.
94000         * modules/fcntl-safer (Makefile.am): Likewise.
94001         * modules/file-type (Makefile.am): Likewise.
94002         * modules/fileblocks (Makefile.am): Likewise.
94003         * modules/filemode (Makefile.am): Likewise.
94004         * modules/filenamecat (Makefile.am): Likewise.
94005         * modules/fnmatch (Makefile.am): Likewise.
94006         * modules/fopen-safer (Makefile.am): Likewise.
94007         * modules/fpending (Makefile.am): Likewise.
94008         * modules/fprintftime (Makefile.am): Likewise.
94009         * modules/free (Makefile.am): Likewise.
94010         * modules/fsusage (Makefile.am): Likewise.
94011         * modules/ftruncate (Makefile.am): Likewise.
94012         * modules/fts (Makefile.am): Likewise.
94013         * modules/gc (Makefile.am): Likewise.
94014         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
94015         * modules/getaddrinfo (Makefile.am): Likewise.
94016         * modules/getcwd (Makefile.am): Likewise.
94017         * modules/getdelim (Makefile.am): Likewise.
94018         * modules/getdomainname (Makefile.am): Likewise.
94019         * modules/getgroups (Makefile.am): Likewise.
94020         * modules/gethostname (Makefile.am): Likewise.
94021         * modules/gethrxtime (Makefile.am): Likewise.
94022         * modules/getline (Makefile.am): Likewise.
94023         * modules/getloadavg (Makefile.am): Likewise.
94024         * modules/getlogin_r (Makefile.am): Likewise.
94025         * modules/getopt (Makefile.am): Likewise.
94026         * modules/getpass (Makefile.am): Likewise.
94027         * modules/getpass-gnu (Makefile.am): Likewise.
94028         * modules/getsubopt (Makefile.am): Likewise.
94029         * modules/gettime (Makefile.am): Likewise.
94030         * modules/gettimeofday (Makefile.am): Likewise.
94031         * modules/getugroups (Makefile.am): Likewise.
94032         * modules/getusershell (Makefile.am): Likewise.
94033         * modules/glob (Makefile.am): Likewise.
94034         * modules/group-member (Makefile.am): Likewise.
94035         * modules/hard-locale (Makefile.am): Likewise.
94036         * modules/hash (Makefile.am): Likewise.
94037         * modules/hmac-md5 (Makefile.am): Likewise.
94038         * modules/hmac-sha1 (Makefile.am): Likewise.
94039         * modules/human (Makefile.am): Likewise.
94040         * modules/idcache (Makefile.am): Likewise.
94041         * modules/imaxabs (Makefile.am): Likewise.
94042         * modules/imaxdiv (Makefile.am): Likewise.
94043         * modules/inet_ntop (Makefile.am): Likewise.
94044         * modules/inet_pton (Makefile.am): Likewise.
94045         * modules/inttostr (Makefile.am): Likewise.
94046         * modules/isapipe (Makefile.am): Likewise.
94047         * modules/lchown (Makefile.am): Likewise.
94048         * modules/long-options (Makefile.am): Likewise.
94049         * modules/lstat (Makefile.am): Likewise.
94050         * modules/malloc (Makefile.am): Likewise.
94051         * modules/mathl (Makefile.am): Likewise.
94052         * modules/mbchar (Makefile.am): Likewise.
94053         * modules/md2 (Makefile.am): Likewise.
94054         * modules/md4 (Makefile.am): Likewise.
94055         * modules/md5 (Makefile.am): Likewise.
94056         * modules/memcasecmp (Makefile.am): Likewise.
94057         * modules/memchr (Makefile.am): Likewise.
94058         * modules/memcmp (Makefile.am): Likewise.
94059         * modules/memcoll (Makefile.am): Likewise.
94060         * modules/memcpy (Makefile.am): Likewise.
94061         * modules/memmem (Makefile.am): Likewise.
94062         * modules/memmove (Makefile.am): Likewise.
94063         * modules/mempcpy (Makefile.am): Likewise.
94064         * modules/memrchr (Makefile.am): Likewise.
94065         * modules/memset (Makefile.am): Likewise.
94066         * modules/memxor (Makefile.am): Likewise.
94067         * modules/mkancesdirs (Makefile.am): Likewise.
94068         * modules/mkdir (Makefile.am): Likewise.
94069         * modules/mkdir-p (Makefile.am): Likewise.
94070         * modules/mkdtemp (Makefile.am): Likewise.
94071         * modules/mkstemp (Makefile.am): Likewise.
94072         * modules/mktime (Makefile.am): Likewise.
94073         * modules/modechange (Makefile.am): Likewise.
94074         * modules/mountlist (Makefile.am): Likewise.
94075         * modules/nanosleep (Makefile.am): Likewise.
94076         * modules/openat (Makefile.am): Likewise.
94077         * modules/pagealign_alloc (Makefile.am): Likewise.
94078         * modules/physmem (Makefile.am): Likewise.
94079         * modules/poll (Makefile.am): Likewise.
94080         * modules/posixtm (Makefile.am): Likewise.
94081         * modules/posixver (Makefile.am): Likewise.
94082         * modules/putenv (Makefile.am): Likewise.
94083         * modules/quote (Makefile.am): Likewise.
94084         * modules/quotearg (Makefile.am): Likewise.
94085         * modules/raise (Makefile.am): Likewise.
94086         * modules/read-file (Makefile.am): Likewise.
94087         * modules/readline (Makefile.am): Likewise.
94088         * modules/readlink (Makefile.am): Likewise.
94089         * modules/readtokens (Makefile.am): Likewise.
94090         * modules/readutmp (Makefile.am): Likewise.
94091         * modules/realloc (Makefile.am): Likewise.
94092         * modules/regex (Makefile.am): Likewise.
94093         * modules/rename (Makefile.am): Likewise.
94094         * modules/rename-dest-slash (Makefile.am): Likewise.
94095         * modules/rijndael (Makefile.am): Likewise.
94096         * modules/rmdir (Makefile.am): Likewise.
94097         * modules/rpmatch (Makefile.am): Likewise.
94098         * modules/safe-read (Makefile.am): Likewise.
94099         * modules/safe-write (Makefile.am): Likewise.
94100         * modules/same (Makefile.am): Likewise.
94101         * modules/save-cwd (Makefile.am): Likewise.
94102         * modules/savedir (Makefile.am): Likewise.
94103         * modules/setenv (Makefile.am): Likewise.
94104         * modules/settime (Makefile.am): Likewise.
94105         * modules/sha1 (Makefile.am): Likewise.
94106         * modules/sig2str (Makefile.am): Likewise.
94107         * modules/snprintf (Makefile.am): Likewise.
94108         * modules/stdlib-safer (Makefile.am): Likewise.
94109         * modules/stpcpy (Makefile.am): Likewise.
94110         * modules/stpncpy (Makefile.am): Likewise.
94111         * modules/strcase (Makefile.am): Likewise.
94112         * modules/strcasestr (Makefile.am): Likewise.
94113         * modules/strchrnul (Makefile.am): Likewise.
94114         * modules/strcspn (Makefile.am): Likewise.
94115         * modules/strdup (Makefile.am): Likewise.
94116         * modules/strerror (Makefile.am): Likewise.
94117         * modules/strftime (Makefile.am): Likewise.
94118         * modules/strndup (Makefile.am): Likewise.
94119         * modules/strnlen (Makefile.am): Likewise.
94120         * modules/strpbrk (Makefile.am): Likewise.
94121         * modules/strsep (Makefile.am): Likewise.
94122         * modules/strstr (Makefile.am): Likewise.
94123         * modules/strtod (Makefile.am): Likewise.
94124         * modules/strtoimax (Makefile.am): Likewise.
94125         * modules/strtok_r (Makefile.am): Likewise.
94126         * modules/strtol (Makefile.am): Likewise.
94127         * modules/strtoll (Makefile.am): Likewise.
94128         * modules/strtoul (Makefile.am): Likewise.
94129         * modules/strtoull (Makefile.am): Likewise.
94130         * modules/strtoumax (Makefile.am): Likewise.
94131         * modules/strverscmp (Makefile.am): Likewise.
94132         * modules/time_r (Makefile.am): Likewise.
94133         * modules/timegm (Makefile.am): Likewise.
94134         * modules/tmpfile-safer (Makefile.am): Likewise.
94135         * modules/unistd-safer (Makefile.am): Likewise.
94136         * modules/unlinkdir (Makefile.am): Likewise.
94137         * modules/userspec (Makefile.am): Likewise.
94138         * modules/utime (Makefile.am): Likewise.
94139         * modules/utimecmp (Makefile.am): Likewise.
94140         * modules/utimens (Makefile.am): Likewise.
94141         * modules/vasnprintf (Makefile.am): Likewise.
94142         * modules/vasprintf (Makefile.am): Likewise.
94143         * modules/vsnprintf (Makefile.am): Likewise.
94144         * modules/xalloc (Makefile.am): Likewise.
94145         * modules/xgetcwd (Makefile.am): Likewise.
94146         * modules/xnanosleep (Makefile.am): Likewise.
94147         * modules/xreadlink (Makefile.am): Likewise.
94148         * modules/xstrtod (Makefile.am): Likewise.
94149         * modules/xstrtol (Makefile.am): Likewise.
94150         * modules/xstrtold (Makefile.am): Likewise.
94151         * modules/yesno (Makefile.am): Likewise.
94153 2006-10-12  Jim Meyering  <jim@meyering.net>
94155         * m4/getloadavg.m4: Revert the change below.
94157         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
94158         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
94159         fail with a symlink, which is what coreutils' ./bootstrap now
94160         creates by default.
94162 2006-10-12  Bruno Haible  <bruno@clisp.org>
94164         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
94165         mingw.
94166         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
94167         MSVC and mingw explicitly.
94169 2006-10-11  Simon Josefsson  <jas@extundo.com>
94170             Bruno Haible  <bruno@clisp.org>
94172         Add support for multiple gnulib-tool invocations in the scope of a
94173         single configure.ac file.
94174         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
94175         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
94176         with the same contents as the _LIBADD variable.
94177         (func_emit_initmacro_start, func_emit_initmacro_end,
94178         func_emit_initmacro_done): New functions.
94179         (func_import, func_create_testdir): Invoke them. Allow the identifiers
94180         gl_LIBOBJS and gl_LTLIBOBJS.
94182 2006-10-11  Bruno Haible  <bruno@clisp.org>
94184         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
94185         (func_create_testdir): Don't create po/Makefile.am, don't invoke
94186         autoreconf. Instead, invoke autopoint explicitly but move back the
94187         *.m4 files from gnulib.
94189 2006-10-11  Bruno Haible  <bruno@clisp.org>
94191         * gnulib-tool (func_usage): Make module names after --create-testdir
94192         optional.
94193         (func_create_testdir): If no module was specified, use nearly all
94194         modules.
94196 2006-10-12  Jim Meyering  <jim@meyering.net>
94198         Big performance improvement for fts-based tools that use FTS_NOSTAT.
94199         Avoid spurious inode-mismatch problems on non-POSIX file systems.
94200         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
94201         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
94202         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
94203         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
94204         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
94205         (fts_set_stat_required): New function.
94206         (fts_open): Defer the calls to fts_stat, if possible or requested.
94207         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
94208         into fts_stat itself.
94209         (fts_read): Perform any required (deferred) fts_stat call.
94210         (fts_build): Likewise, for the directory we're about to open and read.
94211         In the readdir loop, carefully decide whether each entry will require
94212         an eventual call to fts_stat, using dirent.d_type info if available.
94213         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
94214         a command line argument into this function.  Update all callers.
94215         Map a return value of FTS_DOT to FTS_D for a command line argument.
94216         * modules/fts (Depends-on): Add d-type.  Alphabetize.
94217         Thanks to Miklos Szeredi for his tenacity and for the initial
94218         bug report about "find" failing on a FUSE-based file system.
94220         * lib/fts.c (fts_open): Use consistent indentation.
94222 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
94224         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
94225         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
94226         reported by Jim Meyering.  All uses of cache variables renamed
94227         to match Autoconf's.
94228         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
94229         the other one.
94231         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
94232         Fix misspelling in diagnostic.
94234 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
94236         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
94237         defined.  Problem reported by Matthew Woehlke.
94239         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
94240         Add support for Tandem NonStop R series.
94241         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
94242         Use new macro.
94244         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
94245         (has_trailing_slash): Omit size arg; all callers changed.
94246         Omit 'inline', since it doesn't help performance and we'd
94247         need to configure it.
94248         Don't count //, ///, etc. as having a trailing slash.
94249         As a side effect, this removes a C99ism reported by Matthew Woehlke.
94250         (rpl_rename_dest_slash): On failure, use rename's errno rather
94251         than (in some cases) an incorrect or junk errno.
94252         Simplify code by removing need to compute length; this does
94253         cause it to make two passes instead of one over the file name,
94254         but it's worth it.
94256         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
94257         change, since Autoconf's version may no longer be appropriate now
94258         that we are using CVS Autoconf's version.  Add support for Tandem.
94260 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
94261             Bruno Haible  <bruno@clisp.org>
94263         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
94264         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
94265         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
94266         gl_AC_TYPE_LONG_LONG.
94268         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
94269         instead of HAVE_LONG_LONG.
94270         * lib/printf-args.c (printf_fetchargs): Likewise.
94271         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
94272         * lib/vasnprintf.c (VASNPRINTF): Likewise.
94273         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
94274         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
94275         gl_AC_TYPE_LONG_LONG.
94277 2006-10-11  Bruno Haible  <bruno@clisp.org>
94279         * m4/longlong.m4: Add comments.
94280         * m4/ulonglong.m4: Likewise.
94282 2006-10-10  Bruno Haible  <bruno@clisp.org>
94284         Make it possible to #define stpcpy, strdup to aliases.
94285         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
94286         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
94288 2006-10-10  Bruno Haible  <bruno@clisp.org>
94290         Make it possible to #define gcd to an alias.
94291         * lib/gcd.c: Include config.h.
94293 2006-10-10  Bruno Haible  <bruno@clisp.org>
94295         Make it possible to #define c_isascii to an alias.
94296         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
94297         defined. Undefine the macros before defining them, to avoid gcc
94298         warnings.
94299         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
94300         define NO_C_CTYPE_MACROS early.
94302 2006-10-10  Bruno Haible  <bruno@clisp.org>
94304         Make it possible to #define set_program_name to an alias.
94305         * lib/progname.c: Don't undefine set_program_name; instead, undefine
94306         ENABLE_RELOCATABLE early.
94308 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
94310         Port to Tandem NSK OSS, which has 64-bit signed int but at most
94311         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
94312         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
94313         More generally, don't assume that 64-bit signed int is available
94314         if unsigned int is, and vice versa.
94315         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
94316         unsigned symbols, not on their signed counterparts.
94317         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
94318         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
94319         (UINT64_C, UINTMAX_C):
94320         Likewise.
94321         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
94322         unsigned counterparts.
94323         (Have_long_long, Unsigned): New macros.
94324         (Int): Renamed from INT.
94325         (strtoimax): Use the new macros.
94326         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
94327         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
94328         * modules/inttypes (inttypes.h): Substitute
94329         HAVE_UNSIGNED_LONG_LONG_INT.
94330         * modules/stdint (stdint.h): Likewise.
94331         (Files): Add m4/ulonglong.m4.
94333 2006-10-10  Bruno Haible  <bruno@clisp.org>
94335         Fix a gcc -Wshadow warning.
94336         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
94337         to 'bucket'.
94338         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
94339         gl_linked_indexof_from_to): Likewise.
94340         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
94341         Likewise.
94342         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
94343         Likewise.
94344         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
94345         Reported by Eric Blake.
94347 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
94349         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
94350         for NetBSD.  Problem reported by Bruno Haible.
94352 2006-10-09  Jim Meyering  <jim@meyering.net>
94354         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
94355         Patch from Bruno Haible.
94357 2006-10-09  Jim Meyering  <jim@meyering.net>
94359         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
94360         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
94361         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
94363 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
94365         Don't include <config.h> twice; this doesn't work in some cases,
94366         e.g., when config.h has "#define intmax_t long long int" and
94367         we include <config.h>, <inttypes.h>, <config.h> in that order.
94368         Problem reported by Matthew Woehlke in:
94369         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
94370         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
94371         * lib/fts-cycle.c: Don't include config.h.
94372         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
94373         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
94374         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
94375         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
94376         inttypes.h.
94377         * lib/xstrtoumax.c: Likewise.
94378         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
94379         __strtol and the like, so that this module is more like its siblings.
94380         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
94381         Remove; no longer needed now that we assume gnulib inttypes.h.
94383 2006-10-08  Bruno Haible  <bruno@clisp.org>
94385         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
94386         option.
94388 2006-10-07  Jim Meyering  <jim@meyering.net>
94390         * modules/inttypes (inttypes.h): Revert what seems to have been
94391         an inadvertent part of today's change: use "|", not "/" in the
94392         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
94394 2006-10-07  Bruno Haible  <bruno@clisp.org>
94396         * modules/sublist: New file.
94398 2006-10-07  Bruno Haible  <bruno@clisp.org>
94400         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
94401         * modules/argz (argz.h): Likewise.
94402         * modules/arpa_inet (arpa/inet.h): Likewise.
94403         * modules/byteswap (byteswap.h): Likewise.
94404         * modules/configmake (configmake.h): Likewise.
94405         * modules/fcntl (fcntl.h): Likewise.
94406         * modules/fnmatch (fnmatch.h): Likewise.
94407         * modules/getopt (getopt.h): Likewise.
94408         * modules/glob (glob.h): Likewise.
94409         * modules/inttypes (inttypes.h): Likewise.
94410         * modules/netinet_in (netinet/in.h): Likewise.
94411         * modules/poll (poll.h): Likewise.
94412         * modules/stdbool (stdbool.h): Likewise.
94413         * modules/stdint (stdint.h): Likewise.
94414         * modules/sys_select (sys/select.h): Likewise.
94415         * modules/sys_socket (sys/socket.h): Likewise.
94416         * modules/sys_stat (sys/stat.h): Likewise.
94417         * modules/sysexits (sysexits.h): Likewise.
94418         * modules/unistd (unistd.h): Likewise.
94419         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
94420         Add a "DO NOT EDIT" comment to the generated file.
94421         (func_import): Likewise for gnulib-comp.m4.
94423 2006-10-07  Bruno Haible  <bruno@clisp.org>
94425         * lib/gl_sublist.h: New file.
94426         * lib/gl_sublist.c: New file.
94428 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
94430         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
94431         name (relative to the original working directory) and the file
94432         name component (relative to the temporary working directory).  All
94433         callers changed.
94434         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
94435         * lib/mkdir-p.c (make_dir_parents): Likewise.
94436         * lib/mkdir-p.h (make_dir_parents): Likewise.
94438 2006-10-06  Eric Blake  <ebb9@byu.net>
94440         Define several macros for use by the clean-temp module.
94441         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
94442         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
94443         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
94445         * lib/clean-temp.h (close_stream_temp): New declaration.
94446         * lib/clean-temp.c (includes): Pull in headers according to what
94447         other modules are in use.
94448         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
94450 2006-10-06  Bruno Haible  <bruno@clisp.org>
94452         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
94453         instead of fopen, fwriteerror.
94455 2006-10-06  Bruno Haible  <bruno@clisp.org>
94457         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
94458         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
94459         int.
94460         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
94461         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
94462         Return an error indicator.
94463         Suggested by Eric Blake.
94465 2006-10-06  Bruno Haible  <bruno@clisp.org>
94467         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
94468         Reported by Eric Blake.
94470 2006-10-06  Bruno Haible  <bruno@clisp.org>
94472         * modules/closeout (Description): Mention stderr too.
94474 2006-10-06  Bruno Haible  <bruno@clisp.org>
94475         and Paul Eggert  <eggert@cs.ucla.edu>
94477         * lib/closeout.c (close_stdout): Also close stderr.
94478         * lib/closeout.h: Update comment.
94480 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
94482         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
94483         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
94484         * lib/dirchownmod.c: Include lchown.h.
94485         * lib/lchown.c: Don't include files that lchown.h now includes.
94486         Don't declare chown, since lchown.h now does that.
94487         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
94488         (lchown): Define to rpl_chown if lchown is declared but
94489         does not exist.  Declare using a prototype if lchown is not
94490         declared.  Add a copyright notice.
94491         * lib/mkstemp.h: Include <unistd.h>.
94492         * lib/openat.c: Include lchown.h.
94494         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
94495         we now test for that separately.
94496         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
94497         rather than O_NOFOLLOW, when testing whether it's possible to
94498         avoid a race condition reliably.
94499         * lib/savewd.c (savewd_chdir): Likewise.
94501         Remove macros that are no longer needed now that stdint.h is
94502         reliable.
94503         * lib/fsusage.c (UINTMAX_MAX): Remove.
94504         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
94505         * lib/utimecmp.c (SIZE_MAX): Remove.
94507         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
94509         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
94510         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
94511         O_NOATIME works.
94513 2006-10-05  Bruno Haible  <bruno@clisp.org>
94515         * lib/gl_list.h (gl_sortedlist_search_from_to,
94516         gl_sortedlist_indexof_from_to): New declarations.
94517         (gl_list_implementation): New fields sortedlist_search_from_to,
94518         sortedlist_indexof_from_to.
94519         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
94520         inline functions.
94521         * lib/gl_list.c (gl_sortedlist_search_from_to,
94522         gl_sortedlist_indexof_from_to): New functions.
94523         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
94524         function.
94525         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
94526         (gl_array_sortedlist_search_from_to): New function.
94527         (gl_array_list_implementation): Update.
94528         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
94529         function.
94530         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
94531         (gl_carray_sortedlist_search_from_to): New function.
94532         (gl_carray_list_implementation): Update.
94533         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
94534         gl_linked_sortedlist_indexof_from_to): New functions.
94535         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
94536         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
94537         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
94538         gl_tree_sortedlist_indexof_from_to): New functions.
94539         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
94540         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
94541         Update.
94542         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
94543         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
94544         Update.
94546 2006-10-05  Bruno Haible  <bruno@clisp.org>
94548         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
94549         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
94550         (struct gl_list_implementation): Add fields search_from_to,
94551         indexof_from_to. Remove fields search, indexof.
94552         (gl_list_search): Use the search_from_to method.
94553         (gl_list_search_from, gl_list_search_from_to): New functions.
94554         (gl_list_indexof): Use the indexof_from_to method.
94555         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
94556         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
94557         (gl_list_search_from, gl_list_search_from_to): New functions.
94558         (gl_list_indexof): Use the indexof_from_to method.
94559         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
94560         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
94561         gl_array_indexof. Add start_index, end_index arguments.
94562         (gl_array_search_from_to): Renamed from gl_array_search. Add
94563         start_index, end_index arguments.
94564         (gl_array_remove, gl_array_list_implementation): Update.
94565         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
94566         gl_carray_indexof. Add start_index, end_index arguments.
94567         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
94568         start_index, end_index arguments.
94569         (gl_carray_remove, gl_carray_list_implementation): Update.
94570         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
94571         gl_linked_search. Add start_index, end_index arguments.
94572         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
94573         start_index, end_index arguments.
94574         (gl_linked_remove): Update.
94575         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
94576         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
94577         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
94578         field to 'size_t'.
94579         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
94580         gl_tree_search. Add start_index, end_index arguments.
94581         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
94582         start_index, end_index arguments.
94583         (gl_tree_remove): Update.
94584         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
94585         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
94586         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
94587         function.
94588         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
94589         gl_tree_search. Add start_index, end_index arguments.
94590         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
94591         start_index, end_index arguments.
94592         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
94593         Update.
94594         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
94596 2006-10-05  Bruno Haible  <bruno@clisp.org>
94598         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
94600         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
94601         fwriteerror_temp): New declarations.
94602         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
94603         (descriptors): New variable.
94604         (cleanup): First, close the descriptors.
94605         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
94606         fclose_temp, fwriteerror_temp): New functions.
94608 2006-10-04  Jim Meyering  <jim@meyering.net>
94610         * lib/fts.c (fts_open): Tiny comment change.
94612 2006-10-04  Bruno Haible  <bruno@clisp.org>
94614         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
94615         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
94616         gl_LOCK_BODY.
94617         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
94618         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
94619         gl_LOCK_EARLY_BODY.
94620         (gl_LOCK): Require gl_LOCK_BODY.
94622 2006-10-04  Bruno Haible  <bruno@clisp.org>
94624         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
94625         (gl_oset_search_atleast): New declaration.
94626         (struct gl_oset_implementation): Add field 'search_atleast'.
94627         (gl_oset_search_atleast): New inline function.
94628         * lib/gl_oset.c (gl_oset_search_atleast): New function.
94629         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
94630         (gl_array_oset_implementation): Update.
94631         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
94632         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
94633         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
94635 2006-10-04  Bruno Haible  <bruno@clisp.org>
94637         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
94639 2006-10-03  Bruno Haible  <bruno@clisp.org>
94641         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
94642         from gl_avltreehash_list_implementation.
94644 2006-10-03  Bruno Haible  <bruno@clisp.org>
94646         * lib/gl_oset.c (gl_oset_add): Fix return type.
94648 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
94650         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
94652 2006-10-02  Eric Blake  <ebb9@byu.net>
94654         * modules/strnlen (Depends-on): Add extensions.
94656 2006-10-02  Eric Blake  <ebb9@byu.net>
94658         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
94659         definition in 2.60+.
94661 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
94663         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
94664         checks.
94666 2006-10-02  Bruno Haible  <bruno@clisp.org>
94668         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
94669         to the AUTOMAKE_OPTIONS.
94670         Reported by Jim Meyering.
94672 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
94674         Work around bug in Solaris 10 /proc file system:
94675         /proc/self/fd/NNN/.. isn't the parent directory of
94676         the directory whose file descriptor is NNN.  This needs to
94677         be worked around at run time, not compile time, since a
94678         program might be built on Solaris 8, where things work, and
94679         run on Solaris 10.
94680         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
94681         to use the following interface instead:
94682         (OPENAT_BUFFER_SIZE): New macro.
94683         (openat_proc_name): New function.
94684         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
94685         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
94686         Likewise.
94687         * lib/openat-proc.c: New file.
94688         * modules/openat (Files): Add lib/openat-proc.c.
94689         (Depends-on): Add same-inode, stdbool.
94690         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
94692 2006-09-29  Bruno Haible  <bruno@clisp.org>
94694         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
94695         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
94696         argument. Set stdout_closed before testing for ferror, not after.
94697         (fwriteerror, fwriteerror_no_ebadf): New functions.
94699 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94701         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
94703 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
94705         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
94706         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
94708 2006-09-28  Jim Meyering  <jim@meyering.net>
94710         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
94711         Include <unistd.h>.
94713 2006-09-28  Bruno Haible  <bruno@clisp.org>
94715         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
94716         * modules/linkedhash-list (Depends-on): Likewise.
94717         * modules/rbtreehash-list (Depends-on): Likewise.
94719 2006-09-28  Bruno Haible  <bruno@clisp.org>
94721         * lib/strndup.h: Simplify the redefinition of strndup.
94722         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
94723         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
94725 2006-09-28  Bruno Haible  <bruno@clisp.org>
94727         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
94728         * lib/gl_linkedhash_list.c: Likewise.
94729         * lib/gl_rbtreehash_list.c: Likewise.
94731 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
94733         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
94734         getaddrinfo.
94736         * lib/__fpending.h: Don't include <stdio_ext.h> unless
94737         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
94738         it causes <stdio_ext.h> to cause a compile-time error.
94739         Problem reported by Nelson H. F. Beebe.
94740         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
94741         of HAVE_DECL___PENDING.
94743         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
94744         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
94745         declaration.
94747 2006-09-27  Jim Meyering  <jim@meyering.net>
94749         This file could end up with a definition for a function
94750         named __strndup, rather than rpl_strndup on a system with
94751         incomplete weak_alias support.
94752         * lib/strndup.c (strndup): Rename from __strndup.
94753         Remove #defines that used to map __strndup to strndup.
94754         Don't use K&R prototypes.
94755         Remove LIBC-related code, since this file is not sync'd with glibc.
94756         * lib/strndup.h: Revamp, accordingly.
94757         * m4/strndup.m4: Modernize.
94759 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
94761         * modules/savewd (Depends-on): Add 'raise'.
94762         * lib/savewd.c: Include <signal.h>, for 'raise'.
94764 2006-09-26  Jim Meyering  <jim@meyering.net>
94766         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
94767         when we detect Darwin 8.7.0's acl_get_file bug.
94768         Rearrange to perform the new (below) run-test while $LIBS
94769         contains any acl-related library.  Set USE_ACL at the end.
94770         (gl_ACL_GET_FILE): New function.
94772 2006-09-26  Eric Blake  <ebb9@byu.net>
94774         * lib/verror.c: Include <config.h> unconditionally.
94776 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
94778         * modules/clock-time (Maintainer): Add self.
94779         * modules/getlogin_r (Depends-on): Add extensions.
94781 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94783         * modules/clock-time: New module.
94784         * modules/nanosleep (Depends-on): Add clock-time.
94785         * modules/gethrxtime (Depends-on): Likewise.
94786         * modules/gettime (Depends-on): Likewise.
94787         * modules/settime (Depends-on): Likewise.
94789         * modules/fts-lgpl: Depend on openat.
94790         * modules/mkancesdirs: Depend on savewd.
94791         * modules/mkdir-p: Likewise.
94793 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94795         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
94797         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
94798         `gl_have_arbitrary_file_name_length_limit' to
94799         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
94800         actually works between configure runs.
94802 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94803             Bruno Haible  <bruno@clisp.org>
94805         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
94807 2006-09-25  Jim Meyering  <jim@meyering.net>
94809         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
94810         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
94812 2006-09-25  Eric Blake  <ebb9@byu.net>
94814         * gnulib-tool (func_import, func_create_testdir): Fix typos in
94815         exec's in 2006-09-18 patch when shuffling fds.
94817 2006-09-25  Bruno Haible  <bruno@clisp.org>
94819         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
94820         Reported by Jim Meyering.
94822 2006-09-24  Jim Meyering  <jim@meyering.net>
94824         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
94825         compare a pointer against a literal "0".  That caused failures with
94826         at least HP-UX's hpcc.
94828 2006-09-22  Simon Josefsson  <jas@extundo.com>
94830         * modules/gc-sha1:
94831         * modules/gc-md4:
94832         * modules/gc-hmac-sha1:
94833         * modules/gc-hmac-md5:
94834         * modules/gc-des:
94835         * modules/gc-arcfour: Distribute more files.
94837 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94839         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
94840         (gl_linked_iterator_from_to): Initialize struct completely.
94841         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
94842         (gl_tree_iterator_from_to): Likewise
94843         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
94844         * lib/gl_array_list.c [lint] (gl_array_iterator)
94845         (gl_array_iterator_from_to): Likewise.
94846         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
94847         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
94848         (gl_carray_iterator_from_to): Likewise.
94850         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
94851         * lib/md4.c (md4_process_block): Remove unused variable.
94852         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
94853         parentheses for clarity.
94855 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94857         * modules/bison-i18n (Depends-on): Add gettext.
94859 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94861         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
94862         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
94863         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
94864         also add missing comma that caused broken test.
94865         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
94866         stdlib.h, for `abort'.
94867         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
94868         variables.
94869         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
94870         include unistd.h if present, for `rmdir'.
94871         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
94872         variables.
94873         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
94874         in the process include standard headers for prototypes.
94875         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
94876         gets declared on GNU/Linux.
94877         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
94878         unistd.h, for `rmdir'.
94879         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
94881         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
94882         always true.
94883         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
94885         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
94887 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94889         * gnulib-tool (func_version): Create output all at once.  This
94890         may help avoid triggering unnecessary SIGPIPEs, and at any
94891         rate it doesn't hurt.
94893 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94894             Bruno Haible  <bruno@clisp.org>
94896         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
94897         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
94898         * m4/signed.m4 (bh_C_SIGNED): Likewise.
94900         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
94901         (gl_FUNC_VASPRINTF): Invoke it.
94903 2006-09-22  Bruno Haible  <bruno@clisp.org>
94905         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
94906         getloadavg.c as first argument.
94908 2006-09-22  Bruno Haible  <bruno@clisp.org>
94910         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
94911         at the beginning of the gl_INIT macro.
94912         * modules/getloadavg (configure.ac): Pass $gl_source_base to
94913         gl_GETLOADAVG.
94915 2006-09-22  Bruno Haible  <bruno@clisp.org>
94917         * gnulib-tool (func_create_megatestdir): Don't include the config-h
94918         module.
94919         Suggested by Ralf Wildenhues.
94921 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
94923         Import this patch from libc:
94925         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
94927         * lib/regex_internal.c (re_string_reconstruct): Handle
94928         offset < pstr->valid_raw_len && pstr->offsets_needed case.
94929         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
94930         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
94931         re_string_context_at.
94933         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
94934         now requires it.
94935         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
94936         gl_REGEX now does it for us.
94937         (gl_REGEX): Add test taken from
94938         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
94940         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
94941         Check that large offsets work.  Modernize Autoconf usages.
94942         Prefer "yes" to mean a good thing rather than a bad.
94943         Don't put "#define mkstemp" in config.h, as this might interfere
94944         with standard system headers that "#define mkstemp mkstemp64".
94946         * modules/mkstemp (Depends-on): Add extensions, so that
94947         mkstemp is visible on some platforms.
94948         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
94949         (Include): Change to "mkstemp.h" from <stdlib.h>.
94950         (Files): Add mkstemp.h.
94952         * lib/mkstemp.h: New file, since some standard headers
94953         #define mkstemp.
94954         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
94955         Include "mkstemp.h".
94956         Make the _LIBC code resemble glibc original more,
94957         e.g., use K&R style.
94958         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
94959         (mkstemp): Remove, since mkstemp.h does this for us.
94960         * lib/stdlib--.h: Include mkstemp.h.
94962         Import this patch from libc:
94964         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
94966         * lib/tempname.c (__gen_tempname): Change attempts_min
94967         into a macro.  Use preprocessor to decide how to initialize
94968         attempts [Coverity CID 67].
94970 2006-09-20  Bruno Haible  <bruno@clisp.org>
94972         * lib/mkdtemp.c: Import from libc.
94973         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
94974                 * sysdeps/posix/tempname.c (__gen_tempname): Change
94975                 attempts_min into a macro.  Use preprocessor to decide how to
94976                 initialize attempts [Coverity CID 67].
94977         2001-11-27  Paul Eggert  <eggert@twinsun.com>
94978                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
94979                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
94981 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94983         * gnulib-tool (func_exit): New function, to allow to pass the
94984         exit status portably through the trap.  Use everywhere.
94985         (--help, --version): Signal a write error.
94986         (trap): catch SIGPIPE, for write errors.
94987         Exit at the end of the trap, with the correct exit status.
94989 2006-09-19  Karl Berry  <karl@gnu.org>
94991         * doc/gnulib.texi: note about the license texinfo files.
94993 2006-09-19  Eric Blake  <ebb9@byu.net>
94995         * gnulib-tool: Avoid space-tab.
94997 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
94999         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
95000         that prevented coreutils 6.1 from building.  Problem reported
95001         by Petter Reinholdtsen.
95003 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
95005         * gnulib-tool (avoidlist): Fix typo that broke options like
95006         --avoid=lock that are used by coreutils bootstrap.
95008 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
95010         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
95011         more systematically.
95013 2006-09-18  Jim Meyering  <jim@meyering.net>
95015         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
95017 2006-09-18  Bruno Haible  <bruno@clisp.org>
95019         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
95021 2006-09-18  Bruno Haible  <bruno@clisp.org>
95023         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
95024         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
95025         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
95026         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
95027         * m4/gettext.m4: Require autoconf >= 2.52.
95028         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
95029         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
95030         of gl_cv_header_inttypes_h.
95032 2006-09-18  Bruno Haible  <bruno@clisp.org>
95034         * lib/javaversion.c: Include configmake.h.
95036 2006-09-18  Bruno Haible  <bruno@clisp.org>
95038         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
95039         avoid that the while loops be executed in a subshell.
95041 2006-09-18  Bruno Haible  <bruno@clisp.org>
95043         * MODULES.html.sh (func_module): Break long lines.
95044         Suggested by Bruce Korb <bkorb@gnu.org>.
95046 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95048         Speed up by a factor of 1.12.
95049         * gnulib-tool (nl): New variable.
95050         (func_import): Rewrite include directive extraction to only read each
95051         directive once.
95053 2006-09-17  Bruno Haible  <bruno@clisp.org>
95055         * modules/javaversion (Makefile.am): Remove DEFS setting.
95056         (Depends-on): Add configmake, for PKGDATADIR definition.
95058 2006-09-17  Bruno Haible  <bruno@clisp.org>
95060         * gnulib-tool (func_create_testdir): Rewrite all files at once.
95062 2006-09-17  Bruno Haible  <bruno@clisp.org>
95064         * gnulib-tool (func_append): New function, stolen from libtool.m4.
95065         (func_modules_transitive_closure, func_modules_add_dummy,
95066         func_modules_to_filelist, func_import, func_create_testdir,
95067         func_create_megatestdir, ...): Use it wherever possible.
95068         Suggested by Ralf Wildenhues.
95070 2006-09-16  Karl Berry  <karl@gnu.org>
95072         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
95073         to avoid sectioning errors.
95074         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
95075         [ifinfo]: blank line after @center-ed titles.
95076         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
95077         Spell FSF address consistently with others.
95078         (These changes approved by rms.)
95080 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95082         Speed up by a factor of 1.61.
95083         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
95084         already checked module names again.
95086 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95088         Speed up by a factor of 1.13.
95089         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
95090         for new_files, and the input to func_add_or_update.
95092 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95094         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
95095         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
95097 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
95099         * modules/mkancesdirs (Depends-on): Add fcntl.
95100         * modules/savewd: New file.
95101         * MODULES.html.sh (File system functions): Add savewd.
95103         * modules/configmake (Makefile.am): Add support for the
95104         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
95106 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
95108         * m4/savewd.m4: New file.
95110 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
95112         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
95113         (dirchownmod): New arg FD.  All callers changed.
95114         Use FD rather than opening the directory ourself, as opening is
95115         now the caller's responsibility.
95116         * lib/dirchownmod.h: Likewise.
95117         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
95118         hosts that require <sys/types.h> before <sys/stat.h>.  Include
95119         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
95120         (test_dir): Remove.
95121         (mkancesdirs): Return length of prefix of FILE that has already
95122         been made, or -2 if there is a child doing the work.  Redo
95123         algorithm so that it is O(N) rather than O(N**2).  Optimize away
95124         ".", and treat ".." specially since it might stray back into
95125         already-created areas.  Use a subprocess if necessary.  New arg
95126         WD; all users changed.  MAKE_DIR function should now return 1
95127         if it creates a directory that is not readable.  Return -2 if
95128         a child process is spun off.
95129         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
95130         Adjust signature to match code.
95131         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
95132         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
95133         all users changed.
95134         * lib/savewd.c, lib/savewd.h: New files.
95136 2006-09-15  Jim Meyering  <jim@meyering.net>
95138         * modules/rename-dest-slash: New module.
95139         * MODULES.html.sh (posix_compat): Add it here.
95141         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
95143 2006-09-15  Jim Meyering  <jim@meyering.net>
95145         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
95146         file.
95148         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
95150 2006-09-15  Jim Meyering  <jim@meyering.net>
95152         * lib/rename-dest-slash.c (has_trailing_slash): Use
95153         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
95154         (rpl_rename_dest_slash): Perform the cheaper trailing slash
95155         test before testing whether SRC is a directory.
95156         Suggestions from Bruno Haible.
95158         Avoid a warning about an unused variable.
95159         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
95160         into the #ifdef block where it's used.
95162         * lib/rename-dest-slash.c: New file.
95164 2006-09-14  Bruno Haible  <bruno@clisp.org>
95166         * lib/allocsa.c: Include <config.h> unconditionally.
95167         * lib/asnprintf.c: Likewise.
95168         * lib/asprintf.c: Likewise.
95169         * lib/c-strcasecmp.c: Likewise.
95170         * lib/c-strcasestr.c: Likewise.
95171         * lib/c-strncasecmp.c: Likewise.
95172         * lib/c-strstr.c: Likewise.
95173         * lib/classpath.c: Likewise.
95174         * lib/clean-temp.c: Likewise.
95175         * lib/concatpath.c: Likewise.
95176         * lib/copy-file.c: Likewise.
95177         * lib/csharpcomp.c: Likewise.
95178         * lib/csharpexec.c: Likewise.
95179         * lib/execute.c: Likewise.
95180         * lib/fatal-signal.c: Likewise.
95181         * lib/findprog.c: Likewise.
95182         * lib/fwriteerror.c: Likewise.
95183         * lib/gl_array_list.c: Likewise.
95184         * lib/gl_array_oset.c: Likewise.
95185         * lib/gl_avltree_list.c: Likewise.
95186         * lib/gl_avltree_oset.c: Likewise.
95187         * lib/gl_avltreehash_list.c: Likewise.
95188         * lib/gl_carray_list.c: Likewise.
95189         * lib/gl_linked_list.c: Likewise.
95190         * lib/gl_linkedhash_list.c: Likewise.
95191         * lib/gl_list.c: Likewise.
95192         * lib/gl_oset.c: Likewise.
95193         * lib/gl_rbtree_list.c: Likewise.
95194         * lib/gl_rbtree_oset.c: Likewise.
95195         * lib/gl_rbtreehash_list.c: Likewise.
95196         * lib/imaxabs.c: Likewise.
95197         * lib/imaxdiv.c: Likewise.
95198         * lib/javacomp.c: Likewise.
95199         * lib/javaexec.c: Likewise.
95200         * lib/javaversion.c: Likewise.
95201         * lib/linebreak.c: Likewise.
95202         * lib/localcharset.c: Likewise.
95203         * lib/lock.c: Likewise.
95204         * lib/mbchar.c: Likewise.
95205         * lib/mbswidth.c: Likewise.
95206         * lib/mkdtemp.c: Likewise.
95207         * lib/pipe.c: Likewise.
95208         * lib/printf-args.c: Likewise.
95209         * lib/printf-parse.c: Likewise.
95210         * lib/progname.c: Likewise.
95211         * lib/progreloc.c: Likewise.
95212         * lib/readlink.c: Likewise.
95213         * lib/sh-quote.c: Likewise.
95214         * lib/stpcpy.c: Likewise.
95215         * lib/stpncpy.c: Likewise.
95216         * lib/strcasecmp.c: Likewise.
95217         * lib/strcasestr.c: Likewise.
95218         * lib/strcspn.c: Likewise.
95219         * lib/striconv.c: Likewise.
95220         * lib/strncasecmp.c: Likewise.
95221         * lib/strnlen1.c: Likewise.
95222         * lib/strstr.c: Likewise.
95223         * lib/strtok_r.c: Likewise.
95224         * lib/tls.c: Likewise.
95225         * lib/tmpdir.c: Likewise.
95226         * lib/unicodeio.c: Likewise.
95227         * lib/unsetenv.c: Likewise.
95228         * lib/vasnprintf.c: Likewise.
95229         * lib/vasprintf.c: Likewise.
95230         * lib/wait-process.c: Likewise.
95231         * lib/xallocsa.c: Likewise.
95232         * lib/xsetenv.c: Likewise.
95233         * lib/xstriconv.c: Likewise.
95235 2006-09-13  Simon Josefsson  <jas@extundo.com>
95237         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
95238         that internally, suggested by Ralf Wildenhues
95239         <Ralf.Wildenhues@gmx.de>.
95241 2006-09-13  Simon Josefsson  <jas@extundo.com>
95243         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
95244         @LIBOBJS@.
95245         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95247 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
95249         * lib/_fpending.c: Include <config.h> unconditionally, since we no
95250         longer worry about uses that don't define HAVE_CONFIG_H.
95251         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
95252         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
95253         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
95254         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
95255         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
95256         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
95257         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
95258         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
95259         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
95260         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
95261         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
95262         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
95263         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
95264         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
95265         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
95266         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
95267         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
95268         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
95269         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
95270         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
95271         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
95272         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
95273         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
95274         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
95275         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
95276         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
95277         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
95278         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
95279         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
95280         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
95281         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
95282         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
95283         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
95284         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
95285         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
95286         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
95287         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
95288         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
95289         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
95290         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
95291         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
95292         Likewise.
95294 2006-09-13  Eric Blake  <ebb9@byu.net>
95296         * lib/getopt.c: Fix typo in last commit.
95298 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
95300         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
95301         dgettext.
95303 2006-09-12  Jim Meyering  <jim@meyering.net>
95305         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
95306         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
95307         Reported by Nelson H. F. Beebe.
95309 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
95311         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
95312         program_invocation_name and program_invocation_short_name are
95313         initialized.
95314         * lib/argp-namefrob.h: Move declarations of program_invocation_name
95315         and program_invocation_short_name to argp.h, so they are visible
95316         to user programs.
95317         * lib/argp.h: Likewise
95319 2006-09-10  Bruno Haible  <bruno@clisp.org>
95321         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
95322         m4/inttypes_h.m4, m4/uintmax_t.m4.
95324 2006-09-10  Bruno Haible  <bruno@clisp.org>
95326         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
95327         gl_AC_TYPE_UINTMAX_T.
95329 2006-09-10  Bruno Haible  <bruno@clisp.org>
95331         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
95333 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
95335         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
95336         convention.  Text proposed by Bruno Haible.
95337         (struct argp_option): Document the use of N_() wrappers.
95339         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
95340         '\v', and translate the two parts separately, instead of feeding
95341         the whole string to gettext.  This allows to exclude
95342         '\v' from the strings visible to the translator by writing doc
95343         strings as N_("..") "\v" N_("..").
95345 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
95347         * config/srclist.txt: Undo latest change; the bug was fixed.
95349 2006-09-09  Bruno Haible  <bruno@clisp.org>
95351         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
95352         assignments if building a library without libtool.
95353         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
95354         in func_emit_lib_Makefile_am.
95355         (func_import): When building a static library libfoo.a, arrange to
95356         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
95357         (func_create_testdir): Likewise.
95358         * modules/gc (configure.ac, Makefile.am): If building statically,
95359         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
95360         * modules/iconvme (configure.ac, Makefile.am): Likewise.
95361         * modules/striconv (configure.ac, Makefile.am): Likewise.
95362         Based on a suggestion by Ralf Wildenhues.
95364 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
95366         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
95367         Check for unistd.h too, since Autoconf doesn't assume POSIX.
95368         Also:
95370         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
95371         Add year_2050_test to catch glibc bug 2821
95372         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
95374         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
95375         Prefer #ifdef to #if.
95377         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
95378         Return from 'main' instead of calling 'exit'.
95380 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
95382         * lib/mktime.c (guess_time_tm): Fix bug where mktime
95383         returned the maximum time_t value rather than (time_t) -1.
95384         Problem originally reported by William Bardwell
95385         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
95387         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
95388         Moved to here ...
95389         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
95390         ... from here.
95392 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
95394         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
95395         2821 is fixed.
95397 2006-09-08  Jim Meyering  <jim@meyering.net>
95399         Don't make generated files read-only.  That would bother too many
95400         people.  However, do retain the ability to work when targets are
95401         read-only: remove the destination and temporary files before writing
95402         them (when generated via sed or echo), or by using the -f option for
95403         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
95404         * modules/alloca-opt, modules/argz, modules/arpa_inet:
95405         * modules/byteswap, modules/configmake, modules/fcntl:
95406         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
95407         * modules/localcharset, modules/netinet_in, modules/poll:
95408         * modules/stdbool, modules/stdint, modules/sys_select:
95409         * modules/sys_socket, modules/sys_stat, modules/sysexits:
95411 2006-09-08  Jim Meyering  <jim@meyering.net>
95413         Avoid new build failure on FreeBSD 6.0.
95414         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
95415         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
95416         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
95418 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95420         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
95422 2006-09-07  Jim Meyering  <jim@meyering.net>
95424         Fix global typo in last change: use chmod u-w, not chmod u-x.
95425         Spotted by Paul Eggert and Bruce Korb.
95426         * modules/alloca-opt, modules/argz, modules/arpa_inet:
95427         * modules/byteswap, modules/configmake, modules/fcntl:
95428         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
95429         * modules/localcharset, modules/netinet_in, modules/poll:
95430         * modules/stdbool, modules/stdint, modules/sys_select:
95431         * modules/sys_socket, modules/sys_stat, modules/sysexits:
95433 2006-09-06  Jim Meyering  <jim@meyering.net>
95435         Make generated files be read-only.
95436         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
95437         Ensure that each generated file is now read-only.
95438         * modules/argz: Likewise.
95439         * modules/arpa_inet: Likewise.
95440         * modules/byteswap: Likewise.
95441         * modules/configmake: Likewise.
95442         * modules/fcntl: Likewise.
95443         * modules/fnmatch: Likewise.
95444         * modules/getopt: Likewise.
95445         * modules/glob: Likewise.
95446         * modules/inttypes: Likewise.
95447         * modules/netinet_in: Likewise.
95448         * modules/poll: Likewise.
95449         * modules/stdbool: Likewise.
95450         * modules/stdint: Likewise.
95451         * modules/sys_select: Likewise.
95452         * modules/sys_socket: Likewise.
95453         * modules/sys_stat: Likewise.
95454         * modules/sysexits: Likewise.
95455         * modules/localcharset: Same as above, but continue using temporary
95456         file named "t-$@" (why different?) rather than the "$@-t" used
95457         everywhere else.
95459         * modules/sysexits (Makefile.am): Replace literal occurrences
95460         of "sysexit.h" more readable, and more consistent, "$@".
95462 2006-09-06  Bruno Haible  <bruno@clisp.org>
95464         * modules/striconv: New file.
95465         * modules/xstriconv: New file.
95466         * MODULES.html.sh (Internationalization functions): Add striconv,
95467         xstriconv.
95469 2006-09-06  Bruno Haible  <bruno@clisp.org>
95471         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
95472         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
95473         not using libtool correctly.
95475 2006-09-06  Bruno Haible  <bruno@clisp.org>
95477         * lib/striconv.h: New file.
95478         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
95479         iconvstring.c.
95480         * lib/xstriconv.h: New file.
95481         * lib/xstriconv.c: New file.
95483 2006-09-06  Bruno Haible  <bruno@clisp.org>
95485         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
95486         lib_..._LDFLAGS.
95488 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95490         * lib/argz_.h: Sync from Libtool.
95492         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
95493                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
95495         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
95497 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
95499         * modules/trim: New file.
95501 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
95503         * lib/trim.h: New file.
95504         * lib/trim.c: New file.
95506 2006-09-05  Bruno Haible  <bruno@clisp.org>
95508         * MODULES.html.sh (String handling): Add trim.
95510 2006-09-04  Karl Berry  <karl@gnu.org>
95512         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
95513         until next release.
95515 2006-09-03  Bruno Haible  <bruno@clisp.org>
95517         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
95518         correctly.
95520 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
95522         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
95523         not gl_GETLOADAVG.  Omit unneeded semicolons.
95524         Problems reported by Ralf Wildenhues in
95525         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
95526         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
95527         at the end, which is the usual gnulib style.
95529         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
95530         of doing all the work ourselves.
95531         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
95532         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
95534 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
95536         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
95537         Problem reported by Ralf Wildenhues in
95538         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
95540         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
95541         HAVE_STRUCT_STATFS_F_FSTYPENAME.
95543 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
95545         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
95546         yesterday's patch by changing test -n to test -z.
95548 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
95550         * modules/getloadavg (Files): Add m4/getloadavg.m4.
95551         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
95552         the former is now obsolescent.
95554         * modules/chdir-long (Depends-on): Add fcntl.
95556 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
95558         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
95559         obsolescent, and programs should use gnulib instead.
95560         * m4/getloadavg.m4: New file, with contents taken from Autoconf
95561         but with prefixes changed.
95563 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
95565         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
95566         or stdbool.h, because they might not exist while configuring.
95568         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
95569         Don't include unistd.h or limits.h; not needed, since chdir-long.h
95570         does that for us.
95571         (O_DIRECTORY): Remove.
95573 2006-08-31  Eric Blake  <ebb9@byu.net>
95575         * gnulib-tool: Don't let emacs change spaces to TAB.
95577 2006-08-31  Bruno Haible  <bruno@clisp.org>
95579         * gnulib-tool: When calling func_import more than once, do it in a
95580         subshell.
95581         Reported by Eric Blake <ebb9@byu.net>.
95583 2006-08-31  Bruno Haible  <bruno@clisp.org>
95585         * gnulib-tool (nl): Remove variable.
95586         (sed_transform_lib_file): Use more robust test for config-h module.
95587         (func_import): Fix typo in 2006-08-25 patch.
95589 2006-08-31  Bruno Haible  <bruno@clisp.org>
95591         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
95592         specified, augment Makefile.am variables instead of assigning them.
95594 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
95596         Work around a bug in both the Linux and SunOS 64-bit kernels:
95597         nanosleep mishandles sleeps for longer than 2**31 seconds.
95598         Problem reported by Frank v Waveren in
95599         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
95600         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
95601         Check for nanosleep bug.
95602         (LIB_NANOSLEEP): Append clock_gettime library if needed.
95604 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
95606         Work around a bug in both the Linux and SunOS 64-bit kernels:
95607         nanosleep mishandles sleeps for longer than 2**31 seconds.
95608         Problem reported by Frank v Waveren in
95609         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
95610         * lib/nanosleep.c (BILLION): New constant.
95611         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
95612         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
95613         implementation.
95615 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
95617         * modules/nanosleep (Depends-on): Add gettime.
95619 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
95620         and Simon Josefsson  <jas@extundo.com>
95621         and Oskar Liljeblad  <oskar@osk.mine.nu>
95623         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
95624         * gnulib-tool (func_import): New license type 'unmodifiable license
95625         text'.
95626         * modules/fdl: Use it.  Longer description.
95627         * module/gpl, module/lgpl: New files.
95629 2006-08-30  Jim Meyering  <jim@meyering.net>
95631         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
95632         shadowing the parameter.
95634 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95636         Sync from Libtool:
95638         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95640         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
95641         sharing with gnulib.  Report by Eric Blake.
95643 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
95645         * modules/isapipe: New file.
95646         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
95648 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
95650         * modules/configmake (Makefile.am): Add a comment, and omit
95651         the CONFIGMAKE_ prefix from generated macro names.  Suggested
95652         by Bruno Haible.
95654 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
95656         * m4/isapipe.m4: New file.
95658 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
95660         * lib/isapipe.c, lib/isapipe.h: New files.
95662 2006-08-29  Jim Meyering  <jim@meyering.net>
95664         * modules/configmake (Makefile.am): Make configmake.h depend on
95665         Makefile.  Otherwise, a stale configmake.h could hang around.
95667 2006-08-29  Eric Blake  <ebb9@byu.net>
95669         * lib/error.c (error_at_line, print_errno_message): Match libc, after
95670         resolution of upstream bug 3044.
95672 2006-08-29  Bruno Haible  <bruno@clisp.org>
95674         * modules/localcharset (Depends-on): Add configmake.
95675         (Makefile.am): Remove setting of LIBDIR through DEFS.
95677 2006-08-29  Bruno Haible  <bruno@clisp.org>
95679         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
95680         defined.
95682 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
95684         * modules/fcntl: New file.
95685         * modules/chdir-safer (Depends-on): Add fcntl.
95686         * modules/fts: Likewise.
95687         * modules/mkdir-p: Likewise.
95689         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
95690         This undoes the most recent change, since we're now addressing the
95691         problem in a different way.
95693         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
95694         into output, since the output might be called Makefile.am even
95695         if $makefile_name is something different.
95696         (func_import): Use $makefile_am rather than
95697         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
95698         empty.
95700         * modules/inttypes (Files): Add m4/inttypes-h.m4.
95702 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
95704         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
95705         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
95706         recent change to stdint.m4, since we're now addressing the problem in a
95707         different way.
95709 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
95711         * m4/fcntl_h.m4: New file.
95713 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
95715         * lib/fcntl_.h: New file.
95716         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
95717         the fcntl module.
95718         * lib/dirchownmod.c: Likewise.
95719         * lib/fts.c: Likewise.
95721         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
95722         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
95723         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
95724         just before including <inttypes.h>, to avoid circular inclusion.
95726 2006-08-28  Jim Meyering  <jim@meyering.net>
95728         * doc/visibility.texi: Actually read and correct the grammar of the
95729         sentence affected by yesterday's change.
95731 2006-08-28  Eric Blake  <ebb9@byu.net>
95733         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
95734         needs wrapper.
95736 2006-08-28  Eric Blake  <ebb9@byu.net>
95738         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
95740 2006-08-28  Eric Blake  <ebb9@byu.net>
95742         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
95744 2006-08-28  Bruno Haible  <bruno@clisp.org>
95746         * modules/c-strstr: New file, from GNU gettext.
95747         * MODULES.html.sh (String handling): Add c-strstr.
95749 2006-08-28  Bruno Haible  <bruno@clisp.org>
95751         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
95752         macros.
95753         Reported by Eric Blake.
95755 2006-08-28  Bruno Haible  <bruno@clisp.org>
95757         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
95758         (VASNPRINTF): Return a string of length > INT_MAX without failing.
95759         * lib/vasprintf.c: Include errno.h, limits.h.
95760         (EOVERFLOW): New fallback definition.
95761         (vasprintf): Test here whether the string length is > INT_MAX.
95762         * lib/vsnprintf.c: Include errno.h, limits.h.
95763         (EOVERFLOW): New fallback definition.
95764         (vsnprintf): Fix bug when generated string was too long for the buffer.
95765         Test here whether the string length is > INT_MAX.
95767 2006-08-28  Bruno Haible  <bruno@clisp.org>
95769         * lib/inttypes_.h (SCNX*): Remove definitions.
95770         Reported by Eric Blake.
95772 2006-08-28  Bruno Haible  <bruno@clisp.org>
95774         * lib/c-strstr.h: New file, from GNU gettext.
95775         * lib/c-strstr.c: New file, from GNU gettext.
95777 2006-08-28  Bruno Haible  <bruno@clisp.org>
95779         * gnulib-tool: Reorder some statements.
95781 2006-08-28  Bruno Haible  <bruno@clisp.org>
95783         * gnulib-tool: New option --makefile-name.
95784         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
95785         $makefile_name.
95786         (func_import): Write $makefile_name to the cache file, and read it from
95787         there unless explicitly specified. Use $makefile_name as file name
95788         instead of Makefile.am. Adjust the recommendations accordingly.
95790 2006-08-28  Bruno Haible  <bruno@clisp.org>
95792         * gnulib-tool (func_verify_module): Check against misapplying patch.
95794 2006-08-28  Bruno Haible  <bruno@clisp.org>
95796         * gnulib-tool (func_relativize, func_relconcat): New functions.
95797         Give an error if --local-dir is given with --update.
95798         Remove trailing slashes from $local_gnulib_dir.
95799         (func_import): Store the relativized $local_gnulib_dir in
95800         gnulib-cache.m4, and read it from there if not specified explicitly.
95802 2006-08-28  Bruno Haible  <bruno@clisp.org>
95804         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
95805         is the current directory. Respect also $local_gnulib_dir.
95807 2006-08-28  Bruno Haible  <bruno@clisp.org>
95808             Simon Josefsson  <jas@extundo.com>
95810         BeOS portability.
95811         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
95813 2006-08-27  Jim Meyering  <jim@meyering.net>
95815         * doc/visibility.texi: Remove duplicate word: "pointer".
95817 2006-08-26  Bruno Haible  <bruno@clisp.org>
95819         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
95820         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
95821         (Makefile.am): Create inttypes.h from inttypes_.h.
95822         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
95824         * modules/imaxabs: New file.
95826         * modules/imaxdiv: New file.
95828 2006-08-26  Bruno Haible  <bruno@clisp.org>
95830         * m4/inttypes.m4: New file.
95831         * m4/_inttypes_h.m4: Remove file.
95832         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
95833         PRI_MACROS_BROKEN.
95834         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
95836         * m4/imaxabs.m4: New file.
95838         * m4/imaxdiv.m4: New file.
95840 2006-08-26  Bruno Haible  <bruno@clisp.org>
95842         * lib/inttypes_.h: New file.
95843         * lib/inttypes.h: Remove file.
95844         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
95846         * lib/imaxabs.c: New file.
95848         * lib/imaxdiv.c: New file.
95850 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
95852         New config-h module, so that "make" output needn't be cluttered
95853         by -DHAVE_CONFIG_H.
95854         * MODULES.html.sh (Support for building libraries and executables):
95855         Add config-h.
95856         * modules/config-h: New file.
95857         * gnulib-tool (nl, sed_transform_lib_file): New vars.
95858         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
95859         the config-h module is used.
95861         New configmake module, so that "make" output needn't be cluttered
95862         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
95863         * MODULES.html.sh (Support for building libraries and executables):
95864         Add configmake.
95865         * modules/configmake: New file.
95867 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
95869         * m4/config-h.m4: New file.
95871 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
95873         * config/srclist.txt: Add elisp-comp.
95875 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
95877         * MODULES.html.sh (Support for building libraries and executables):
95878         Add elisp-comp.
95879         * build-aux/elisp-comp: New file.
95880         * modules/elisp-comp: New file.
95882 2006-08-24  Bruno Haible  <bruno@clisp.org>
95884         * gnulib-tool (func_create_testdir): Use non-default values of
95885         sourcebase and m4base.
95887 2006-08-24  Bruno Haible  <bruno@clisp.org>
95889         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
95890         HTML structure.
95892 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
95894         * modules/openat (Depends-on): Add lchown.
95896 2006-08-23  Bruno Haible  <bruno@clisp.org>
95898         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
95899         of gl_LOCK_EARLY instead of gl_LOCK.
95901 2006-08-23  Bruno Haible  <bruno@clisp.org>
95903         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
95904         on OSF/1 to no.
95905         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
95907 2006-08-23  Bruno Haible  <bruno@clisp.org>
95909         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
95910         as unusable.
95912         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
95913         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
95914         (gl_LOCK): New macro.
95916 2006-08-22  Simon Josefsson  <jas@extundo.com>
95918         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
95919         to md5 module.
95921 2006-08-22  Simon Josefsson  <jas@extundo.com>
95923         * MODULES.html.sh: Add "Support for maintaining and release
95924         projects".
95926         * build-aux/gnupload: New file, from coreutils.
95928 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
95930         Avoid the need for AC_LIBSOURCES in m4 macros.
95931         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
95932         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
95933         * modules/check-version (EXTRA_DIST): Add check-version.h.
95934         * modules/crc (EXTRA_DIST): Add crc.h.
95935         * modules/des (EXTRA_DIST): Add des.h.
95936         * modules/gc (EXTRA_DIST): Add gc.h.
95937         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
95938         * modules/getline (EXTRA_DIST): Add getline.h.
95939         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
95940         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
95941         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
95942         * modules/md2 (EXTRA_DIST): Add md2.h.
95943         * modules/md4 (EXTRA_DIST): Add md4.h.
95944         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
95945         * modules/read-file (EXTRA_DIST): Add read-file.h.
95946         * modules/readline (EXTRA_DIST): Add readline.h.
95947         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
95948         rijndael-api-fst.h.
95950 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
95952         * m4/rijndael.m4 (gl_ARCFOUR):
95953         * m4/arctwo.m4 (gl_ARCTWO):
95954         * m4/check-version.m4 (gl_CHECK_VERSION):
95955         * m4/crc.m4 (gl_CRC):
95956         * m4/des.m4 (gl_DES):
95957         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
95958         * m4/gc.m4 (gl_GC):
95959         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
95960         * m4/getline.m4 (gl_FUNC_GETLINE):
95961         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
95962         * m4/hmac-md5.m4 (gl_HMAC_MD5):
95963         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
95964         * m4/md2.m4 (gl_MD2):
95965         * m4/md4.m4 (gl_MD4):
95966         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
95967         * m4/read-file.m4 (gl_FUNC_READ_FILE):
95968         * m4/readline.m4 (gl_FUNC_READLINE):
95969         * m4/rijndael.m4 (gl_RIJNDAEL):
95970         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
95971         to get the necessary .h files and whatnot.
95973 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
95975         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
95976         gnulib rather than the other way around.
95977         * config/srclistvars.sh (COREUTILS): Remove.
95979 2006-08-22  Jim Meyering  <jim@meyering.net>
95981         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
95983         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
95985 2006-08-22  Eric Blake  <ebb9@byu.net>
95987         * modules/regexprops-generic: New file.
95988         * MODULES.html.sh (Support for building documentation): List it.
95990 2006-08-22  Eric Blake  <ebb9@byu.net>
95992         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
95993         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
95994         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
95995         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
95997 2006-08-22  Bruno Haible  <bruno@clisp.org>
95999         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
96000         and lib_LTLIBRARIES like the other lib_* variables.
96002 2006-08-22  Bruno Haible  <bruno@clisp.org>
96004         * build-aux/x-to-1.in: New file, from GNU gettext.
96006 2006-08-22  Bruno Haible  <bruno@clisp.org>
96008         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
96009         <utmpx.h> exists.
96011 2006-08-22  Bruno Haible  <bruno@clisp.org>
96013         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
96014         <utmpx.h> exists.
96016 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
96018         BeOS portability.
96019         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
96020         exist.
96021         Problem reported by Bruno Haible.
96023 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
96025         Avoid the need for AC_LIBSOURCES in m4 macros.
96026         * modules/acl (EXTRA_DIST): Add acl.h.
96027         * modules/argmatch (Files): Add m4/argmatch.m4.
96028         (configure.ac): Add gl_ARGMATCH.
96029         (EXTRA_DIST): Renamed from lib_SOURCES, for
96030         consistency with the other modules.  Remove argmatch.c.
96031         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
96032         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
96033         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
96034         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
96035         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
96036         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
96037         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
96038         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
96039         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
96040         * modules/closeout (EXTRA_DIST): Add closeout.h.
96041         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
96042         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
96043         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
96044         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
96045         dirname.h; remove basename.c and stripslash.c.
96046         * modules/exclude (EXTRA_DIST): Add exclude.h.
96047         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
96048         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
96049         * modules/file-type (EXTRA_DIST): Add file-type.h.
96050         * modules/filemode (EXTRA_DIST): Add filemode.h.
96051         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
96052         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
96053         * modules/fpending (EXTRA_DIST): Add __fpending.h.
96054         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
96055         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
96056         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
96057         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
96058         * modules/getdate (EXTRA_DIST): Add getdate.c.
96059         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
96060         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
96061         * modules/getpass (EXTRA_DIST): Add getpass.h.
96062         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
96063         * modules/group-member (EXTRA_DIST): Add group-member.h.
96064         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
96065         * modules/hash (EXTRA_DIST): Add hash.h.
96066         * modules/human (EXTRA_DIST): Add human.h.
96067         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
96068         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
96069         * modules/lchown (EXTRA_DIST): Add lchown.h.
96070         * modules/long-options (EXTRA_DIST): Add long-options.h.
96071         * modules/lstat (EXTRA_DIST): Add lstat.h.
96072         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
96073         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
96074         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
96075         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
96076         * modules/memxor (EXTRA_DIST): Add memxor.h.
96077         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
96078         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
96079         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
96080         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
96081         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
96082         * modules/physmem (EXTRA_DIST): Add physmem.h.
96083         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
96084         * modules/posixver (EXTRA_DIST): Add posixver.h.
96085         * modules/quote (EXTRA_DIST): Add quote.h.
96086         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
96087         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
96088         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
96089         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
96090         regex_internal.h regexec.c.
96091         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
96092         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
96093         * modules/same (EXTRA_DIST): Add same.h.
96094         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
96095         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
96096         * modules/savedir (EXTRA_DIST): Add savedir.h.
96097         * modules/sha1 (EXTRA_DIST): Add sha1.h.
96098         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
96099         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
96100         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
96101         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
96102         * modules/strdup (EXTRA_DIST): Add strdup.h.
96103         * modules/strftime (EXTRA_DIST): Add strftime.h.
96104         * modules/strndup (EXTRA_DIST): Add strndup.h.
96105         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
96106         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
96107         * modules/time_r (EXTRA_DIST): Add time_r.h.
96108         * modules/timespec (EXTRA_DIST): Add timespec.h.
96109         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
96110         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
96111         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
96112         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
96113         * modules/userspec (EXTRA_DIST): Add userspec.h.
96114         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
96115         * modules/utimens (EXTRA_DIST): Add utimens.h.
96116         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
96117         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
96118         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
96119         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
96120         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
96121         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
96122         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
96123         * modules/yesno (EXTRA_DIST): Add yesno.h.
96125 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
96127         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
96129         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
96130         * m4/dev-ino.m4, same-inode.m4: Remove.
96132         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
96133         * m4/acl.m4 (AC_FUNC_ACL):
96134         * m4/backupfile.m4 (gl_BACKUPFILE):
96135         * m4/c-strtod.m4 (gl_C99_STRTOLD):
96136         * m4/canon-host.m4 (gl_CANON_HOST):
96137         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
96138         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
96139         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
96140         * m4/cloexec.m4 (gl_CLOEXEC):
96141         * m4/close-stream.m4 (gl_CLOSE_STREAM):
96142         * m4/closeout.m4 (gl_CLOSEOUT):
96143         * m4/dirfd.m4 (gl_FUNC_DIRFD):
96144         * m4/dirname.m4 (gl_DIRNAME):
96145         * m4/exclude.m4 (gl_EXCLUDE):
96146         * m4/exitfail.m4 (gl_EXITFAIL):
96147         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
96148         * m4/file-type.m4 (gl_FILE_TYPE):
96149         * m4/filemode.m4 (gl_FILEMODE):
96150         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
96151         * m4/fpending.m4 (gl_FUNC_FPENDING):
96152         * m4/fprintftime.m4 (gl_FPRINTFTIME):
96153         * m4/fts.m4 (gl_FUNC_FTS):
96154         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
96155         * m4/getdate.m4 (gl_GETDATE):
96156         * m4/gethrxtime.m4 (gl_GETHRXTIME):
96157         * m4/getpagesize.m4 (gl_GETPAGESIZE):
96158         * m4/getpass.m4 (gl_FUNC_GETPASS):
96159         * m4/gettime.m4 (gl_GETTIME):
96160         * m4/getugroups.m4 (gl_GETUGROUPS):
96161         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
96162         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
96163         * m4/hard-locale.m4 (gl_HARD_LOCALE):
96164         * m4/hash.m4 (gl_HASH):
96165         * m4/idcache.m4 (gl_IDCACHE):
96166         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
96167         * m4/lchown.m4 (gl_FUNC_LCHOWN):
96168         * m4/long-options.m4 (gl_LONG_OPTIONS):
96169         * m4/lstat.m4 (gl_FUNC_LSTAT):
96170         * m4/md5.m4 (gl_MD5):
96171         * m4/memcasecmp.m4 (gl_MEMCASECMP):
96172         * m4/memcoll.m4 (gl_MEMCOLL):
96173         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
96174         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
96175         * m4/memxor.m4 (gl_MEMXOR):
96176         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
96177         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
96178         * m4/modechange.m4 (gl_MODECHANGE):
96179         * m4/mountlist.m4 (gl_MOUNTLIST):
96180         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
96181         * m4/openat.m4 (gl_FUNC_OPENAT):
96182         * m4/pathmax.m4 (gl_PATHMAX):
96183         * m4/physmem.m4 (gl_PHYSMEM):
96184         * m4/posixtm.m4 (gl_POSIXTM):
96185         * m4/posixver.m4 (gl_POSIXVER):
96186         * m4/quote.m4 (gl_QUOTE):
96187         * m4/quotearg.m4 (gl_QUOTEARG):
96188         * m4/readtokens.m4 (gl_READTOKENS):
96189         * m4/readutmp.m4 (gl_READUTMP):
96190         * m4/regex.m4 (gl_REGEX):
96191         * m4/safe-read.m4 (gl_SAFE_READ):
96192         * m4/safe-write.m4 (gl_SAFE_WRITE):
96193         * m4/same.m4 (gl_SAME):
96194         * m4/save-cwd.m4 (gl_SAVE_CWD):
96195         * m4/savedir.m4 (gl_SAVEDIR):
96196         * m4/settime.m4 (gl_SETTIME):
96197         * m4/sha1.m4 (gl_SHA1):
96198         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
96199         * m4/stat-macros.m4 (gl_STAT_MACROS):
96200         * m4/stat-time.m4 (gl_STAT_TIME):
96201         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
96202         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
96203         * m4/strdup.m4 (gl_FUNC_STRDUP):
96204         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
96205         * m4/strndup.m4 (gl_FUNC_STRNDUP):
96206         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
96207         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
96208         * m4/time_r.m4 (gl_TIME_R):
96209         * m4/timespec.m4 (gl_TIMESPEC):
96210         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
96211         * m4/unlinkdir.m4 (gl_UNLINKDIR):
96212         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
96213         * m4/userspec.m4 (gl_USERSPEC):
96214         * m4/utimecmp.m4 (gl_UTIMECMP):
96215         * m4/utimens.m4 (gl_UTIMENS):
96216         * m4/xalloc.m4 (gl_XALLOC):
96217         * m4/xgetcwd.m4 (gl_XGETCWD):
96218         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
96219         * m4/xreadlink.m4 (gl_XREADLINK):
96220         * m4/xstrtod.m4 (gl_XSTRTOD):
96221         * m4/yesno.m4 (gl_YESNO):
96222         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
96223         to get the necessary .h files and whatnot.
96225 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
96226             Bruno Haible  <bruno@clisp.org>
96228         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
96229         /bin/sh understanding of '!' conditional negation.
96231 2006-08-21  Jim Meyering  <jim@meyering.net>
96233         * modules/openat (Depends-on): Really alphabetize.
96235         * modules/acl (Depends-on): Add error and quote.
96237         * check-module (find_included_lib_files): Add at-func.c to the
96238         ok-to-include-more-than-once white list.
96240         * modules/openat (Depends-on): Add lstat.  Alphabetize.
96242 2006-08-21  Bruno Haible  <bruno@clisp.org>
96244         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
96245         Emit a pkgdata_DATA variable only if some snippets add contents to it.
96246         Reported by Martin Lambers <marlam@marlam.de>.
96248 2006-08-21  Bruno Haible  <bruno@clisp.org>
96250         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
96251         specify an installation location, don't emit a noinst_LIBRARIES or
96252         noinst_LTLIBRARIES assignment.
96254 2006-08-21  Bruno Haible  <bruno@clisp.org>
96256         BeOS portability.
96257         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
96258         BeOS has mbrtowc() but no <wctype.h>.
96260 2006-08-21  Bruno Haible  <bruno@clisp.org>
96262         BeOS portability.
96263         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
96264         exist.
96266 2006-08-21  Bruno Haible  <bruno@clisp.org>
96268         BeOS portability.
96269         * lib/mbchar.h: Include <wctype.h> only if it exists.
96271 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
96273         Remove files that are no longer needed by their respective modules.
96274         * m4/obstack.m4: Remove.
96275         * m4/strerror_r.m4: Remove.
96276         * m4/uint32_t.m4: Remove.
96277         * m4/uintptr_t.m4: Remove.
96278         * m4/ullong_max.m4: Remove.
96279         * m4/xstrtoimax.m4: Remove.
96280         * m4/xstrtoumax.m4: Remove.
96282         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
96283         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
96284         dependencies now capture this.
96286         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
96287         Do not use AC_LIBSOURCES, since gnulib modules now do this.
96288         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
96289         * m4/human.m4 (gl_HUMAN): Likewise.
96290         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
96291         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
96293         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
96295         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
96296         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
96297         stdint.
96298         * m4/human.m4 (gl_HUMAN): Likewise.
96299         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
96300         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
96301         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
96302         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
96303         * m4/xstrtol (gl_XSTRTOL): Likewise.
96305         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
96306         AC_TYPE_LONG_LONG_INT.
96307         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
96308         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
96309         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
96310         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
96312         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
96313         on stdbool.
96315         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
96316         (gl_PREREQ_XSTRTOUL): Remove.
96318         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
96320         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
96321         mode.
96323 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
96325         Add and change modules to make it easier for coreutils to use
96326         gnulib-tool.
96327         * modules/backupfile (Files): Remove m4/d-ino.m4.
96328         (Depends-on): Add d-ino.
96329         * modules/cycle-check (Depends-on): Add stdint.
96330         (lib_SOURCES): Add cycle-check.h.
96331         * modules/d-ino: New module.
96332         * modules/d-type: New module.
96333         * modules/error (Files): Remove m4/strerror_r.m4.
96334         * modules/filemode (Files): Add m4/st_dm_mode.m4.
96335         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
96336         m4/inttypes_h.m4, m4/uintmax_t.m4.
96337         (Depends-on): Add stdint.
96338         (lib_SOURCES): Add fsusage.h.
96339         * modules/getcwd (Files): Remove d-ino.m4.
96340         (Depends-on): Add d-ino.
96341         * modules/getndelim2 (Depends-on): Add stdint.
96342         * modules/glob (Files): Remove m4/d-type.m4.
96343         (Depends-on): Add d-type.
96344         * modules/host-os: New module.
96345         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
96346         m4/inttypes_h.m4, m4/uintmax_t.m4.
96347         * Depends-on: Add stdint.
96348         (lib_SOURCES): Add human.h.
96349         * modules/inttostr (Files): Remove m4/intmax_t.m4,
96350         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
96351         m4/uintmax_t.m4, m4/ulonglong.m4.
96352         (Depends-on): Add stdint.
96353         (EXTRA_DIST): Add inttostr.h.
96354         * modules/lchmod: New module.
96355         * modules/link-follow: New module.
96356         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
96357         (Depends-on): Add lchmod.
96358         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
96359         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
96360         (Depends-on): Add stdint.
96361         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
96362         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
96363         (Depends-on): Add stdint.
96364         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
96365         * modules/perl: New module.
96366         * modules/regex (Depends-on): Add stdint.
96367         * modules/rmdir-errno: New module.
96368         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
96369         m4/intmax_t.m4.
96370         (Depends-on): Add stdint.
96371         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
96372         m4/uintmax_t.m4.
96373         (Depends-on): Add stdint.
96374         * modules/unlink-busy: New module.
96375         * modules/utimecmp (Depends-on): Add stdint.
96376         * modules/uptime: New module.
96377         * modules/winsz-ioctl: New module.
96378         * modules/winsz-termios: New module.
96379         * modules/xnanosleep (Depends-on): Add nanosleep.
96380         * modules/ullong_max: Remove.
96381         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
96382         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
96383         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
96384         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
96385         (Depends-on): Add inttypes.
96386         (lib_SOURCES): Add xstrtol.h.
96387         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
96388         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
96389         * MODULES.html.sh: Move 'assert' into the assert section.
96390         Move 'dummy' into the linking section.
96391         Remove ullong_max.
96392         Add section for compatibility checks for POSIX:2001 functions,
96393         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
96394         winsz-ioctl, and winsz-termios into it.
96395         Add lchmod.
96396         Add top-level Misc section and put host-os, perl, and uptime
96397         into it.
96399 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
96401         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
96402         now assume the stdint module.  Do not include inttypes.h.
96403         * lib/fsusage.h: Likewise.
96404         * lib/getndelim2.c: Likewise.
96405         * lib/human.h: Likewise.
96406         * lib/inttostr.h: Likewise.
96407         * lib/obstack.c: Likewise.
96408         * lib/regex_internal.h: Likewise.
96409         * lib/tempname.c: Likewise.
96410         * lib/utimecmp.c: Likewise.
96411         * lib/xstrtol.h: Likewise.
96413         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
96415         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
96416         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
96417         * lib/xtime.h: Likewise.
96419 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
96421         * modules/openat (Files): Add lib/fchmodat.c.
96422         Fixes problem reported by Jay Youngman.
96424 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
96426         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
96427         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
96429 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
96430             Bruno Haible  <bruno@clisp.org>
96432         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
96433         and is a script that invokes bison. Tighten the code. Add comments.
96435 2006-08-18  Jim Meyering  <jim@meyering.net>
96437         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
96438         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
96439         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
96440         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
96442 2006-08-18  Bruno Haible  <bruno@clisp.org>
96444         * modules/bison-i18n: New file.
96445         * MODULES.html.sh (Internationalization functions): Add it.
96447 2006-08-18  Bruno Haible  <bruno@clisp.org>
96449         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
96450         sys/statvfs.h. When getmntinfo was found, check its declaration and
96451         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
96453 2006-08-18  Bruno Haible  <bruno@clisp.org>
96455         * m4/bison-i18n.m4: New file, from bison.
96457 2006-08-18  Bruno Haible  <bruno@clisp.org>
96459         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
96460         (ME_DUMMY): Treat "kernfs" as a dummy.
96461         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
96463 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
96465         Update from coreutils.
96467         2006-08-15  Jim Meyering  <jim@meyering.net>
96469         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
96471         2006-01-17  Jim Meyering  <jim@meyering.net>
96473         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
96475         2006-01-11  Jim Meyering  <jim@meyering.net>
96477         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
96478         Check for the lchmod function.
96480 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
96482         Update from coreutils.
96484         * lib/__fpending.h: Add copyright notice.
96485         * lib/fprintftime.h: Likewise.
96486         * lib/savedir.c: Use (C) in copyright notice.
96487         * lib/savedir.h: Likewise.
96489         2006-08-15  Jim Meyering  <jim@meyering.net>
96491         * lib/at-func.c: New file, with the logic of all emulated at-functions.
96492         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
96493         in support of the EXPECTED_ERRNO macro.
96494         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
96495         definitions.  Instead, define the appropriate symbols and include
96496         "at-func.c".
96497         * lib/mkdirat.c (mkdirat): Likewise.
96498         * lib/fchmodat.c (fchmodat): Likewise.
96499         (ENOSYS): Remove definition.
96500         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
96501         it.  Don't include "unistd--.h" -- it wasn't ever used.
96503         2006-01-17  Jim Meyering  <jim@meyering.net>
96505         Rewrite fts.c not to change the current working directory,
96506         by using openat, fstatat, fdopendir, etc..
96508         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
96509         (HAVE_OPENAT_SUPPORT): Define.
96510         [_LIBC] (fchdir): Don't undef or define; no longer used.
96511         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
96512         Now, this `function' always succeeds, and consumes its file descriptor
96513         parameter -- so callers must not close such FDs.  Update callers.
96514         (diropen_fd, opendirat, cwd_advance_fd): New functions.
96515         (diropen): Add parameter, SP.  Adjust all callers.
96516         Implement using diropen_fd, rather than open.
96517         (fts_open): Initialize new member, fts_cwd_fd.
96518         Remove fts_rft-setting code.
96519         (fts_close): Close fts_cwd_fd, if necessary.
96520         (__opendir2): Define in terms of opendir or opendirat,
96521         depending on whether the FST_NOCHDIR flag is set.
96522         (fts_build): Since fts_safe_changedir consumes its FD, and since
96523         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
96524         and close the dup'd file descriptor upon failure.
96525         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
96526         (fts_safe_changedir): Tweak semantics to reflect that this function
96527         now calls cwd_advance_fd and hence consumes its FD argument.
96528         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
96529         [struct FTS] (fts_rft): Remove now-unused member.
96530         [struct FTS] (fts_cycle.state): Improve comment.
96532         * lib/openat.c (openat_needs_fchdir): New function.
96533         * lib/openat.h (openat_needs_fchdir): Declare it.
96535 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
96537         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
96538         Problem and fix reported by Pádraig Brady in
96539         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
96541 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
96543         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
96545 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
96547         * lib/memcoll.c (memcoll): Optimize for the common case where the
96548         arguments are bytewise equal.
96550 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
96552         * doc/regexprops-generic.texi: Add a copyright notice.
96554 2006-08-15  Bruno Haible  <bruno@clisp.org>
96556         * modules/tmpdir (License): Change to LGPL.
96558 2006-08-15  Bruno Haible  <bruno@clisp.org>
96560         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
96561         module.
96563 2006-08-14  Simon Josefsson  <jas@extundo.com>
96565         * config/srclist.txt: Add gnupload.
96567 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
96569         Change copyright notice from LGPL 2 to GPL 2, since that's the
96570         standard form used in the gnulib repository.
96571         * tests/test-lock.c: Likewise.
96572         * tests/test-stdint.c: Likewise.
96573         * tests/test-tls.c: Likewise.
96575         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
96576         prelude-manager.  User shorter URLs for GNU projects, without '?'.
96577         Add copyright notice.
96579         * check-module: Add copyright notice.  Output a copyright
96580         notice if "--version" is specified.
96581         * modules/COPYING: New file.
96582         * tests/test-getaddrinfo.c: Add copyright notice.
96583         * tests/test-verify.c: Likewise.
96585 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
96587         Change copyright notice from LGPL 2 to GPL 2, since that's the
96588         standard form used in the gnulib repository.
96589         * lib/lock.c: LGPL -> GPL.
96590         * lib/lock.h: Likewise.
96591         * lib/strnlen1.c: Likewise.
96592         * lib/strnlen1.h: Likewise.
96593         * lib/tls.c: Likewise.
96594         * lib/tls.h: Likewise.
96595         * lib/tmpdir.c: Likewise.
96597         * lib/TODO: Remove; this belongs only in coreutils.
96599 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
96601         Add copyright notices to long-enough files that lack them, since
96602         otherwise the files aren't clearly free.  Use the same notice that
96603         getdate.texi already uses.
96604         * doc/alloca-opt.texi: Add copyright notice.
96605         * doc/alloca.texi: Likewise.
96606         * doc/ctime.texi: Likewise.
96607         * doc/functions.texi: Likewise.
96608         * doc/gcd.texi: Likewise.
96609         * doc/gnulib-tool.texi: Likewise.
96610         * doc/inet_ntoa.texi: Likewise.
96611         * doc/visibility.texi: Likewise.
96613         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
96614         * doc/quote.texi: Add copyright notice.
96616         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
96617         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
96618         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
96619         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
96620         is now obsolete, and give a pointer to the Sun list.
96621         Add copyright notice.
96623 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
96625         * config/srclistvars.sh: Add copyright notice.
96627 2006-08-14  Eric Blake  <ebb9@byu.net>
96629         Import the following change from libc:
96631         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
96633         Upstream bug 2997.
96634         * lib/misc/error.c: Add space between program name and message if file
96635         name is missing.
96637 2006-08-12  Karl Berry  <karl@gnu.org>
96639         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
96640         remove, these originate in gnulib now.
96642 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96644         * doc/Makefile (standards.info standards.html standards.dvi):
96645         Also depend on make-stds.texi.
96647 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
96649         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
96650         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
96652         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
96653         in wchar_t.  Problem reported by Eric Blake.
96655         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
96656         LEN is smaller than SIZE.  Suggested by Bruno Haible.
96657         Also, help the compiler to keep LEN in a register.
96659 2006-08-11  Eric Blake  <ebb9@byu.net>
96661         * users.txt: Sort.  Add tar.
96663 2006-08-11  Bruno Haible  <bruno@clisp.org>
96665         * users.txt: New file.
96667 2006-08-11  Bruno Haible  <bruno@clisp.org>
96669         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
96670         before <wchar.h>. Needed for OSF/1 and BSD/OS.
96672 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
96674         * modules/snprintf (Depends-on): Remove minmax.
96675         (Maintainer): Add self and Bruno.
96677 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
96679         * lib/.cppi-disable: Add snprintf.h, socket_.h.
96680         * lib/snprintf.c: Include <errno.h> and <limits.h>.
96681         (EOVERFLOW): Define if the system does not.
96682         Do not include "minmax.h"; it wasn't used.
96683         (snprintf): Don't assume size_t promotes to an unsigned type.
96684         Fix bug when generated string was too long for the buffer: the
96685         buffer's contents are supposed to be the initial prefix of the
96686         output.  Don't assume vasnprintf returns EOVERFLOW if the size
96687         exceeds INT_MAX; do the check ourselves.
96689         Import the following changes from libc:
96691         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
96693         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
96694         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
96695         set wc to the byte which couldn't be converted.
96696         (re_string_reconstruct): Don't clear valid_raw_len before calling
96697         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
96698         tip_context using re_string_context_at.
96700         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
96702         * lib/posix/regex.h: g++ still cannot handled [restrict].
96704         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
96706         * lib/posix/regex.h: Remove special handling for VMS.
96708 2006-08-10  Jim Meyering  <jim@meyering.net>
96710         * modules/same-inode: New module.
96711         * modules/dev-ino: New module.
96712         * modules/cycle-check: Depend on these modules, rather than simply
96713         including their .h files.
96714         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
96715         required via m4/cycle-check.m4.
96716         * modules/same: Depend on new same-inode module, rather than
96717         including same-inode.h.
96718         * modules/chdir-safer: New file.
96720         * modules/chown (Depends-on): Add stat-macros.
96722 2006-08-10  Jim Meyering  <jim@meyering.net>
96724         * m4/cycle-check.m4: New file.
96725         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
96726         * m4/dev-ino.m4, m4/same-inode.m4: New files.
96728 2006-08-10  Eric Blake  <ebb9@byu.net>
96730         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
96731         in from original proposal.
96733 2006-08-10  Eric Blake  <ebb9@byu.net>
96734         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
96736         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
96737         namespace.
96739 2006-08-10  Bruno Haible  <bruno@clisp.org>
96741         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
96742         as well.
96744 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
96746         Sync from coreutils.
96748         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
96750         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
96751         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
96753 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
96755         * modules/restrict: Remove; no longer needed now that we assume
96756         Autoconf 2.59 or later.
96757         * MODULES.html.sh: Remove 'restrict'.
96758         * modules/argp (Depends-on): Remove 'restrict'.
96759         * modules/base64 (Depends-on): Likewise.
96760         * modules/gc (Depends-on): Likewise.
96761         * modules/getaddrinfo (Depends-on): Likewise.
96762         * modules/glob (Depends-on): Likewise.
96763         * modules/inet_ntop (Depends-on): Likewise.
96764         * modules/inet_pton (Depends-on): Likewise.
96765         * modules/memxor (Depends-on): Likewise.
96766         * modules/regex (Depends-on): Likewise.
96767         * modules/strtok_r (Depends-on): Likewise.
96768         * modules/time_r (Depends-on): Likewise.
96770 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
96772         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
96773         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
96774         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
96775         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
96776         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
96777         * m4/memxor.m4 (gl_MEMXOR): Likewise.
96778         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
96779         gl_C_RESTRICT replaced by AC_C_RESTRICT.
96781         Merge from coreutils.
96782         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
96783         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
96784         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
96785         * m4/time_r.m4 (gl_TIME_R): Likewise.
96787 2006-08-09  Karl Berry  <karl@gnu.org>
96789         * config/srclist.txt: no more gettext-tools, per Bruno.
96791 2006-08-08  Eric Blake  <ebb9@byu.net>
96793         * modules/verror: New module.
96794         * MODULES.html.sh: Document it.
96796 2006-08-08  Eric Blake  <ebb9@byu.net>
96798         * lib/verror.h, lib/verror.c: New files.
96800 2006-08-08  Eric Blake  <ebb9@byu.net>
96802         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
96803         verror_at_line output complies with GNU Coding Standards even when
96804         file is NULL.
96806 2006-08-07  Bruno Haible  <bruno@clisp.org>
96808         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
96809         versions of AIX.
96810         Reported by Ralf Wildenhues.
96812 2006-08-07  Bruno Haible  <bruno@clisp.org>
96814         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
96815         in an AC_DEFUN. Needed so that the autoconf snippets can use
96816         AC_REQUIRE.
96818 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96820         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
96821         Initialize pkgdata_DATA.
96822         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
96823         overriding it.
96825 2006-08-06  Eric Blake  <ebb9@byu.net>
96827         * lib/error.h: Fold in some upstream changes from glibc.
96828         * lib/error.c: Likewise.
96830 2006-08-04  Bruno Haible  <bruno@clisp.org>
96832         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
96833         Make the mostlyclean-local rule depend on mostlyclean-generic.
96834         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
96836 2006-07-31  Bruno Haible  <bruno@clisp.org>
96838         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
96839         <stdlib.h>, <string.h>.
96841 2006-07-30  Bruno Haible  <bruno@clisp.org>
96843         * modules/readlink (License): Change to LGPL.
96845 2006-07-30  Bruno Haible  <bruno@clisp.org>
96847         * modules/javaversion (Makefile.am): Distribute javaversion.java and
96848         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
96849         set PKGDATADIR to point to it.
96851 2006-07-30  Bruno Haible  <bruno@clisp.org>
96853         * modules/csharpexec (configure.ac): Comment out macro invocation.
96854         * modules/javaexec (configure.ac): Likewise.
96855         * modules/javacomp-script (configure.ac): Likewise.
96857         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
96859 2006-07-30  Bruno Haible  <bruno@clisp.org>
96861         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
96862         linked-list.
96864 2006-07-30  Bruno Haible  <bruno@clisp.org>
96866         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
96868 2006-07-30  Bruno Haible  <bruno@clisp.org>
96870         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
96871         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
96872         get removed.
96874 2006-07-29  Bruno Haible  <bruno@clisp.org>
96876         Make it possible for gnulib-tool to work with locally modified or
96877         augmented gnulib repositories.
96878         * gnulib-tool (func_usage): Document --local-dir option.
96879         (local_gnulib_dir): New variable.
96880         Handle --local-dir option.
96881         (func_lookup_file): New function.
96882         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
96883         (func_get_description, func_get_filelist, func_get_description,
96884         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
96885         func_get_automake_snippet, func_get_include_directive,
96886         func_get_license, func_get_maintainer): Use func_lookup_file.
96887         (func_import, func_create_testdir): Use func_lookup_file.
96889 2006-07-29  Bruno Haible  <bruno@clisp.org>
96891         * modules/setenv (Depends-on): Add unistd.
96893 2006-07-29  Bruno Haible  <bruno@clisp.org>
96895         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
96897 2006-07-29  Bruno Haible  <bruno@clisp.org>
96899         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
96901 2006-07-29  Bruno Haible  <bruno@clisp.org>
96903         * gnulib-tool (import, update): If there is no Makefile.am, look at
96904         aclocal.m4, instead of bailing out.
96906 2006-07-29  Bruno Haible  <bruno@clisp.org>
96908         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
96909         Categorize the options by when they are useful.
96911 2006-07-29  Bruno Haible  <bruno@clisp.org>
96913         * gnulib-tool (func_usage): Document option --no-libtool.
96914         Handle option --no-libtool.
96915         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
96916         for changed semantics of $libtool variable.
96917         (func_import): Likewise. If libtool is not used, show this through
96918         an option --no-libtool.
96919         (func_create_testdir): Update.
96921 2006-07-29  Bruno Haible  <bruno@clisp.org>
96923         * gnulib-tool (func_import): Extend error message about missing
96924         --doc-base.
96926 2006-07-29  Bruno Haible  <bruno@clisp.org>
96928         * gnulib-tool (func_import): Don't create the $docbase directory if
96929         there is no file to store there.
96931 2006-07-29  Bruno Haible  <bruno@clisp.org>
96933         * gnulib-tool (autoconf_minversion): If a --dir option is given and
96934         relevant, look for configure.ac there, not in the current directory.
96935         Also use a simple search for AC_PREREQ, not "autoconf --trace".
96937 2006-07-29  Bruno Haible  <bruno@clisp.org>
96939         * gnulib-tool (SORT): New variable.
96940         (func_usage): Undocument --assume-autoconf option.
96941         Remove --assume-autoconf option handling.
96942         (autoconf_minversion): Determine from the contents of configure.ac.
96943         (func_import): Remove autoconf_minversion handling.
96944         Suggested by Eric Blake.
96946 2006-07-29  Bruno Haible  <bruno@clisp.org>
96948         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
96950 2006-07-29  Bruno Haible  <bruno@clisp.org>
96952         * config/srclist.txt (*setenv.[ch]): Remove rules.
96954 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
96956         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
96958 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
96960         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
96961         arpa/inet.h.
96963 2006-07-28  Simon Josefsson  <jas@extundo.com>
96965         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
96966         * modules/inet_pton (Depends-on): Likewise.
96968 2006-07-28  Simon Josefsson  <jas@extundo.com>
96970         * m4/netinet_in_h.m4: New file.
96972 2006-07-28  Simon Josefsson  <jas@extundo.com>
96974         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
96975         #include's.
96977 2006-07-28  Simon Josefsson  <jas@extundo.com>
96979         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
96980         #include's.
96982 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
96984         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
96985         setgid on directories only if they set these bits.
96986         * lib/modechange.h: Remove obsolete comment about masks.
96988 2006-07-28  Eric Blake  <ebb9@byu.net>
96990         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
96991         macro expansion.
96993 2006-07-28  Bruno Haible  <bruno@clisp.org>
96995         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
96997 2006-07-28  Bruno Haible  <bruno@clisp.org>
96999         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
97001 2006-07-28  Bruno Haible  <bruno@clisp.org>
97003         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
97004         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
97005         Define fallbacks.
97006         Avoids link error on FreeBSD 4.x.
97007         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
97009         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
97010         encoding.
97011         * lib/mbswidth.c (iswcntrl): Likewise.
97013 2006-07-27  Bruno Haible  <bruno@clisp.org>
97015         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
97016         test.
97018 2006-07-27  Bruno Haible  <bruno@clisp.org>
97020         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
97021         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
97022         defined.
97024 2006-07-26  Eric Blake  <ebb9@byu.net>
97026         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
97028 2006-07-26  Eric Blake  <ebb9@byu.net>
97030         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
97031         like mingw that lack mkstemp.
97032         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
97033         avoid compilation warning on mingw.
97035 2006-07-26  Bruno Haible  <bruno@clisp.org>
97037         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
97038         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
97039         INT_FAST*_MIN, INTPTR_MIN.
97041 2006-07-25  Bruno Haible  <bruno@clisp.org>
97043         * modules/version-etc (Depends-on): Add stdarg.
97045 2006-07-25  Bruno Haible  <bruno@clisp.org>
97047         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
97048         complex commands.
97050 2006-07-25  Bruno Haible  <bruno@clisp.org>
97052         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
97053         defined in <stdarg.h> or config.h.
97055 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
97057         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
97058         (gl_STDIO_SAFER): Remove.
97060 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
97062         * MODULES.html.sh (File stream based Input/Output):
97063         Add fopen-safer, tmpfile-safer; remove stdio-safer.
97064         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
97065         * modules/fopen-safer, modules/tmpfile-safer: New files.
97066         * modules/stdio-safer: Remove.
97068 2006-07-24  Bruno Haible  <bruno@clisp.org>
97070         * modules/tmpdir: New file.
97071         * MODULES.html.sh (File system functions): Add it.
97073 2006-07-24  Bruno Haible  <bruno@clisp.org>
97075         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
97076         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
97078 2006-07-24  Bruno Haible  <bruno@clisp.org>
97080         * modules/clean-temp: New file.
97082 2006-07-24  Bruno Haible  <bruno@clisp.org>
97084         * m4/tmpdir.m4: New file, from GNU gettext.
97086 2006-07-24  Bruno Haible  <bruno@clisp.org>
97088         * lib/tmpdir.h: New file, from GNU gettext.
97089         * lib/tmpdir.c: New file, from GNU gettext.
97091 2006-07-24  Bruno Haible  <bruno@clisp.org>
97093         * lib/clean-temp.h: New file, from GNU gettext.
97094         * lib/clean-temp.c: New file, from GNU gettext.
97096 2006-07-23  Eric Blake  <ebb9@byu.net>
97098         * modules/stdio-safer (Files): Add tmpfile-safer.c.
97099         (Depends-on): Add binary-io.
97101 2006-07-23  Eric Blake  <ebb9@byu.net>
97103         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
97105 2006-07-23  Eric Blake  <ebb9@byu.net>
97107         * lib/tmpfile-safer.c: New file.
97108         * lib/stdio-safer.h (fopen_safer): Add prototype.
97109         * lib/stdio--.h (tmpfile): Make safer.
97111 2006-07-23  Bruno Haible  <bruno@clisp.org>
97113         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
97114         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
97115         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
97116         gl_linked_remove_at): Use it.
97118 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
97119         and Simon Josefsson <jas@extundo.com>
97121         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
97123         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
97125 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
97127         * modules/close-stream: New file.
97128         * modules/closeout (Description): Make it clear that it exits
97129         with a diagnostic on error.
97130         (Depends-on): Add close-stream.  Remove fpending, stdbool.
97131         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
97133 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
97135         * m4/close-stream.m4: New file.
97137 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
97139         * lib/close-stream.c, lib/close-stream.h: New files.
97141 2006-07-22  Bruno Haible  <bruno@clisp.org>
97143         Merge from GNU gettext 0.15.
97145         2006-05-01  Bruno Haible  <bruno@clisp.org>
97147                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
97149         2006-07-22  Bruno Haible  <bruno@clisp.org>
97151                 * modules/javaversion: New file.
97152                 * MODULES.html.sh (Java): Add javaversion.
97154         2006-03-12  Bruno Haible  <bruno@clisp.org>
97156                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
97158         2005-12-04  Bruno Haible  <bruno@clisp.org>
97160                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
97161                 (untested).
97163         2006-06-21  Bruno Haible  <bruno@clisp.org>
97165                 Avoid warnings from recent versions of mcs.
97166                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
97167                 -o, -L, -r any more. Use options documented since mcs-1.0
97168                 instead. Similarly for -g.
97170         2005-12-04  Bruno Haible  <bruno@clisp.org>
97172                 * build-aux/csharpcomp.sh.in: Suffix for resources is
97173                 .resources, not .resource.
97175         2005-07-09  Bruno Haible  <bruno@clisp.org>
97177                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
97178                 add a .dll suffix.
97179                 Reported by Mark Junker <mjscod@gmx.de>.
97181         2006-07-22  Bruno Haible  <bruno@clisp.org>
97183                 * modules/gettext: Upgrade to gettext-0.15.
97184                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
97185                 m4/visibility.m4.
97186                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
97188 2006-07-22  Bruno Haible  <bruno@clisp.org>
97190         Merge from GNU gettext 0.15.
97192         2006-03-25  Bruno Haible  <bruno@clisp.org>
97194                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
97196         2006-07-21  Bruno Haible  <bruno@clisp.org>
97198                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
97199                 "1.1".
97201         2006-05-09  Bruno Haible  <bruno@clisp.org>
97203                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
97204                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
97205                 for the conftestver execution.
97207         2006-05-01  Bruno Haible  <bruno@clisp.org>
97209                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
97210                 optional target-version argument. Verify that the compiler
97211                 groks source of the specified source-version, or add -source
97212                 option as necessary. Verify that the compiler produces
97213                 bytecode in the specified target-version, or add -target and
97214                 -source options as necessary. Make the result of the test
97215                 available as variable CONF_JAVAC. Also log error output in
97216                 config.log.
97218         2006-03-11  Bruno Haible  <bruno@clisp.org>
97220                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
97222         2006-05-09  Bruno Haible  <bruno@clisp.org>
97224                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
97225                 CLASSPATH_SEPARATOR to a semicolon.
97227         2006-03-12  Bruno Haible  <bruno@clisp.org>
97229                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
97230                 available as variable CONF_JAVA, for subsequent autoconf
97231                 tests. Also log error output in config.log.
97233         2006-07-19  Bruno Haible  <bruno@clisp.org>
97235                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
97236                 that getline works on glibc2 systems. Needed to avoid trouble
97237                 in relocatable.c.
97238                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
97240         2005-12-04  Bruno Haible  <bruno@clisp.org>
97242                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
97243                 launcher (untested).
97245         2005-12-04  Bruno Haible  <bruno@clisp.org>
97247                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
97249         2006-07-22  Bruno Haible  <bruno@clisp.org>
97251                 * gettext.m4: Update from GNU gettext-0.15.
97252                 * nls.m4: Likewise.
97253                 * po.m4: Likewise.
97254                 * inttypes-pri.m4: Likewise.
97255                 * inttypes-h.m4: Renamed from inttypes.m4.
97256                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
97258 2006-07-22  Bruno Haible  <bruno@clisp.org>
97260         Merge from GNU gettext 0.15.
97262         2005-07-05  Bruno Haible  <bruno@clisp.org>
97264                 * printf-args.c (printf_fetchargs): Work around broken
97265                 definition of wint_t on mingw.
97267         2005-02-12  Bruno Haible  <bruno@clisp.org>
97269                 * xallocsa.h: Add extern "C" for C++.
97271         2006-05-17  Bruno Haible  <bruno@clisp.org>
97273                 Cygwin portability.
97274                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
97276         2006-04-30  Bruno Haible  <bruno@clisp.org>
97278                 * progreloc.c: Include <mach-o/dyld.h> if available.
97279                 (find_executable): Use _NSGetExecutablePath when possible.
97281         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
97283                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
97284                 function.
97286         2005-12-29  Bruno Haible  <bruno@clisp.org>
97288                 * progreloc.c (set_program_name_and_installdir): Fix
97289                 compilation error.
97291         2005-12-04  Bruno Haible  <bruno@clisp.org>
97293                 Cygwin portability.
97294                 * progreloc.c: Include <windows.h> also on Cygwin.
97295                 (find_executable): Add support for Cygwin.
97296                 (set_program_name_and_installdir): Handle also platforms with
97297                 nonempty EXEEXT.
97299         2006-07-11  Bruno Haible  <bruno@clisp.org>
97301                 * javacomp.c: Fix a comment.
97302                 Reported by Jim Meyering.
97304         2006-04-30  Bruno Haible  <bruno@clisp.org>
97306                 * javacomp.h (compile_java_class): Add source_version,
97307                 target_version arguments.
97308                 * javacomp.c: Rewritten to choose only a compiler that
97309                 respects the specified source_version and target_version.
97311         2006-06-27  Bruno Haible  <bruno@clisp.org>
97313                 Assume correct S_ISDIR macro.
97314                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
97316         2006-07-22  Bruno Haible  <bruno@clisp.org>
97318                 * javaversion.h: New file, from GNU gettext.
97319                 * javaversion.c: New file, from GNU gettext.
97320                 * javaversion.java: New file, from GNU gettext.
97321                 * javaversion.class: New file, from GNU gettext.
97323         2006-05-17  Bruno Haible  <bruno@clisp.org>
97325                 Cygwin portability.
97326                 * javaexec.c (execute_java_class): Test for jview program
97327                 also on Cygwin.
97329         2006-04-09  Bruno Haible  <bruno@clisp.org>
97331                 * fatal-signal.c: Don't include string.h.
97332                 (at_fatal_signal): Use a copying loop instead of memcpy.
97334         2005-12-04  Bruno Haible  <bruno@clisp.org>
97336                 * csharpexec.c: Add support for 'clix' launcher (untested).
97337                 (execute_csharp_using_sscli): New function.
97338                 (execute_csharp_program): Call it.
97340         2006-06-21  Bruno Haible  <bruno@clisp.org>
97342                 Avoid warnings from recent versions of mcs.
97343                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
97344                 -o, -L, -r any more. Use options documented since mcs-1.0
97345                 instead. Similarly for -g.
97347         2005-07-09  Bruno Haible  <bruno@clisp.org>
97349                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
97350                 add a .dll suffix.
97351                 Reported by Mark Junker <mjscod@gmx.de>.
97353         2006-06-17  Bruno Haible  <bruno@clisp.org>
97355                 * config.charset: Update for NetBSD 3.0.
97357         2006-05-17  Bruno Haible  <bruno@clisp.org>
97359                 Cygwin portability.
97360                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
97362         2006-05-16  Bruno Haible  <bruno@clisp.org>
97364                 * localcharset.c [CYGWIN]: Include <windows.h>.
97365                 (get_charset_aliases): For Cygwin, return the same CPxxx
97366                 aliases list as under WIN32.
97367                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
97368                 the environment variables. Fall back to GetACP().
97370         2006-04-05  Bruno Haible  <bruno@clisp.org>
97372                 * config.charset: Update Juan Manuel Guerrero's address.
97374         2005-02-12  Bruno Haible  <bruno@clisp.org>
97376                 * allocsa.h: Add extern "C" for C++.
97378         2005-02-10  Bruno Haible  <bruno@clisp.org>
97380                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
97381                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
97383         2006-07-22  Bruno Haible  <bruno@clisp.org>
97385                 * gettext.h: Update to GNU gettext-0.15.
97387 2006-07-22  Bruno Haible  <bruno@clisp.org>
97389         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
97390         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
97391         lib-prefix.m4, longdouble.m4, ssize_t.m4.
97393 2006-07-21  Eric Blake  <ebb9@byu.net>
97395         * modules/stdlib-safer: New file.
97396         * MODULES.html.sh (File stream based Input/Output): Add
97397         stdlib-safer.
97399 2006-07-21  Eric Blake  <ebb9@byu.net>
97401         * lib/stdlib-safer.h: New file from coreutils, required by
97402         stdlib--.h.
97404 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
97406         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
97408 2006-07-20  Bruno Haible  <bruno@clisp.org>
97410         * gnulib-tool: Recognize new option --assume-autoconf.
97411         (autoconf_minversion): New variable.
97412         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
97414 2006-07-20  Bruno Haible  <bruno@clisp.org>
97416         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
97418 2006-07-19  Derek R. Price  <derek@ximbiot.com>
97420         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
97421         Reindent and repaginate.
97423 2006-07-19  Derek Price  <derek@ximbiot.com>
97425         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
97426         Correct grammar.
97428 2006-07-17  Bruno Haible  <bruno@clisp.org>
97430         * modules/list: New file.
97431         * modules/array-list: New file.
97432         * modules/carray-list, modules/carray-list-tests: New files.
97433         * modules/linked-list, modules/linked-list-tests: New files.
97434         * modules/avltree-list, modules/avltree-list-tests: New files.
97435         * modules/rbtree-list, modules/rbtree-list-tests: New files.
97436         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
97437         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
97438         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
97439         * modules/oset: New file.
97440         * modules/array-oset: New file.
97441         * modules/avltree-oset, modules/avltree-oset-tests: New files.
97442         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
97443         * tests/test-carray_list.c: New file.
97444         * tests/test-linked_list.c: New file.
97445         * tests/test-avltree_list.c: New file.
97446         * tests/test-rbtree_list.c: New file.
97447         * tests/test-linkedhash_list.c: New file.
97448         * tests/test-avltreehash_list.c: New file.
97449         * tests/test-rbtreehash_list.c: New file.
97450         * tests/test-avltree_oset.c: New file.
97451         * tests/test-rbtree_oset.c: New file.
97452         * MODULES.html.sh (Container data structures): New section.
97454 2006-07-17  Bruno Haible  <bruno@clisp.org>
97456         * m4/gl_list.m4: New file.
97458 2006-07-17  Bruno Haible  <bruno@clisp.org>
97460         * lib/gl_list.h: New file.
97461         * lib/gl_list.c: New file.
97462         * lib/gl_array_list.h: New file.
97463         * lib/gl_array_list.c: New file.
97464         * lib/gl_carray_list.h: New file.
97465         * lib/gl_carray_list.c: New file.
97466         * lib/gl_linked_list.h: New file.
97467         * lib/gl_linked_list.c: New file.
97468         * lib/gl_anylinked_list1.h: New file.
97469         * lib/gl_anylinked_list2.h: New file.
97470         * lib/gl_avltree_list.h: New file.
97471         * lib/gl_avltree_list.c: New file.
97472         * lib/gl_anyavltree_list1.h: New file.
97473         * lib/gl_anyavltree_list2.h: New file.
97474         * lib/gl_rbtree_list.h: New file.
97475         * lib/gl_rbtree_list.c: New file.
97476         * lib/gl_anyrbtree_list1.h: New file.
97477         * lib/gl_anyrbtree_list2.h: New file.
97478         * lib/gl_anytree_list1.h: New file.
97479         * lib/gl_anytree_list2.h: New file.
97480         * lib/gl_linkedhash_list.h: New file.
97481         * lib/gl_linkedhash_list.c: New file.
97482         * lib/gl_anyhash_list1.h: New file.
97483         * lib/gl_anyhash_list2.h: New file.
97484         * lib/gl_avltreehash_list.h: New file.
97485         * lib/gl_avltreehash_list.c: New file.
97486         * lib/gl_rbtreehash_list.h: New file.
97487         * lib/gl_rbtreehash_list.c: New file.
97488         * lib/gl_anytreehash_list1.h: New file.
97489         * lib/gl_anytreehash_list2.h: New file.
97491         * lib/gl_oset.h: New file.
97492         * lib/gl_oset.c: New file.
97493         * lib/gl_array_oset.h: New file.
97494         * lib/gl_array_oset.c: New file.
97495         * lib/gl_avltree_oset.h: New file.
97496         * lib/gl_avltree_oset.c: New file.
97497         * lib/gl_rbtree_oset.h: New file.
97498         * lib/gl_rbtree_oset.c: New file.
97499         * lib/gl_anytree_oset.h: New file.
97501 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
97503         * m4/mkancesdirs.m4: New file.
97504         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
97505         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
97506         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
97507         it.
97509 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
97511         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
97512         * lib/mkancesdirs.h: New files.
97513         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
97514         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
97515         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
97516         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
97517         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
97518         callers changed.  Revamp internals significantly, by not
97519         attempting to create directories that are temporarily more
97520         permissive than the final results.  Do not attempt to use
97521         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
97522         This removes some race conditions, fixes some bugs, and simplifies
97523         things.  Use new dirchownmod function to do owner and mode changes.
97524         * lib/mkdir-p.h: Likewise.
97525         * lib/modechange.c (octal_to_mode): New function.
97526         (struct mode_change): New member mentioned.
97527         (make_node_op_equals): New arg mentioned.  All callers changed.
97528         (mode_compile): Keep track of which mode bits the user has explicitly
97529         mentioned.
97530         (mode_adjust): New arg DIR, so that we implement the X op correctly.
97531         New arg PMODE_BITS, to keep track of which mode bits the user
97532         mentioned; it treats S_ISUID and S_ISGID speciall.
97533         All callers changed.
97534         * lib/modechange.h: Likewise.
97536 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
97538         * MODULES.html.sh: Add mkancestors.
97539         * modules/mkancesdirs: New module.
97540         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
97541         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
97542         The chdir-safer and afs files are now orphans; I'll remove them
97543         unless someone speaks up.
97544         Add lib/dirchownmod.c, lib/dirchownmod.h.
97545         (Depends-on): Remove alloca, chown, save-cwd, dirname.
97546         Add lchown, mkancesdirs.
97547         (Maintainer): Add self.
97549 2006-07-15  Karl Berry  <karl@gnu.org>
97551         * gnulib-tool: help message wording/arrangement.
97553 2006-07-14  Simon Josefsson  <jas@extundo.com>
97555         * doc/gnulib.texi (Libtool and Windows): New section.
97557 2006-07-12  Simon Josefsson  <jas@extundo.com>
97559         * modules/gendocs (License): Fix license, approved by Karl.
97561 2006-07-12  Eric Blake  <ebb9@byu.net>
97563         * MODULES.html.sh: Add gendocs.
97565 2006-07-11  Eric Blake  <ebb9@byu.net>
97567         * modules/fdl: New module, to install doc/fdl.texi.
97568         * MODULES.html.sh: Add new section for documentation modules.
97569         * gnulib-tool: Avoid space-tab.
97570         (--doc-base): New option, to manage files from doc.
97572 2006-07-11  Eric Blake  <ebb9@byu.net>
97574         * m4/absolute-header.m4: Fix comments to match recent change.
97576 2006-07-11  Eric Blake  <ebb9@byu.net>
97578         * gnulib-tool: List --doc-base before --tests-base.
97580 2006-07-11  Derek R. Price  <derek@ximbiot.com>
97582         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
97584 2006-07-11  Bruno Haible  <bruno@clisp.org>
97586         * README: Mention where to put documentation.
97588 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97590         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
97592 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
97594         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
97595         to stdint.m4.
97597 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
97599         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
97600         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
97601         "no/such/file/stdint.h" when there is no such file, so that
97602         the resulting C code can be parsed by dodgy compilers.
97603         Problems reported by Bob Proulx.
97605 2006-07-10  Derek R. Price  <derek@ximbiot.com>
97607         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
97608         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
97609         macros into the GNU _D_EXACT_NAMLEN.
97610         * lib/savedir.c:  Likewise.
97611         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
97613 2006-07-10  Derek R. Price  <derek@ximbiot.com>
97614         and Paul Eggert  <eggert@cs.ucla.edu>
97616         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
97617         * m4/savedir.m4:
97618         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
97619         macros into the GNU _D_EXACT_NAMLEN.
97621 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
97623         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
97624         around the absolute name, to work around a problem with the HP-UX
97625         11.23 native C compiler, reported by Bob Proulx.
97627 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
97629         * doc/maintain.texi, make-stds.texi: Sync from
97630         <http://savannah.gnu.org/projects/gnustandards>.
97632 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
97634         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
97636 2006-07-09  Jim Meyering  <jim@meyering.net>
97638         * m4/glob.m4: Remove a doubled word in a comment.
97640 2006-07-09  Jim Meyering  <jim@meyering.net>
97642         * lib/argp-pv.c: Remove a doubled word in a comment.
97643         * lib/check-version.c (check_version): Likewise.
97644         * lib/javacomp.c (compile_java_class): Likewise.
97646 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
97648         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
97649         for the benefit of people using Autoconf 2.60.  If you want to
97650         support older Autoconf versions you can copy m4/onceonly_2_57.m4
97651         (or m4/onceonly.m4, if pre-2.57) manually.
97653 2006-07-08  Jim Meyering  <jim@meyering.net>
97655         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
97656         comment.
97657         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
97658         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
97659         comment.
97661 2006-07-08  Jim Meyering  <jim@meyering.net>
97663         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
97665 2006-07-07  Simon Josefsson  <jas@extundo.com>
97667         * tests/test-crc.c: Change expected crc value, the test vector
97668         were probably computed using the old broken crc.c?
97670 2006-07-06  Simon Josefsson  <jas@extundo.com>
97672         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
97673         now the canonical place for the M4 file).
97675         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
97676         from the sys_socket dependency now.
97678         * modules/inet_pton (Files): Ditto.
97680         * modules/inet_ntop (Files): Ditto.
97682 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
97684         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
97685         not gl_PREREQ_GETUSERSHELL.
97687 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97689         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
97690         with only one argument, for Autoconf 2.60.
97691         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
97692         expand to nothing, so add a shell command to avoid syntax error.
97693         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
97695 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97697         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
97699 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
97701         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
97702         no longer needed.  Check for isblank decl.
97703         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
97704         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
97705         of existence.
97707 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
97709         * lib/getloadavg.c: Use __VMS, not VMS.
97710         * lib/getopt.c: Likewise.
97711         * lib/getpagesize.h: Likewise.
97712         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
97713         and probably does not work.
97715 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
97717         * lib/.cppi-disable: Add wcwidth.
97718         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
97719         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
97720         (ISGRAPH): Remove.  All uses changed to isgraph.
97721         (FOLD) [!defined _LIBC]: Remove special case.
97722         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
97723         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
97724         HAVE_ISBLANK.
97725         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
97726         case.
97728 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
97730         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
97731         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
97732         brackets.  Other minor changes to suppress some compiler
97733         warnings.
97735 2006-07-06  Derek R. Price  <derek@ximbiot.com>
97736         and Paul Eggert  <eggert@cs.ucla.edu>
97738         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
97739         of invoking obsolescent AC_HEADER_DIRENT macro.
97740         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
97741         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
97742         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
97743         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
97744         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
97745         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
97746         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
97747         * m4/readdir.m4: Remove; no longer needed.
97749 2006-07-06  Derek R. Price  <derek@ximbiot.com>
97750         and Paul Eggert  <eggert@cs.ucla.edu>
97752         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
97753         Don't worry about this obsolete case any more.
97754         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
97755         directories.
97756         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
97757         worry about this obsolete case any more.
97758         * lib/fts.c: Likewise.
97759         * lib/getcwd.c: Likewise.
97760         * lib/glob.h: Likewise.
97761         * lib/savedir.c: Likewise.
97763 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
97765         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
97766         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
97767         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
97768         needed.
97769         All uses removed.
97770         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
97771         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
97772         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
97773         needed.
97774         * m4/getdate.m4 (gl_GETDATE): Likewise.
97775         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
97776         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
97777         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
97778         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
97779         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
97780         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
97781         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
97782         needed.
97784 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
97786         * lib/memcasecmp.c: Include <limits.h>.
97787         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
97788         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
97789         Don't assume isdigit succeeds only on '0' through '9'.
97791 2006-07-05  Eric Blake  <ebb9@byu.net>
97793         * modules/getaddrinfo (Depends-on): Add snprintf.
97795 2006-07-05  Eric Blake  <ebb9@byu.net>
97797         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
97798         to avoid 'header present but could not be compiled' on cygwin.
97800 2006-07-05  Eric Blake  <ebb9@byu.net>
97802         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
97803         missing from netdb.h.
97804         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
97806 2006-07-05  Derek R. Price  <derek@ximbiot.com>
97808         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
97809         no longer needed.
97810         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
97811         * m4/getdate.m4 (gl_GETDATE): Likewise.
97812         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
97813         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
97814         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
97815         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
97816         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
97818 2006-07-05  Derek R. Price  <derek@ximbiot.com>
97820         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
97821         All uses of is_space replaced by isspace.
97822         * lib/exit.h: Don't talk about STDC_HEADERS.
97823         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
97824         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
97825         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
97826         replaced by isprint etc.
97827         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
97828         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
97829         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
97830         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
97831         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
97832         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
97834 2006-07-05  Bruno Haible  <bruno@clisp.org>
97836         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
97837         the function exists, before testing against AIX.
97838         Reported by Martin Lambers <marlam@marlam.de>.
97840 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
97842         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
97843         From Mark D. Baushke.
97845 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
97847         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
97848         to the absolute name, not just one, to bypass Sun C 5.8's
97849         "warning: #include of /usr/include/... may be non-portable".
97851 2006-07-04  Eric Blake  <ebb9@byu.net>
97853         * modules/dirname-tests: New test module.
97854         * tests/test-dirname.c: New file, replacing dirname.c
97855         TEST_DIRNAME section that was recently deleted.
97857 2006-07-04  Bruno Haible  <bruno@clisp.org>
97859         Assume ANSI C header files and <ctype.h> functions.
97860         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
97861         (mbsnwidth): Use isprint, iscntrl instead.
97863 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
97865         Merge from coreutils.
97866         * MODULES.html.sh: Add xstrtold.
97867         * modules/xstrtold: New file.
97868         * modules/cycle-check (Files): Add lib/same-inode.h.
97869         * modules/dirname (Files): Add m4/double-slash-root.m4.
97870         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
97871         * modules/mkdir-p (Files): Add lib/same-inode.h.
97872         * modules/same (Files): Add lib/same-inode.h.
97874 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
97876         * m4/absolute-header.m4: Renamed from full-header-path.m4.
97877         This is to keep the terminology clean; POSIX talks about
97878         "absolute pathnames", not "full pathnames", but the GNU
97879         Coding Standards say to use "path" for something else;
97880         so use "absolute" to keep both sides happy.
97881         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
97882         Set gl_absolute_header, not gl_full_header_path.
97883         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
97884         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
97885         All uses changed.
97887         Merge from coreutils.
97889         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
97891         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
97892         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
97893         want to require the building of c-strtod.o.
97894         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
97895         needs -lm directly.
97896         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
97898         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
97900         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
97901         --as-needed option if available.  Problem reported by Albert Chin in
97902         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
97903         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
97904         cc merely issues a bunch of annoying warnings for --as-needed
97905         (this problem was reported by Bob Proulx).  Also, try linking with
97906         -lm to detect a bug in binutils 2.16 (this problem was reported
97907         by Ralf Wildenhues).
97909         2006-06-18  Jim Meyering  <jim@meyering.net>
97911         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
97912         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
97913         macro.
97914         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
97915         also check for glibc-2.4's abort-inducing bug.
97917         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
97918         Low-probability clean-up should be to use rmdir to get rid of
97919         the just-created directory, not unlink.
97921         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
97922         configure fail, and request a bug report to inform us about it.
97923         Add a comment that, barring reports to the contrary, in 2007 we'll
97924         assume ftruncate is universally available.
97926         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
97928         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
97930         2006-03-12  Jim Meyering  <jim@meyering.net>
97932         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
97933         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
97934         * m4/same.m4 (gl_SAME): Likewise.
97935         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
97937         2006-03-11  Eric Blake  <ebb9@byu.net>
97939         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
97940         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
97941         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
97942         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
97944 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
97946         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
97947         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
97948         reported by Mark D. Baushke, one in
97949         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
97951         Merge from coreutils.
97953         * lib/.cppi-disable: Add stdint_.h.
97954         * lib/.cvsignore: Add stdint.h.
97956         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
97958         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
97959         both double and long double versions.
97960         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
97961         * lib/xstrtold.c: New file.
97962         * lib/xstrtod.h (xstrtold): New decl.
97964         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
97966         * lib/filemode.c (setst): Remove.
97967         (strmode): Rewrite to avoid setst.  This makes the code shorter,
97968         (arguably) clearer, and the generated code is a bit smaller on my
97969         Debian GNU/Linux stable x86 host.
97971         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
97973         * lib/filemode.c: Include "filemode.h" first, to test the interface.
97974         Assume that filemode.h includes sys/types.h and sys/stat.h.
97975         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
97976         (ftypelet): Reorder to put common cases first, for efficiency.
97977         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
97978         to do 'M'.
97979         (strmode): Renamed from mode_string, and now stores 12 bytes instead
97980         of 10, for compatibility with FreeBSD.  All callers changed.
97981         (filemodestring): Now stores 12 bytes instead of 10, and sets file
97982         types that can't be deduced solely from st_mode.  First arg is now a
97983         const pointer.
97984         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
97985         (strmode): Renamed from mode_string.
97986         (filemodestring): New decl.
97987         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
97988         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
97989         needed.
97990         (S_ISPORT, S_ISWHT): New macros, if not already defined.
97992         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
97994         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
97995         fsusage.h now does that.  Include fsusage.h first, to test interface.
97996         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
97997         at most one method (the old code could have generated decls that
97998         didn't conform to C89, not that this was ever exercised).
97999         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
98001         2006-03-19  Jim Meyering  <jim@meyering.net>
98003         Work even in a chroot where d_ino values for entries in "/"
98004         don't match the stat.st_ino values for the same names.
98005         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
98006         number, iterate through all entries again, using lstat instead.
98007         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
98008         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
98010         * lib/getcwd.c (__getcwd): Clarify a comment.
98011         Use memcpy in place of a call to strcpy.
98013         2006-03-12  Jim Meyering  <jim@meyering.net>
98015         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
98016         matches that of the current directory (which we're about to chdir ".."
98017         out of), then save the dev-ino of the parent, instead.
98019         * lib/same-inode.h (SAME_INODE): New file/macro.
98020         * lib/chdir-safer.c (SAME_INODE): Remove definition.
98021         Include "same-inode.h", instead.
98022         * lib/same.c: Likewise.
98023         * lib/cycle-check.h: Include "same-inode.h".
98024         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
98025         * lib/cycle-check.c (SAME_INODE): Remove definition.
98026         * lib/root-dev-ino.h: Include "same-inode.h".
98028         2006-03-11  Eric Blake  <ebb9@byu.net>
98030         * lib/same.c (same_name): s/base_name/last_component/
98031         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
98032         * lib/filenamecat.c (file_name_concat): Likewise.
98034         2006-03-11  Eric Blake  <ebb9@byu.net>,
98035                     Paul Eggert  <eggert@cs.ucla.edu>
98037         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
98038         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
98039         drive prefix.
98040         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
98041         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
98042         (last_component): New method.
98043         * lib/dirname.c (dir_len): Determine when drive letters need a
98044         subsequent slash.  Preserve // when it is special.
98045         (dir_name): Don't append dot when drive letter is absolute.
98046         [TEST_DIRNAME]: Move into a full-blown gnulib test.
98047         * lib/basename.c (base_name): New semantics - malloc the result.
98048         Preserve // when it is special.  Preserve relative files that look
98049         like drive letters.
98050         (base_len): Preserve // when it is special.
98051         (last_component): New method, similar to old base_name semantics.
98052         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
98053         base_name.  Strip redundant slashes from ///.
98055 2006-07-03  Jim Meyering  <jim@meyering.net>
98057         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
98058         macro is used before the first cycle_check call.
98060 2006-07-03  Eric Blake  <ebb9@byu.net>
98062         * modules/dirname (Depends-on): Add xstrndup.
98064 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
98066         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
98067         test cases, so that config.log is a bit easier to follow.
98069 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
98071         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
98072         both are 64 bits, since this seems to be the tradition, and this
98073         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
98074         we ever run into a host that prefers long long to long in this
98075         case, we'll need another configure-time test.  Problem reported by
98076         Jim Meyering.
98078 2006-07-02  Eric Blake  <ebb9@byu.net>
98080         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
98082 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
98084         * modules/inttypes (Depends-on): No longer depends on stdint.
98085         * modules/stdint (Description): Say more about assumptions.
98086         Say that the fast types might differ.  Say macros are used.
98087         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
98088         (Makefile.am): Revise list of substituted symbols to match
98089         new stdint.m4.
98090         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
98091         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
98092         * tests/test-stdint.c (verify_same_types)
98093         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
98094         the code conforms to C99/C89.
98095         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
98096         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
98098 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
98100         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
98101         but fix a bug, by requiring at least 64 bits.
98102         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
98103         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
98104         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
98105         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
98107         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
98108         changes.  Make 2.59 a prerequisite.  Check and substitute for
98109         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
98110         inttypes.h.  Do not use special include files; just use the
98111         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
98112         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
98113         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
98114         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
98115         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
98116         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
98117         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
98118         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
98119         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
98120         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
98121         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
98122         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
98123         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
98124         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
98125         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
98126         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
98127         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
98128         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
98129         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
98130         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
98131         WINT_MAX.  Check for C99 conformance more strictly, by detecting
98132         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
98133         not check for things that C99 does not require, e.g., int8_t.  If
98134         a test isn't needed unless <stdint.h> isn't working, and is
98135         unlikely to be needed for any other reason, then don't do it
98136         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
98137         size_t, since we assume C89 freestanding at least.  Do not check
98138         for sig_atomic_t, wchar_t, or wint_t, since the code now does
98139         the right thing even if the types are not defined.  Instead use:
98140         (gl_STDINT_TYPE_PROPERTIES): New macro.
98141         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
98142         testing whether <sys/types.h> clashes, as Autoconf does this for
98143         us now.  All uses removed.
98144         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
98145         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
98146         (gl_CHECK_TYPE_SAME):
98147         Remove; no longer needed.
98148         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
98149         exists, since we'll return 0 anyway in that case.
98150         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
98152 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
98154         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
98155         possible collision with system files.
98156         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
98157         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
98158         WCHAR_MIN and WCHAR_MAX in this case.
98159         (<stddef.h>): Do not include; no longer needed.
98160         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
98161         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
98162         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
98163         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
98164         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
98165         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
98166         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
98167         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
98168         !defined(__c99))]: Include in this case too, since it's harmless
98169         now.
98170         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
98171         dangerous to do so.
98172         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
98173         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
98174         (_STDINT_MIN, _STDINT_MAX): New macros.
98175         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
98176         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
98177         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
98178         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
98179         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
98180         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
98181         macros, not typedefs; this simplifies things quite a bit.
98182         Use long int for all types narrower than int64_t.
98183         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
98184         Define in terms of long long int or int64_t or long int,
98185         not int64_t or int32_t.  This saves some compile-time testing.
98186         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
98187         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
98188         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
98189         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
98190         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
98191         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
98192         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
98193         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
98194         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
98195         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
98196         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
98197         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
98198         undef any previous version and define our own version, for
98199         simplicity and consistency with the new macros for types.
98200         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
98201         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
98202         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
98203         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
98204         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
98205         @WINT_T_SUFFIX@ to keep things simple here.
98206         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
98207         Simplify by assuming typical 8/16/32/64 host, since we're
98208         already doing that elsewhere anyway.
98209         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
98210         and assume long long int is 64 bits if available.  This
98211         speeds up 'configure'.
98213 2006-07-01  Eric Blake  <ebb9@byu.net>
98215         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
98216         Reported by Andreas Buening.
98218 2006-07-01  Eric Blake  <ebb9@byu.net>
98220         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
98222 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
98224         * lib/getaddrinfo.c: fixed typo
98226 2006-06-29  Jim Meyering  <jim@meyering.net>
98228         * modules/strftime (Maintainer): Add my name, since with the
98229         FPRINTFTIME changes strftime.c has forked from glibc.
98231 2006-06-29  Eric Blake  <ebb9@byu.net>
98233         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
98235 2006-06-29  Eric Blake  <ebb9@byu.net>
98237         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
98239 2006-06-29  Eric Blake  <ebb9@byu.net>
98241         * lib/stat_.h: New file.
98243 2006-06-29  Eric Blake  <ebb9@byu.net>
98245         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
98246         unused static function.
98248 2006-06-29  Eric Blake  <ebb9@byu.net>
98250         * doc/functions.texi (Function Portability): Document missing lstat
98251         on mingw.
98253 2006-06-29  Eric Blake  <ebb9@byu.net>
98255         * MODULES.html.sh: Add sys_stat.
98256         * modules/sys_stat: New module.
98257         * modules/mkstemp (Depends-on): Add sys_stat.
98259 2006-06-29  Derek R. Price  <derek@ximbiot.com>
98261         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
98263 2006-06-29  Derek R. Price  <derek@ximbiot.com>
98265         * m4/c-bs-a.m4: Removed.
98267 2006-06-29  Derek R. Price  <derek@ximbiot.com>
98269         * lib/strftime.c: Assume strftime() exists.
98271 2006-06-29  Derek Price  <derek@ximbiot.com>
98273         * modules/c-bs-a: Removed - \a is C89.
98274         * MODULES.html.sh: Remove c-bs-a.
98276 2006-06-29  Bruno Haible  <bruno@clisp.org>
98278         * modules/wcwidth (License): Change to LGPL.
98280 2006-06-28  Simon Josefsson  <jas@extundo.com>
98282         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
98283         on _WIN32.
98285         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
98286         getnameinfo.
98288 2006-06-28  Simon Josefsson  <jas@extundo.com>
98290         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
98292 2006-06-28  Simon Josefsson  <jas@extundo.com>
98294         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
98295         functions there.  It will succeed on Windows XP, but on Windows
98296         2000 and (presumably) earlier, it will fail, and use the internal
98297         re-implementation.
98298         (use_win32_p): New function.
98299         (getaddrinfo): Use strtoul on servname, to support numeric ports.
98300         Support AI_NUMERICSERV to disable getservbyname.
98301         (getnameinfo): New function, only supports
98302         NI_NUMERICHOST|NI_NUMERICSERV for now.
98304         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
98305         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
98306         getnameinfo.
98308 2006-06-28  Eric Blake  <ebb9@byu.net>
98310         * modules/wcwidth: New file.
98311         * modules/mbchar (Depends-on): Add wcwidth.
98312         * modules/mbswidth (Depends-on): Add wcwidth.
98313         * MODULES.html.sh: Add wcwidth.
98315 2006-06-28  Eric Blake  <ebb9@byu.net>
98317         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
98318         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
98320 2006-06-28  Eric Blake  <ebb9@byu.net>
98322         * lib/xvasprintf.h: Fix comments.
98324 2006-06-28  Eric Blake  <ebb9@byu.net>
98326         * lib/mbchar.h (wcwidth): Include wcwidth.h.
98327         * lib/mbswidth.c (wcwidth): Move from here...
98328         * lib/wcwidth.h: ...to this new file.
98330 2006-06-28  Derek R. Price  <derek@ximbiot.com>
98332         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
98334         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
98335         it's obsolete.
98336         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
98338 2006-06-28  Derek R. Price  <derek@ximbiot.com>
98340         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
98341         Autoconf 2.60 says this stuff was obsolete.
98343 2006-06-28  Bruno Haible  <bruno@clisp.org>
98345         * modules/wcwidth (Files): Add m4/wchar_t.m4.
98347 2006-06-28  Bruno Haible  <bruno@clisp.org>
98349         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
98350         gt_TYPE_WCHAR_T.
98352 2006-06-28  Bruno Haible  <bruno@clisp.org>
98354         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
98355         declaration for wcwidth.
98356         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
98358 2006-06-28  Bruno Haible  <bruno@clisp.org>
98360         * lib/mkdtemp.c [MINGW]: Include <io.h>.
98361         (mkdir): Define using _mkdir.
98363 2006-06-28  Bruno Haible  <bruno@clisp.org>
98365         * lib/getaddrinfo.h: Fix POSIX URL.
98366         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
98367         _WIN32.
98368         (use_win32_p): Make static.
98369         (getaddrinfo): Reject service name if it is empty or does not consist
98370         solely of decimal digits, or if its value is > 65535.
98371         (getnameinfo): Remove useless casts.
98373 2006-06-27  Simon Josefsson  <jas@extundo.com>
98375         * modules/sys_select: New file, suggested by Bruno Haible, Paul
98376         Eggert and Martin Lambers.
98378 2006-06-27  Simon Josefsson  <jas@extundo.com>
98380         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
98381         Eggert and Martin Lambers.
98383 2006-06-27  Bruno Haible  <bruno@clisp.org>
98385         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
98386         result to 0, not to empty.
98387         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
98389 2006-06-27  Bruno Haible  <bruno@clisp.org>
98391         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
98393 2006-06-26  Simon Josefsson  <jas@extundo.com>
98395         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
98396         present.
98398 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
98400         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
98401         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
98402         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
98404 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
98406         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
98408 2006-06-26  Bruno Haible  <bruno@clisp.org>
98410         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
98412 2006-06-26  Bruno Haible  <bruno@clisp.org>
98414         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
98416 2006-06-26  Bruno Haible  <bruno@clisp.org>
98418         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
98419         SGI C compiler in pre-C99 mode.
98420         Suggested by Mark D. Baushke and Larry Jones.
98422 2006-06-26  Bruno Haible  <bruno@clisp.org>
98424         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
98425         WCHAR_MAX.
98426         Reported by Mark D. Baushke and Larry Jones.
98428 2006-06-26  Bruno Haible  <bruno@clisp.org>
98430         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
98431         in pre-C99 mode.
98432         Suggested by Mark D. Baushke and Larry Jones.
98434 2006-06-23  Simon Josefsson  <jas@extundo.com>
98435             Bruno Haible  <bruno@clisp.org>
98437         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
98438         Emit mostlyclean-local rule.
98439         (func_emit_tests_Makefile_am): Likewise.
98440         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
98442 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
98444         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
98446 2006-06-23  Bruno Haible  <bruno@clisp.org>
98448         * tests/test-stdint.c: Update to match ISO C 99 Technical
98449         Corrigendum 1.
98451 2006-06-23  Bruno Haible  <bruno@clisp.org>
98453         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
98455 2006-06-23  Bruno Haible  <bruno@clisp.org>
98457         * lib/stdint_.h: Treat IRIX like OpenBSD.
98459 2006-06-23  Bruno Haible  <bruno@clisp.org>
98461         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
98462         ISO C 99 Technical Corrigendum 1.
98464 2006-06-22  Simon Josefsson  <jas@extundo.com>
98466         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
98467         MinGW.
98469 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
98471         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
98472         needed.  Some compiler complained about some of them.  Problem reported
98473         by Larry Jones in
98474         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
98476 2006-06-21  Simon Josefsson  <jas@extundo.com>
98478         * tests/test-getaddrinfo.c: New file.
98480         * modules/getaddrinfo-tests: New file.
98482         * MODULES.html.sh: Add inet_pton.
98484         * modules/inet_pton: New file.
98486 2006-06-21  Simon Josefsson  <jas@extundo.com>
98488         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
98489         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
98490         of using the (limited) gnulib implementation on Windows XP.
98492         * m4/inet_pton.m4: New file.
98494 2006-06-21  Simon Josefsson  <jas@extundo.com>
98496         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
98497         variable.
98499         * lib/socket_.h: Don't define WINVER.
98501         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
98502         slightly modified to work in gnulib.
98504 2006-06-21  Simon Josefsson  <jas@extundo.com>
98506         * doc/gnulib.texi (Windows sockets): Add.
98508 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
98510         * lib/read-file.c (fread_file): Start with buffer allocation of
98511         0 bytes rather than 1 byte; this simplifies the code.
98512         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
98513         code to free buffer and save/restore errno.
98514         (internal_read_file): Remove unused local.
98516 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
98518         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
98519         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
98520         Problem reported by Denis Excoffier in
98521         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
98523 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
98525         * modules/sys_socket, modules/socklen: Include sys/types since
98526         FreeBSD 4.x's sys/socket.h needs it.
98528 2006-06-19  Simon Josefsson  <jas@extundo.com>
98530         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
98532 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
98534         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
98536 2006-06-19  Bruno Haible  <bruno@clisp.org>
98538         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
98539         and FULL_PATH_INTTYPES_H in angle brackets.
98540         Reported by Mark D. Baushke <mdb@gnu.org>.
98542 2006-06-17  Eric Blake  <ebb9@byu.net>
98544         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
98545         errno.
98547 2006-06-17  Bruno Haible  <bruno@clisp.org>
98549         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
98550         <sys/inttypes.h>.
98552 2006-06-17  Bruno Haible  <bruno@clisp.org>
98554         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
98555         whether errno is declared. Assume <errno.h> declares errno.
98557 2006-06-17  Bruno Haible  <bruno@clisp.org>
98559         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
98561 2006-06-17  Bruno Haible  <bruno@clisp.org>
98563         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
98564         problem on Solaris 2.5.1.
98566 2006-06-16  Eric Blake  <ebb9@byu.net>
98568         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
98569         * lib/unicodeio.c [!defined errno]: Likewise.
98570         * lib/strtol.c [!defined errno]: Likewise.
98571         * lib/strtod.c [!defined errno]: Likewise.
98573 2006-06-15  Eric Blake  <ebb9@byu.net>
98575         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
98577 2006-06-15  Eric Blake  <ebb9@byu.net>
98579         * config/srclist.txt (ssize_t.m4): Lose sync.
98581 2006-06-15  Bruno Haible  <bruno@clisp.org>
98583         * modules/stdint (Files): Include m4/full-header-path.m4,
98584         m4/size_max.m4, m4/wchar_t.m4.
98585         (Makefile.am): Many more substitutions.
98586         * modules/stdint-tests: New file.
98587         * tests/test-stdint.c: New file.
98589 2006-06-15  Bruno Haible  <bruno@clisp.org>
98591         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
98592         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
98593         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
98594         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
98595         gl_CHECK_TYPE_SAME): New macros.
98597 2006-06-15  Bruno Haible  <bruno@clisp.org>
98599         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
98601 2006-06-15  Bruno Haible  <bruno@clisp.org>
98603         * lib/stdint_.h: Rewritten to be fully auto-configured.
98604         Fixes bug on HP-UX/IA64.
98606 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
98608         * lib/getdate.y (__attribute__): Don't define if already defined.
98609         Problem reported by Larry Jones.
98610         * lib/utimens.c (__attribute__): Likewise.
98612 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
98614         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
98615         reported by Andreas Schwab.
98617 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98618             Bruno Haible  <bruno@clisp.org>
98620         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
98621         check for the declaration of strnlen and a run test that exposes the
98622         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
98623         rpl_strndup.
98625 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98626             Bruno Haible  <bruno@clisp.org>
98628         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
98630 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98632         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
98633         compile test, for Tru64 4.0D.
98635 2006-05-28  Karl Berry  <karl@gnu.org>
98637         * config/srclist.txt (printf-args.c): lose sync.
98639 2006-05-26  Martin Lambers  <marlam@marlam.de>
98641         * lib/getpass.c: Updates the test for the native W32 API, and adds
98642         missing includes, thus fixing compilation warnings.
98644 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
98646         * lib/exclude.c (exclude_fnmatch): New function.
98647         (excluded_file_name): Call exclude_fnmatch.
98648         * lib/exclude.h (excluded_file_name): New prototype
98650 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
98652         * lib/tempname.c (small_open, large_open): New macros.
98653         (__open, __open64) [!_LIBC]: Remove.
98654         (__gen_tempname): Use small_open and large_open instead of __open
98655         and __open64.  This fixes a portability bug on HP-UX 11.11i
98656         reported by Simon Wing-Tang in
98657         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
98659 2006-05-24  Bruno Haible  <bruno@clisp.org>
98661         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
98662         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
98663         Reported by Thorsten Maerz <torte@netztorte.de> via
98664         Aaron Stone <aaron@serendipity.cx>.
98666 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
98668         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
98669         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
98670         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
98671         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
98672         not really conditional on the cache.
98673         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
98675 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
98677         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
98678         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
98679         (my_usleep): Don't mishandle maximum value.
98681 2006-05-19  Jim Meyering  <jim@meyering.net>
98683         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
98685 2006-05-17  Bruno Haible  <bruno@clisp.org>
98687         Cygwin portability.
98688         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
98690 2006-05-17  Bruno Haible  <bruno@clisp.org>
98692         * lib/stdint_.h: Fix recognition of Cygwin.
98694 2006-05-15  Bruno Haible  <bruno@clisp.org>
98696         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
98697         on libtool patch by Ralf Wildenhues.
98699 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
98701         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
98702         test for C99 conformance; (bool) 0.5 is an integer constant
98703         expression, but (bool) -0.5 is not.  Problem reported by Fedor
98704         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
98706 2006-05-11  Simon Josefsson  <jas@extundo.com>
98708         * m4/xvasprintf.m4: Fix obvious typo.
98710 2006-05-11  Jim Meyering  <jim@meyering.net>
98712         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
98713         James Lemley.
98715 2006-05-10  Simon Josefsson  <jas@extundo.com>
98717         * lib/md4.c: Typo fix, update copyright years.
98718         (K1, K2): Don't use L because it turn computations into 64-bit on
98719         64-bit platforms.
98721 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
98723         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
98724         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
98725         unwanted sign propagation, e.g., on hosts with 64-bit int.
98726         There still are some problems with reeelly weird theoretical hosts
98727         (e.g., 33-bit int) but it's not worth worrying about now.
98728         * lib/sha1.c (rol): Likewise.
98729         (K1, K2, K3, K4): Remove unnecessary L suffix.
98731 2006-05-10  Bruno Haible  <bruno@clisp.org>
98733         * lib/des.c: Cast to avoid warnings.
98735 2006-05-09  Bruno Haible  <bruno@clisp.org>
98737         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
98738         (Depends-on): Depend also on xsize, stdarg.
98739         (configure.ac): Add gl_XVASPRINTF.
98741 2006-05-09  Bruno Haible  <bruno@clisp.org>
98743         * m4/xvasprintf.m4: New file.
98745 2006-05-09  Bruno Haible  <bruno@clisp.org>
98747         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
98748         (EOVERFLOW): Define fallback value.
98749         (xstrcat): New function.
98750         (xvasprintf): Recognize the special case of a string concatenation.
98752 2006-05-08  Eric Blake  <ebb9@byu.net>
98754         * gnulib-tool (func_version): Base copyright year on CVS date.
98755         (func_emit_copyright_notice): New function.
98756         (func_emit_lib_Makefile_am): Use it.
98757         (func_emit_tests_Makefile_am): Likewise.
98758         (func_import): Likewise.
98760 2006-05-08  Bruno Haible  <bruno@clisp.org>
98762         * modules/stdarg: New file.
98763         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
98765 2006-05-08  Bruno Haible  <bruno@clisp.org>
98767         * m4/stdarg.m4: New file, from GNU gettext.
98769 2006-05-08  Bruno Haible  <bruno@clisp.org>
98771         * config/srclist.txt (build-aux/config.rpath): different from latest
98772         release.
98774 2006-05-08  Bruno Haible  <bruno@clisp.org>
98776         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
98778 2006-05-05  Jim Meyering  <jim@meyering.net>
98780         * m4/warning.m4: New file, derived from bison's file by the same name.
98782 2006-05-03  Bruno Haible  <bruno@clisp.org>
98784         * lib/stdint_.h: Shorter URL.
98785         * lib/inttypes.h: Likewise.
98787 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
98789         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
98791 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
98793         * lib/verify.h: Document the internals better.  Most of this change
98794         was written by Bruno Haible.
98796 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
98798         * doc/verify.texi: New file, partly based on a proposal by
98799         Bruno Haible.
98801 2006-05-02  Bruno Haible  <bruno@clisp.org>
98803         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
98804         test from here...
98805         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
98807 2006-04-29  Bruno Haible  <bruno@clisp.org>
98809         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
98810         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
98812 2006-04-29  Bruno Haible  <bruno@clisp.org>
98814         * gnulib-tool: Make --update option actually work.
98816 2006-04-29  Bruno Haible  <bruno@clisp.org>
98818         * doc/gcd.texi: New file.
98819         * doc/gnulib.texi: Include it.
98821 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
98823         * lib/getdate.y (get_date): When adding relative date, start with the
98824         initial time, not with the result of the first mktime call.
98826 2006-04-25  Bruno Haible  <bruno@clisp.org>
98828         * gnulib-tool (func_import): Output the include directives in three
98829         blocks, sorted separately.
98830         Reported by Ben Pfaff <blp@cs.stanford.edu>.
98832 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
98834         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
98835         to define main with arguments, for C++.  Reported by Eric Blake.
98836         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
98837         Prefer 'int main ()' to 'int main (void)', for C++.
98838         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
98839         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
98840         for 'main', for C99 and C++.
98842 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
98844         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
98845         Don't assume that exit status -1 is valid.
98846         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
98847         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
98848         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
98849         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
98850         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
98851         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
98852         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
98853         functions can be used without declaring them, or that you can
98854         exit with status -1.
98855         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
98857 2006-04-24  Karl Berry  <karl@gnu.org>
98859         * config/srclist.txt (longdouble.m4): sync lost.
98861 2006-04-24  Eric Blake  <ebb9@byu.net>
98863         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
98865 2006-04-24  Bruno Haible  <bruno@clisp.org>
98867         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
98868         poll() implementation in AIX.
98869         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
98871 2006-04-24  Bruno Haible  <bruno@clisp.org>
98873         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
98874         assigned exactly once.
98876 2006-04-23  Claudio Fontana  <claudio@gnu.org>
98877             Bruno Haible  <bruno@clisp.org>
98879         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
98880         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
98881         for AM_CPPFLAGS.
98883 2006-04-23  Bruno Haible  <bruno@clisp.org>
98885         * modules/copy-file: Depend on unistd.
98886         * modules/execute: Likewise.
98887         * modules/fatal-signal: Likewise.
98888         * modules/findprog: Likewise.
98889         * modules/mkdtemp : Likewise.
98890         * modules/pipe: Likewise.
98891         * modules/wait-process: Likewise.
98893 2006-04-23  Bruno Haible  <bruno@clisp.org>
98895         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
98896         condition was already detected.
98897         Reported by Ben Pfaff <blp@cs.stanford.edu>.
98899 2006-04-23  Bruno Haible  <bruno@clisp.org>
98901         * lib/copy-file.c: Include <unistd.h> unconditionally.
98902         * lib/execute.c: Likewise.
98903         * lib/fatal-signal.c: Likewise.
98904         * lib/findprog.c: Likewise.
98905         * lib/mkdtemp.c: Likewise.
98906         * lib/pipe.h: Likewise.
98907         * lib/pipe.c: Likewise.
98908         * lib/wait-process.h: Likewise.
98910 2006-04-23  Bruno Haible  <bruno@clisp.org>
98912         * gnulib-tool (func_usage): Fix --import description. Document
98913         --update.
98914         (func_import): Create temporary file in a temporary directory, if
98915         --dry-run is specified. Silence errors from 'grep' when there are no
98916         m4 files in $m4dir.
98917         (func_create_testdir): Silence errors from 'grep' when there are no
98918         m4 files in $m4dir.
98919         Reported by Karl Berry <karl@freefriends.org>.
98921 2006-04-20  Bruno Haible  <bruno@clisp.org>
98923         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
98924         one argument, so that the code will be portable to Autoconf 2.60.
98925         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
98926         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
98927         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
98929 2006-04-19  Derek Price  <derek@ximbiot.com>
98930             Eric Blake  <ebb9@byu.net>
98932         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
98933         rather than "/full/path.h".  Update comment to match.  Shorten &
98934         generalize m4_translit call via AS_TR_CPP.
98936 2006-04-19  Derek Price  <derek@ximbiot.com>
98937             Eric Blake  <ebb9@byu.net>
98939         * lib/inttypes.h: Correct grammar in comment.
98941 2006-04-18  Derek Price  <derek@ximbiot.com>
98942             Paul Eggert  <eggert@cs.ucla.edu>
98944         * modules/inttypes: New file.
98945         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
98947 2006-04-18  Derek Price  <derek@ximbiot.com>
98948             Paul Eggert  <eggert@cs.ucla.edu>
98950         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
98951         New files.
98953 2006-04-18  Derek Price  <derek@ximbiot.com>
98954             Paul Eggert  <eggert@cs.ucla.edu>
98956         * lib/inttypes.h: New file.
98957         * lib/strtoimax.c: Assume <inttypes.h>.
98959 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
98961         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
98962         isn't mounted.  Problem reported by Kir Kolyshkin.
98964 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
98966         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
98967         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
98968         Derek R. Price.
98969         * lib/regex.h (RE_DUP_MAX): Update comment to match current
98970         implementation.
98972 2006-04-12  Eric Blake  <ebb9@byu.net>
98974         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
98975         is now done automatically by the corresponding Autoconf macro.
98977 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
98979         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
98980         time_r.h.
98982 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
98984         Merge regex changes from libc, removing some of our
98985         POSIX-conformance changes that were rejected and redoing them in a
98986         less-intrusive way.
98988         * lib/regcomp.c (re_compile_internal, init_dfa):
98989         Length arg is now size_t, not Idx.  All uses changed.
98990         (peek_token): Forward decl now says internal_function.
98991         (__re_error_msgid, __re_error_msgid_idx):
98992         Now static rather than extern with attribute_hidden.
98993         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
98994         For some reason libc prefers K&R style defns for external functions.
98995         (regerror) [!defined _LIBC]: Likewise.
98996         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
98997         (seek_collating_symbol_entry, lookup_collation_sequence_value):
98998         (build_range_exp, build_collating_symbol):
98999         Use K&R-style defn.
99000         (re_compile_fastmap): Use '\0' to memset, not 0.
99001         (utf8_sb_map): Make the calculations more obvious.
99002         (init_dfa, parse_bracket_exp, build_charclass_op):
99003         Call calloc and cast result, as glibc does.
99004         (init_word_char, fetch_token, peek_token, peek_token_bracket):
99005         (build_range_exp, build_collating_symbol):
99006         Now internal functions.
99008         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
99010         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
99011         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
99012         Don't depend on VMS; depend on __VMS instead, for POSIX
99013         namespace cleanness.
99014         (regoff_t): Define to ssize_t, not long int.
99016         Remove the REG_ macros named below.  Instead, make the old names
99017         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
99018         __USE_GNU_REGEX.
99019         (REG_BACKSLASH_ESCAPE_IN_LISTS):
99020         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
99021         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
99022         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
99023         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
99024         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
99025         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
99026         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
99027         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
99028         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
99029         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
99030         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
99031         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
99032         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
99033         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
99034         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
99035         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
99036         (REG_NREGS):
99037         Remove.  All uses replaced by the old RE_* names.
99038         (RE_BACKSLASH_ESCAPE_IN_LISTS):
99039         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
99040         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
99041         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
99042         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
99043         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
99044         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
99045         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
99046         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
99047         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
99048         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
99049         Don't bother having these macros be independent of each others'
99050         values, since they no longer exist in the POSIX name space.
99052         Rename the following member names back to their old names,
99053         unless !__USE_GNU_REGEX.  All uses changed back.
99054         (buffer): Renamed from re_buffer.
99055         (allocated): Renamed from re_allocated.
99056         (used): Renamed from re_used.
99057         (syntax): Renamed from re_syntax.
99058         (fastmap): Renamed from re_fastmap.
99059         (translate): Renamed from re_translate.
99060         (can_be_null): Renamed from re_can_be_null.
99061         (regs_allocated): Renamed from re_regs_allocated.
99062         (fastmap_accurate): Renamed from re_fastmap_accurate.
99063         (no_sub): Renamed from re_no_sub.
99064         (not_bol): Renamed from re_not_bol.
99065         (not_eol): Renamed from re_not_eol.
99066         (newline_anchor): Renamed from re_newline_anchor.
99067         (num_regs): Renamed from rm_num_regs.
99068         (start): Renamed from rm_start.
99069         (end): Renamed from rm_end.
99071         (free_state): Move up a bit.
99073         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
99074         #define to be empty.
99075         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
99076         when that is what is intended.
99077         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
99078         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
99079         (MAX): New macro.
99080         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
99081         All uses changed back to re_malloc, etc.  It's now the caller's
99082         responsibility to check for overflow; all callers changed.
99083         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
99084         (re_x2nrealloc): Remove.
99085         (free_state): Remove decl.
99087         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
99088         (re_set_registers, re_exec):
99089         Use K&R-style defn.
99091         2006-01-31  Roland McGrath  <roland@redhat.com>
99093         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
99094         Reported by Mike Frysinger <vapier@gentoo.org>.
99096         2006-01-15  Andreas Jaeger  <aj@suse.de>
99098         [BZ #1950]
99099         * lib/regex_internal.c (re_string_reconstruct): Adjust for
99100         build_wcs_upper_buffer change.
99101         (build_wcs_upper_buffer): Change return type.
99103         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
99105         * lib/regex_internal.h: Include <stdint.h> if available.
99107         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
99109         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
99111         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
99113         * lib/regcomp.c: Adjust for changed secondary hash function.
99115         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
99117         * lib/regex.h: Pretty printing.
99118         Clean up namespace a bit.
99120         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
99122         * lib/regexec.c (update_cur_sifted_state, check_arrival,
99123         check_arrival_add_next_nodes): Avoid using uninitialized variable.
99125         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
99126                     Ulrich Drepper  <drepper@redhat.com>
99128         [BZ #1302]
99129         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
99130         changed.
99131         (bitset_word_t): Renamed from bitset_word.  All uses changed.
99133         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
99135         [BZ #281]
99136         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
99137         * lib/regcomp.c: Remove unnecessary uses of
99138         unsigned RE_TRANSLATE_TYPE.
99139         * lib/regex_internal.h: Likewise.
99140         * lib/regex_internal.c: Likewise.
99141         * lib/regexec.c: Likewise.
99142         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
99144         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
99146         * lib/regexec.c (find_recover_state): Remove unnecessary
99147         initialization.
99148         (transit_state_bkref): Make DFA a const pointer.
99149         (get_subexp): Likewise.
99150         (check_arrival): Likewise.
99151         (update_cur_sifted_state): Likewise.
99152         (re_search_internal): Likewise.
99153         (prune_impossible_nodes): Likewise.
99154         (acquire_init_state_context): Likewise.
99155         (proceed_next_node): Likewise.
99156         (set_regs): Likewise.
99157         (free_fail_stack_return): Likewise.
99158         (check_arrival_expand_ecl): Mark DFA parameter as const.
99159         (check_arrival_expand_ecl_sub): Likewise.
99160         (check_subexp_limits): Likewise.
99161         (sub_epsilon_src_nodes):  Likewise.
99162         (add_epsilon_src_nodes):  Likewise.
99163         (merge_state_array): Likewise.
99164         (update_regs): Likewise.
99165         (build_trtable): Likewise.
99166         (sift_states_backward): Mark MCTX parameter as const.
99167         (build_sifted_states): Likewise.
99168         (update_cur_sifted_state): Likewise.
99169         (sift_states_mkref): Likewise.
99170         (check_arrival_expand_ecl): Mark eclosure as const.
99171         (check_dst_limits_calc_pos_1): Likewise.
99172         * lib/regex_internal.h (re_match_context_t): Make dfa a const
99173         pointer.
99175         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
99177         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
99178         (transit_state_sb): Likewise.
99179         (transit_state_mb): Likewise.
99180         (sift_states_iter_mb): Likewise.
99181         (check_arrival_add_next_nodes): Likewise.
99182         (check_node_accept_bytes): Change first parameter to pointer-to-const.
99183         [_LIBC] (re_search_2_stub): Use mempcpy.
99185         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
99186         mbrtowc for very simple UTF-8 case.
99188         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
99189         a pointer-to-const.
99190         (re_acquire_state_context): Likewise.
99191         * lib/regex_internal.h: Adjust prototypes.
99193         * lib/regex.c: Prevent using C++ compilers.
99195         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
99196         (re_acquire_state_context): Likewise.
99198 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
99200         * modules/regex (Depends-on): Add ssize_t.
99202 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
99204         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
99205         translation table.
99207 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
99209         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
99211 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
99212             Bruno Haible  <bruno@clisp.org>
99214         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
99215         <sys/types.h> and <inttypes.h>.
99217 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99219         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
99220         `__error_t_defined', so argp.h will not typedef the former.
99222 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
99224         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
99225         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
99226         glibc names.  Even if glibc is changed to conform to POSIX, the
99227         traditional names will be available anyway, since regex depends on
99228         the extensions module.  Also, fix a longstanding typo in the
99229         implementation of Spencer ERE test #75 from grep 2.3.  Problems
99230         reported by Emanuele Giaquinta.  Also, change sense of cached
99231         variable, so that the message makes sense.
99233 2006-03-24  Simon Josefsson  <jas@extundo.com>
99235         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
99236         including some doc fixes.
99237         (base64_encode_alloc): Fix +1 bug on allocation failures.
99239 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99241         * lib/base64.c (base64_encode): Do not read past end of array with
99242         unsanitized input on systems with CHAR_BIT > 8.
99244 2006-03-24  Eric Blake  <ebb9@byu.net>
99246         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
99248 2006-03-22  Karl Berry  <karl@gnu.org>
99250         * config/srclist.txt (*setenv.[ch]): get from coreutils.
99251         * config/srclistvars.sh (COREUTILS): new var.
99253 2006-03-17  Jim Meyering  <jim@meyering.net>
99255         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
99256         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
99258 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
99260         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
99261         no longer needs it.  Instead, check that regoff_t is as least
99262         as wide as ptrdiff_t.
99264         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
99265         so that our regex.h stays compatible with the installed regex.
99266         This is helpful for installers who configure --without-included-regex.
99267         Problem reported by Emanuele Giaquinta.
99269 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
99271         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
99272         Typedef to long int, not to off_, as POSIX will likely change
99273         in that direction.
99275 2006-03-15  Eric Blake  <ebb9@byu.net>
99277         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
99279 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
99281         * lib/argp-help.c (validate_uparams): Fix typo
99282         * lib/argp-parse.c (argp_default_options): Consistently begin help
99283         messages with a lowercase letter.
99285 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
99287         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
99288         overrun buffers and shouldn't be used (much as gets shouldn't be
99289         used).
99290         * lib/time_r.c (asctime_r, ctime_r): Likewise.
99292 2006-03-08  Simon Josefsson  <jas@extundo.com>
99294         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
99295         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
99297 2006-03-08  Simon Josefsson  <jas@extundo.com>
99299         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
99300         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
99302 2006-03-08  Simon Josefsson  <jas@extundo.com>
99304         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
99305         signal that configure disabled the device.
99307 2006-03-08  Simon Josefsson  <jas@extundo.com>
99309         * build-aux/maint.mk: Fix refresh-po, to handle no translated
99310         languages.
99312 2006-03-07  Simon Josefsson  <jas@extundo.com>
99314         * modules/getopt (Depends-on): Add unistd.
99316         * modules/unistd: New file.
99318 2006-03-07  Simon Josefsson  <jas@extundo.com>
99320         * modules/gc-random: New file.
99322 2006-03-07  Simon Josefsson  <jas@extundo.com>
99324         * m4/unistd_h.m4: New file.
99326 2006-03-07  Simon Josefsson  <jas@extundo.com>
99328         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
99329         test to be side-effect free by storing the result in the cache
99330         variable gl_cv_lib_readline, and moving the assignment of
99331         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
99332         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
99334 2006-03-07  Simon Josefsson  <jas@extundo.com>
99336         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
99337         error on missing devices (the functions will return an error).
99339         * m4/gc.m4: Move random stuff to gc-random.m4
99341 2006-03-07  Simon Josefsson  <jas@extundo.com>
99343         * lib/unistd_.h: New file.
99345 2006-03-07  Simon Josefsson  <jas@extundo.com>
99347         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
99349 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
99351         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
99352         Problem reported by Juan Manuel Guerrero.
99354 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
99356         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
99357         the unistd module.
99358         * lib/getlogin_r.c: Likewise.
99359         * lib/getlogin_r.h: Likewise.
99360         * lib/glob.c: Likewise.
99361         * lib/pagealign_alloc.c: Likewise.
99362         * lib/unistd_.h: Remove; no longer needed.
99364 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
99366         * MODULES.html.sh (Support for systems lacking POSIX:2001):
99367         Add unistd.
99368         * modules/c-stack (Depends-on): Add unistd.
99369         * modules/getlogin_r: Likewise.
99370         * modules/glob: Likewise.
99371         * modules/pagealign_alloc: Likewise.
99372         * modules/unistd (Files): Remove lib/unistd_.h.
99373         (EXTRA_DIST): Remove.
99374         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
99375         need unistd_.h.
99376         (MOSTLYCLEANFILES): Remove unistd.h-t.
99378 2006-03-03  Simon Josefsson  <jas@extundo.com>
99380         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
99382 2006-03-03  Simon Josefsson  <jas@extundo.com>
99384         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
99385         libidn and bison.
99387 2006-03-03  Simon Josefsson  <jas@extundo.com>
99389         * build-aux/maint.mk: Add indent target.
99391 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
99393         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
99394         our replacement poll.h in any case, to avoid a differing
99395         declaration from a system header.  Seen on AIX.
99397 2006-03-01  Simon Josefsson  <jas@extundo.com>
99399         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
99400         <kasal@ucw.cz>.
99402 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
99404         * modules/gettime (Depends-on): Add extensions module.
99405         * modules/nanosleep (Depends-on): Likewise.
99406         * modules/settime (Depends-on): Likewise.
99408 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
99410         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
99411         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
99412         pedantically.
99413         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
99414         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
99416         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
99417         not "==".  Reported by Ralf Wildenhues.
99419 2006-03-01  Karl Berry  <karl@gnu.org>
99421         * doc/Copyright/request-*: new files, synced from gnuorg.
99423 2006-03-01  Karl Berry  <karl@gnu.org>
99425         * config/srclist.txt (Copyright/*): new entries.
99427 2006-02-28  Simon Josefsson  <jas@extundo.com>
99429         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
99431 2006-02-27  Simon Josefsson  <jas@extundo.com>
99433         * lib/base64.h: Indent #define's.  From Jim Meyering
99434         <jim@meyering.net>.
99436 2006-02-27  Jim Meyering  <jim@meyering.net>
99438         Revert the change of 2006-02-24, so these files can continue
99439         to be sync'd from gettext.
99440         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
99441         of `config.h'.
99443 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
99445         * modules/intprops: New file.
99446         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
99447         Add intprops.
99448         * modules/getloadavg (Files): Remove lib/intprops.h.
99449         (Depends-on): Add intprops.
99450         * modules/human: Likewise.
99451         * modules/inttostr: Likewise.
99452         * modules/openat: Likewise.
99453         * modules/sig2str: Likewise.
99454         * modules/userspec: Likewise.
99455         * modules/utimecmp: Likewise.
99456         * modules/xnanosleep: Likewise.
99457         * modules/xstrtol: Likewise.
99459 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
99461         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
99462         * modules/lock-tests (TESTS): Use $(EXEEXT).
99463         * modules/tls-tests: Likewise.
99464         * modules/argp-tests: Likewise.
99465         (check_PROGRAMS): New var, replacing...
99466         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
99468 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99470         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
99471         `config.h'.
99473 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
99475         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
99477 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99479         Sync from coreutils.
99480         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
99481         gl_CHDIR_SAFER.
99483 2006-02-22  Jim Meyering  <jim@meyering.net>
99485         Sync from coreutils.
99486         * m4/chdir-safer.m4: New file.
99488 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
99490         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
99491         AT_FDCWD exceeds INT_MAX.
99492         * lib/openat.h (AT_FDCWD): Likewise.
99494 2006-02-17  Eric Blake  <address@hidden>
99496         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
99498 2006-02-16  Simon Josefsson  <jas@extundo.com>
99500         * modules/getaddrinfo (Depends-on): Add sys_socket.
99502 2006-02-15  Simon Josefsson  <jas@extundo.com>
99504         * build-aux/maint.mk: Add dsyntax-check rule.
99506 2006-02-15  Eric Blake  <ebb9@byu.net>
99508         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
99509         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
99510         'present but cannot compile' warnings on cygwin.
99511         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
99512         use ws2tcpip.h if sys/socket.h works.
99513         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
99514         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
99516 2006-02-14  Simon Josefsson  <jas@extundo.com>
99518         * modules/maintainer-makefile (Files): Rename.
99520         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
99521         and (the local) Makefile.cfg to maint-cfg.mk.
99523         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
99524         to the latter.
99526         * modules/maintainer-makefile: New module.
99528         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
99529         severaly stripped to make it possible to build it up from scratch
99530         with reliable tests.
99532         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
99533         fixes to permit overriding the default actions when configure and
99534         makefile are not available.
99536 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
99538         Sync from coreutils.
99539         * modules/lstat (Depends-on): Don't depend on xalloc.
99540         (License): Change from GPL to LGPL, since this is now simply a
99541         replacement for a libc function.
99543 2006-02-14  Jim Meyering  <jim@meyering.net>
99545         Sync from coreutils.
99547         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
99548         failure on deficient systems, and simplify gnulib lgpl dependencies.
99549         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
99550         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
99552         * lib/xalloc-die.c: Remove unused definition of N_.
99554 2006-02-14  Jim Meyering  <jim@meyering.net>
99556         Sync from coreutils.
99557         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
99558         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
99559         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
99560         double-quote uses of that variable, to accommodate the rare case in
99561         which getmntent is available in none of the libraries checked.  This
99562         happens at least on FreeBSD 5.0.
99564 2006-02-13  Simon Josefsson  <jas@extundo.com>
99566         * gnulib-tool (Usage): Fix --import, from
99567         karl@freefriends.org (Karl Berry).
99569 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
99571         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
99573 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
99575         * lib/argp-namefrob.h: Restore changes accidentally lost during the
99576         "autoupdate" on 2005-12-12.
99578 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
99580         * modules/closeout (Depends-on): Remove atexit.
99582 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
99584         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
99585         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
99587 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
99589         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
99590         __EXTENSIONS__ if this causes compilation to fail.  Problem
99591         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
99592         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
99594 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
99596         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
99597         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
99598         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
99599         All uses changed.
99601 2006-01-26  Simon Josefsson  <jas@extundo.com>
99603         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
99604         prototype is visible on mingw32.
99606         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
99607         for mingw32.
99609         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
99610         mingw32).
99612 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
99614         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
99615         attempt to open for write; this always fails, at least on POSIX
99616         hosts.  This reinstates the 2006-01-09 change, which was
99617         inadvertently removed.
99619 2006-01-26  Bruno Haible  <bruno@clisp.org>
99621         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
99622         Reported by Paul Eggert.
99624 2006-01-26  Bruno Haible  <bruno@clisp.org>
99625             Paul Eggert  <eggert@cs.ucla.edu>
99627         * lib/stdbool_.h (_Bool)
99628         [(! (defined __cplusplus || defined __BEOS__)
99629           && !defined __GNUC__
99630           && !(defined __HP_cc || defined __xlc__
99631                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
99632                || defined __sgi))]:
99633         #define to signed char in these cases too; this simplifies
99634         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
99635         etc., separately) and makes it more conservative.
99637 2006-01-25  Simon Josefsson  <jas@extundo.com>
99639         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
99640         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
99641         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
99643 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
99645         * lib/argp-namefrob.h: Bugfix. Remove stray #
99647 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
99649         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
99650         so that we test the test.
99651         Check for yet another HP-UX cc bug involving *bool |= bool.
99653 2006-01-25  Karl Berry  <karl@gnu.org>
99655         * config/srclist.txt (vasnprintf.c): sync lost.
99657 2006-01-25  Jim Meyering  <jim@meyering.net>
99659         Sync from the stable (b5) branch of coreutils:
99661         * lib/fts.c (fts_children): Don't let close() clobber errno from
99662         failed fchdir().
99664         * lib/fts.c (fts_stat): When following a symlink-to-directory,
99665         don't necessarily interpret stat-fails+lstat-succeeds as indicating
99666         a dangling symlink.  That can also happen at least for ELOOP.
99667         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
99668         FYI, this bug predates the inclusion of fts.c in coreutils.
99670         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
99671         in their own block, so pre-c99 compilers don't object.
99673         Avoid the double-free (first in fts_read, second in fts_close) that
99674         would occur when an `active' directory is made inaccessible (e.g.,
99675         via chmod a-x) during a traversal.
99676         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
99677         before returning.  Reproduce this failure by
99678         mkdir -p a/b; cd a; chmod a-x . b
99679         Reported by Stavros Passas.
99681 2006-01-25  Jim Meyering  <jim@meyering.net>
99683         * lib/fileblocks.c: Remove more useless parentheses.
99684         * lib/readutmp.h: Likewise.
99686 2006-01-25  Bruno Haible  <bruno@clisp.org>
99688         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
99689         warnings.
99690         Reported by Paul Eggert.
99692 2006-01-25  Bruno Haible  <bruno@clisp.org>
99694         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
99695         rid of a trap command. For Solaris sh.
99696         Reported by Mark D. Baushke <mdb@gnu.org>.
99698 2006-01-24  Simon Josefsson  <jas@extundo.com>
99700         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
99701         Bruno.
99703 2006-01-24  Karl Berry  <karl@gnu.org>
99705         * config/srclist.txt (argp-namefrob.h): sync lost.
99707 2006-01-24  Jim Meyering  <jim@meyering.net>
99709         * modules/openat (Files): Add lib/intprops.h.
99710         From Mark D. Baushke.
99712 2006-01-24  Jim Meyering  <jim@meyering.net>
99714         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
99715         Reported by Mark D. Baushke.
99717 2006-01-24  Jim Meyering  <jim@meyering.net>
99719         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
99721 2006-01-24  Bruno Haible  <bruno@clisp.org>
99723         * modules/strnlen (Maintainer): Change from glibc to all.
99725 2006-01-24  Bruno Haible  <bruno@clisp.org>
99727         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
99728         Patch by Paul Eggert.
99730 2006-01-24  Bruno Haible  <bruno@clisp.org>
99732         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
99733         already has it.
99734         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
99735         2005-11-26.
99737         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
99738         'signed char' to avoid problems with the built-in _Bool type.
99739         Reported by Paul Eggert on 2005-11-26.
99741 2006-01-24  Bruno Haible  <bruno@clisp.org>
99743         * gnulib-tool (func_import): Avoid constructing complicated sed
99744         expressions inside backquote.
99745         Report and solution by Mark D. Baushke <mdb@gnu.org>.
99747 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
99749         These changes imported from libc.
99750         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
99751         test and two separate function calls.
99752         * lib/strndup.c (__strndup): Add libc_hidden_def.
99754 2006-01-23  Simon Josefsson  <jas@extundo.com>
99756         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
99757         Remove the test_*_SOURCES variable: automake infers it by default.
99758         * modules/tls-tests: Likewise.
99760 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
99762         Work around porting bugs reported by Dieter in
99763         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
99764         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
99765         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
99766         Include "getopt.h" first, to check interface.
99767         (getenv): Declare only if defined HAVE_DECL_GETENV &&
99768         !HAVE_DECL_GETENV.
99769         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
99770         (__strndup): Revert to K&R-style function dfns, the glibc style.
99771         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
99772         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
99773         Include strnlen.h first, to get prototype properly.
99774         (strnlen): Renamed from __strnlen.
99775         Remove weak alias.
99777 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
99779         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
99781 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
99783         * config/srclist.txt: Adjust to reflect glibc reorganization.
99784         This affects only comments.
99786 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
99788          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
99789          Reported by Bruce Korb <bkorb@gnu.org>.
99791 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
99793         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
99794         to pacify gcc -Wswitch-default.
99796 2006-01-22  Bruno Haible  <bruno@clisp.org>
99798         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
99799         temporary buffer for sprintf, take into account the precision also
99800         for 'd', 'i', 'u', 'o', 'x', 'X'.
99802 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
99804         * modules/argp-tests: New module
99805         * tests/test-argp.c: New file
99806         * tests/test-argp-2.sh: New file
99808 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
99810         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
99811         (__argp_base_name): Removed
99812         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
99813         typo.
99814         (__argp_base_name): Provide macro definition or extern declaration
99815         depending on the configuration
99817 2006-01-20  Simon Josefsson  <jas@extundo.com>
99819         * modules/inet_ntop (Depends-on): Depend on sys_socket.
99821 2006-01-20  Simon Josefsson  <jas@extundo.com>
99823         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
99825 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
99827         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
99828         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
99829         Suggested by Bruno Haible.
99831 2006-01-20  Karl Berry  <karl@gnu.org>
99833         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
99834         until changes propagate, I guess.
99836 2006-01-19  Simon Josefsson  <jas@extundo.com>
99838         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
99840 2006-01-19  Simon Josefsson  <jas@extundo.com>
99842         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
99844 2006-01-19  Simon Josefsson  <jas@extundo.com>
99846         * gnulib-tool: Set check_PROGRAMS.
99848         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
99849         modules/des-tests, modules/gc-arcfour-tests,
99850         modules/gc-arctwo-tests, modules/gc-des-tests,
99851         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
99852         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
99853         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
99854         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
99855         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
99856         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
99857         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
99858         test_*_SOURCES.
99860 2006-01-18  Simon Josefsson  <jas@extundo.com>
99862         * modules/socklen (Depends-on): Depend on sys_socket.
99864 2006-01-18  Simon Josefsson  <jas@extundo.com>
99866         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
99867         modules/des-tests, modules/gc-arcfour-tests,
99868         modules/gc-arctwo-tests, modules/gc-des-tests,
99869         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
99870         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
99871         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
99872         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
99873         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
99874         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
99875         $(EXEEXT) to automake TESTS variable, for mingw32.
99877 2006-01-17  Simon Josefsson  <jas@extundo.com>
99879         * modules/socklen (Include): Need sys/socket.h.
99881 2006-01-17  Bruno Haible  <bruno@clisp.org>
99883         * modules/ssize_t (Include): Add <sys/types.h>.
99885 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
99887         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
99888         it's not portable and it doesn't work with cross-compiles.
99889         Problem reported by Bruno Haible.  Fix missing-$ typo in
99890         'test "gl_cv_ignore_unused_libraries" ...' that prevented
99891         -zignore from being used with Sun's C compiler.
99893 2006-01-12  Simon Josefsson  <jas@extundo.com>
99895         * lib/base64.c: Fix warning, reported by Bruno Haible
99896         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
99898 2006-01-12  Bruno Haible  <bruno@clisp.org>
99900         * modules/ldd: New file.
99901         * build-aux/ldd.sh.in: New file.
99902         * MODULES.html.sh (Support for building libraries and executables): Add
99903         ldd.
99905 2006-01-12  Bruno Haible  <bruno@clisp.org>
99907         * m4/ldd.m4: New file.
99909 2006-01-12  Bruno Haible  <bruno@clisp.org>
99911         * gnulib-tool (func_import, func_create_testdir): Don't go into an
99912         endless loop while replacing $auxdir with build-aux.
99914 2006-01-11  Simon Josefsson  <jas@extundo.com>
99916         * lib/stdint_.h (SIZE_MAX): Add missing (.
99918 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
99920         Sync from coreutils.
99921         * lib/md5.c: Fix commentary typos.
99922         (alignof, UNALIGNED_P): No need for a GCC-specific version.
99923         * lib/md5.h (__attribute__): Remove; unused.
99924         * lib/sha1.c: Fix commentary to match md5 better.
99925         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
99926         so that we don't need to worry about alignment.  All uses changed.
99927         This merges the 2005-10-28 md5 change into sha1.
99929 2006-01-11  Jim Meyering  <jim@meyering.net>
99931         Sync from coreutils.
99932         * lib/md5.c (OP): Fix spacing.
99934 2006-01-11  Bruno Haible  <bruno@clisp.org>
99936         Ensure automatic ordering between gl_LOCK and gl_ARGP.
99937         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
99938         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
99940 2006-01-11  Bruno Haible  <bruno@clisp.org>
99942         Ensure automatic ordering between gl_LOCK and gl_ARGP.
99943         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
99944         the "early" section as well.
99946 2006-01-11  Bruno Haible  <bruno@clisp.org>
99948         Avoid "ar: no archive members specified" error on MacOS X.
99949         * gnulib-tool (func_modules_add_dummy): New function.
99950         (func_import, func_create_testdir): Invoke it.
99952 2006-01-11  Bruno Haible  <bruno@clisp.org>
99954         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
99955         with $auxdir in AC_CONFIG_FILES statements.
99957 2006-01-11  Bruno Haible  <bruno@clisp.org>
99959         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
99960         Initialize also noinst_HEADERS to empty.
99962 2006-01-11  Bruno Haible  <bruno@clisp.org>
99964         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
99965         variables.
99966         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
99967         autoreconf.
99969 2006-01-11  Bruno Haible  <bruno@clisp.org>
99971         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
99972         overridable by the user.
99973         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
99975 2006-01-10  Simon Josefsson  <jas@extundo.com>
99977         * modules/sys_socket: New file.
99979 2006-01-10  Simon Josefsson  <jas@extundo.com>
99981         * m4/sys_socket_h.m4: New file.
99983 2006-01-10  Simon Josefsson  <jas@extundo.com>
99985         * lib/socket_.h: New file.
99987 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
99989         * modules/readutmp (Maintainer): Add myself.
99991 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
99993         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
99994         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
99995         People who are still concerned with buggy memcmp implementations
99996         can invoke gl_FUNC_MEMCMP themselves.
99998 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
100000         * lib/regex_internal.h (BITSET_WORD_BITS):
100001         Work around a bug in 64-bit PGC (before version 6.1-2), where the
100002         preprocessor mishandles large unsigned values as if they were signed.
100003         Problem reported by Claudio Fontana in
100004         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
100006 2006-01-10  Jim Meyering  <jim@meyering.net>
100008         Avoid the double-free (first in fts_read, second in fts_close) that
100009         would occur when an `active' directory is made inaccessible (e.g.,
100010         via chmod a-x) during a traversal.
100011         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
100012         before returning.  Reproduce this failure by
100013         mkdir -p a/b; cd a; chmod a-x . b
100014         Reported by Stavros Passas.
100016         Sync from coreutils.
100017         * lib/sha1.c: Tweak grammar in a comment.
100019 2006-01-10  Jim Meyering  <jim@meyering.net>
100021         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
100022         Patch by Joerg Sonnenberger.
100024 2006-01-10  Bruno Haible  <bruno@clisp.org>
100026         * modules/readutmp: Depend on module free.
100027         * modules/strtok_r: Depend on module restrict.
100029 2006-01-10  Bruno Haible  <bruno@clisp.org>
100031         * modules/gettext (configure.ac): Add an invocation of
100032         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
100034 2006-01-10  Bruno Haible  <bruno@clisp.org>
100036         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
100037         Reported by Werner Lemberg <wl@gnu.org>.
100039 2006-01-10  Bruno Haible  <bruno@clisp.org>
100041         * lib/localcharset.c: Update from GNU gettext.
100043 2006-01-10  Bruno Haible  <bruno@clisp.org>
100045         * lib/argp.h (__const): Remove macro. Use const instead.
100046         * lib/argp-fmtstream.h (__const): Likewise.
100047         * lib/glob_.h (__const): Remove macro.
100048         * lib/glob-libc.h: Use const instead of __const.
100050 2006-01-10  Bruno Haible  <bruno@clisp.org>
100052         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
100053         variable.
100054         Needed to avoid an automake error regarding the 'gettext' module.
100056 2006-01-09  Simon Josefsson  <jas@extundo.com>
100058         * modules/inet_ntop (Depends-on): Add restrict.
100060 2006-01-09  Simon Josefsson  <jas@extundo.com>
100062         * modules/gc-rijndael-tests (License): Put under LGPL.
100064         * modules/gc-des-tests (License): Likewise.
100066         * modules/gc-arcfour-tests (License): Likewise.
100068         * modules/gc-arctwo-tests (License): Likewise.
100070         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
100072         * modules/gc-hmac-sha1-tests (Files): Likewise.
100074         * modules/gc-hmac-md5-tests (License): Likewise.
100076         * modules/gc-sha1-tests (License): Likewise.
100078         * modules/gc-md5-tests (License): Likewise.
100080         * modules/gc-md4-tests (License): Likewise.
100082         * modules/gc-md2-tests (License): Likewise.
100084         * modules/gc-tests (License): Likewise.
100086         * modules/des-tests (License): Likewise.
100088         * modules/md4-tests (License): Likewise.
100090         * modules/md2-tests (License): Likewise.
100092 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
100094         Sync from coreutils:
100096         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
100097         * modules/lib-ignore: New file.
100098         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
100099         chdir-safer.m4, lchmod.m4.
100100         * modules/openat: Add mkdirat.c, openat-priv.h.
100102 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
100104         Sync from coreutils.
100105         * m4/lib-ignore.m4: New file.
100106         * m4/lchmod.m4: New file.
100108 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
100110         Sync from coreutils.
100111         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
100112         for write access: POSIX says that must fail.
100113         * lib/fts.c (diropen): Likewise.
100114         * lib/save-cwd.c (save_cwd): Likewise.
100115         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
100116         well, for minor improvements on hosts that lack O_DIRECTORY.
100117         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
100118         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
100119         Fall back on chown if open failed with EACCES.
100121         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
100122         Report an error at compile-time if only a 1-second nominal clock
100123         resolution is found.
100125         * lib/lchmod.h: New file.
100126         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
100127         (make_dir_parents): Use lchown rather than chown, and
100128         lchmod rather than chmod.
100130         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
100131         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
100132         "proc" reported by n0dalus.
100134         * lib/mountlist.c: Include <limits.h>.
100135         (dev_from_mount_options)
100136         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
100137         New function.  It no longer assumes "dev=" has the System V meaning
100138         on Linux (since it doesn't).  It also parses "dev=" more carefully.
100139         (read_file_system_list)
100140         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
100141         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
100142         dev= in that case.
100144         * lib/posixtm.h (PDS_PRE_2000): New macro.
100145         * lib/posixtm.c (year): Arg is now syntax_bits rather than
100146         allow_century.  All usages changed.  Reject dates outside the range
100147         1969-1999 if PDS_PRE_2000 is used.
100149 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
100151         Sync from coreutils.
100152         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
100153         (Time of day items): Mention the possibility of leap seconds.
100154         Problem reported by Dr. David Alan Gilbert.
100156 2006-01-09  Jim Meyering  <jim@meyering.net>
100158         Sync from coreutils.
100160         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
100162         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
100164         * lib/modechange.c (mode_compile): Reject an invalid mode string
100165         that starts with an octal digit.  From Andreas Gruenbacher.
100167         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
100168         and dup to open_safer and dup_safer, respectively.
100169         (openat_permissive): Fix typo in comment.
100171         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
100172         "gettext.h"; either no longer needed or are guaranteed by openat.h.
100173         (_): Remove; no longer needed.
100174         (openat): Renamed from rpl_openat; no need for rpl_openat
100175         since openat.h renames openat for us.
100176         Replace most of the body with a call to openat_permissive,
100177         to avoid duplicate code.
100178         Port to (probably hypothetical) environments were mode_t is
100179         wider than int.
100180         (openat_permissive): Require mode arg, so that we can check
100181         types better.  Put it just after flags.  Change cwd failure
100182         indicator from pointer-to-bool to pointer-to-errno-value.
100183         All callers changed.
100184         Invoke openat_save_fail and/or openat_restore_fail if
100185         cwd_errno is null, so that openat can call us.
100186         (openat_permissive, fdopendir, fstatat, unlinkat):
100187         Simplify errno handling to avoid some duplicate code,
100188         as it's OK to set errno on success.
100189         * lib/openat.h: Revamp code so that function macros depend on
100190         __OPENAT_PREFIX only, not also on AT_FDCWD.
100191         (openat_ro): Remove.  Caller changed to use openat_permissive.
100192         (openat_permissive): Now a macro, if not a function.
100193         (openat_restore_fail, openat_save_fail): Now always functions,
100194         since mkdirat needs them even if __OPENAT_PREFIX is defined.
100196         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
100197         and openat.c.
100198         * lib/mkdirat.c: Include openat-priv.h.
100199         Remove definitions of macros defined therein.
100200         * lib/openat.c: Likewise.
100202         * lib/mkdirat.c (mkdirat): New file and function.
100203         * lib/openat.h (mkdirat): Declare.
100205         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
100207         * lib/openat.h (openat_permissive): Declare.
100208         (openat_ro): Define.
100210         * lib/openat.c (EXPECTED_ERRNO): New macro.
100211         (openat_permissive): New function -- used in remove.c rewrite.
100212         (all functions): Set errno just before returning, only if there
100213         was an actual failure.
100214         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
100216         Emulate openat-family functions using Linux's procfs, if possible.
100217         Idea and some code based on Ulrich Drepper's glibc changes.
100219         * lib/openat.c: (BUILD_PROC_NAME): New macro.
100220         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
100221         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
100222         before falling back on save_cwd and restore_cwd.
100223         (fdopendir, fstatat, unlinkat): Likewise.
100225         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
100226         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
100228         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
100229         as second argument to va_arg.  Otherwise, some versions of gcc
100230         warn that `if this code is reached, the program will abort'.
100232 2006-01-09  Jim Meyering  <jim@meyering.net>
100234         Sync from coreutils.
100235         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
100236         Require openat-priv.h.
100238 2006-01-09  Bruno Haible  <bruno@clisp.org>
100240         * modules/strnlen (Include): Use strnlen.h.
100242 2006-01-09  Bruno Haible  <bruno@clisp.org>
100244         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
100246 2006-01-09  Bruno Haible  <bruno@clisp.org>
100248         * lib/sysexit_.h (EX_OK): New macro.
100249         Suggested by Martin Lambers <marlam@marlam.de>.
100251 2006-01-09  Bruno Haible  <bruno@clisp.org>
100253         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
100254         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
100256 2006-01-09  Bruno Haible  <bruno@clisp.org>
100258         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
100259         numbers.
100261 2006-01-09  Bruno Haible  <bruno@clisp.org>
100263         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
100264         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
100265         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
100266         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
100268 2006-01-09  Bruno Haible  <bruno@clisp.org>
100270         * build-aux/javacomp.sh.in: New file, moved from lib/.
100271         * modules/javacomp-script (Files): Update.
100272         (configure.ac): Add AC_CONFIG_FILES invocation.
100273         (EXTRA_DIST): Remove variable.
100275         * build-aux/javaexec.sh.in: New file, moved from lib/.
100276         * modules/javaexec (Files): Update.
100277         (configure.ac): Add AC_CONFIG_FILES invocation.
100278         (EXTRA_DIST): Remove javaexec.sh.in.
100280         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
100281         * modules/csharpcomp-script (Files): Update.
100282         (configure.ac): Add AC_CONFIG_FILES invocation.
100283         (EXTRA_DIST): Remove variable.
100285         * build-aux/csharpexec.sh.in: New file, moved from lib/.
100286         * modules/csharpexec (Files): Update.
100287         (configure.ac): Add AC_CONFIG_FILES invocation.
100288         (EXTRA_DIST): Remove csharpexec.sh.in.
100290 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
100292         Sync from coreutils.
100294         Add POSIX ACL support
100295         * lib/acl.h (copy_acl, set_acl): Add declarations.
100296         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
100297         systems other than Linux.
100298         (chmod_or_fchmod): New function: use fchmod when possible,
100299         and chmod otherwise.
100300         (file_has_acl): Add a POSIX ACL implementation, with a
100301         Linux-specific subcase.
100302         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
100303         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
100304         acls are unsupported.
100305         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
100306         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
100307         are unsupported.
100309 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
100311         Sync from coreutils.
100312         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
100314 2006-01-07  Bruno Haible  <bruno@clisp.org>
100316         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
100317         gl_EARLY.
100319 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
100321         * lib/strftime.c (tzname): Don't declare if it is already #defined.
100322         Problem reported for Mingw by Mark Junker.
100324 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
100326         * README: Gnulib normally doesn't generate a tarball.
100328 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
100330         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
100331         long int, not int, for nanosecond counts, so that people who are
100332         used to POSIX struct timespec won't be surprised.  Reported by Jim
100333         Meyering.
100335 2005-12-28  Bruno Haible  <bruno@clisp.org>
100337         * build-aux/config.rpath: Update from GNU gettext.
100339 2005-12-16  Jim Meyering  <jim@meyering.net>
100341         * modules/fprintftime: New module.
100342         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
100344 2005-12-16  Jim Meyering  <jim@meyering.net>
100346         * m4/fprintftime.m4: New file.
100348 2005-12-16  Jim Meyering  <jim@meyering.net>
100350         * lib/fprintftime.c, lib/fprintftime.h: New files.
100352 2005-12-15  Simon Josefsson  <jas@extundo.com>
100354         * modules/socklen (configure.ac): Fix M4 macro name, to align with
100355         new m4/socklen.m4.
100357 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
100359         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
100360         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
100362 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
100364         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
100365         * lib/argp-help.c (fill_in_uparams): Check if the constructed
100366         struct uparams is valid. Fall back to the default values if it is
100367         not.
100369 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
100371         * modules/argp (Files): Add argp-pin.c
100372         (Depends-on): dirname
100373         (lib_SOURCES): Add argp-pin.c
100375 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
100377         * m4/argp.m4:  Check if program_invocation_name and
100378         program_invocation_short_name are declared and define appropriate
100379         macros if they are not.
100381 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
100383         * lib/argp-help.c (__argp_base_name): New function
100384         (__argp_short_program_name): Rewrite using __argp_base_name
100385         * lib/argp-namefrob.h: Define program_invocation_name and
100386         program_invocation_short_name if requested
100387         (__argp_base_name): Add prototype
100388         * lib/argp-parse.c (argp_def): Use gettext wrappers
100389         (argp_default_parser): Use __argp_base_name
100390         * lib/argp-pin.c: New file. Defines program_invocation_name and
100391         program_invocation_short_name on systems that lack them.
100393 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
100395         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
100396         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
100397         porting problem reported by Georg Schwarz in
100398         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
100400 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
100402         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
100403         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
100404         porting problem reported by Georg Schwarz in
100405         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
100407 2005-12-05  Bruno Haible  <bruno@clisp.org>
100409         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
100410         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
100411         Reported by Mark Junker <mjscod@gmx.de>.
100413 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
100415         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
100416         Use implementation from Albert Chin, with some
100417         comments/corrections by Stepan Kasal and myself.
100419 2005-12-02  Bruno Haible  <bruno@clisp.org>
100421         * gnulib-tool (func_import): Accept GPLed build tool modules when
100422         --lgpl is given.
100423         * modules/csharpcomp-script: New file.
100424         * modules/csharpcomp: Depend on it.
100425         * modules/javacomp-script: New file.
100426         * modules/javacomp: Depend on it.
100427         Suggested by Simon Josefsson.
100429 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
100431         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
100432         statement, to work around an HP-UX 10.20 compiler bug reported by
100433         Peter O'Gorman.
100435 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
100437         * modules/savedir (Depends-on): Add openat.
100439 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
100441         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
100442         (uintmax_t) [defined uintmax_t]: Do not declare.
100443         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
100444         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
100445         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
100446         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
100447         sake of portability to weird hosts that C allows (though we don't
100448         know of any practical examples).
100450         * lib/savedir.h (fdsavedir): New decl.
100451         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
100452         contains most of the former guts of savedir.
100453         (savedir): Use savedirstream.
100454         Include "openat.h".
100456 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
100458         * modules/obstack (Files): Add m4/ulonglong.m4.
100459         Problem reported by Davide Angelocola.
100461 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
100463         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
100464         coreutils no longer futzes with rounding modes.
100466 2005-11-14  Jim Meyering  <jim@meyering.net>
100468         * lib/mkstemp-safer.c: Include <config.h>, required for possible
100469         replacement of mkstemp.
100471 2005-11-10  Simon Josefsson  <jas@extundo.com>
100473         * lib/readline.c: Remove EOL.
100475 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
100477         * modules/gethrxtime (Depends-on): Add gettime.
100479 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
100481         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
100482         or gettimeofday; no longer needed.
100484 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
100486         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
100487         time business.
100488         (gethrxtime) [! (HAVE_NANOUPTIME
100489         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
100490         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
100491         our own approximation.
100493 2005-11-08  Eric Blake  <ebb9@byu.net>
100495         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
100497 2005-11-08  Eric Blake  <ebb9@byu.net>
100499         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
100501 2005-11-04  Bruno Haible  <bruno@clisp.org>
100503         * gnulib-tool: Implement --update mode.
100505 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
100507         Fix porting problem reported by Theodoros V. Kalamatianos.
100508         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
100509         Don't assume that futimes failing means we must fail.
100511 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
100513         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
100514         variables to suggest the intended function of the PATH_MAX check.
100516 2005-10-30  Kean Johnston  <jkj@sco.com>
100518         Trivial changes to support SCO systems.
100519         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
100520         as PATH_MAX.
100521         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
100522         where __ptr is null when no I/O is pending.
100524 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
100526         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
100527         leave errno alone.  Problem reported by Dmitry V. Levin.
100529 2005-10-28  Simon Josefsson  <jas@extundo.com>
100531         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
100532         Test more.
100534         * tests/test-gc-md2.c, tests/test-md2.c: New files.
100536         * modules/md2, modules/md2-tests: New files.
100538 2005-10-28  Simon Josefsson  <jas@extundo.com>
100540         * m4/inet_ntop.m4: More tests.
100542         * m4/gc-md2.m4, md2.m4: New file.
100544 2005-10-28  Simon Josefsson  <jas@extundo.com>
100546         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
100547         "restrict" keywords, as per POSIX.  Protect the function
100548         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
100549         Don't use K&R prototypes.  Check the sprintf return values.
100550         Re-define EAFNOSUPPORT if not present.  Indent.
100552         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
100553         suggested by Bruno Haible <bruno@clisp.org>.
100555         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
100557         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
100559         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
100560         libgcrypt).
100562         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
100564         * lib/md2.h, lib/md2.c: New files.
100566 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
100568         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
100569         errno alone.  Problem reported by Frederic Jolliton.
100571 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
100573         * modules/verify (License): Change from GPL to LGPL.  This is a
100574         tiny module and there are apparently near-equivalents that are
100575         under the BSD license.
100577 2005-10-24  Simon Josefsson  <jas@extundo.com>
100579         * modules/sha1: Relicense to LGPL.
100581 2005-10-24  Simon Josefsson  <jas@extundo.com>
100583         * lib/md4.h: Shrink buffer size, now that we changed the type.
100585 2005-10-23  Simon Josefsson  <jas@extundo.com>
100587         * gnulib-tool (func_import): Fix --tests-base.
100589 2005-10-22  Simon Josefsson  <jas@extundo.com>
100591         * modules/arcfour (Depends-on): Need stdint.
100593 2005-10-22  Simon Josefsson  <jas@extundo.com>
100595         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
100596         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
100598 2005-10-22  Simon Josefsson  <jas@extundo.com>
100600         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
100601         suggested by Bruno Haible <bruno@clisp.org>.
100603 2005-10-22  Simon Josefsson  <jas@extundo.com>
100605         * lib/crc.h: Include stddef.h, for size_t.
100607 2005-10-22  Simon Josefsson  <jas@extundo.com>
100609         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
100610         arcfour_context struct (simplify test vector testing in GNU
100611         Shishi).
100613 2005-10-21  Simon Josefsson  <jas@extundo.com>
100615         * modules/des, modules/des-tests: New files.
100617         * modules/gc-des, modules/gc-des-tests: New files.
100619         * tests/test-des.c, tests/test-gc-des.c: New file.
100621 2005-10-21  Simon Josefsson  <jas@extundo.com>
100623         * modules/arctwo, modules/arctwo-tests: New files.
100625         * tests/test-arctwo.c: New file.
100627         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
100629         * tests/test-gc-arctwo.c: New file.
100631 2005-10-21  Simon Josefsson  <jas@extundo.com>
100633         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
100634         Bruno Haible <bruno@clisp.org>.
100636         * m4/gc-des.m4: New file.
100638 2005-10-21  Simon Josefsson  <jas@extundo.com>
100640         * m4/arctwo.m4: New file.
100642         * m4/gc-arctwo.m4: New file.
100644 2005-10-21  Simon Josefsson  <jas@extundo.com>
100646         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
100647         block.
100649 2005-10-21  Simon Josefsson  <jas@extundo.com>
100651         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
100652         <bruno@clisp.org>.
100654         * lib/hmac-sha1.c (hmac_sha1): Likewise.
100656         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
100657         Bruno Haible <bruno@clisp.org>.
100659         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
100660         <bruno@clisp.org>.
100662 2005-10-21  Simon Josefsson  <jas@extundo.com>
100664         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
100666 2005-10-21  Simon Josefsson  <jas@extundo.com>
100668         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
100670 2005-10-21  Simon Josefsson  <jas@extundo.com>
100672         * lib/des.h, lib/des.c: New files.
100674         * lib/gc-gnulib.c: Support DES.c
100676 2005-10-21  Simon Josefsson  <jas@extundo.com>
100678         * lib/arctwo.h, lib/arctwo.c: New files.
100680         * lib/gc-gnulib.c: Support ARCTWO.
100682 2005-10-21  Simon Josefsson  <jas@extundo.com>
100684         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
100685         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100687 2005-10-21  Simon Josefsson  <jas@extundo.com>
100689         * gnulib-tool (func_import, func_create_testdir): Define automake
100690         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
100691         Makefile.am snippet),
100692         suggested by Bruno Haible <bruno@clisp.org>.
100694         * modules/gc (Makefile.am): Use it.
100696 2005-10-21  Bruno Haible  <bruno@clisp.org>
100698         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
100699         patch.
100701 2005-10-19  Simon Josefsson  <jas@extundo.com>
100703         * tests/test-gc-rijndael.c: New file.
100705         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
100707 2005-10-19  Simon Josefsson  <jas@extundo.com>
100709         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
100710         interface too.
100712 2005-10-19  Simon Josefsson  <jas@extundo.com>
100714         * tests/test-gc-arcfour.c: New file.
100716         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
100718 2005-10-19  Simon Josefsson  <jas@extundo.com>
100720         * modules/gc-md4, modules/gc-md4-tests: New file.
100722         * tests/test-gc-md4.c: New file.
100724 2005-10-19  Simon Josefsson  <jas@extundo.com>
100726         * m4/gc-md4.m4: New file.
100728 2005-10-19  Simon Josefsson  <jas@extundo.com>
100730         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
100731         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
100732         <kasal@ucw.cz>.
100734 2005-10-19  Simon Josefsson  <jas@extundo.com>
100736         * m4/gc-arcfour.m4: New file.
100738         * m4/gc-rijndael.m4: New file.
100740 2005-10-19  Simon Josefsson  <jas@extundo.com>
100742         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
100744 2005-10-19  Simon Josefsson  <jas@extundo.com>
100746         * lib/gc-gnulib.c: Support ARCFOUR.
100748 2005-10-19  Simon Josefsson  <jas@extundo.com>
100750         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
100751         support.
100753         * lib/gc.h: Add ECB enum type.
100755         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
100757 2005-10-18  Simon Josefsson  <jas@extundo.com>
100759         * tests/test-md5.c: New file.
100761         * modules/md5-tests: New file.
100763 2005-10-18  Simon Josefsson  <jas@extundo.com>
100765         * tests/test-md4.c: New file.
100767         * modules/md4, modules/md4-tests: New files.
100769 2005-10-18  Simon Josefsson  <jas@extundo.com>
100771         * m4/md4.m4: New file.
100773 2005-10-18  Simon Josefsson  <jas@extundo.com>
100775         * lib/md4.h, lib/md4.c: New files, based on md5.?.
100777 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
100779         * gnulib-tool (func_create_testdir): Omit the second check whether
100780         BUILT_SOURCES in nonempty.
100782 2005-10-17  Simon Josefsson  <jas@extundo.com>
100784         * tests/test-rijndael.c: New file.
100786 2005-10-17  Simon Josefsson  <jas@extundo.com>
100788         * modules/sha1: Depend on stdint instead of md5.
100790         * modules/md5: Depend on stdint, remove uint32_t.
100792 2005-10-17  Simon Josefsson  <jas@extundo.com>
100794         * modules/gc-sha1-tests: New file.
100796         * tests/test-gc-sha1.c: New file.
100798 2005-10-17  Simon Josefsson  <jas@extundo.com>
100800         * m4/md5.m4: Remove call to uint32_t.m4.
100802 2005-10-17  Simon Josefsson  <jas@extundo.com>
100804         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
100806         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
100807         md5.h.
100809         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
100811         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
100813 2005-10-17  Simon Josefsson  <jas@extundo.com>
100815         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
100817 2005-10-17  Simon Josefsson  <jas@extundo.com>
100819         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
100821 2005-10-17  Simon Josefsson  <jas@extundo.com>
100823         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
100825         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
100827 2005-10-17  Bruno Haible  <bruno@clisp.org>
100829         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
100830         that it can also be used in a test.
100832 2005-10-16  Bruno Haible  <bruno@clisp.org>
100834         * gnulib-tool (func_emit_tests_Makefile_am): Also define
100835         TESTS_ENVIRONMENT, so that individual tests can augment it.
100837         * gnulib-tool (func_create_testdir): Use an intermediate target for
100838         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
100839         macros, like $(ALLOCA_H), which cannot be passed through the command
100840         line.
100842 2005-10-15  Simon Josefsson  <jas@extundo.com>
100844         * modules/rijndael-tests: New file.
100846         * modules/rijndael: New file.
100848 2005-10-15  Simon Josefsson  <jas@extundo.com>
100850         * m4/rijndael.m4: New file.
100852 2005-10-15  Simon Josefsson  <jas@extundo.com>
100854         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
100856         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
100858 2005-10-14  Simon Josefsson  <jas@extundo.com>
100860         * tests/test-arcfour.c: New file.
100862         * modules/arcfour, modules/arcfour-tests: New files.
100864 2005-10-14  Simon Josefsson  <jas@extundo.com>
100866         * m4/arcfour.m4: New file.
100868 2005-10-14  Simon Josefsson  <jas@extundo.com>
100870         * lib/arcfour.h, lib/arcfour.c: New files.
100872 2005-10-14  Roland McGrath  <roland@redhat.com>
100874         Import from libc.  [BZ #1331]
100875         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
100876         macro argument.
100877         Reported by Matej Vela <vela@debian.org>.
100879 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
100881         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
100882         include <wchar.h>; no longer needed.
100884 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
100886         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
100888 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
100889         and  Ulrich Drepper  <drepper@redhat.com>
100891         Import from libc.
100892         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
100893         instead of inline stream orientation test and two separate
100894         function calls.  Pay no attention to USE_IN_LIBIO.
100896 2005-10-13  Simon Josefsson  <jas@extundo.com>
100898         * modules/gc-hmac-md5-tests: New file.
100900         * tests/test-gc-hmac-sha1.c: New file.
100902         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
100904         * modules/gc-hmac-md5-tests: New file.
100906         * tests/test-gc-md5.c: New file.
100908         * modules/gc-md5-tests: New file.
100910 2005-10-13  Simon Josefsson  <jas@extundo.com>
100912         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
100913         Move memory allocation outside of loop.
100915 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
100917         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
100918         intermediate directory is in a read-only file system.  Problem
100919         reported by Eric Blake.
100921 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
100923         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
100925 2005-10-12  Simon Josefsson  <jas@extundo.com>
100927         * tests/test-hmac-sha1.c: New file.
100929         * modules/hmac-sha1-tests: New file.
100931         * modules/hmac-sha1: New file.
100933 2005-10-12  Simon Josefsson  <jas@extundo.com>
100935         * modules/gc-sha1: New file.
100937 2005-10-12  Simon Josefsson  <jas@extundo.com>
100939         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
100941         * tests/test-gc-pbkdf2-sha1.c: New file.
100943 2005-10-12  Simon Josefsson  <jas@extundo.com>
100945         * modules/gc-md5, modules/gc-hmac-md5: New files.
100947         * modules/gc (Files): Remove md5, memxor and hmac files.
100949 2005-10-12  Simon Josefsson  <jas@extundo.com>
100951         * m4/gc-pbkdf2-sha1.m4: New file.
100953         * m4/gc-hmac-sha1.m4: New file.
100955         * m4/gc-sha1: New file.
100957         * m4/hmac-sha1.m4: New file.
100959 2005-10-12  Simon Josefsson  <jas@extundo.com>
100961         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
100963         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
100965 2005-10-12  Simon Josefsson  <jas@extundo.com>
100967         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
100968         suggested by Bruno Haible <bruno@clisp.org>.
100970 2005-10-12  Simon Josefsson  <jas@extundo.com>
100972         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
100974 2005-10-12  Simon Josefsson  <jas@extundo.com>
100976         * lib/gc-pbkdf2-sha1.c: New file.
100978         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
100980 2005-10-12  Simon Josefsson  <jas@extundo.com>
100982         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
100984         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
100986 2005-10-12  Simon Josefsson  <jas@extundo.com>
100988         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
100989         GC_USE_HMAC_MD5, respectively.
100991         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
100992         (gc_md5): Fix typo.
100994         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
100996         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
100998         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
101000 2005-10-12  Bruno Haible  <bruno@clisp.org>
101002         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
101003         Reported by Stepan Kasal <kasal@ucw.cz>.
101005 2005-10-11  Simon Josefsson  <jas@extundo.com>
101007         * tests/test-crc.c: New file.
101009         * modules/crc, modules/crc-tests: New files.
101011 2005-10-11  Simon Josefsson  <jas@extundo.com>
101013         * m4/crc.m4: New file.
101015 2005-10-11  Simon Josefsson  <jas@extundo.com>
101017         * lib/gc.h: Add gc_hash and gc_hash_buffer.
101019         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
101021         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
101023 2005-10-11  Simon Josefsson  <jas@extundo.com>
101025         * lib/crc.h, lib/crc.c: New files.
101027         * lib/gc.h (gc_hash_buffer): Add doc.
101029 2005-10-11  Bruno Haible  <bruno@clisp.org>
101031         * modules/c-strcasestr: New file.
101032         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
101034 2005-10-11  Bruno Haible  <bruno@clisp.org>
101036         * modules/c-strcase: New file.
101037         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
101039 2005-10-11  Bruno Haible  <bruno@clisp.org>
101041         * lib/strcasecmp.c: Include limits.h.
101042         (strcasecmp): Avoid integer overflow on exotic platforms.
101043         * lib/strncasecmp.c: Include limits.h.
101044         (strncasecmp): Avoid integer overflow on exotic platforms.
101045         Reported by Paul Eggert.
101047 2005-10-11  Bruno Haible  <bruno@clisp.org>
101049         * lib/c-strcasestr.h: New file, from GNU gettext.
101050         * lib/c-strcasestr.c: New file, from GNU gettext.
101052 2005-10-11  Bruno Haible  <bruno@clisp.org>
101054         * lib/c-strcase.h: New file, from GNU gettext.
101055         * lib/c-strcasecmp.c: New file, from GNU gettext.
101056         * lib/c-strncasecmp.c: New file, from GNU gettext.
101058 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
101060         * modules/mempcpy (License): GPL -> LGPL.
101061         * modules/strchrnul (License): Likewise.
101062         * modules/sysexits (License): Likewise.
101064 2005-10-08  Simon Josefsson  <jas@extundo.com>
101066         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
101068 2005-10-07  Simon Josefsson  <jas@extundo.com>
101070         * m4/memxor.m4: Remove gl_C_RESTRICT call.
101072 2005-10-06  Simon Josefsson  <jas@extundo.com>
101074         * tests/test-hmac-md5.c: New file.
101076         * modules/hmac-md5-tests: New file.
101078         * modules/hmac-md5: New file.
101080 2005-10-06  Simon Josefsson  <jas@extundo.com>
101082         * m4/hmac-md5.m4: New file.
101084         * m4/memxor.m4: Require gl_C_RESTRICT.
101086 2005-10-06  Simon Josefsson  <jas@extundo.com>
101088         * lib/memxor.c (memxor): Avoid casts and warnings.
101090 2005-10-06  Simon Josefsson  <jas@extundo.com>
101092         * lib/hmac-md5.c: New file.
101094         * lib/hmac.h: New file.
101096 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
101098         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
101099         promotes to int, not unsigned int, to catch the AIX 5.3
101100         compiler bug.
101102 2005-10-05  Simon Josefsson  <jas@extundo.com>
101104         * modules/memxor: New file.
101106         * modules/iconv (Files): Move config.rpath to havelib, it is used
101107         there.
101109         * modules/havelib (Files): Add config.rpath.
101111 2005-10-05  Simon Josefsson  <jas@extundo.com>
101113         * m4/memxor.m4: New file.
101115 2005-10-05  Simon Josefsson  <jas@extundo.com>
101117         * lib/memxor.c (memxor): Fix compiler error.
101119         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
101120         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
101122         * lib/memxor.h, lib/memxor.c: New files.
101124         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
101125         we assume all systems have it, suggested by Jim Meyering
101126         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
101127         any systems lack sys/socket.h; mingw32 is known to lack it, but we
101128         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
101129         same reasons.
101131 2005-10-05  Simon Josefsson  <jas@extundo.com>
101133         * config/srclist.txt: Add glibc bug 1423 for md5.h.
101135 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
101137         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
101138         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
101139         needed, since the source code now assumes these .h files.
101141 2005-10-05  Derek Price  <derek@ximbiot.com>
101143         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
101145 2005-10-05  Bruno Haible  <bruno@clisp.org>
101147         * modules/stdint (License): Change to LGPL.
101149 2005-10-04  Simon Josefsson  <jas@extundo.com>
101151         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
101152         D. Baushke" <mdb@gnu.org>.
101154 2005-10-04  Bruno Haible  <bruno@clisp.org>
101156         * lib/verify.h (verify_true): Provide alternative definition for C++.
101158 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
101160         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
101161         (SSIZE_MAX): New macro, if not already defined.
101162         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
101163         than 2 GiB.
101165 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
101167         Sync from coreutils.
101168         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
101169         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
101170         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
101171         ULLONG_MAX doesn't work with 2.7.2.1.
101173 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
101175         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
101176         From Ben Pfaff.
101178         * modules/exclude (Depends-on): Depend on verify.
101179         * modules/strtoimax (Depends-on): Likewise.
101180         * modules/utimecmp (Depends-on): Likewise.
101182 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
101184         * lib/exclude.c: Include verify.h.
101185         (verify): Remove.  All callers changed to use verify.h's version.
101186         * lib/strtoimax.c: Likewise.
101187         * lib/utimecmp.c: Likewis.e
101189         Sync from coreutils.
101190         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
101191         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
101192         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
101193         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
101194         bother returning ENOSYS if settimeofday or stime fails; just let
101195         them return whatever errno they want to return.
101196         * lib/utimens.c: Include unistd.h, for dup2.
101197         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
101198         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
101200 2005-10-02  Jim Meyering  <jim@meyering.net>
101202         Sync from coreutils.
101203         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
101204         from glibc-2.2.5 that fails for read-only files.
101206 2005-10-02  Jim Meyering  <jim@meyering.net>
101208         Sync from coreutils.
101209         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
101210         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
101211         `#if HAVE_CONFIG_H'.
101212         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
101213         Remove AT_FDCWD test.
101214         Do not consume the fd unless successful.
101215         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
101216         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
101217         block, so that we don't even try to compile it if settimeofday is
101218         available.  This works around a compilation failure on OSF1 V5.1,
101219         due to stime requiring a `long int*' while tv_sec is `int'.
101221 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
101223         Sync from coreutils.
101224         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
101225         against `yes', rather than just testing for nonempty.
101227 2005-10-01  Simon Josefsson  <jas@extundo.com>
101229         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
101230         and Darwin.
101232         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
101233         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
101234         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
101235         freeaddrinfo and gai_strerror are declared by the POSIX headers.
101236         Check if struct addrinfo is declared.
101238 2005-10-01  Simon Josefsson  <jas@extundo.com>
101240         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
101241         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
101242         AI_* and EAI_* definitions.  Protect function declarations.
101244 2005-10-01  Jim Meyering  <jim@meyering.net>
101246         Sync from coreutils.
101248         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
101249         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
101250         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
101251         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
101252         in the inet and nsl libraries.  Required on Solaris 5.7.
101254 2005-10-01  Jim Meyering  <jim@meyering.net>
101256         Sync from coreutils.
101257         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
101258         in the inet and nsl libraries.  Required on Solaris 5.7.
101260 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
101262         * lib/getdelim.c (getdelim): Remove unused variables.
101264 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
101266         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
101267         so that the code works even with ancient cpp.  Portability problem
101268         with GCC 2.7.2.1 reported by Thomas M.Ott.
101270 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
101272         * modules/regex (Depends-on): Add strcase.
101274         * modules/gethostname (Licence): Change from GPL to LGPL, since
101275         gethostname.c is a trivial implementation of a standard library
101276         function.
101277         * modules/poll (License): Change from GPL to LGPL, since it's
101278         derived from LGPL code.
101280 2005-09-27  Jim Meyering  <jim@meyering.net>
101282         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
101283         HAVE_CONFIG_H.
101285         * lib/intprops.h (signed_type_or_expr__): Define.
101286         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
101287         for unsigned types.
101289 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
101291         * lib/verify.h (verify_expr): Remove, replacing with:
101292         (verify_true): New macro that returns true instead of void.
101293         (verify_type__): Remove.
101294         (verify): Use verify_true rather than verify_type__.
101296 2005-09-26  Bruno Haible  <bruno@clisp.org>
101298         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
101299         is necessary.
101300         (lib_SOURCES): Remove mbchar.c.
101301         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
101302         (Files): Add m4/mbrtowc.m4.
101303         * modules/mbiter: Likewise.
101304         * modules/mbuiter: Likewise.
101306 2005-09-26  Bruno Haible  <bruno@clisp.org>
101308         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
101309         compile mbchar.c if they are not both present.
101310         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
101311         * m4/mbiter.m4 (gl_MBITER): Likewise.
101312         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
101313         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
101314         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
101316 2005-09-25  Jim Meyering  <jim@meyering.net>
101318         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
101319         also uses socklen_t.
101321 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
101323         * lib/utimens.c (ENOSYS): Define if not already defined.
101324         (futimens): Support having a null PATH if the file descriptor
101325         is nonnegative.
101327         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
101328         Remove.
101329         (__attribute): Define to empty unless GCC 3.1 or later.
101330         This works around a core dump on OpenBSD 3.4, which has GCC
101331         2.95.3, which dumps core when given __attribute__(()).  It also
101332         simplifies other tests, since we really don't want to bother with
101333         worrying about which ancient version of GCC supported what.
101334         Original problem reported by Yoann Vandoorselaere, with part of
101335         the fix suggested by Derek Price.
101337 2005-09-24  Jim Meyering  <jim@meyering.net>
101339         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
101340         so we can once again use a positive bitfield width of 1 -- now we
101341         don't have to explain why we were using a bitfield width of 2.
101343 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
101345         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
101346         and similarly for the other external symbols.  Problem reported
101347         by James Gallager.
101349         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
101350         bug reported by Jim Meyering.
101352         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
101353         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
101354         not needed, since socklen is a prerequisite module.
101356 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
101358         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
101359         Problem reported by Eric Blake.
101360         (getaddrinfo): Initialize se so that it's not garbage.
101361         Redo internal storage allocation so that it doesn't make unportable
101362         assumptions about alignment.
101363         Fix a memory leak.
101365         * lib/utimens.c (futimens): Use futimesat if available.
101366         Prefer it to futimes since it doesn't have the futimes bug.
101368         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
101369         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
101370         Instead, declare a function that returns a pointer to an array,
101371         and use verify_type__ to declare the size of the array.
101372         Problem and germ of a solution reported by Bruno Haible.
101373         (verify_type__): Use 2, not 1, for bitfield size, to avoid
101374         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
101376 2005-09-23  Jim Meyering  <jim@meyering.net>
101378         Sync from coreutils.
101379         Correct build failure (socklen_t not defined) on at least
101380         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
101381         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
101383 2005-09-23  Jim Meyering  <jim@meyering.net>
101385         * modules/getaddrinfo (Depends-on): Add socklen.
101387 2005-09-23  Bruno Haible  <bruno@clisp.org>
101389         * tests/test-verify.c: New file.
101391 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
101393         Sync from coreutils.
101395         * modules/argmatch (Depends-on): Add verify.
101396         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
101397         unistd-safer.
101398         * modules/save-cwd (Depends-on): Likewise.
101400         * modules/openat (Files): Add lib/openat-die.c.
101401         (Depends-on): Remove error, exitfail.
101402         Add dirname.
101404         * modules/verify: New file.
101405         * MODULES.html.sh (Diagnostics <assert.h>): New section,
101406         with "verify" module.
101408 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
101410         Sync from coreutils.
101412         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
101413         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
101414         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
101415         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
101416         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
101417         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
101418         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
101419         Don't bother checking for string.h, stdlib.h, unistd.h.
101420         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
101421         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
101422         module's job.
101423         * m4/jm-macros.m4 (gl_MACROS): Likewise.
101424         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
101426         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
101427         (gl_GETDATE): Use it.
101429         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
101431 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
101433         Sync from coreutils.
101435         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
101436         stat-time.h.
101437         * lib/argmatch.h: Include verify.h
101438         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
101439         (ARGMATCH_ASSERT): Remove; unused.
101440         * lib/canonicalize.c: Assume STDC_HEADERS.
101441         * lib/exclude.c: Include "strcase.h".
101442         * lib/regex_internal.h [!defined _LIBC]: Likewise.
101443         * lib/getusershell.c: Include stdio--.h rather than stdio.h
101444         and stdio-safer.h.
101445         (getusershell): Call fopen, not fopen_safer.
101446         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
101447         Do not include unistd-safer.h.
101448         (save_cwd): Don't call fd_safer; no longer needed
101449         now that we include fcntl--.h.
101451         * lib/getdate.y (relative_time): New type.
101452         (RELATIVE_TIME_0): New constant.
101453         (parser_control): Use relative_time instead of doing it ourselves.
101454         (%union): Add new relative_time rel member.
101455         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
101456         Now typeless.
101457         (relunit, relunit_snumber): Now of type rel.
101458         (zone, rel, relunit, get_date): Adjust to above changes.
101460         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
101461         Do not include unistd-safer.h.
101462         (getloadavg): Don't call fd_safer; no longer needed
101463         now that we include fcntl--.h.
101465         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
101466         (make_dir_parents): Treat ENOSYS like EEXIST.
101468         Improve quality of diagnostics on restore_cwd failure.
101469         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
101470         (make_dir_parents): Last arg is now int * (for errno), not bool *.
101471         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
101472         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
101473         each time through the loop.  Do not diagnose restore_cwd failure;
101474         that is the caller's job (and perhaps the caller does not care).
101476         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
101477         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
101478         If the file already exists but is not a directory, don't bother
101479         to try to make its parents.
101480         Close potential file descriptor leak if we can't chdir("/") (!).
101481         Don't always return true if chdir($PWD) fails; return true only
101482         if the requested action was done successfully (except for the
101483         chdir($PWD)).
101484         Don't log final directory unless we actually made it.
101485         Refactor to avoid duplicate code to fix up permissions.
101486         Don't attempt to fix up parent permissions if chdir($PWD) fails.
101488         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
101489         to make it a bit faster and (I hope) clearer.
101490         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
101491         Fix bug in formats like %2N.
101493         * lib/verify.h: New file.
101495 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
101497         Sync from coreutils.
101498         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
101500 2005-09-22  Jim Meyering  <jim@meyering.net>
101502         Sync from coreutils.
101504         * m4/lstat.m4 (gl_FUNC_LSTAT):
101505         Use AC_LIBSOURCES to require lstat.c and lstat.h.
101506         Remove obsolete comment.
101507         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
101508         * m4/xstrtod.m4: Likewise.
101510         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
101512 2005-09-22  Jim Meyering  <jim@meyering.net>
101514         Sync from coreutils.
101516         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
101518         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
101519         the .tm_year member, since otherwise gcc-4.0 would now warn about
101520         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
101522         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
101523         order to avoid an unsuppressible warning from gcc on 64-bit systems.
101525         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
101526         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
101527         when run in a time zone for which daylight savings time is in effect
101528         for the starting date.
101530         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
101531         stop us from restricting permissions of just-created absolute-named
101532         directories.
101533         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
101534         to restore initial working directory.
101535         * lib/mkdir-p.c (make_dir_parents): New parameter:
101536         different_working_dir, to tell caller if/when we change the working
101537         directory and are unable to return to the initial one.
101538         * lib/mkdir-p.h (make_dir_parents): Update prototype.
101539         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
101540         `return false'.  This fixes a bug introduced on 2004-07-30.
101542         * lib/openat.c (fdopendir): Be sure to close the supplied
101543         file descriptor before returning.  This makes our replacement
101544         implementation a little closer to Solaris's, where fdopendir
101545         ties the file descriptor to the returned DIR* pointer.
101546         * lib/openat.c (unlinkat): New function.
101547         * lib/openat.h (unlinkat): Add prototype.
101548         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
101549         (openat_restore_fail): Rename from openat_restore_die.
101550         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
101552         Provide an alternative to exiting immediately upon save_cwd or
101553         restore_cwd failure.  Now, an application can arrange e.g.,
101554         to perform a longjump in that case.
101555         * lib/openat.c: Include dirname.h.
101556         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
101557         (rpl_openat, fdopendir, fstatat): Call openat_save_die
101558         and openat_restore_die rather than calling error directly.
101559         Don't include "error.h" or "exitfail.h"; they're no longer needed.
101561         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
101562         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
101563         define.
101565         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
101566         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
101567                             int utc, int nanoseconds);
101568         Background:
101569         date should not have to allocate a megabyte of virtual memory to
101570         handle a format argument like +%1048575T.  When implemented with
101571         strftime, it must allocate such a buffer, use strftime to fill it
101572         in, print it, then free it.
101573         With fprintftime, it simply prints everything and exits.
101574         With no need for memory allocation, that's one fewer way to fail.
101575         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
101576         optional field width, not before, so we accept %9:z, not %:9z.
101577         (my_strftime): Be sure to use L_('x') for literals.
101579         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
101580         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
101581         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
101582         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
101583         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
101584         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
101585         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
101586         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
101587         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
101588         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
101589         * lib/xgethostname.c, lib/xreadlink.c:
101590         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
101592         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
101593         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
101594         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
101595         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
101596         and don't include <sys/file.h>).
101598 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
101600         Sync from coreutils.
101602         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
101603         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
101604         [!LDAV_DONE]: Avoid unused variable warning.
101606 2005-09-21  Bruno Haible  <bruno@clisp.org>
101608         * lib/unicodeio.h (unicode_to_mb): New declaration.
101610 2005-09-20  Derek Price  <derek@ximbiot.com>
101612         * lib/getaddrinfo.c: Don't include <netdb.h> included from
101613         getaddrinfo.h.
101615 2005-09-20  Bruno Haible  <bruno@clisp.org>
101617         * gnulib-tool: Remove trailing slashes from the values specified for
101618         --source-base, --m4-base, --tests-base, --aux-dir.
101619         Suggested by Simon Josefsson <jas@extundo.com>.
101621 2005-09-20  Bruno Haible  <bruno@clisp.org>
101623         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
101624         func_modules_to_filelist, func_import, func_create_testdir): Make all
101625         sorting results locale-independent, so that gnulib-cache.m4 doesn't
101626         change when gnulib-tool is invoked in a different locale.
101628 2005-09-19  Simon Josefsson  <jas@extundo.com>
101630         * m4/socklen.m4: Fix typo.
101632 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101634         Use a consistent style for including <config.h>.
101635         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
101636         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
101637         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
101638         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
101639         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
101640         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
101641         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
101642         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
101643         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
101644         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
101645         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
101646         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
101647         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
101648         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
101649         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
101650         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
101651         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
101652         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
101653         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
101654         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
101655         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
101656         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
101657         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
101658         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
101659         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
101660         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
101661         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
101662         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
101663         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
101664         lib/xstrtoumax.c, lib/yesno.c:
101665         Standardize inclusion of config.h.
101666         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
101667         lib/inttostr.h:  Removed inclusion of config.h from header files.
101668         * lib/inttostr.c:  Adjusted in-tree users.
101669         * lib/timespec.h: Remove superfluous warning to include config.h.
101670         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
101671         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
101672         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
101673         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
101674         config.h with HAVE_CONFIG_H.
101676 2005-09-19  Jim Meyering  <jim@meyering.net>
101678         * modules/pathmax (License): Change to LGPL.
101680 2005-09-19  Derek Price  <derek@ximbiot.com>
101682         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
101684 2005-09-19  Bruno Haible  <bruno@clisp.org>
101686         * gnulib-tool (import): Provide default for --tests-base.
101688 2005-09-19  Bruno Haible  <bruno@clisp.org>
101690         * doc/quote.texi: New file, extracted from gnulib.texi.
101691         * doc/ctime.texi: New file, extracted from gnulib.texi.
101692         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
101693         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
101694         * doc/gnulib.texi: Include them.
101696 2005-09-18  Bruno Haible  <bruno@clisp.org>
101698         Portability fix.
101699         * gnulib-tool (func_readlink): New function.
101700         (func_ln_if_changed): Use it.
101702 2005-09-18  Bruno Haible  <bruno@clisp.org>
101704         * gnulib-tool: Support --with-tests also with --import.
101705         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
101706         (func_import): Use variables $testsbase and $inctests. Emit a
101707         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
101708         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
101709         SUBDIRS += $testsdir.
101710         (func_create_testdir): Update.
101712 2005-09-18  Bruno Haible  <bruno@clisp.org>
101714         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
101715         instead of $dry_run.
101716         (func_cp_if_changed, func_mv_if_changed): Remove functions.
101717         (func_ln_if_changed): Don't handle dry-run here.
101718         (func_import): In dry-run mode, detect more precisely which actions
101719         would be performed, and don't use "...ing" verbs.
101721 2005-09-18  Bruno Haible  <bruno@clisp.org>
101723         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
101724         (func_import): Use join on two temporary files instead of three nested
101725         loops, in order to determine which files are new or old.
101727 2005-09-18  Bruno Haible  <bruno@clisp.org>
101729         * gnulib-tool (func_import): Comment out code that spits out the
101730         new files with --dry-run.
101732 2005-09-18  Bruno Haible  <bruno@clisp.org>
101734         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
101736 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
101738         * lib/stat-time.h: New file.
101739         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
101740         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
101741         in a different way.
101742         (timespec_cmp): New function.
101743         * lib/utimecmp.c: Include stat-time.h.
101744         (SYSCALL_RESOLUTION): Depend on whether various struct stat
101745         members exist, not on the obsolescent ST_MTIM_NSEC.
101746         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
101748 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
101750         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
101752 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
101754         * MODULES.html.sh (File system functions): Add stat-time.
101755         * modules/stat-time: New file.
101756         * modules/timespec (Files): Remove m4/st_mtim.m4; this
101757         is now done in a different way, by the stat-time module.
101758         * modules/utimecmp (Depends-on): Add stat-time.
101760 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
101762         * m4/st_mtim.m4: Remove.  Superseded by...
101763         * m4/stat-time.m4: New file.
101764         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
101765         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
101767 2005-09-15  Derek Price  <derek@ximbiot.com>
101769         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
101771 2005-09-15  Derek Price  <derek@ximbiot.com>
101773         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
101774         * lib/regex_internal.c: Ditto, using this...
101775         (__GNUC_PREREQ): ...new macro.
101776         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
101777         using...
101778         (__GNUC_PREREQ): ...this new macro.
101780         * lib/strstr.h: Include string.h. Define strstr as a macro here.
101782 2005-09-15  Derek Price  <derek@ximbiot.com>
101783             Paul Eggert  <eggert@cs.ucla.edu>
101785         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
101786         changes, consolidating in...
101787         * lib/regex_internal.h: ...this file.
101789 2005-09-13  Jim Meyering  <jim@meyering.net>
101791         * lib/canon-host.c: Filter through gnu indent and reword comments
101792         slightly.
101793         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
101795 2005-09-13  Derek Price  <derek@ximbiot.com>
101797         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
101798         failure.
101799         Reported by Jim Meyering  <jim@meyering.net>.
101801 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
101803         * lib/base64.c: Typo.
101804         (base64_encode): Put b64str in initialized data section.
101806 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
101808         Merge glibc and coreutils changes into gnulib, plus a few
101809         extra fixes.
101810         * lib/md5.c: Use #error rather than a string.
101811         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
101812         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
101813         (__attribute__): Define to empty for non recent-GCC.
101814         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
101815         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
101816         Renamed from their non-__ counterparts, with new macros replacing
101817         them if not _LIBC.  Add __THROW attribute.
101818         (rol): Remove.
101819         (struct md5_ctx): Align buffer if using GCC.
101820         * lib/sha1.h (struct sha1_ctx): Likewise.
101821         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
101822         The old name was backwards.
101823         (NOTSWAP): Remove; not used.
101824         (rol): New macro, moved here from md5.h.
101825         (sha1_process_block): Remove a FIXME that doesn't make sense.
101827 2005-09-12  Derek Price  <derek@ximbiot.com>
101829         Return usable errors from canon-host.
101830         * lib/canon-host.h: New file.
101831         * lib/canon-host.c (canon_host): Wrap...
101832         (canon_host_r): ...this new function, which now relies exclusively on
101833         getaddrinfo.
101834         (ch_strerror): New function.
101835         (last_cherror): New global.
101836         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
101837         interface.
101838         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
101839         void *.
101840         (freeaddrinfo): Free ai->ai_canonname when set.
101842 2005-09-12  Derek Price  <derek@ximbiot.com>
101844         Make canon-host require getaddrinfo.
101845         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
101846         AC_LIBSOURCE canon-host.h.  Call...
101847         (gl_PREREQ_CANON_HOST): ...this new function, which requires
101848         gl_GETADDRINFO.
101849         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
101851 2005-09-12  Derek Price  <derek@ximbiot.com>
101853         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
101854         LGPL.
101855         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
101857 2005-09-12  Derek Price  <derek@ximbiot.com>
101859         * lib/gai_strerror.c: Include config.h when available.  Include
101860         getaddrinfo.h before other headers to test interface.
101861         Reported by Larry Jones <lawrence.jones@ugs.com>.
101863 2005-09-12  Derek Price  <derek@ximbiot.com>
101864             Paul Eggert  <eggert@cs.ucla.edu>
101866         * modules/glob (Files): Add glob-libc.h.
101868 2005-09-12  Derek Price  <derek@ximbiot.com>
101869             Paul Eggert  <eggert@cs.ucla.edu>
101871         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
101872         glob_.h, glob-libc.h.
101873         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
101875 2005-09-12  Derek Price  <derek@ximbiot.com>
101876             Paul Eggert  <eggert@cs.ucla.edu>
101878         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
101879         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
101880         protecting things that should be done only in gnulib contexts.
101881         * lib/glob_.h: New file, containing only the glob things needed for
101882         gnulib.
101883         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
101884         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
101885         (glob, globfree, glob_pattern_p): Now defined simply in terms of
101886         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
101887         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
101888         and to respect the namespace rules better.
101890 2005-09-08  Simon Josefsson  <jas@extundo.com>
101892         * modules/socklen: New file.
101894 2005-09-08  Simon Josefsson  <jas@extundo.com>
101896         * m4/socklen.m4: New file.
101898 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
101900         * modules/utimens (Files): Add m4/utimbuf.m4, since
101901         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
101902         Reported by Sergey Poznyakoff.
101904 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
101906         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
101907         definitions, since that's the preferred style in glibc.
101908         Fix a minor spacing issue, and update copyright notice to match
101909         glibc's.
101911 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
101913         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
101915 2005-09-06  Simon Josefsson  <jas@extundo.com>
101917         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
101918         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
101920 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
101922         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
101923         warning.
101925 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
101927         * config/srclist.txt: Add glibc bug 1302.
101929 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
101931         Change bitset word type from unsigned int to unsigned long int,
101932         as this has better performance on typical 64-bit hosts.
101933         Port bitset code to hosts with unusual word sizes.
101934         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
101935         (build_collating_symbol):
101936         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
101937         argument is a bitset.  This is merely a style issue, but it makes
101938         it clearer that an entire array is expected.
101939         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
101940         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
101941         Port to the case where bitset_word is not the same as unsigned int.
101942         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
101943         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
101944         Likewise.
101945         * lib/regexec.c (check_dst_limits_calc_pos_1,
101946         check_subexp_matching_top):
101947         (build_trtable, group_nodes_into_DFAstates):
101948         Likewise.
101949         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
101950         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
101951         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
101952         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
101953         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
101954         * lib/regcomp.c (optimize_subexps, lower_subexp):
101955         Work even if bitset_word has holes in its bitwise representation.
101956         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
101957         * lib/regexec.c (check_dst_limits_calc_pos_1,
101958         check_subexp_matching_top):
101959         Likewise.
101960         * lib/regex_internal.c (re_string_reconstruct):
101961         Don't assume UCHAR_MAX == 255.
101962         * lib/regex_internal.h (bitset_set_all): Likewise.
101963         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
101964         All uses changed.
101965         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
101966         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
101967         All uses changed.
101968         (BITSET_WORD_MAX): New macro.
101969         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
101970         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
101971         (bitset_empty, bitset_copy):
101972         Prefer sizeof (bitset) to multiplying it out ourselves.
101973         (bitset_not_merge): Remove; unused.
101974         (bitset_contain): Return bool, not unsigned int with one bit on.
101975         All callers changed.
101976         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
101977         alignment than re_node_set; do this by defining a new internal
101978         type struct dests_alloc and using it to allocate memory.
101980 2005-09-05  Bruno Haible  <bruno@clisp.org>
101982         * gnulib-tool (func_import): Fix comparison in handling of symbolic
101983         links.
101985 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
101987         * modules/size_max (Makefile.am): Add size_max.h
101989 2005-09-04  Derek Price  <derek@ximbiot.com>
101991         * gnulib-tool (func_import): Fix reversed $symbolic logic.
101993 2005-09-03  Simon Josefsson  <jas@extundo.com>
101995         * gnulib-tool: Fix typo.
101997 2005-09-03  Simon Josefsson  <jas@extundo.com>
101999         * config/srclist.txt: Add glibc bug 1293.
102001 2005-09-03  Derek Price  <derek@ximbiot.com>
102003         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
102004         From Larry Jones <lawrence.jones@ugs.com>.
102006 2005-09-02  Simon Josefsson  <jas@extundo.com>
102008         * modules/socklen: New file.
102010 2005-09-02  Simon Josefsson  <jas@extundo.com>
102012         * modules/havelib: New module.
102014         * modules/gettext, modules/iconv, modules/lock, modules/readline:
102015         Use havelib.
102017 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
102019         Check for arithmetic overflow when calculating sizes, to prevent
102020         some buffer-overflow issues.  These patches are conservative, in the
102021         sense that when I couldn't determine whether an overflow was possible,
102022         I inserted a run-time check.
102023         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
102024         macros.
102025         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
102026         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
102027         (re_xnrealloc, re_x2nrealloc): New inline functions.
102028         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
102029         parse_bracket_exp):
102030         (build_equiv_class, build_charclass): Check for arithmetic overflow
102031         in size expression calculations.
102032         * lib/regex_internal.c (re_string_realloc_buffers):
102033         (build_wcs_upper_buffer, re_node_set_add_intersect):
102034         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
102035         (re_dfa_add_node, register_state): Likewise.
102036         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
102037         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
102038         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
102039         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
102041 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
102043         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
102044         m4/ulonglong.m4.  Problem reported by Martin Lambers.
102046 2005-09-02  Bruno Haible  <bruno@clisp.org>
102048         Support for lib vs. lib64 distinction on biarch platforms.
102049         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
102050         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
102051         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
102053 2005-09-02  Bruno Haible  <bruno@clisp.org>
102055         * gnulib-tool (import): In the other first-use case, provide defaults
102056         as well.
102058 2005-09-02  Bruno Haible  <bruno@clisp.org>
102060         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
102061         patches not yet found in the latest gettext release.
102063 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
102065         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
102066         to avoid a collision with bits/local_lim.h in glibc.
102067         All uses changed.  Problem reported by Dmitry V. Levin in
102068         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
102070         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
102071         bugs in int versus size_t comparisons.
102072         (re_string_context_at): Fix bug where the code assumed that
102073         Idx is signed.
102075         Use bool where appropriate.
102076         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
102077         All callers changed.
102078         (calc_eclosure_iter): Likewise, for ROOT arg.
102079         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
102080         (build_charclass_op): Likewise, for NON_MATCH arg.
102081         * lib/regex_internal.c (re_string_allocate, re_string_construct):
102082         (re_string_construct_common): Likewise, for ICASE arg.
102083         * lib/regexec.c (re_search_2_stub, re_search_stub):
102084         Likewise, for RET_LEN arg.
102085         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
102086         (set_regs): Likewise, for FL_BACKTRACK arg.
102087         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
102088         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
102089         (calc_eclosure_iter, parse_bracket_exp):
102090         Use bool for internal variables that are booleans.
102091         * lib/regexec.c (re_search_internal, check_matching,
102092         proceed_next_node):
102093         (set_regs, build_sifted_states, sift_states_bkref):
102094         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
102095         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
102096         (find_collation_sequence_value):
102097         Likewise.
102098         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
102099         (re_node_set_compare):
102100         Return bool, not int. All callers changed.
102101         * lib/regexec.c (check_halt_node_context, check_dst_limits):
102102         (build_trtable, check_node_accept): Likewise.
102103         * lib/regex_internal.h: Include stdbool.h.
102105         Fix bugs uncovered when converting to bool.
102106         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
102107         failure instead of charging ahead blindly.
102108         * lib/regex_internal.c (register_state): Likewise.
102109         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
102110         for freeing internal storage.
102111         (group_nodes_into_DFA_states): Use unsigned int, not int, for
102112         bitset pieces used as boolean, to avoid undefined behavior
102113         on hosts that do int overflow checking.
102115 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
102117         * config/srclist.txt: Add glibc bugs 1285-1287.
102119 2005-09-01  Jim Meyering  <jim@meyering.net>
102121         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
102122         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
102123         Require gl_STAT_MACROS, too.
102125 2005-09-01  Bruno Haible  <bruno@clisp.org>
102127         * gnulib-tool (import): In the first-use case, provide defaults.
102129 2005-09-01  Bruno Haible  <bruno@clisp.org>
102131         * gnulib-tool (func_import): Remove the .tmp files.
102133 2005-09-01  Bruno Haible  <bruno@clisp.org>
102135         * gnulib-tool (func_import): Fix handling of symbolic links.
102137 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
102139         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
102140         old glibc regex code mishandles strings longer than 2**31 bytes.
102141         This patch fixes this when the regex code is used in gnulib
102142         (i.e., outside glibc).
102144         This patch should not affect the use of the regex code inside
102145         glibc.  No doubt this problem also needs to be handled for glibc
102146         as well, but the result will be an incompatible change to the
102147         glibc ABI, and the old ABI will have to be supported too.  That
102148         can be the subject for another patch.
102150         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
102151         governing whether the rest of this patch is active.  By default,
102152         the macro is disabled and the patch has no effect.
102153         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
102154         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
102155         (struct re_pattern_buffer, re_search, re_search_2, re_match):
102156         (re_match_2, re_set_registers): Use the new types.
102157         * lib/regex_internal.h (Idx, re_hashval_t): New types.
102158         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
102159         New macros.
102160         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
102161         (re_string_context_at, bin_tree_t, re_dfastate_t):
102162         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
102163         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
102164         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
102165         (re_string_char_size_at, re_string_wchar_at):
102166         (re_string_elem_size_at):
102167         Use the new types and macros to port to 64-bit hosts.
102168         Use unsigned types for internal values, so that the code
102169         mostly works even for arrays larger than SSIZE_MAX.
102170         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
102171         (search_duplicated_node, calc_eclosure_iter, fetch_number):
102172         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
102173         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
102174         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
102175         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
102176         (calc_inveclosure, parse_dup_op, build_range_exp):
102177         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
102178         (fetch_number, create_token_tree, mark_opt_subexp):
102179         Likewise.
102180         * lib/regex_internal.c (re_string_construct_common,
102181         create_ci_newstate):
102182         (create_cd_newstate, re_string_allocate, re_string_construct):
102183         (re_string_realloc_buffers, build_wcs_upper_buffer):
102184         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
102185         (re_string_reconstruct, re_string_peek_byte_case):
102186         (re_string_fetch_byte_case, re_string_context_at):
102187         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
102188         (re_node_set_init_copy, re_node_set_add_intersect):
102189         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
102190         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
102191         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
102192         (re_acquire_state, re_acquire_state_context, register_state):
102193         Likewise.
102194         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
102195         search_cur_bkref_entry):
102196         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
102197         (re_search_internal, re_search_2_stub, re_search_stub)
102198         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
102199         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
102200         (update_cur_sifted_state, check_dst_limits):
102201         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
102202         (check_subexp_limits, sift_states_bkref, merge_state_array):
102203         (check_subexp_matching_top, get_subexp, get_subexp_sub):
102204         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
102205         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
102206         (expand_bkref_cache, check_node_accept_bytes):
102207         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
102208         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
102209         (acquire_init_state_context, check_halt_node_context):
102210         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
102211         (sift_states_backward, clean_state_log_if_needed):
102212         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
102213         (find_recover_state, transit_state_sb, transit_state_mb):
102214         (transit_state_bkref, build_trtable, match_ctx_clean):
102215         Likewise.
102216         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
102217         to work around an assumption that REG_MISSING is negative.
102219         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
102220         (seek_collating_symbol_entry) [defined _LIBC]:
102221         (lookup_collation_sequence_value) [defined _LIBC]:
102222         (build_range_exp, build_collating_symbol) [defined _LIBC]:
102223         Use prototypes rather than old-style function definitions.
102224         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
102225         (transit_state_sb) [0]:
102226         (find_collation_sequence_value) [defined _LIBC]: Likewise.
102228         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
102229         rm_eo.
102231         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
102232         (optimize_subexps, lower_subexp):
102233         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
102234         since the signed shift might overflow.  Use 1u<<31 instead.
102235         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
102236         Likewise.
102237         * lib/regexec.c (check_dst_limits_calc_pos_1,
102238         check_subexp_matching_top): Likewise.
102240         * lib/regcomp.c (optimize_subexps, lower_subexp):
102241         Use CHAR_BIT rather than 8, for clarity.
102242         * lib/regexec.c (check_dst_limits_calc_pos_1):
102243         (check_subexp_matching_top): Likewise.
102244         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
102245         have to worry about portability issues when shifting it left.
102246         Remove no-longer-needed test for table_size > 0.
102247         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
102248         in a word, as the resulting behavior is undefined.
102249         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
102250         in one case, a <= should have been an <, and in another case the
102251         whole test was missing.
102252         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
102253         the standard name CHAR_BIT.
102254         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
102255         this is not true on one's complement and signed-magnitude hosts.
102257         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
102258         next_last_offset.
102259         (struct re_dfa_t): Remove unused member states_alloc.
102260         * lib/regcomp.c (init_dfa): Don't initialize unused members.
102262 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
102264         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
102265         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
102266         and large-file glibc and in 32-bit large-file Solaris.
102268 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
102270         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
102271         lengths fit in regoff_t; this isn't true if regoff_t is the same
102272         width as size_t.
102273         * lib/regex.c (re_search_internal): 5th arg is LAST_START
102274         (= START + RANGE) instead of RANGE.  This avoids overflow
102275         problems when regoff_t is the same width as size_t.
102276         All callers changed.
102277         (re_search_2_stub): Check for overflow when adding the
102278         sizes of the two strings.
102279         (re_search_stub): Check for overflow when adding START
102280         to RANGE; if it occurs, substitute the extreme value.
102282 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
102284         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
102286 2005-08-31  Jim Meyering  <jim@meyering.net>
102288         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
102289         a pointer-to-const.
102290         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
102291         (register_state): Likewise.
102292         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
102293         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
102294         (group_nodes_into_DFAstates): Likewise.
102296 2005-08-31  Jim Meyering  <jim@meyering.net>
102298         * check-module: Add a FIXME comment.
102300 2005-08-31  Eric Blake  <ebb9@byu.net>
102302         * modules/unistd-safer (Files): Add unistd--.h.
102303         * modules/stdio-safer (Files): Add stdio--.h.
102305 2005-08-31  Derek Price  <derek@ximbiot.com>
102307         * lib/getdelim.c (getdelim): Return EOF on EOF.
102308         Reported by Larry Jones <lawrence.jones@ugs.com>.
102310 2005-08-31  Bruno Haible  <bruno@clisp.org>
102312         Avoid unnecessary diffs in the generated lib/Makefile.am.
102313         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
102314         the generated files.
102315         (func_import): Don't set cmd.
102317 2005-08-31  Bruno Haible  <bruno@clisp.org>
102319         * lib/strstr.c: Include <stddef.h>, for NULL.
102320         * lib/strcasestr.c: Likewise.
102321         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
102323 2005-08-31  Bruno Haible  <bruno@clisp.org>
102325         * gnulib-tool: New option --macro-prefix.
102326         (func_import): Use macro_prefix.
102327         (import): Handle option --macro-prefix.
102329 2005-08-31  Bruno Haible  <bruno@clisp.org>
102331         * gnulib-tool (import): Rename most ac_* variables to cached_*.
102332         Also use new variables cached_lgpl, cached_libtool.
102334 2005-08-31  Bruno Haible  <bruno@clisp.org>
102336         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
102337         always instantiating them.
102339 2005-08-31  Bruno Haible  <bruno@clisp.org>
102341         * gnulib-tool (func_import): Read the previous cached settings
102342         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
102343         earlier added by gnulib but are now dropped. Warn when a gnulib file
102344         overwrites a non-gnulib file.
102346 2005-08-31  Bruno Haible  <bruno@clisp.org>
102348         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
102349         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
102350         projects that don't keep autogenerated files in CVS. Put into
102351         actioncmd only the specified modules, not the transitive closure.
102353 2005-08-31  Bruno Haible  <bruno@clisp.org>
102355         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
102356         Create directories that shall be filled.
102357         (import): Don't look for gl_* macros in configure.ac. Recurse across
102358         all directories containing a gnulib-cache.m4 files, if meaningful.
102360 2005-08-31  Bruno Haible  <bruno@clisp.org>
102362         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
102363         (import): Set seen_libtool when we see gl_LIBTOOL.
102365 2005-08-31  Bruno Haible  <bruno@clisp.org>
102367         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
102368         declaration macro definitions from generated gnulib.m4.
102370 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
102372         * lib/iconvme.h: Add prototype for iconv_alloc.
102374 2005-08-29  Simon Josefsson  <jas@extundo.com>
102376         * lib/iconvme.c: Fix errno.
102378 2005-08-29  Bruno Haible  <bruno@clisp.org>
102380         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
102381         that it works when the directory contains spaces.
102383 2005-08-29  Bruno Haible  <bruno@clisp.org>
102385         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
102387 2005-08-29  Bruno Haible  <bruno@clisp.org>
102389         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
102390         Emit more advice.
102392 2005-08-29  Bruno Haible  <bruno@clisp.org>
102393         and Stepan Kasal  <kasal@ucw.cz>
102395         * check-module: If more parameters are given, check each of them
102396         separately; add more exceptions, as noted by Jim Meyering.
102397         (check_module): New procedure.
102398         (%exempt_header): Now contains all exceptions.
102400 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
102402         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
102404 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
102406         * lib/iconvme.c: Split iconv_string into iconv_alloc.
102408 2005-08-28  Bruno Haible  <bruno@clisp.org>
102410         * m4/gnulib-tool.m4: New file.
102412 2005-08-27  Jim Meyering  <jim@meyering.net>
102414         * modules/unistd-safer (Files): Add pipe-safer.c.
102415         * modules/fcntl-safer (Files): Add creat-safer.c.
102417 2005-08-27  Jim Meyering  <jim@meyering.net>
102419         * m4/stdlib-safer.m4: New file.  From coreutils.
102420         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
102421         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
102422         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
102423         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
102424         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
102426 2005-08-27  Jim Meyering  <jim@meyering.net>
102428         * lib/fopen-safer.c: Merge minor changes from coreutils.
102429         * lib/dup-safer.c: Likewise.
102430         * lib/fd-safer.c: Likewise.
102432         Merge from coreutils.
102433         * lib/stdio--.h: New file.
102434         * lib/stdlib--.h: New file.
102435         * lib/mkstemp-safer.c: New file.
102437         GNU tar needs these.
102438         * lib/pipe-safer.c: New file.
102439         * lib/creat-safer.c: New file.
102440         * lib/fcntl--.h (creat): Define to creat_safer.
102441         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
102442         * lib/unistd--.h (pipe): Define to pipe_safer.
102443         * lib/unistd-safer.h: Declare pipe_safer.
102445 2005-08-26  Simon Josefsson  <jas@extundo.com>
102447         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
102448         Haible <bruno@clisp.org>.
102450 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
102452         * lib/regex_internal.h: Remove all references to
102453         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
102454         or better.
102455         (bitset_not, bitset_merge, bitset_not_merge):
102456         (bitset_mask, re_string_allocate, re_string_construct):
102457         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
102458         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
102459         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
102460         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
102461         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
102462         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
102463         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
102464         (re_acquire_state_context):
102465         Remove unnecessary forward decls.
102466         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
102467         Put __attribute at function definition,
102468         now that the function decl has been removed.
102469         * lib/regex_internal.c (re_string_peek_byte_case):
102470         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
102471         Likewise.
102473 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
102475         * m4/regex.m4: Add AC_PREREQ(2.50).
102476         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
102478 2005-08-25  Simon Josefsson  <jas@extundo.com>
102480         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
102481         __fsetlocking.
102483 2005-08-25  Simon Josefsson  <jas@extundo.com>
102485         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
102486         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
102487         GLIBC specific code.
102489 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
102491         Make regex safe for g++.  This fixes one real bug (an "err"
102492         that should have been "*err").  g++ problem reported by
102493         Sam Steingold.
102494         * lib/regex_internal.h (re_calloc): New macro, consistent with
102495         re_malloc etc.  All callers of calloc changed to use re_calloc.
102496         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
102497         not int.  All callers changed.
102498         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
102499         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
102500         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
102501         (find_recover_state): Change "err" to "*err"; this fixes what
102502         appears to be a real bug.
102503         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
102504         versus int.
102506 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
102508         * modules/regex (Depends-on): Add malloc, since the code
102509         assumes that !malloc(0) means failure.
102511 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
102513         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
102515         alloca modernization/simplification for regex.
102516         * lib/regex.c: Remove portability cruft for alloca.  This no longer
102517         needs to be at the start of the file, and can be moved into
102518         regex_internal.h and simplified.
102519         * lib/regex_internal.h: Include <alloca.h>.
102520         (__libc_use_alloca) [!defined _LIBC]: New macro.
102521         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
102522         now works outside glibc.
102524 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
102526         * config/srclist.txt: Add glibc bugs 1241, 1245.
102528 2005-08-25  Jim Meyering  <jim@meyering.net>
102530         * lib/open-safer.c: Include <config.h>.
102531         Otherwise, we'd lose LARGEFILE support in any file using
102532         e.g. "fcntl--.h"
102534 2005-08-25  Bruno Haible  <bruno@clisp.org>
102536         * m4/minmax.m4: Require autoconf 2.52.
102537         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
102538         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
102539         alternatives of translit over the alphabet.
102540         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
102542 2005-08-24  Simon Josefsson  <jas@extundo.com>
102544         * tests/test-getpass.c: New file.
102546 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
102548         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
102549         for GNU regex features.
102551 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
102553         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
102554         * lib/regex.h (regerror): Likewise.
102556         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
102557         requires this.  (The code never needed it.)
102559         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
102560         All uses of recently-renamed identifiers changed to use the new,
102561         POSIX-compliant names.  The code will build and run just fine
102562         without these changes, but it's better to eat our own dog food
102563         and use the standard-conforming names.
102565         * lib/regex.h: Fix a multitude of POSIX name space violations.
102566         These changes have an effect only for programs that define
102567         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
102568         do not change anything for programs compiled in the normal way.
102569         Also, there is no effect on the ABI.
102571         (_REGEX_SOURCE): New macro.
102572         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
102573         defined and _GNU_SOURCE is not; this fixes a name space violation.
102575         Rename the following macros to obey POSIX requirements.
102576         The old names are still visible as macros if _REGEX_SOURCE is defined.
102577         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
102578         RE_BACKSLASH_ESCAPE_IN_LISTS.
102579         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
102580         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
102581         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
102582         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
102583         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
102584         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
102585         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
102586         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
102587         (REG_INTERVALS): renamed from RE_INTERVALS.
102588         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
102589         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
102590         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
102591         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
102592         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
102593         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
102594         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
102595         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
102596         RE_UNMATCHED_RIGHT_PAREN_ORD.
102597         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
102598         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
102599         (REG_DEBUG): renamed from RE_DEBUG.
102600         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
102601         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
102602         unusual, since we can't clash with the POSIX REG_ICASE.
102603         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
102604         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
102605         (REG_NO_SUB): renamed from RE_NO_SUB.
102606         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
102607         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
102608         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
102609         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
102610         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
102611         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
102612         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
102613         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
102614         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
102615         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
102616         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
102617         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
102618         RE_SYNTAX_POSIX_MINIMAL_BASIC.
102619         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
102620         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
102621         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
102622         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
102623         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
102624         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
102625         (REG_FIXED): Renamed from REGS_FIXED.
102626         (REG_NREGS): Renamed from RE_NREGS.
102628         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
102629         of other REG_* macros, since POSIX says the user is allowed to
102630         #undef these macros selectively.
102632         (reg_errcode_t): Update comment stating what other tables need
102633         to be consistent.
102635         Rename the following enum values to obey POSIX requirements.
102636         The old names are still visible as macros.
102637         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
102638         is not defined, since GNU is supposed to be a superset of POSIX as
102639         much as possible, and since we want reg_errcode_t to be a signed
102640         type for implementation consistency.
102641         (_REG_NOERROR): Renamed from REG_NOERROR.
102642         (_REG_NOMATCH): Renamed from REG_NOMATCH.
102643         (_REG_BADPAT): Renamed from REG_BADPAT.
102644         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
102645         (_REG_ECTYPE): Renamed from REG_ECTYPE.
102646         (_REG_EESCAPE): Renamed from REG_EESCAPE.
102647         (_REG_ESUBREG): Renamed from REG_ESUBREG.
102648         (_REG_EBRACK): Renamed from REG_EBRACK.
102649         (_REG_EPAREN): Renamed from REG_EPAREN.
102650         (_REG_EBRACE): Renamed from REG_EBRACE.
102651         (_REG_BADBR): Renamed from REG_BADBR.
102652         (_REG_ERANGE): Renamed from REG_ERANGE.
102653         (_REG_ESPACE): Renamed from REG_ESPACE.
102654         (_REG_BADRPT): Renamed from REG_BADRPT.
102655         (_REG_EEND): Renamed from REG_EEND.
102656         (_REG_ESIZE): Renamed from REG_ESIZE.
102657         (_REG_ERPAREN): Renamed from REG_ERPAREN.
102658         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
102659         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
102660         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
102661         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
102663         (_REG_RE_NAME, _REG_RM_NAME): New macros.
102664         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
102665         changed.  But support the old name if the new one is not defined
102666         and if _REGEX_SOURCE.
102668         Change the following member names in struct re_pattern_buffer.
102669         The old names are still supported if !_REGEX_SOURCE.
102670         The new names are always supported, regardless of _REGEX_SOURCE.
102671         (re_buffer): Renamed from buffer.
102672         (re_allocated): Renamed from allocated.
102673         (re_used): Renamed from used.
102674         (re_syntax): Renamed from syntax.
102675         (re_fastmap): Renamed from fastmap.
102676         (re_translate): Renamed from translate.
102677         (re_can_be_null): Renamed from can_be_null.
102678         (re_regs_allocated): Renamed from regs_allocated.
102679         (re_fastmap_accurate): Renamed from fastmap_accurate.
102680         (re_no_sub): Renamed from no_sub.
102681         (re_not_bol): Renamed from not_bol.
102682         (re_not_eol): Renamed from not_eol.
102683         (re_newline_anchor): Renamed from newline_anchor.
102685         Change the following member names in struct re_registers.
102686         The old names are still supported if !_REGEX_SOURCE.
102687         The new names are always supported, regardless of _REGEX_SOURCE.
102688         (rm_num_regs): Renamed from num_regs.
102689         (rm_start): Renamed from start.
102690         (rm_end): Renamed from end.
102692         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
102693         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
102694         Prepend __ to parameter names.
102696         Undo yesterday's changes.
102698 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
102700         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
102701         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
102702         lib/regex.c.
102704 2005-08-24  Jim Meyering  <jim@meyering.net>
102706         Sync from coreutils.
102707         * m4/fcntl-safer.m4: New file.
102709         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
102710         and object files for this module.
102712 2005-08-24  Jim Meyering  <jim@meyering.net>
102714         Sync from coreutils.
102715         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
102717 2005-08-24  Jim Meyering  <jim@meyering.net>
102719         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
102720         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
102722 2005-08-24  Jim Meyering  <jim@meyering.net>
102724         * modules/fcntl-safer: New module.
102725         * modules/fts (Depends-on): Add fcntl-safer.
102726         * MODULES.html.sh (File descriptor based Input/Output):
102727         Add fcntl-safer.
102729 2005-08-24  Bruno Haible  <bruno@clisp.org>
102731         Support for unit test modules.
102732         * modules/README: Mention tests modules.
102733         * modules/TEMPLATE-TESTS: New file.
102734         * gnulib-tool: New options --extract-tests-module, --with-tests and
102735         --tests-base (unused for the moment).
102736         (testsbase, inctests): New variables.
102737         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
102738         (func_verify_module): Exclude TEMPLATE-TESTS.
102739         (func_verify_nontests_module, func_verify_tests_module): New functions.
102740         (func_get_dependencies): Add implicit dependency for tests modules.
102741         (func_get_tests_module): New function.
102742         (func_modules_transitive_closure): When --with-tests was specified,
102743         include the unit tests as well, unless explicitly avoided.
102744         (func_emit_lib_Makefile_am): Ignore the tests modules here.
102745         (func_emit_tests_Makefile_am): New function.
102746         (func_create_testdir): When --with-tests was specified, emit a
102747         tests/ directory.
102748         * MODULES.html.sh (Future developments): Update.
102750 2005-08-24  Bruno Haible  <bruno@clisp.org>
102752         * modules/tls-tests: New file.
102753         * tests/test-tls.c: New file, from GNU gettext.
102755 2005-08-24  Bruno Haible  <bruno@clisp.org>
102757         * modules/lock-tests: New file.
102758         * tests/test-lock.c: New file, from GNU gettext.
102760 2005-08-24  Bruno Haible  <bruno@clisp.org>
102762         * lib/lock.h: Add multiple inclusion guard.
102763         * lib/tls.h: Add multiple inclusion guard.
102765 2005-08-24  Bruno Haible  <bruno@clisp.org>
102767         * gnulib-tool: Add support for the --aux-dir option to
102768         --create-testdir, --create-megatestdir, --test, --megatest.
102769         (func_create_testdir, func_create_megatestdir): Optionally emit a
102770         AC_CONFIG_AUX_DIR directive.
102771         (create-testdir, create-megatestdir, test, megatest): Provide a
102772         default value for $auxdir.
102774 2005-08-24  Bruno Haible  <bruno@clisp.org>
102776         * gnulib-tool (import): Use compound statement instead of subshell
102777         where possible.
102779 2005-08-24  Bruno Haible  <bruno@clisp.org>
102781         * gnulib-tool (import): Change --aux-dir default to "build-aux".
102783 2005-08-24  Bruno Haible  <bruno@clisp.org>
102785         * gnulib-tool (func_version): Update.
102787 2005-08-24  Bruno Haible  <bruno@clisp.org>
102789         * gnulib-tool (func_import, func_create_testdir,
102790         func_create_megatestdir): Quote all autoconf macro arguments.
102792 2005-08-24  Bruno Haible  <bruno@clisp.org>
102794         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
102795         option --force, because --force causes the aclocal.m4 of each
102796         subdirectory to be newer than the corresponding config.h.in.
102798 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
102800         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
102801         All contents moved to gl_REGEX.
102802         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
102803         assume that it does.
102805 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
102807         * lib/regex.h (REG_NOSYS)
102808         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
102809         Define, since POSIX requires it as of 2001.
102810         (_REG_ENOSYS)
102811         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
102812         New private symbol, used to keep the enum signed in all cases.
102813         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
102814         Youngman in
102815         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
102817         * lib/regex_internal.c (re_string_skip_chars, register_state):
102818         (calc_state_hash):
102819         Remove forward decls; no longer needed now that we use prototypes.
102820         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
102821         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
102822         (clean_state_log_if_needed): Likewise.
102824 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
102826         * config/srclist.txt: Add glibc bugs 1231-1233.
102828 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
102830         Fix problems reported by Sam Steingold in
102831         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
102832         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
102833         assumed that reg_errcode_t is a signed type, which is not
102834         necessarily true if _XOPEN_SOURCE is not defined.
102835         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
102836         since some compilers warn about it otherwise.
102838 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
102840         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
102841         (init_word_char, create_initial_state, duplicate_node_closure):
102842         (fetch_token, peek_token_bracket, build_range_exp):
102843         (build_collating_symbol): Remove forward decls; no longer needed
102844         now that we use prototypes.
102846         * lib/regcomp.c:
102847         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
102848         (re_compile_fastmap_iter, regcomp, regerror, regfree):
102849         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
102850         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
102851         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
102852         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
102853         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
102854         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
102855         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
102856         (build_range_exp, build_collating_symbol, parse_bracket_exp):
102857         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
102858         (build_charclass, build_charclass_op, fetch_number, create_tree):
102859         (create_token_tree, mark_opt_subexp, duplicate_tree):
102860         Use prototypes rather than old-style definitions.
102862         * lib/regex_internal.c:
102863         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
102864         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
102865         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
102866         (re_string_reconstruct, re_string_peek_byte_case):
102867         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
102868         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
102869         (re_node_set_init_copy, re_node_set_add_intersect):
102870         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
102871         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
102872         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
102873         (re_acquire_state, re_acquire_state_context, register_state):
102874         (create_ci_newstate, create_cd_newstate, free_state):
102875         Likewise.
102876         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
102877         re_search_2):
102878         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
102879         (re_search_internal, prune_impossible_nodes):
102880         (acquire_init_state_context, check_matching, static):
102881         (check_halt_node_context, check_halt_state_context, proceed_next_node):
102882         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
102883         (update_regs, sift_states_backward, build_sifted_states):
102884         (clean_state_log_if_needed, merge_state_array):
102885         (update_cur_sifted_state, add_epsilon_src_nodes):
102886         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
102887         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
102888         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
102889         (find_recover_state, check_subexp_matching_top, transit_state_mb):
102890         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
102891         (check_arrival, check_arrival_add_next_nodes):
102892         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
102893         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
102894         (check_node_accept_bytes, check_node_accept, extend_buffers):
102895         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
102896         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
102897         (sift_ctx_init):
102898         Likewise.
102900         * lib/regex_internal.h:
102901         (re_string_allocate, re_string_construct, re_string_reconstruct):
102902         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
102903         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
102904         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
102905         (re_string_context_at, re_string_peek_byte_case):
102906         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
102907         is defined, since we now use prototypes always.
102909         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
102910         C89 or better.  All uses removed.
102912 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
102914         * config/srclist.txt: Add glibc bugs 1220-1227.
102916 2005-08-20  Jim Meyering  <jim@meyering.net>
102918         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
102919         of unused local, dfa.
102921 2005-08-20  Bruno Haible  <bruno@clisp.org>
102923         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
102925 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
102927         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
102928         (re_node_set_insert_last, re_dfa_add_node):
102929         Rename local variables to avoid GCC shadowing warnings.
102931 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
102933         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
102934         [defined lint]: Suppress bogus uninitialized-variable warnings.
102936         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
102937         and let the caller return REG_ESPACE if out of space.  This
102938         removes an uninitialied-variable warning with GCC 4.0.1, and also
102939         avoids taking the address of a local variable.  All callers
102940         changed.
102942 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
102944         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
102945         $LIBCSRC/posix/regexec.c.
102946         Add glibc bug 1217 for regcomp.c.
102948 2005-08-19  Jim Meyering  <jim@meyering.net>
102950         * lib/regexec.c (proceed_next_node): Redo local variables to
102951         avoid GCC shadowing warnings.
102953 2005-08-18  Bruno Haible  <bruno@clisp.org>
102955         * lib/strstr.c (strstr): Fix return value in multibyte case.
102956         * lib/strcasestr.c (strcasestr): Likewise.
102958 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
102960         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
102962 2005-08-17  Jim Meyering  <jim@meyering.net>
102964         Make the %s format (seconds since the epoch) work for a negative
102965         number and when used with a zero-padded field width, e.g. %015s.
102967         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
102968         label so that it precedes the code to set `digits'.  Otherwise,
102969         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
102970         print `00-22'.  Now, it prints `-0022', as it should.
102972 2005-08-17  Bruno Haible  <bruno@clisp.org>
102974         * modules/strstr (Files): Add m4/mbrtowc.m4.
102975         (Depends-on): Add mbuiter.
102977 2005-08-17  Bruno Haible  <bruno@clisp.org>
102979         * modules/strcasestr: New file.
102980         * MODULES.html.sh (String handling, based on ANSI C 89): Add
102981         strcasestr.
102983 2005-08-17  Bruno Haible  <bruno@clisp.org>
102985         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
102987 2005-08-17  Bruno Haible  <bruno@clisp.org>
102989         * modules/mbuiter: New file.
102990         * MODULES.html.sh (Extended multibyte and wide character utilities):
102991         Add mbuiter.
102993 2005-08-17  Bruno Haible  <bruno@clisp.org>
102995         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
102996         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
102998 2005-08-17  Bruno Haible  <bruno@clisp.org>
103000         * m4/strcasestr.m4: New file.
103002 2005-08-17  Bruno Haible  <bruno@clisp.org>
103004         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
103005         * lib/strstr.c: Completely rewritten, with multibyte locale support.
103007 2005-08-17  Bruno Haible  <bruno@clisp.org>
103009         * lib/strcasestr.h: New file.
103010         * lib/strcasestr.c: New file.
103012 2005-08-17  Bruno Haible  <bruno@clisp.org>
103014         * lib/strcasecmp.c: Use mbuiter.h.
103016 2005-08-17  Bruno Haible  <bruno@clisp.org>
103018         * lib/mbuiter.h: New file.
103020 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
103022         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
103023         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
103024         and gl_GETOPT are both invoked via different paths (as happens
103025         with GNU tar CVS because it uses both argp and getopt), the former
103026         wins.
103028 2005-08-16  Bruno Haible  <bruno@clisp.org>
103030         * modules/tls: New file.
103031         * MODULES.html.sh (Multithreading): Add tls.
103033 2005-08-16  Bruno Haible  <bruno@clisp.org>
103035         * modules/strnlen1: New file.
103036         * MODULES.html.sh (String handling): Add strnlen1.
103038 2005-08-16  Bruno Haible  <bruno@clisp.org>
103040         * modules/strcase (Files): Add m4/mbrtowc.m4.
103041         (Depends-on): Add strnlen1, mbchar.
103043 2005-08-16  Bruno Haible  <bruno@clisp.org>
103045         * modules/mbiter: New file.
103046         * MODULES.html.sh (Extended multibyte and wide character utilities):
103047         Add mbiter.
103049 2005-08-16  Bruno Haible  <bruno@clisp.org>
103051         * modules/mbfile: New file.
103052         * MODULES.html.sh (Extended multibyte and wide character utilities):
103053         Add mbfile.
103055 2005-08-16  Bruno Haible  <bruno@clisp.org>
103057         * modules/mbchar: New file.
103058         * MODULES.html.sh (Extended multibyte and wide character utilities):
103059         New section.
103061 2005-08-16  Bruno Haible  <bruno@clisp.org>
103063         * m4/tls.m4: New file, from GNU gettext.
103065 2005-08-16  Bruno Haible  <bruno@clisp.org>
103067         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
103068         always.
103069         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
103071 2005-08-16  Bruno Haible  <bruno@clisp.org>
103073         * m4/mbiter.m4: New file.
103075 2005-08-16  Bruno Haible  <bruno@clisp.org>
103077         * m4/mbfile.m4: New file.
103079 2005-08-16  Bruno Haible  <bruno@clisp.org>
103081         * m4/mbchar.m4: New file.
103083 2005-08-16  Bruno Haible  <bruno@clisp.org>
103085         * lib/tls.h: New file, from GNU gettext.
103086         * lib/tls.c: New file, from GNU gettext.
103088 2005-08-16  Bruno Haible  <bruno@clisp.org>
103090         * lib/strnlen1.h: New file.
103091         * lib/strnlen1.c: New file.
103093 2005-08-16  Bruno Haible  <bruno@clisp.org>
103095         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
103096         (mbi_init): Update.
103097         (mbi_avail, mbi_advance): Let the iteration end before the terminating
103098         NUL byte, not after it.
103100 2005-08-16  Bruno Haible  <bruno@clisp.org>
103102         * lib/strcase.h (strcasecmp): Add note in comments.
103103         * lib/strncasecmp.c: Use code from strcasecmp.c.
103104         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
103105         (strcasecmp): Work correctly in multibyte locales.
103107 2005-08-16  Bruno Haible  <bruno@clisp.org>
103109         * lib/mbiter.h: New file.
103111 2005-08-16  Bruno Haible  <bruno@clisp.org>
103113         * lib/mbfile.h: New file.
103115 2005-08-16  Bruno Haible  <bruno@clisp.org>
103117         * lib/mbchar.h: New file.
103118         * lib/mbchar.c: New file.
103120 2005-08-16  Bruno Haible  <bruno@clisp.org>
103122         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
103123         the valid ones. Makes the comparison operations transitive:
103124         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
103125         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
103127 2005-08-15  Simon Josefsson  <jas@extundo.com>
103129         * modules/ssize_t (License): Change to 'unlimited'.
103131         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
103133 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
103135         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
103136         Add comments for each pending glibc patch.
103138 2005-08-15  Bruno Haible  <bruno@clisp.org>
103140         * lib/regex.h (__restrict_arr): Don't define to __restrict if
103141         __cplusplus is defined.
103143 2005-08-14  Jim Meyering  <jim@meyering.net>
103145         Sync from coreutils.
103147         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
103148         Use the hash-table-based cycle-detection code not just when
103149         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
103150         Reported by James Youngman in
103151         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
103152         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
103153         FTS_TIGHT_CYCLE_CHECK.
103154         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
103155         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
103156         once again.
103157         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
103158         * lib/fts.c (fd_safer): Remove decl.
103159         Include fcntl--.h rather than unistd-safer.h
103160         (fts_safe_changedir): Don't call fd_safer; no longer needed
103161         now that we include fcntl--.h.
103163 2005-08-12  Simon Josefsson  <jas@extundo.com>
103165         * modules/getndelim2: Use ssize_t module.
103166         * modules/getnline: Likewise.
103167         * modules/safe-read: Likewise.
103168         * modules/xreadlink: Likewise.
103170         * modules/ssize_t: New file.
103172 2005-08-12  Simon Josefsson  <jas@extundo.com>
103174         * m4/readline.m4: Look for termcap, curses or ncurses if required.
103176 2005-08-12  Simon Josefsson  <jas@extundo.com>
103178         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
103179         ssize_t.
103181 2005-08-12  Simon Josefsson  <jas@extundo.com>
103183         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
103184         readline, getdelim and check_version.
103185         (Support for systems lacking ISO C 99: Sizes of integer types):
103186         Add size_max.
103188 2005-08-12  Bruno Haible  <bruno@clisp.org>
103190         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
103192 2005-08-11  Simon Josefsson  <jas@extundo.com>
103194         * modules/readline: New file.
103196         * modules/strnlen (Files): Add strnlen.h.
103198 2005-08-11  Simon Josefsson  <jas@extundo.com>
103200         * m4/readline.m4: New file.
103202 2005-08-11  Simon Josefsson  <jas@extundo.com>
103204         * lib/readline.h, readline.c: New file.
103206 2005-08-11  Simon Josefsson  <jas@extundo.com>
103208         * doc/gnulib.texi (Initial import, Finishing touches): Mention
103209         gl_AVOID.
103211 2005-08-11  Bruno Haible  <bruno@clisp.org>
103213         * lib/strnlen.h (strnlen): Change parameter name to match comment.
103215 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
103217         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
103219 2005-08-10  Simon Josefsson  <jas@extundo.com>
103221         * tests/test-iconvme.c: New file.
103223 2005-08-10  Simon Josefsson  <jas@extundo.com>
103225         * m4/strnlen.m4: New file.
103227         * m4/strndup.m4: Don't check for strnlen declaration, done in
103228         strnlen.m4.
103230 2005-08-10  Simon Josefsson  <jas@extundo.com>
103232         * lib/strndup.c: Use strnlen.h.
103234         * lib/strnlen.h: New file.
103236 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
103238         * README: Typos.
103240 2005-08-02  Simon Josefsson  <jas@extundo.com>
103242         * modules/readline: New file.
103244 2005-08-02  Simon Josefsson  <jas@extundo.com>
103246         * modules/getdelim: New file.
103248         * modules/getline: Rewrite, don't use getndelim2.
103250 2005-08-02  Simon Josefsson  <jas@extundo.com>
103252         * m4/getline.m4: Separate out getdelim stuff into separate module.
103254         * m4/getdelim.m4: New file.
103256 2005-08-02  Simon Josefsson  <jas@extundo.com>
103258         * lib/getline.h, getline.c: Rewrite.
103260         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
103262 2005-07-31  Bruno Haible  <bruno@clisp.org>
103264         * lib/lock.h (gl_lock_initializer): New macro.
103265         (gl_lock_define_initialized): Use it.
103266         (gl_rwlock_initializer): New macro.
103267         (gl_rwlock_define_initialized): Use it.
103268         (gl_recursive_lock_initializer): New macro.
103269         (gl_recursive_lock_define_initialized): Use it.
103271 2005-07-30  Karl Berry  <karl@gnu.org>
103273         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
103274         Report from Ben Pfaff, regarding getopt.
103276 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
103278         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
103279         normal way.
103280         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
103281         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
103282         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
103283         (gl_GETOPT): Use the new macros.  Most of the implementation
103284         is moved to the new macros.  This is for programs like Emacs
103285         that don't want all the functionality of gl_GETOPT.
103287 2005-07-26  Bruno Haible  <bruno@clisp.org>
103289         * m4/lock.m4: Update from GNU gettext.
103291 2005-07-26  Bruno Haible  <bruno@clisp.org>
103293         * lib/lock.h: Update from GNU gettext.
103294         * lib/lock.c: Update from GNU gettext.
103296 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
103298         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
103299         obsolescent AC_TRY_RUN.  Include the default includes files, for
103300         'exit'.
103302 2005-07-24  Bruno Haible  <bruno@clisp.org>
103304         * modules/visibility: New file.
103305         * MODULES.html.sh (Misc): Add visibility.
103307 2005-07-24  Bruno Haible  <bruno@clisp.org>
103309         * m4/visibility.m4: New file.
103311 2005-07-24  Bruno Haible  <bruno@clisp.org>
103313         * doc/visibility.texi: New file.
103315 2005-07-22  Bruno Haible  <bruno@clisp.org>
103317         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
103318         $(ALLOCA_H), redundant through BUILT_SOURCES.
103319         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
103320         redundant through BUILT_SOURCES.
103321         * modules/byteswap (Makefile.am): Remove explicit dependency on
103322         $(BYTESWAP_H), redundant through BUILT_SOURCES.
103323         * modules/fnmatch (Makefile.am): Remove explicit dependency on
103324         $(FNMATCH_H), redundant through BUILT_SOURCES.
103325         * modules/getopt (Makefile.am): Remove explicit dependency on
103326         $(GETOPT_H), redundant through BUILT_SOURCES.
103327         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
103328         redundant through BUILT_SOURCES.
103329         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
103330         redundant through BUILT_SOURCES.
103331         * modules/stdbool (Makefile.am): Remove explicit dependency on
103332         $(STDBOOL_H), redundant through BUILT_SOURCES.
103333         * modules/stdint (Makefile.am): Remove explicit dependency on
103334         $(STDINT_H), redundant through BUILT_SOURCES.
103335         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
103336         Remove explicit dependency on $(SYSEXITS_H).
103337         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
103339 2005-07-18  Simon Josefsson  <jas@extundo.com>
103341         * lib/check-version.c (check_version): Accept identical versions too.
103343 2005-07-18  Bruno Haible  <bruno@clisp.org>
103345         * modules/lock: New file.
103346         * MODULES.html.sh (Multithreading): New section.
103348 2005-07-18  Bruno Haible  <bruno@clisp.org>
103350         * m4/lock.m4: New file, from GNU gettext.
103352 2005-07-18  Bruno Haible  <bruno@clisp.org>
103354         * lib/lock.h: New file, from GNU gettext.
103355         * lib/lock.c: New file, from GNU gettext.
103357 2005-07-18  Bruno Haible  <bruno@clisp.org>
103359         * lib/lock.h (gl_once_t): New type.
103360         (gl_once_define, gl_once): New macros.
103361         * lib/lock.c (fresh_once): New variable.
103362         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
103363         functions.
103365 2005-07-16  Simon Josefsson  <jas@extundo.com>
103367         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
103368         workaround, suggested by Bruno.
103370 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
103372         * modules/xalloc (Depends-on): Add xalloc-die.
103373         * modules/xvasprintf (Depends-on): Add xalloc-die.
103375 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
103377         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
103378         with a minor change.
103380 2005-07-15  Bruno Haible  <bruno@clisp.org>
103382         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
103383         When using lib/poll.c, define poll as rpl_poll.
103385 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
103387         * modules/argp (Depends-on): Remove unlocked-io.
103389 2005-07-14  Derek Price  <derek@ximbiot.com>
103391         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
103392         for glob symlink bug.
103394 2005-07-14  Bruno Haible  <bruno@clisp.org>
103396         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
103397         Instead, test for *_unlocked function declarations directly.
103399 2005-07-11  Simon Josefsson  <jas@extundo.com>
103401         * modules/size_max: New file.
103403         * modules/xsize: Depend on size_max module for size_max.m4.
103405 2005-07-11  Simon Josefsson  <jas@extundo.com>
103407         * lib/size_max.h: New file.
103409 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
103411         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
103412         copyright symbol and the year.
103413         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
103414         (version_etc_va): Use parameterized copyright notice.
103415         Reword to conform to the current GNU coding standards.
103417 2005-07-11  Karl Berry  <karl@gnu.org>
103419         * doc/gnulib.texi (Quoting): new node.
103420         (Initial import): more info, from Patrice.
103422 2005-07-11  Bruno Haible  <bruno@clisp.org>
103424         * gnulib-tool (func_usage): Document option --avoid.
103425         (Command line options): Handle --avoid.
103426         (func_acceptable): New function.
103427         (func_modules_transitive_closure): Use it.
103429 2005-07-11  Bruno Haible  <bruno@clisp.org>
103431         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
103432         Reported by Jim Meyering.
103434 2005-07-10  Bruno Haible  <bruno@clisp.org>
103436         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
103437         Needed when size_t is smaller than 'unsigned int'.
103438         Reported by Paul Eggert.
103440 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
103442         * modules/argp (Depends-on): Add unlocked-io
103444 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
103446         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
103447         block of defines.
103449 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
103451         * config/srclist.txt: Comment out regcomp.c, since we have a porting
103452         fix now.
103454 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
103455         and Paul Eggert  <eggert@cs.ucla.edu>
103457         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
103458         in wint_t, not wchar_t.  Remove now-unnecessary cast.
103460 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
103462         * modules/regex (Files): Add lib/regex_internal.c,
103463         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
103464         (Depends-on): Add extensions.
103465         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
103467 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
103469         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
103470         pathconf.
103471         * m4/same.m4 (gl_SAME): Likewise.
103472         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
103474         * m4/regex.m4: Adjust to new libc regex implementation.
103475         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
103476         all the .c and .h parts of (the new) regex.
103477         Quote the m4 stuff better.
103478         Check for RE_ICASE bug of old gnulib.
103479         Check for REG_STARTEND of recent libc.
103480         Rename local variables from jm_* to gl_*.
103481         Quote operand of "test -f".
103482         Say "recent enough" version of libc, not "version 2".
103483         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
103484         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
103485         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
103486         Remove check for btowc, isascii.
103487         Require AM_LANGINFO_CODESET.
103489 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
103491         * lib/regex.c, regex.h: Sync from libc.
103492         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
103493         * lib/regexec.c:
103494         New files, synced from libc, except that regex_internal.h
103495         currently has a small porting fix.
103497 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
103499         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
103500         regex_internal.c, regexec.c.
103501         Add regex_internal.h too, but as a comment, since the libc version
103502         is currently broken in gnulib mode.
103504 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
103506         Support programs like Emacs that use gnulib but not gettext.
103507         * MODULES.html.sh (Internationalization functions): Add gettext-h.
103508         * modules/gettext-h: New file.
103509         * modules/gettext (Files): Remove lib/gettext.h.
103510         (Depends-on): Add gettext-h.
103511         (Makefile.am): Remove lib_SOURCES.
103512         * modules/argmatch, modules/c-stack, modules/closeout:
103513         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
103514         * modules/execute, modules/file-type, modules/getaddrinfo:
103515         * modules/getopt, modules/human, modules/javacomp:
103516         * modules/javaexec, modules/mkdir-p, modules/obstack:
103517         * modules/openat, modules/pagealign_alloc, modules/pipe:
103518         * modules/quotearg, modules/regex, modules/rpmatch:
103519         * modules/unicodeio, modules/userspec, modules/version-etc:
103520         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
103521         * modules/xsetenv:
103522         Depend on gettext-h, not gettext.
103524 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
103526         * gnulib-tool (func_import): Add support for 'public domain' license.
103527         * modules/alloca, modules/atexit, modules/memmove:
103528         Now public domain, not GPL.
103529         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
103530         * modules/realloc, modules/strerror, modules/strtod:
103531         Now LGPL, not GPL.
103533 2005-07-05  Bruno Haible  <bruno@clisp.org>
103535         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
103536         autoconf CVS. Needed for mingw.
103538 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
103540         Remove the dependency of the strftime module on the tzset module.
103541         * modules/strftime (Depends-on): Remove dependency on tzset.
103543 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
103545         Remove the dependency of the strftime module on the tzset module.
103546         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
103547         gl_FUNC_TZSET_CLOBBER.
103549 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
103551         Remove the dependency of the strftime module on the tzset module.
103552         * lib/strftime.c (my_strftime)
103553         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
103554         Copy the input structure, to work around some of the bug with
103555         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
103556         Solaris releases, you should also use the tzset module, but we won't
103557         require it as a dependency any more since we don't want LGPLed code
103558         to depend on GPLed code.
103560 2005-07-02  Jim Meyering  <jim@meyering.net>
103562         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
103563         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
103564         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
103565         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
103567 2005-07-02  Jim Meyering  <jim@meyering.net>
103569         * lib/backupfile.c (backup_args): Change a `0' to NULL.
103571 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
103573         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
103574         declares only 'struct timespec;' (!).
103576 2005-07-01  Jim Meyering  <jim@meyering.net>
103578         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
103579         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
103580         * lib/save-cwd.c, tempname.c:
103581         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
103582         and don't include <sys/file.h>).
103584 2005-06-29  Jim Meyering  <jim@meyering.net>
103586         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
103587         type name.  Use the variable name instead.
103588         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
103589         Likewise.
103591 2005-06-28  Simon Josefsson  <jas@extundo.com>
103593         * modules/check-version (Files): Add check-version.m4.
103595 2005-06-28  Simon Josefsson  <jas@extundo.com>
103597         * m4/check-version.m4: New file, suggested by Jim Meyering
103598         <jim@meyering.net>.
103600 2005-06-28  Simon Josefsson  <jas@extundo.com>
103602         * lib/check-version.h, lib/check-version.c: New files.
103604 2005-06-28  Simon Josefsson  <jas@extundo.com>
103606         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
103607         collision with global variable.  Better indentation.  Don't
103608         increment buffer pointer beyond buffer end.  Based on comments
103609         from Paul Eggert <eggert@cs.ucla.edu>.
103611         * lib/base64.h: Indent.
103613 2005-06-28  Simon Josefsson  <jas@extundo.com>
103615         * doc/gnulib.texi (Library version handling): New section.
103617 2005-06-28  Jim Meyering  <jim@meyering.net>
103619         * check-module (find_included_lib_files): Hard-code another
103620         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
103621         but modules/fts-lgpl (correctly) does not list those files.
103623         * modules/canonicalize (Files): Add lib/pathmax.h.
103625 2005-06-25  Simon Josefsson  <jas@extundo.com>
103627         * modules/check-version: New file.
103629 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
103631         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
103632         initializer of struct addrinfo, as an indication that we don't
103633         care how many members the structure has.
103635 2005-06-24  Derek Price  <derek@ximbiot.com>
103636         and Bruno Haible  <bruno@clisp.org>
103638         Remove stat module & update lstat.
103639         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
103640         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
103641         * m4/stat.m4: Remove this file.
103643 2005-06-24  Derek Price  <derek@ximbiot.com>
103644         and Bruno Haible  <bruno@clisp.org>
103646         Remove stat module & update lstat.
103647         * lib/stat.c: Remove this file...
103648         (slash_aware_lstat): ...moving this content and its support...
103649         * lib/lstat.c (rpl_lstat): ...into here.
103650         * lib/lstat.h: New file.
103652 2005-06-24  Derek Price  <derek@ximbiot.com>
103653         and Bruno Haible  <bruno@clisp.org>
103655         Remove stat module & update lstat.
103656         * config/srclist.txt (libc sources): Remove stat.
103658 2005-06-24  Derek Price  <derek@ximbiot.com>
103659         and Bruno Haible  <bruno@clisp.org>
103661         Remove stat module & update lstat.
103662         * MODULES.html.sh (stat): Remove.
103663         * MODULES.html: Regenerated.
103664         * modules/lstat (Description): Correct function name.
103665         (Files): Add "lstat.h".
103666         (Depends-on): Remove stat, add xalloc, stat-macros.
103667         * modules/stat: Remove this file.
103668         (Include): Add "lstat.h", remove <sys/stat.h>.
103670 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
103672         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
103673         (ranged_convert): Don't save conversion in a temporary struct.
103674         This causes a warning with GCC 4.0.0, and anyway in the typical
103675         case it's not worth the extra 100 bytes or so of code.
103676         (ranged_convert, __mktime_internal): When calling a function via a
103677         pointer P, use P () rather than (*P) (), as we now assume C89 or
103678         better.
103680 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
103682         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
103683         "who -r" failed to give output.  Problem reported by Tim Waugh.
103685         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
103686         (xcalloc): Use it to avoid needless tests.
103687         Problem reported by Jim Meyering.
103689 2005-06-20  Derek Price  <derek@ximbiot.com>
103691         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
103692         unnecessary for Autoconfs > 2.59c.
103694 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103696         * lib/argp.h (__option_is_short): Check upper limit of
103697         __key. Isprint() requires its argument to have the value
103698         of an unsigned char or EOF.
103700 2005-06-16  Jim Meyering  <jim@meyering.net>
103702         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
103703         when either N or S is zero.
103705 2005-06-16  Derek Price  <derek@ximbiot.com>
103707         * m4/bison.m4: Declare YACC & YFLAGS precious.
103709 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
103711         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
103712         multibyte string or pattern, fall back on unibyte matching.
103713         Problem reported by James Youngman.
103715 2005-06-08  Bruno Haible  <bruno@clisp.org>
103717         * modules/csharpcomp: New file.
103718         * MODULES.html.sh (C#): Add csharpcomp.
103720 2005-06-08  Bruno Haible  <bruno@clisp.org>
103722         * m4/csharpcomp.m4: New file, from GNU gettext.
103724 2005-06-08  Bruno Haible  <bruno@clisp.org>
103726         * lib/csharpcomp.h: New file, from GNU gettext.
103727         * lib/csharpcomp.c: New file, from GNU gettext.
103728         * lib/csharpcomp.sh.in: New file, from GNU gettext.
103730 2005-06-08  Bruno Haible  <bruno@clisp.org>
103732         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
103733         warning on mingw.
103735 2005-06-07  Derek Price  <derek@ximbiot.com>
103737         Sync from CVS.
103738         * lib/glob_.h: Indent nested #ifdef.
103740 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
103742         Sync from coreutils.
103743         Use "file name" when talking about file names, instead of "filename"
103744         or "path", as per the GNU coding standards.
103745         * lib/mkdir-p.c: Renamed from makepath.c.
103746         (make_dir_parents): Renamed from make_path.  All callers changed.
103747         * lib/mkdir-p.h: Likewise.  All includers changed.
103748         * lib/filenamecat.c: Renamed from path-concat.c.
103749         (file_name_concat): Renamed from path_concat.  All callers changed.
103750         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
103751         * lib/filenamecat.h: Likewise.  All includers changed.
103752         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
103753         in comments or local variable names.
103754         * lib/basename.c: Likewise.
103755         * lib/canonicalize.c, canonicalize.h: Likewise.
103756         * lib/dirname.c, dirname.h: Likewise.
103757         * lib/euidaccess.c: Likewise.
103758         * lib/exclude.c: Likewise
103759         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
103760         * lib/fsusage.c, fsuage.h: Likewise.
103761         * lib/fts.c, fts_.h: Likewise.
103762         * lib/getcwd.c: Likewise.
103763         * lib/getloadavg.c: Likewise.
103764         * lib/mkstemp.c: Likewise.
103765         * lib/mountlist.c, mountlist.h: Likewise.
103766         * lib/openat.c, openat.h: Likewise.
103767         * lib/readlink-stub.c: Likewise.
103768         * lib/readutmp.c, readutmp.h: Likewise.
103769         * lib/rename.c: Likewise.
103770         * lib/rmdir.c: Likewise.
103771         * lib/same.c: Likewise.
103772         * lib/savedir.c: Likewise.
103773         * lib/stripslash.c: Likewise.
103774         * lib/tempname.c: Likewise.
103775         * lib/xreadlink.c: Likewise.
103776         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
103777         All uses changed.
103778         * lib/exclude.h: Likewise.
103780         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
103781         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
103782         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
103783         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
103784         * lib/pathmax.h: Include <limits.h> unconditionally, since other
103785         files have been getting away with it for years (MORE/BSD 4.3
103786         is extinct now).
103787         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
103788         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
103790         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
103791         Define to 256, not 255, as per modern POSIX.
103793 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
103795         Sync from coreutils.
103796         Use "file name" when talking about file names, instead of "filename"
103797         or "path", as per the GNU coding standards.
103798         * MODULES.html.sh: mkdir-p renamed from makepath.
103799         filenamecat renamed from path-concat.
103800         * modules/filenamecat: Renamed from modules/path-concat.
103801         (Files): filenamecat.h and filenamecat.c renamed from
103802         path-concat.h and path-concat.c.
103803         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
103804         (Include): filenamecat.h, not path-concat.h.
103805         * modules/mkdir-p: Renamed from modules/makepath.
103806         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
103807         makepath.c.
103808         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
103809         (Include): mkdir-p.h, not makepath.h.
103811 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
103813         Sync from coreutils.
103814         * m4/mkdir-p.m4: Renamed from makepath.m4.
103815         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
103816         Rename files from makepath.c to mkdir-p.c, and from
103817         makepath.h to mkdir-p.h.
103818         * m4/filenamecat.m4: Renamed from path-concat.m4.
103819         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
103820         Rename files from path-concat.c to filenamecat.c,
103821         and from path-concat.h to filenamecat.h.
103822         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
103823         "file name" in local variables or comments.
103824         * m4/rename.m4: Likewise.
103826 2005-06-01  Bruno Haible  <bruno@clisp.org>
103828         * modules/csharpexec: New file.
103829         * MODULES.html.sh (C#): New section.
103831 2005-06-01  Bruno Haible  <bruno@clisp.org>
103833         * m4/csharp.m4: New file, from GNU gettext.
103834         * m4/csharpexec.m4: New file, from GNU gettext.
103836 2005-06-01  Bruno Haible  <bruno@clisp.org>
103838         * lib/csharpexec.h: New file, from GNU gettext.
103839         * lib/csharpexec.c: New file, from GNU gettext.
103840         * lib/csharpexec.sh.in: New file, from GNU gettext.
103842 2005-05-31  Derek Price  <derek@ximbiot.com>
103843             Paul Eggert  <eggert@cs.ucla.edu>
103845         Sync from cvs.
103846         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
103848 2005-05-31  Derek Price  <derek@ximbiot.com>
103849             Paul Eggert  <eggert@cs.ucla.edu>
103851         Sync from cvs.
103852         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
103854 2005-05-29  Derek Price  <derek@ximbiot.com>
103856         * config/srclist.txt (glob_.h, glob.c): Add these files.
103858 2005-05-29  Derek Price  <derek@ximbiot.com>
103860         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
103861         * modules/glob: New file.
103862         * modules/getlogin_r: Add link to POSIX spec in description.
103864 2005-05-29  Derek Price  <derek@ximbiot.com>
103865             Paul Eggert  <eggert@cs.ucla.edu>
103867         * m4/glob.m4: New file.
103869 2005-05-29  Derek Price  <derek@ximbiot.com>
103870             Paul Eggert  <eggert@cs.ucla.edu>
103872         * lib/glob_.h, lib/glob.c: New files.
103874 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
103876         * modules/fts (Files): Remove m4/inttypes-pri.m4.
103877         * modules/fts-lgpl (Depends-on): Remove gettext.
103879 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
103881         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
103882         and don't require gt_INTTYPES_PRI.
103884 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
103886         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
103888         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
103889         the configuration hassle isn't worth it.
103890         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
103891         (LONGEST_MODIFIER, PRIuMAX): Remove.
103893 2005-05-27  Bruno Haible  <bruno@clisp.org>
103895         * lib/getlogin_r.h: Remove second include of <stddef.h>.
103897 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
103899         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
103900         _POSIX_PTHREAD_SEMANTICS for Solaris.
103902 2005-05-25  Derek Price  <derek@ximbiot.com>
103904         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
103906 2005-05-25  Derek Price  <derek@ximbiot.com>
103907             Paul Eggert  <eggert@cs.ucla.edu>
103909         * modules/getlogin_r, m4/getlogin_r.m4: New files.
103910         * lib/getlogin_r.c, getlogin_r.h: New files.
103912 2005-05-25  Bruno Haible  <bruno@clisp.org>
103913             Derek Price  <derek@ximbiot.com>
103915         * lib/getlogin_r.h: Simplify API documentation.
103917 2005-05-23  Derek Price  <derek@ximbiot.com>
103919         * modules/minmax (Files): Add m4/minmax.m4.
103920         (configure.ac): Add gl_MINMAX.
103922 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
103924         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
103925         so that unistd-safer.h (GPL'ed code) need not be included.
103927 2005-05-22  Bruno Haible  <bruno@clisp.org>
103929         * m4/minmax.m4: New file.
103930         Based on a patch by Derek Price <derek@ximbiot.com>.
103932 2005-05-22  Bruno Haible  <bruno@clisp.org>
103934         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
103935         (INT64_MIN): Fix definition.
103936         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
103938         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
103939         NEED_SIGNED_INT_TYPES.
103941         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
103942         HAVE_SYSTEM_INTTYPES.
103944 2005-05-22  Bruno Haible  <bruno@clisp.org>
103946         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
103947         Also include <sys/param.h> if it defines MIN, MAX.
103948         Based on a patch by Derek Price <derek@ximbiot.com>.
103950 2005-05-21  Jim Meyering  <jim@meyering.net>
103952         * modules/fts (Files): Add m4/inttypes-pri.m4.
103953         (Depends-on): Add lstat and remove gettext.  Alphabetize.
103955 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
103957         New fts module.
103958         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
103959         (setup_dir, free_dir): New functions.
103960         (enter_dir, leave_dir): Define trivial
103961         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
103962         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
103963         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
103964         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
103965         Move to fts-cycle.c.
103966         (fts_open): Use setup_dir.
103967         (fts_close): Use free_dir.
103968         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
103969         This adds a label and some gotos, but the alternatives were messier.
103970         Check for memory allocation failure when entering a dir.
103971         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
103972         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
103973         (FTS): New member fts_cycle, that is a union that contains the
103974         old active_dir_ht and cycle_state.  All uses changed to mention
103975         fts_cycle.ht and fts_cycle.state.
103976         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
103977         fts.c, with the following changes:
103978         (setup_dir, free_dir): New functions.
103979         (enter_dir): Now returns bool.  Return true if successful, false
103980         if memory exhausted.  All callers changed.
103981         Do not bother partly cleaning up on
103982         memory allocation failure; that is free_dir's job.
103983         However, free ad if hash_insert fails, to avoid memory leak.
103984         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
103985         fts->fts_options to see which union member to use.
103987 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
103989         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
103990         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
103992 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
103994         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
103996 2005-05-20  Jim Meyering  <jim@meyering.net>
103998         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
103999         Now a macro, to pacify GCC.
104001 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
104003         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
104004         of -1.
104006 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
104008         * lib/chown.c (rpl_chown): Return -1 on failure.
104010 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
104012         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
104013         Don't check for stddef.h.
104014         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
104015         don't use its results.
104016         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
104017         since we include them unconditionally.  Don't require
104018         AM_STDBOOL_H, since stdbool is a prerequisite.
104019         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
104020         since we assume C89 or better.
104021         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
104022         as we don't use their results.
104023         Don't check for fchdir, memmove, memset, strrchr, as we use
104024         them unconditionally.
104025         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
104026         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
104028 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
104030         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
104031         Include <stddef.h> unconditionally, since we assume C89 now.
104032         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
104033         * lib/fts.c: Include fts_.h first, to check interface.
104034         Do not include intprops.h; no longer needed.
104035         Include cycle-check.h and hash.h, since fts_.h no longer does.
104036         Remove unnecessary casts of closedir to void.
104037         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
104038         decide whether to decrement nlinks.
104039         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
104040         (FTS): Use struct hash_table * instead of Hash_table, so that
104041         we no longer need to include hash.h here.
104043 2005-05-18  Jim Meyering  <jim@meyering.net>
104045         * modules/dirfd (License): Change to LGPL.  Most of the code
104046         is already in the public domain.
104048 2005-05-18  Jim Meyering  <jim@meyering.net>
104050         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
104051         Reported by Yoann Vandoorselaere.
104053 2005-05-17  Jim Meyering  <jim@meyering.net>
104055         * m4/fts.m4: New file, from coreutils.
104057 2005-05-17  Jim Meyering  <jim@meyering.net>
104059         * lib/fts.c, lib/fts_.h: New files, from coreutils.
104061 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
104063         Sync from coreutils.
104064         * m4/unlinkdir.m4: New file.
104066 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
104068         Sync from coreutils.
104069         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
104070         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
104071         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
104072         White space changes only.
104073         * lib/makepath.c (make_path): Port to hosts where leading "//" is
104074         special.
104075         * lib/yesno.c: Include getline.h, not ctype.h.
104076         (yesno): Don't remove leading white space; POSIX doesn't allow it.
104077         Use getline to remove arbitrary restriction on response length.
104079 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
104081         * config/srclist-update: Spell out "Street" in FSF postal
104082         mail address; this is the style the FSF seems to prefer.
104084         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
104085         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
104086         this updates FSF postal mail address.
104088         Sync from coreutils.
104089         * modules/unlinkdir: New file.
104090         * modules/yesno (Depends-on): Add getline.
104091         * MODULES.html.sh (File system functions): Add unlinkdir.
104093 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
104095         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
104096         lib/strsep.h:
104097         Change the initial comment to refer to GPL, not LGPL.
104098         gnulib-tool will change it to LGPL as needed.
104100         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
104101         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
104102         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
104103         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
104104         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
104105         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
104106         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
104107         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
104108         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
104109         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
104110         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
104111         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
104112         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
104113         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
104114         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
104115         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
104116         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
104117         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
104118         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
104119         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
104120         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
104121         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
104122         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
104123         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
104124         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
104125         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
104126         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
104127         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
104128         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
104129         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
104130         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
104131         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
104132         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
104133         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
104134         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
104135         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
104136         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
104137         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
104138         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
104139         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
104140         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
104141         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
104142         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
104143         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
104144         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
104145         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
104146         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
104147         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
104148         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
104149         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
104150         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
104151         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
104152         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
104153         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
104154         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
104155         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
104156         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
104157         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
104158         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
104159         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
104160         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
104161         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
104162         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
104163         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
104164         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
104165         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
104166         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
104167         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
104168         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
104169         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
104170         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
104171         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
104172         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
104173         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
104174         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
104175         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
104176         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
104177         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
104178         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
104179         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
104180         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
104181         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
104182         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
104183         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
104184         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
104185         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
104186         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
104187         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
104188         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
104189         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
104190         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
104191         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
104192         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
104193         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
104194         lib/yesno.c, lib/yesno.h:
104195         Update FSF postal mail address.
104197 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
104199         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
104200         tests/test-memmem.c, tests/test-stpncpy.c:
104201         Update FSF postal mail address.
104203 2005-05-13  Bruno Haible  <bruno@clisp.org>
104205         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
104206         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
104207         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
104208         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
104209         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
104210         Add support for 64-bit integers in the MSVC compiler.
104212 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
104214         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
104216 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
104218         * gnulib-tool (func_import): Sort and uniquify recommended includes.
104220 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
104222         * doc/getdate.texi (General date syntax): Don't say that date
104223         date --iso-8601=ns generates acceptable dates; it doesn't yet.
104224         Problem reported by Nic Ferrier.
104226 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
104228         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
104229         specified in ai_socktype. Fix invalid ai_protocol
104230         check. ai_protocol is usually set to 0 or depending on
104231         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
104232         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
104233         ai_socktype / ai_protocol in the returned addrinfo structure.
104235 2005-05-10  Simon Josefsson  <jas@extundo.com>
104237         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
104238         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
104240 2005-05-10  Karl Berry  <karl@gnu.org>
104242         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
104243         (from http://www.gnu.org/licenses).
104244         * doc/COPYING.LIB: also rename to COPYING.LESSER.
104245         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
104246         fdl.texi suffices.
104248 2005-05-10  Karl Berry  <karl@gnu.org>
104250         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
104251         (COPYING.DOC): remove.
104253         * config/srclist-update: new FSF address.
104255 2005-05-10  Derek Price  <derek@ximbiot.com>
104257         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
104258         possible.
104260 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
104261             Bruno Haible  <bruno@clisp.org>
104263         * modules/inet_ntop: New file.
104264         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
104265         inet_ntop.
104267 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
104268             Bruno Haible  <bruno@clisp.org>
104270         * m4/inet_ntop.m4: New file.
104272 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
104273             Bruno Haible  <bruno@clisp.org>
104275         * lib/inet_ntop.h: New file.
104276         * lib/inet_ntop.c: New file, from glibc with modifications.
104278 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
104280         * modules/time_r (License): Change to LGPL.
104281         * modules/extensions (License): Change to LGPL.  Actually,
104282         the license is more permissive than that, but currently gnulib-tool
104283         doesn't know how to handle more-permissive licenses.
104285         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
104286         Problem reported by Dave Love.
104288 2005-05-08  Jim Meyering  <jim@meyering.net>
104290         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
104291         blank.
104293 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
104295         * modules/argmatch (Depends-on): Add stdbool.
104296         * modules/backupfile (Depends-on): Likewise.
104297         * modules/chdir-long (Depends-on): Likewise.
104298         * modules/closeout (Depends-on): Likewise.
104299         * modules/cycle-check (Depends-on): Likewise.
104300         * modules/dirname (Depends-on): Likewise.
104301         * modules/fnmatch (Depends-on): Likewise.
104302         * modules/fsusage (Depends-on): Likewise.
104303         * modules/fwriteerror (Depends-on): Likewise.
104304         * modules/getcwd (Depends-on): Likewise.
104305         * modules/getloadavg (Depends-on): Likewise.
104306         * modules/hard-locale (Depends-on): Likewise.
104307         * modules/makepath (Depends-on): Likewise.
104308         * modules/mountlist (Depends-on): Likewise.
104309         * modules/nanosleep (Depends-on): Likewise.
104310         * modules/posixtm (Depends-on): Likewise.
104311         * modules/quotearg (Depends-on): Likewise.
104312         * modules/readtokens (Depends-on): Likewise.
104313         * modules/readtokens0 (Depends-on): Likewise.
104314         * modules/readutmp (Depends-on): Likewise.
104315         * modules/save-cwd (Depends-on): Likewise.
104316         * modules/strftime (Depends-on): Likewise.
104317         * modules/userspec (Depends-on): Likewise.
104318         * modules/utimecmp (Depends-on): Likewise.
104319         * modules/xgetcwd (Depends-on): Likewise.
104320         * modules/xnanosleep (Depends-on): Likewise.
104321         * modules/xstrtod (Depends-on): Likewise.
104322         * modules/yesno (Depends-on): Likewise.
104324 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
104326         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
104327         needless checks.
104329 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
104331         Merge from coreutils.  Among other things,
104332         add bulletproofing for cases where stdin, stdout, or stderr are closed.
104333         * lib/fd-safer.c: New file.
104334         * lib/fcntl-safer.h, open-safer.c: Remove.
104335         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
104336         * lib/dup-safer.c: Include unistd-safer.h first.
104337         Don't include errno.h.
104338         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
104339         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
104340         * lib/file-type.c: Rely on file-type.h change.
104341         * lib/getloadavg.c: Include unistd-safer.h.
104342         (getloadavg): Use safer open.
104343         * lib/getusershell.c: Include "stdio-safer.h".
104344         (getusershell): Use safer fopen.
104345         * lib/long-options.c (long_options): Use NULL rather than 0.
104346         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
104347         'free'.
104348         * lib/modechange.c: Likewise.
104349         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
104350         (MODE_DONE): New constant.
104351         (struct mode_change): Remove 'next' member.
104352         (make_node_op_equals): New function; like the old one of the
104353         same name, except it allocates an array.
104354         (mode_compile, mode_create_from_ref): Use it.
104355         (mode_compile): Allocate result as an array, not a linked list.
104356         Parse octal string ourself, so that we catch mistakes like "+0".
104357         (mode_adjust): Arg is an array, not a linked list.
104358         * lib/modechange.c: Include stat-macros.h, xalloc.h.
104359         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
104360         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
104361         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
104362         Remove.  This is now stat-macros.h's job.
104363         (talloc): Remove.  All callers replaced by xalloc, so that
104364         our invokers don't have to worry about reporting memory failures.
104365         (make_node_op_equals): Remove.
104366         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
104367         New constants.
104368         (struct mode_change): Moved here from modechange.h.
104369         (mode_append_entry): Remove.
104370         (mode_compile): Remove MASKED_OPS arg, since it encouraged
104371         apps to have incorrect behavior.  Use simpler algorithm for head
104372         and tail.  Don't futz with umask; that's now the job of mode_adjust.
104373         Detect more invalid usages rather than having somewhat-random behavior.
104374         Don't insert an "a=" action, as that leads to incorrect behavior.
104375         (mode_compile, mode_create_from_ref): Return NULL on error instead
104376         of an enum, since now there's only one way to have an error.  All
104377         callers changed.
104378         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
104379         at the correct time.  Simplify calculation of "+u" and its ilk.
104380         Don't mishandle "+X".
104381         (mode_free): Remove "register" and localize decls.
104382         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
104383         (struct mode_change): Move to modechange.c; callers don't
104384         need to see this stuff.
104385         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
104386         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
104387         (mode_change, mode_adjust): Reflect the new signatures noted above.
104388         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
104389         that might redefine system include files.
104390         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
104391         (my_usleep): Use NULL rather than (void *) 0.
104392         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
104393         Use siginterrupt to specify that system calls should be interrupted.
104394         (rpl_nanosleep): Move initialization of suspended closer to call of
104395         my_usleep.
104396         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
104397         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
104398         (desirable_utmp_entry): New function.
104399         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
104400         using x2nrealloc, to simplify logic.
104401         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
104402         size calculation.  Do not assume utmp file is a regular file.
104403         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
104404         (READ_UTMP_CHECK_PIDS): New constant.
104405         * lib/save-cwd.c: Include unistd-safer.h.
104406         (save_cwd): Use fd_safer.
104407         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
104408         [!_LIBC] Include "stat-macros.h" instead.
104409         * lib/unistd-safer.h (fd_safer): New decl.
104411 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
104413         * modules/getloadavg (Depends-on): Add unistd-safer.
104414         * modules/getusershell (Depends-on): Add stdio-safer.
104415         * modules/lstat (Depends-on): Remove xalloc.
104416         * modules/mkstemp (Depends-on): Add stat-macros.
104417         * modules/modechange (Depends-on): Remove xstrtol.
104418         Add stat-macros, xalloc.
104419         * modules/save-cwd (Depends-on): Add unistd-safer.
104420         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
104421         * modules/unistd-safer (Files): Add lib/fd-safer.c
104422         (Makefile.am): Remove lib_SOURCES.
104424         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
104425         Remove fcntl-safer; unistd-safer supersedes it.
104427 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
104429         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
104430         AC_HEADER_STAT.
104431         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
104432         (gl_PREREQ_CHOWN): Remove.
104433         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
104434         it.  Don't require AC_HEADER_STAT.
104435         (gl_PREREQ_LSTAT): Remove.
104436         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
104437         Don't require AC_HEADER_STAT.
104438         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
104439         (gl_PREREQ_RMDIR): Remove.
104440         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
104441         mention stat-macros.h or AC_HEADER_STAT, since we'll make
104442         the stat-macros module a prerequisite.
104443         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
104444         * m4/filemode.m4 (gl_FILEMODE): Likewise.
104445         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
104446         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
104447         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
104448         variable names.
104449         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
104450         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
104451         variable prefixes.
104452         * m4/fcntl-safer.m4: Remove.
104453         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
104454         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
104455         Invoke gl_PREREQ_FD_SAFER.
104456         (gl_PREREQ_FD_SAFER): New macro.
104457         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
104458         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
104459         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
104460         Remove duplicate call to AC_LIBOBJ(readutmp).
104461         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
104463         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
104464         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
104466 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
104468         * MODULES.html.sh (Misc): Add byteswap.
104470 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
104472         * modules/getcwd (Depends-on): Add extensions.
104473         * modules/openat (Depends-on): Likewise.
104475 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
104477         * modules/byteswap: New file.
104479 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
104481         * m4/byteswap.m4: New file.
104483 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
104485         * lib/byteswap_.h: New file.
104487 2005-04-25  Karl Berry  <karl@gnu.org>
104489         * m4/gettext.m4: Update from GNU gettext 0.14.4.
104491 2005-04-25  Albert Chin  <china@thewrittenword.com>
104493         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
104494         Toolkit C bug.
104496 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
104498         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
104499         (func_ln_if_changed): Remove forcibly for no error message
104500         in case file does not exist.
104502 2005-04-19  Simon Josefsson  <jas@extundo.com>
104504         * gnulib-tool (Options): Make --symlink mean --symbolic.
104506 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
104508         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
104510 2005-04-16  Simon Josefsson  <jas@extundo.com>
104512         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
104514 2005-04-15  Simon Josefsson  <jas@extundo.com>
104516         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
104518 2005-04-15  Simon Josefsson  <jas@extundo.com>
104520         * gnulib-tool: Rename --symlink to --symbolic.
104522 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
104524         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
104525         symbolic links to files instead of copying/moving.  Add --aux-dir,
104526         specifying directory relative --dir where auxiliary build tools
104527         are placed.
104529 2005-04-14  Bruno Haible  <bruno@clisp.org>
104531         * modules/allocsa (License): Change to LGPL.
104532         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
104534 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
104536         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
104537         that "UTC +1 second" continues to work.  Problem reported
104538         by Dmitry V. Levin.
104539         (relunit_snumber): New rule.
104540         (relunit): Use it.
104542 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
104544         * lib/getdate.y (universal_time_zone_table): New constant.
104545         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
104546         universal_time_zone_table.
104547         (lookup_zone): Prefer universal_time_zone_table to
104548         local_time_zone_table, so that "GMT" time stamps are allowed in
104549         London during the summer.  Problem reported by Ian Abbott.
104551 2005-04-12  Jim Meyering  <jim@meyering.net>
104553         * lib/human.c (humblock): Set *options even when returning due to
104554         xstrtoumax conversion failure.  Thanks to a used-uninitialized
104555         warning from gcc-4.
104557 2005-04-09  Jim Meyering  <jim@meyering.net>
104559         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
104560         -Wuninitialized: initialize tm0.tm_year.
104562 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
104564         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
104565         count, since there's no maximum.  All uses changed.
104566         Add member dsts_seen.
104567         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
104568         not being INT_MAX.
104569         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
104570         Use pc_rels_seen to decide whether a date is absolute.
104572         * lib/getdate.y (number): Don't overwrite year.
104573         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
104574         check.
104576 2005-04-02  Simon Josefsson  <jas@extundo.com>
104578         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
104579         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
104581 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
104583         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
104584         where no absolute path name can be longer than PATH_MAX.
104586 2005-03-27  Jim Meyering  <jim@meyering.net>
104588         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
104590 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
104592         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
104593         "one's complement" -> "ones' complement" in comment, as per Knuth.
104594         "value of type" -> "type or expression" in comment.
104595         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
104597 2005-03-26  Jim Meyering  <jim@meyering.net>
104599         Comment nits.
104600         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
104601         Correct typos: s/or/of/.
104603 2005-03-26  Jim Meyering  <jim@meyering.net>
104605         * modules/check-include-files: Move to ../ and rename to...
104606         * check-module: ...this.
104608 2005-03-25  Jim Meyering  <jim@meyering.net>
104610         * modules/xvasprintf (Files): Add xalloc.h.
104612 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
104614         * modules/gettext (Files): config/config.rpath ->
104615         build-aux/config.rpath
104616         * modules/iconv (Files): Likewise.
104617         Problem reported by Oskar Liljeblad.
104619 2005-03-23  Jim Meyering  <jim@meyering.net>
104621         * modules/check-include-files: New script to check for
104622         missing dependencies, multiple includes, etc.
104624         * modules/c-strtold (Depends-on): Add xalloc.
104625         * modules/c-strtod (Depends-on): Add xalloc.
104626         * modules/hash (Depends-on): Add xalloc.
104627         (Files): Remove lib/xalloc.h.
104629         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
104630         * modules/userspec (Files): Add lib/inttostr.h.
104632 2005-03-23  Jim Meyering  <jim@meyering.net>
104634         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
104636 2005-03-22  Jim Meyering  <jim@meyering.net>
104638         * modules/stat-macros: New module.
104639         * modules/canonicalize, modules/euidaccess, modules/file-type,
104640         * modules/filemode, modules/lchown, modules/makepath,
104641         * modules/rmdir, modules/stat: Depend on new stat-macros module
104642         rather than listing lib/stat-macros.h manually.
104643         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
104645 2005-03-22  Jim Meyering  <jim@meyering.net>
104647         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
104649 2005-03-22  Bruno Haible  <bruno@clisp.org>
104651         * config/srclist.txt: Replace target directory 'config' with
104652         'build-aux'.
104653         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
104654         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
104655         ../build-aux/.
104657 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
104659         * modules/chdir-long (Depends-on): Add mempcpy.
104661         * modules/acl, modules/backupfile, modules/c-strtod,
104662         modules/c-strtold, modules/canon-host, modules/canonicalize,
104663         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
104664         modules/exclude, modules/exitfail, modules/file-type,
104665         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
104666         modules/getdate, modules/getline, modules/getpagesize,
104667         modules/getpass, modules/getugroups, modules/group-member,
104668         modules/hard-locale, modules/hash, modules/human, modules/idcache,
104669         modules/inttostr, modules/long-options, modules/makepath,
104670         modules/md5, modules/memcasecmp, modules/memcoll,
104671         modules/modechange, modules/mountlist, modules/path-concat,
104672         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
104673         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
104674         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
104675         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
104676         modules/strftime, modules/strndup, modules/strverscmp,
104677         modules/timespec, modules/unlocked-io, modules/userspec,
104678         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
104679         modules/yesno:
104680         Remove lib_SOURCES line from Makefile.am section, as this is now
104681         done automatically by the corresponding Autoconf macro.
104683 2005-03-21  Jim Meyering  <jim@meyering.net>
104685         Changes imported from coreutils.
104687         * lib/cycle-check.c: Don't include xalloc.h.
104689         * lib/path-concat.c: Don't include assert.h.
104690         (path_concat): Remove assertion that would have triggered
104691         for ABASE starting with more than one slash.
104692         Reported by Andreas Schwab.
104694         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
104695         properly when ABASE is an absolute file name.
104696         Correct the description of this function.
104697         Include <assert.h>.
104698         Add an assertion and a test driver.
104699         This fixes a bug introduced on 2004-07-02.
104700         Andreas Schwab reported the resulting failure of cp --parents:
104701         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
104703 2005-03-21  Jim Meyering  <jim@meyering.net>
104705         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
104706         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
104708 2005-03-21  Jim Meyering  <jim@meyering.net>
104709         and  Paul Eggert  <eggert@cs.ucla.edu>
104711         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
104712         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
104713         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
104714         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
104715         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
104716         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
104717         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
104718         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
104719         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
104720         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
104721         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
104722         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
104723         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
104724         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
104725         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
104726         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
104727         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
104728         for these modules.
104730 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
104732         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
104733         (which shouldn't happen), generate nothing instead of returning 0
104734         immediately, so that nstrftime (NULL, ...) doesn't return 0.
104736 2005-03-16  Bruno Haible  <bruno@clisp.org>
104738         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
104739         HAVE_LONGLONG_64BIT.
104741 2005-03-16  Bruno Haible  <bruno@clisp.org>
104743         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
104744         HAVE_LONGLONG_64BIT.
104746 2005-03-16  Bruno Haible  <bruno@clisp.org>
104748         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
104749         HAVE_LONGLONG_64BIT.
104751 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
104753         * lib/strftime.c (my_strftime): Prepend space to format so that we can
104754         reliably distinguish strftime failure from empty output on POSIX
104755         hosts.
104757 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
104759         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
104760         (iconv_string): Don't guess a size-zero buffer, as that might cause
104761         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
104762         result would be 'too large', where 'too large' is (heuristically)
104763         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
104764         overflow concerns.  This will prevent some unwanted malloc failures
104765         when the inputs are very large.
104767 2005-03-15  Karl Berry  <karl@gnu.org>
104769         * config/srclist.txt (config.rpath): from gettext.
104770         * config/config.rpath: update.
104772 2005-03-15  Bruno Haible  <bruno@clisp.org>
104774         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
104775         to 'negate'.
104777         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
104778         variable.
104780         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
104781         results.
104783 2005-03-14  Simon Josefsson  <jas@extundo.com>
104785         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
104786         <fx@gnu.org>.
104788 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
104790         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
104791         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
104792         intprops.h.
104793         * lib/strtol.c: Likewise.
104795 2005-03-14  Jim Meyering  <jim@meyering.net>
104797         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
104798         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
104799         to be nonzero so that we (and caller) can detect the difference
104800         between a valid zero-length expansion and an error return, even
104801         when the underlying strftime fails before writing anything into
104802         that location.
104804 2005-03-14  Bruno Haible  <bruno@clisp.org>
104806         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
104807         Update from GNU gettext 0.14.3.
104809 2005-03-10  Jim Meyering  <jim@meyering.net>
104811         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
104813 2005-03-10  Jim Meyering  <jim@meyering.net>
104815         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
104816         so that this module works on systems without fchdir.
104818 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
104820         Factor int-properties macros into a single file, except for
104821         glibc-related files.
104822         * lib/intprops.h: New file.
104823         * lib/getloadavg.c: Include it instead of limits.h.
104824         (INT_STRLEN_BOUND): Remove.
104825         * lib/human.c: Include intprops.h.
104826         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
104827         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
104828         302/1000.
104829         * lib/inttostr.h: Include intprops.h instead of limits.h.
104830         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
104831         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
104832         for consistency with intprops.h.
104833         (time_t_is_integer, twos_complement_arithmetic): Use them.
104834         * lib/sig2str.h: Include <signal.h>, intprops.h.
104835         (INT_STRLEN_BOUND): Remove.
104836         * lib/strftime.c (TYPE_SIGNED): Remove.
104837         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
104838         * lib/strtol.c: Adjust comments to match intprops.h.
104839         * lib/userspec.c: Include intprops.h.
104840         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
104841         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
104842         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
104843         instead of rolling our own expressions.
104844         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
104846         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
104847         instead of int.
104848         (my_strftime): Do not mishandle years close to INT_MAX, by doing
104849         the right thing even if adding 1900 would overflow.  Similarly
104850         for tm_mon + 1 and tm_yday + 1.
104851         Make %Y always equivalent to %C%y, and similarly for %G and %g.
104852         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
104853         (DO_SIGNED_NUMBER): New macro.
104854         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
104856 2005-03-07  Bruno Haible  <bruno@clisp.org>
104858         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
104860 2005-03-07  Bruno Haible  <bruno@clisp.org>
104862         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
104864 2005-03-04  Derek R. Price  <derek@ximbiot.com>
104866         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
104867         (func_import): Only replace files via --import when they have actually
104868         changed.
104870 2005-03-03  Derek R. Price  <derek@ximbiot.com>
104872         * m4/mmap-anon.m4: New file.
104873         * m4/pagealign_alloc.m4: New file.
104875 2005-03-03  Derek R. Price  <derek@ximbiot.com>
104876             Bruno Haible  <bruno@clisp.org>
104878         * modules/pagealign_alloc: New file.
104879         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
104881 2005-03-03  Derek R. Price  <derek@ximbiot.com>
104882             Bruno Haible  <bruno@clisp.org>
104884         * lib/pagealign_alloc.h: New file.
104885         * lib/pagealign_alloc.c: New file.
104887 2005-03-03  Bruno Haible  <bruno@clisp.org>
104889         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
104890         Use an all-permissive copyright notice, recommended by RMS.
104892 2005-03-02  Bruno Haible  <bruno@clisp.org>
104894         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
104895         of AIX, the replacement has to be done only after <string.h> is
104896         included, therefore not in config.h. stpncpy.h does the replacement,
104897         and stpncpy.c uses it.
104899 2005-03-02  Bruno Haible  <bruno@clisp.org>
104901         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
104902         stpncpy.c uses it.
104904 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
104906         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
104907         The workaround isn't strictly needed for POSIX conformance, and
104908         it's too much of a pain to configure and maintain.  We'll ask
104909         people to fix their kernels instead.
104910         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
104911         (NANOSLEEP_BUG_WORKAROUND): Remove.
104912         (xnanosleep): Remove the workaround.
104914 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
104916         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
104917         Reported by Derek Price.
104918         (Include): Add "timespec.h".
104920         * modules/xnanosleep (Depends-on): Remove gethrxtime.
104922 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
104924         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
104925         to detect nanosleep bug.
104927 2005-03-01  Bruno Haible  <bruno@clisp.org>
104929         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
104931 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
104933         * modules/gethrxtime: New file.
104934         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
104935         (Depends-on): Add gethrxtime.
104936         (configure.ac): Add gl_XNANOSLEEP.
104937         (Makefile.am): Remove lib_SOURCES line.
104939 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
104941         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
104942         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
104944 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
104946         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
104947         * lib/timespec.h (gettime): Return void, since it always
104948         succeeds now.  All uses changed.
104949         * lib/gettime.c (gettime): Likewise.
104950         [HAVE_NANOTIME]: Prefer nanotime.
104951         Assume gettimeofday succeeds, as POSIX requires.
104952         Assime time () succeeds, since other code already does.
104953         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
104954         (timespec_subtract): Remove.
104955         (NANOSLEEP_BUG_WORKAROUND): New constant.
104956         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
104957         things considerably.  Use it only on GNU/Linux hosts, since the
104958         workaround shouldn't be needed elsewhere.
104960 2005-02-24  Bruno Haible  <bruno@clisp.org>
104962         * modules/gettext (Files): Add m4/glibc2.m4.
104964 2005-02-24  Bruno Haible  <bruno@clisp.org>
104966         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
104967         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
104968         * m4/progtest.m4:
104969         Update from GNU gettext 0.14.2.
104970         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
104972 2005-02-24  Bruno Haible  <bruno@clisp.org>
104974         * lib/localcharset.c: Update from GNU gettext 0.14.2.
104975         * lib/config.charset: Update from GNU gettext 0.14.2.
104977 2005-02-24  Bruno Haible  <bruno@clisp.org>
104979         * lib/gettext.h: Update from GNU gettext 0.14.2.
104981 2005-02-23  Simon Josefsson  <jas@extundo.com>
104983         * m4/iconvme.m4: New file.
104985 2005-02-23  Jim Meyering  <jim@meyering.net>
104987         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
104988         change.
104989         Thanks to Bruno Haible for catching it.
104991 2005-02-22  Simon Josefsson  <jas@extundo.com>
104993         * modules/iconvme: New file.
104995         * MODULES.html.sh: Add iconvme.
104997 2005-02-22  Simon Josefsson  <jas@extundo.com>
104999         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
105001 2005-02-22  Simon Josefsson  <jas@extundo.com>
105003         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
105005 2005-02-22  Jim Meyering  <jim@meyering.net>
105007         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
105008         s/ifndef/ifdef/.
105010 2005-02-20  Neil Conway  <neilc@samurai.com>
105012         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
105013         returned by OSX/Darwin if the specified buffer is not large
105014         enough for the hostname.
105016 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105018         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
105019         pass it to _help, otherwise the latter coredumps trying to
105020         dereference state.root_argp.
105022 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
105024         * modules/chdir-long (Depends-on): Add memrchr.
105025         * modules/memrchr (Files): Add lib/memrchr.h.
105026         (Include): "memrchr.h".
105028 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
105030         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
105032 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
105034         * lib/memrchr.h: New file.
105035         * lib/chdir-long.c: Include it.
105036         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
105037         Don't bother including stddef.h.
105039 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
105041         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
105042         inclusion.
105043         Include <sys/types.h>, for dev_t.
105044         (ME_DUMMY, ME_REMOTE): Move from here....
105045         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
105046         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
105047         Dmitry V. Levin.
105048         Include mountlist.h first, to test the interface.
105050 2005-01-29  Bruno Haible  <bruno@clisp.org>
105052         * lib/progname.c (program_name): Initialize.
105053         Needed when linking statically on MacOS X.
105055 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
105057         Sync from coreutils.
105058         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
105059         (Depends-on): Add c-strtod.
105060         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
105062 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
105064         Sync from coreutils.
105065         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
105067         Remove files that are specific to coreutils.
105068         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
105070 2005-01-28  Bruno Haible  <bruno@clisp.org>
105072         * modules/javacomp: New file.
105073         * MODULES.html.sh (Java): Add javacomp.
105075 2005-01-28  Bruno Haible  <bruno@clisp.org>
105077         * m4/javacomp.m4: New file, from GNU gettext.
105079 2005-01-28  Bruno Haible  <bruno@clisp.org>
105081         * lib/javacomp.sh.in: New file, from GNU gettext.
105082         * lib/javacomp.h: New file, from GNU gettext.
105083         * lib/javacomp.c: New file, from GNU gettext.
105085 2005-01-26  Simon Josefsson  <jas@extundo.com>
105087         * lib/gai_strerror.c: Use GPL in header.
105089 2005-01-26  Bruno Haible  <bruno@clisp.org>
105091         * modules/javaexec: New file.
105092         * MODULES.html.sh (Java): Add javaexec.
105094 2005-01-26  Bruno Haible  <bruno@clisp.org>
105096         * m4/javaexec.m4: New file, from GNU gettext.
105098 2005-01-26  Bruno Haible  <bruno@clisp.org>
105100         * lib/javaexec.sh.in: New file, from GNU gettext.
105101         * lib/javaexec.h: New file, from GNU gettext.
105102         * lib/javaexec.c: New file, from GNU gettext.
105104 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105106         * modules/lchown (Depends-on): Remove lchown.h
105108 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105110         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
105111         must be defined if the header file was not found, in order
105112         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
105114 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105116         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
105117         initializers for struct pentry_state.
105118         (__argp_error): Check return value of __asprintf
105119         (__argp_failure): Translate error message
105121         * lib/argp-parse.c: Removed braces around the expansion of N_()
105123 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
105125         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
105126         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
105127         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
105128         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
105129         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
105130         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
105131         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
105132         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
105133         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
105134         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
105135         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
105136         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
105137         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
105138         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
105139         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
105140         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
105141         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
105142         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
105143         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
105144         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
105145         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
105146         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
105147         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
105148         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
105149         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
105150         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
105151         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
105152         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
105153         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
105154         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
105155         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
105156         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
105157         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
105158         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
105159         xstrtol.m4, xstrtoumax.m4, yesno.m4:
105160         Use an all-permissive copyright notice, recommended by RMS.
105162 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
105164         * modules/chdir-long (Depends-on): Remove mempcpy.
105166 2005-01-21  Jim Meyering  <jim@meyering.net>
105168         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
105169         same value as for Solaris 9.
105171         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
105172         component length.  This included changing the parameter to be
105173         of type `char *' rather than `char const *'.
105174         * lib/chdir-long.h (chdir_long): Update prototype.
105176         * lib/openat.c (fdopendir, fstatat): New functions.
105177         * lib/openat.h: Include headers required for use of DIR and struct
105178         stat.
105179         [AT_SYMLINK_NOFOLLOW]: Define.
105180         (fdopendir, fstatat): Add prototypes.
105182 2005-01-21  Bruno Haible  <bruno@clisp.org>
105184         * modules/classpath: New file.
105185         * MODULES.html.sh (Java): Add classpath.
105187 2005-01-21  Bruno Haible  <bruno@clisp.org>
105189         * lib/classpath.h: New file, from GNU gettext.
105190         * lib/classpath.c: New file, from GNU gettext.
105192 2005-01-20  Simon Josefsson  <jas@extundo.com>
105194         * modules/version-etc-fsf: New file.
105196 2005-01-20  Simon Josefsson  <jas@extundo.com>
105198         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
105199         * lib/version-etc.c: Remove version_etc_copyright.
105200         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
105201         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
105203 2005-01-20  Simon Josefsson  <jas@extundo.com>
105205         * lib/base64.h (isbase64): Add.
105207         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
105208         using a unsigned prototype, don't inline.
105209         (base64_decode): Use it.
105211 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
105213         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
105214         it.
105216 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
105218         * lib/save-cwd.c (save_cwd): Remove code to support the case
105219         where fchdir is missing or flaky.
105221 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
105223         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
105225 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
105227         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
105228         AC_LIBSOURCES now does this.
105229         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
105230         with new ullong_max module.
105232 2005-01-19  Bruno Haible  <bruno@clisp.org>
105234         * modules/sh-quote: New file.
105235         * MODULES.html.sh (Executing programs): Add sh-quote.
105237 2005-01-19  Bruno Haible  <bruno@clisp.org>
105239         * lib/sh-quote.h: New file, from GNU gettext.
105240         * lib/sh-quote.c: New file, from GNU gettext.
105242 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
105244         Merge from coreutils.
105245         * m4/ullong_max.m4: New file.
105246         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
105247         (gl_MACROS): Assume localeconv exists.
105249 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
105251         Merge changes from coreutils, as described below in several
105252         changelogs dated today.
105254         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
105255         (O_DIRECTORY): Remove; not needed here, since "." must be
105256         a directory.  All uses removed.
105257         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
105258         universal on Suns, and we also need to test for IRIX.
105259         Revamp code to use 'if' rather than '#if'.
105260         Avoid unnecessary comparison of cwd->desc to 0.
105262         * lib/utimens.c (futimens): Robustify the previous patch, by checking
105263         for known valid error numbers rather than observed invalid ones.
105265 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
105267         * modules/ullong_max: New file.
105269         * modules/chdir-long, modules/openat: New files.
105270         * modules/save-cwd (Depends-on): Depend on chdir-long.
105271         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
105273 2005-01-18  Jim Meyering  <jim@meyering.net>
105275         Merge from coreutils.
105276         * m4/chdir-long.m4, m4/openat.m4: New files.
105277         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
105278         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
105279         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
105280         is sane and DOES follow symlinks.  Besides, testing 20 different
105281         systems found no broken chown implementations.
105282         Prompted by a change in rsync's copy of this macro.
105283         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
105285         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
105287         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
105288         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
105289         NULL-means-set-to-current-time semantics.
105290         Remove temporary file immediately, rather than waiting
105291         for configure's at-exit trap code to do it.
105293 2005-01-18  Jim Meyering  <jim@meyering.net>
105295         * lib/version-etc.c (version_etc_copyright): Update copyright date.
105297         * lib/utimens.c (futimens): Account for the fact that futimes
105298         can also fail with errno == ENOSYS or errno == ENOENT.
105299         Patch from Dmitry V. Levin.
105301         Change the name of the robust chdir function from chdir to chdir_long.
105302         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
105303         (restore_cwd): Use chdir_long, not chdir.
105304         * lib/chdir-long.c: Renamed from chdir.c.
105305         * lib/chdir-long.h: Renamed from chdir.h.
105306         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
105307         Hurd.
105309 2005-01-18  Bruno Haible  <bruno@clisp.org>
105311         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
105312         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
105313         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
105314         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
105315         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
105316         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
105317         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
105318         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
105319         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
105320         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
105321         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
105322         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
105323         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
105324         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
105325         Use an all-permissive copyright notice, recommended by RMS.
105327 2005-01-18  Bob Proulx  <bob@proulx.com>
105329         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
105330         simplify offsetof() macro construct to avoid compile failure with
105331         native HP-UX 11.0 ANSI C compiler.
105333 2005-01-17  Bruno Haible  <bruno@clisp.org>
105335         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
105336         redundant because stpncpy.m4 takes care of it.
105338 2005-01-17  Bruno Haible  <bruno@clisp.org>
105340         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
105342 2005-01-17  Bruno Haible  <bruno@clisp.org>
105344         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
105345         used.
105347 2005-01-17  Bruno Haible  <bruno@clisp.org>
105349         * lib/fwriteerror.h (fwriteerror): Change specification to include
105350         fclose.
105351         * lib/fwriteerror.c: Include <stdbool.h>.
105352         (fwriteerror): At the end, close the file stream. Record whether
105353         stdout was already closed.
105355 2005-01-17  Bruno Haible  <bruno@clisp.org>
105357         * lib/execute.c (environ): Declare if needed.
105358         * lib/pipe.c (environ): Likewise.
105359         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
105361 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105363         * modules/argp: Depend on vsnprintf
105365 2005-01-10  Jim Meyering  <jim@meyering.net>
105367         * modules/closeout (Depends-on): Add atexit.
105369 2005-01-06  Bruno Haible  <bruno@clisp.org>
105371         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
105373 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
105375         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
105376         definitions to be after all include files, to avoid collisions.
105377         Problem reported by Bob Proulx.
105379 2005-01-04  Jim Meyering  <jim@meyering.net>
105381         Changes imported from coreutils.
105382         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
105383         as the mkstemp template, use a temporary directory and an
105384         8.3-friendly template to avoid trouble on systems like DJGPP.
105385         Reported by Juan M. Guerrero via Stepan Kasal.
105386         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
105387         close. Remove the temporary directory right away, rather than waiting
105388         for configure's at-exit trap code to do it.
105389         Suggestion from Stepan Kasal.
105391 2005-01-01  Simon Josefsson  <jas@extundo.com>
105393         * gnulib-tool: Print #include directives when --import'ing.
105395 2004-12-28  Simon Josefsson  <jas@extundo.com>
105397         * tests/test-base64.c: Include required header files.  Remove
105398         unused variables.
105400 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
105402         * modules/error (Depends-on): Remove gettext.
105404 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
105406         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
105407         not needed.  This removes a dependency on the gettext module.
105408         [defined _LIBC]: Do not include <libintl.h>; not needed.
105410 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
105412         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
105413         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
105415 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
105417         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
105418         HAVE_DECL_STRTOLD.
105420 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
105422         * modules/getdate (Depends-on): Remove alloca-opt.
105424 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
105426         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
105428 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
105430         * lib/argp-parse.c: Include <stddef.h>.
105431         (alignof, alignto): New macros.
105432         (parser_init): Don't assume that void * is aligned sufficiently
105433         for struct option.
105435         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
105436         need to extend the stack.
105437         (YYINITDEPTH): New macro, so that the initial stack isn't overly
105438         large.
105440 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105442         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
105444 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
105446         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
105447         (2004-10-24) change.  Apparently this was a false alarm.
105449         * modules/getdate: Depend on alloca-opt, not alloca.
105451 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
105453         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
105454         Remove now-obsolete comment about AIX.
105455         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
105456         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
105457         (YYMAXDEPTH): New macro.
105459 2004-12-18  Simon Josefsson  <jas@extundo.com>
105461         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
105463 2004-12-18  Bruno Haible  <bruno@clisp.org>
105465         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
105467 2004-12-18  Bruno Haible  <bruno@clisp.org>
105469         * lib/fatal-signal.c (fatal_signals): Make non-const.
105470         (init_fatal_signals): New function.
105471         (uninstall_handlers, install_handlers): Ignore signals that were set to
105472         SIG_IGN.
105473         (at_fatal_signal): Call init_fatal_signals.
105474         (init_fatal_signal_set): Likewise. Ignore signals that were set to
105475         SIG_IGN.
105476         Reported by Paul Eggert.
105478 2004-12-18  Bruno Haible  <bruno@clisp.org>
105480         * doc/alloca.texi: New file.
105481         * doc/alloca-opt.texi: New file.
105483 2004-12-17  Jim Meyering  <jim@meyering.net>
105485         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
105486         Otherwise, install-sh could exit with improper exit status when
105487         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
105489 2004-12-16  Simon Josefsson  <jas@extundo.com>
105491         * tests/test-base64.c: Add license.
105493 2004-12-15  Stepan Kasal  <address@hidden>
105495         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
105497 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
105499         * modules/getcwd (Files): Add m4/d-ino.m4.
105500         Suggested by Mark D. Baushke.
105502 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
105504         * lib/getdate.y (textint): New member "negative".
105505         (time_zone_hhmm): New function.
105506         Expect 14 shift-reduce conflicts, not 13.
105507         (o_colon_minutes): New rule.
105508         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
105509         (yylex): Set the "negative" member of signed numbers.
105511 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
105513         * doc/getdate.texi (Time of day items, Time zone items):
105514         Describe new formats +00:00, UTC+00:00.
105516 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
105518         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
105519         spurious "-l"s.  Problem reported by Stepan Kasal.
105521 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
105523         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
105524         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
105526 2004-12-04  Simon Josefsson  <jas@extundo.com>
105528         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
105529         Vandoorselaere <yoann@prelude-ids.org>.
105531 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
105533         Changes imported from coreutils.
105534         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
105535         exist.
105536         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
105538 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
105540         Changes imported from coreutils.
105541         * lib/hard-locale.c: Assume <locale.h> exists.
105542         Include "strdup.h".
105543         (GLIBC_VERSION): New macro.
105544         (hard_locale): Assume setlocale exists.
105545         Rewrite to avoid #ifdef.
105546         Use strdup rather than malloc + strcpy.
105547         * lib/human.c: Assume <locale.h> exists.
105548         (human_readable): Assume localeconv exists.
105550 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
105552         * modules/hard-locale (Depends-on): Add strdup.
105554 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
105556         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
105557         convert T2, not T.  (Imported from libc.)
105559 2004-11-30  Simon Josefsson  <jas@extundo.com>
105561         * modules/restrict (License): Change to LGPL.
105563 2004-11-30  Simon Josefsson  <jas@extundo.com>
105565         * m4/restrict.m4: Add copyright and copying conditions.
105567 2004-11-30  Simon Josefsson  <jas@extundo.com>
105569         * m4/base64.m4: New file.
105571 2004-11-30  Simon Josefsson  <jas@extundo.com>
105573         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
105574         base64.
105576         * tests/test-base64.c: New file.
105578         * modules/base64: New file.
105580 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
105582         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
105583         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
105585         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
105587 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
105589         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
105590         (__getcwd.c): Don't restore errno; glibc doesn't.
105591         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
105592         first, falling back to our code only if its results look suspicious.
105593         Ensure that the resulting buffer is only as large as necessary.
105595         * lib/readutmp.c: Include readutmp.h first.
105596         Include <errno.h>, since readutmp.h no longer does that.
105597         * lib/readutmp.h: Don't include <errno.h>,
105598         <sys/param.h>, <time.h>; not needed to establish interface.
105599         (errno): Remove decl.
105600         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
105601         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
105602         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
105604 2004-11-28  Simon Josefsson  <jas@extundo.com>
105606         * lib/base64.h, base64.c: New file.
105608 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
105610         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
105612 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
105614         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
105615         (Depends-on): Remove pathmax, same.  Add mempcpy.
105616         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
105617         (Makefile.am): Append getcwd.h to lib_SOURCES.
105618         (Include): Add getcwd.h.
105619         (Maintainer): Change from Jim Meyering to "all, glibc",
105620         since getdate now uses intended-for-glibc code.
105621         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
105622         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
105624 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
105626         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
105627         HP's ANSI C compiler.
105628         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
105629         Declaring int functions causes warnings on some modern systems and
105630         shouldn't be needed to compile on ancient ones.
105631         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
105632         defined.
105634         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
105635         with the following changes.
105636         (__set_errno): Parenthesize properly.
105637         Include <stdbool.h>.
105638         (MIN, MAX, MATCHING_INO): New macros.
105639         (__getcwd): Define with prototype, not K&R form.
105640         Use heuristics to allocate default buffer on stack if possible.
105641         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
105642         behavior, and to avoid the PATH_MAX limit when computing
105643         ../../../../...
105644         Use MATCHING_INO to compare inode number to file.
105645         Check for arithmetic overflow in size calculations.
105646         Fix bug in reallocation of dot array that caused getcwd to fail
105647         on directories nested deeper than 75.
105648         Be more careful about saving errno on error.
105649         Do not use realloc; use only free+malloc, as this is a bit
105650         more flexible and avoids a needless copy operation.
105651         Do not inspect st_dev and st_ino for symbolic links; POSIX
105652         doesn't specify the latter.
105653         Check for closedir errors.
105654         Avoid needless casts.
105655         Use "#ifdef weak_alias" around weak_alias, to be like other
105656         glibc code.
105657         The following changes to getcwd.c have effect only when used in
105658         gnulib; they have no effect inside glibc proper.
105659         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
105660         as alloca isn't used.
105661         (alloca, __alloca): Likewise.
105662         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
105663         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
105664         unconditionally, as gnulib assumes C89 or better.
105665         Do not include <sys/param.h>.
105666         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
105667         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
105668         better.
105669         (NULL) [!defined NULL]: Remove; we assume C89 or better.
105670         Include <dirent.h> in a way that is compatible with modern Autoconf.
105671         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
105672         New macros, if not already defined.
105673         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
105674         Use "_LIBC", not "defined _LIBC", for consistency.
105675         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
105676         a mempcpy module.
105677         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
105678         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
105679         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
105680         credit only to Jim Meyering and adjust the copyright dates.
105681         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
105682         <stdlib.h>, <unistd.h>, "pathmax.h".
105683         Instead, include "xgetcwd.h" (first) and "getcwd.h".
105684         (INITIAL_BUFFER_SIZE): Remove.
105685         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
105687 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
105689         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
105690         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
105691         Use the _ONCE methods, for efficiency.
105692         Check for fcntl.h.  In test program, include <errno.h>
105693         and <fcntl.h> if available.  Remove old K&R cruft from
105694         test program.  Check for common errors in GNU/Linux,
105695         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
105696         don't do AC_LIBOBJ, as that's getcwd.m4's job.
105697         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
105698         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
105699         name accordingly.
105700         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
105701         accommodate new getcwd.c.
105702         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
105703         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
105704         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
105705         that's all we need now.
105707 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105709         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
105710         argp-parse.c depends on getopt internals, that means we should
105711         always use our getopt, to be on the safe side.
105712         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
105713         order not to spoil the result of an eventual previous invocation
105714         of gl_GETOPT_SUBSTITUTE.
105716 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
105718         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
105719         redefinition warnings. To avoid them, include the defines
105720         in `#if !defined __need_getopt ... #endif'. The only place
105721         where __getopt_argv_const is used is in definitions
105722         of getopt_long and getopt_long_only below, which are as well
105723         protected by `#ifndef __need_getopt'.
105724         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
105725         __need_getopt after including <stdio.h> and <unistd.h> These
105726         headers might have defined it.
105728 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
105730         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
105732 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
105734         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
105735         (futimens): New function, which uses futimes if available.
105736         (futimens, utimens): Support timespec==NULL, with same semantics
105737         as utime and utimens.
105738         * lib/utimens.h (futimens): New decl.
105740 2004-11-23  Jim Meyering  <jim@meyering.net>
105742         * lib/getopt_.h: Remove trailing blanks.
105744 2004-11-23  Jim Meyering  <jim@meyering.net>
105746         * lib/__fpending.c: Add comment.
105748 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
105750         * modules/canonicalize (Depends-on): Add xreadlink.
105751         Problem reported by James Youngman.
105753 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
105755         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
105756         New macros.
105757         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
105758         optopt): Use them instead of invoking ## directly; otherwise, the
105759         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
105761 2004-11-19  Bruno Haible  <bruno@clisp.org>
105763         * lib/strtok_r.c: Move comments from here...
105764         * lib/strtok_r.h: ... to here.
105766 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
105768         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
105769         implementations that mishandle size_t overflow.
105771 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
105773         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
105774         might fail.  Problem reported by Yoann Vandoorselaere.
105775         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
105776         implementations that mishandle size_t overflow.
105778 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
105780         * modules/canon-host (Depends-on): Add strdup.
105782 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
105784         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
105786 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
105788         * lib/canon-host.c: Include "strdup.h".
105789         (canon_host): Use getaddrinfo if available, so that IPv6 works.
105790         Use strdup instead of malloc/strcpy to duplicate strings.
105792         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
105793         (human_space_before_unit): New constant.
105794         * lib/human.c (human_readable): Support it.
105796         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
105797         (xgetcwd): Set errno correctly when failing.
105798         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
105799         the failure is actually due to a PATH_MAX problem.
105801         Further getopt changes to make it more likely that glibc will
105802         buy the changes back.
105803         * lib/getopt.c (POSIXLY_CORRECT): New constant.
105804         (getopt): Use it, so to preserve glibc semantic
105805         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
105806         when compiling for libc.
105807         * lib/getopt_.h (__getopt_argv_const): Bring it back.
105808         (getopt_long, getopt_long_only): Use it.
105810         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
105811         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
105812         (getopt): Argv is now char * const *, as per standard.
105813         (_getopt_internal_r, _getopt_internal): Argv is now char **,
105814         not char *__getopt_argv_const *.
105815         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
105816         _getopt_long_only_r): Likewise.
105817         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
105818         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
105819         _getopt_long_r, _getopt_long_only_r): Likewise.
105820         * lib/getopt_.h (__getopt_argv_const): Remove.
105821         (getopt): Argv is now char * const *, as per standard.
105823         * lib/getdate.y (tORDINAL): New token.
105824         (day, relunit): Allow it for relative times.
105825         (relative_time_table): Use tORDINAL for ordinals.
105827 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
105829         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
105830         Document that "second" isn't allowed as an ordinal number.
105832 2004-11-16  Jim Meyering  <jim@meyering.net>
105834         * modules/closeout (Depends-on): Add fpending.
105836 2004-11-15  Jim Meyering  <jim@meyering.net>
105838         * lib/closeout.c: Include "__fpending.h" once again.
105839         Include <stdbool.h>.
105840         (close_stdout): Don't fail just because stdout was closed initially,
105841         since some programs don't write to stdout in the normal course of
105842         operation (other than --version and --help), and we don't want this
105843         function to make e.g. `touch file >&-' fail.
105844         But do fail if it was closed and someone has tried to write to it.
105845         E.g., `printf foo >&-' must fail.
105847 2004-11-13  Jim Meyering  <jim@meyering.net>
105849         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
105851 2004-11-12  Simon Josefsson  <jas@extundo.com>
105853         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
105854         small doc fix is still pending.
105856 2004-11-11  Simon Josefsson  <jas@extundo.com>
105858         * modules/strtok_r: New file.
105860         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
105861         strtok_r.
105863 2004-11-11  Simon Josefsson  <jas@extundo.com>
105865         * m4/strtok_r.m4: New file.
105867         * m4/getopt.m4: Replace opterr.
105869 2004-11-11  Simon Josefsson  <jas@extundo.com>
105871         * lib/strtok_r.h, strtok_r.c: New file.
105873 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
105875         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
105876         of replacing opterr, getopt, etc.  This should handle the
105877         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
105879 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
105881         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
105882         we can stop lying to compilers about the constness of argv when we
105883         are compiled outside glibc.
105884         (getopt, getopt_long, getopt_long_only): Use it.
105885         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
105886         _getopt_internal, getopt): Likewise.
105887         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
105888         _getopt_long_only_r): Likewise.
105889         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
105890         _getopt_long_r, _getopt_long_only_r): Likewise.
105892         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
105893         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
105894         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
105895         the other external symbols.
105896         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
105897         declaration, since the above renaming now works around collisions.
105899 2004-11-11  Jim Meyering  <jim@meyering.net>
105901         * lib/linebreak.c: Remove trailing blanks.
105902         * lib/alloca_.h: Likewise.
105903         * lib/acosl.c: Likewise.
105904         * lib/euidaccess.c: Likewise.
105905         * lib/allocsa.h: Likewise.
105907 2004-11-10  Simon Josefsson  <jas@extundo.com>
105909         * m4/getaddrinfo.m4: New file.
105911 2004-11-10  Simon Josefsson  <jas@extundo.com>
105913         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
105915 2004-11-10  Simon Josefsson  <jas@extundo.com>
105917         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
105918         getaddrinfo.
105920         * modules/getaddrinfo: New file.
105922 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
105924         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
105926 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
105928         * lib/mktime.c (SHR): New macro, which is a portable
105929         substitute for >> that should work even on Crays.
105930         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
105931         Problem reported by Mark D. Baushke in
105932         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
105933         * lib/getdate.y (SHR): Likewise.
105934         (tm_diff): Use it.
105935         * lib/strftime.c (SHR): Likewise.
105936         (tm_diff): Use it.
105937         * lib/quotearg.c (struct quoting_options): Use unsigned int for
105938         quote_these_too, so that right shifts are well defined.  All uses
105939         changed.
105941 2004-11-10  Jim Meyering  <jim@meyering.net>
105943         Ensure that no close failure goes unreported.
105944         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
105945         return early when it seems there's nothing to flush.
105946         Don't include __fpending.h.
105948 2004-11-10  Jim Meyering  <jim@meyering.net>
105950         * modules/closeout (Depends-on): Remove fpending.
105952 2004-11-10  Jim Meyering  <jim@meyering.net>
105954         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
105956 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
105958         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
105959         gl_FUNC_STRFTIME.
105960         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
105961         and AC_REQUIRE when possible, to avoid duplicate checks.
105962         Check for <wchar.h>.
105964 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
105966         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
105968 2004-11-09  Bruno Haible  <bruno@clisp.org>
105970         * m4/sockpfaf.m4: New file.
105972 2004-11-05  Bruno Haible  <bruno@clisp.org>
105974         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
105975         Reported by Mark D. Baushke <mdb@cvshome.org>.
105977 2004-11-04  Bruno Haible  <bruno@clisp.org>
105979         2004-09-11  Bruno Haible  <bruno@clisp.org>
105980                 * allocsa.valgrind: New file.
105981         2004-02-06  Bruno Haible  <bruno@clisp.org>
105982                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
105983                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
105984                 Reported by Christopher Seip <chris.seip@hp.com>.
105986 2004-11-04  Bruno Haible  <bruno@clisp.org>
105988         * modules/allocsa (Files): Add lib/allocsa.valgrind.
105989         (Makefile.am): Distribute it.
105991 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
105993         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
105994         with errno == ERANGE if the buffer is too small.
105995         Problem reported by Mark D. Baushke.
105997 2004-11-03  Albert Chin  <china@thewrittenword.com>
105998             Paul Eggert  <eggert@cs.ucla.edu>
106000         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
106001         equivalent, substitute $ac_type for equivalent type rather than
106002         blindly using uint32_t *always* which won't work if uint32_t is not
106003         available.  Define _UINT32_T to work around typedef of uint32_t if
106004         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
106005         2.5.1.
106007 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
106009         * m4/jm-macros.m4: Sync from coreutils.
106010         (gl_MACROS): Check for mbrlen, for pathchk.
106011         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
106013 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
106015         * lib/xreadlink.c (MAXSIZE): New macro.
106016         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
106017         size does not exceed MAXSIZE.  Avoid cast.
106018         As suggested by Mark D. Baushke in
106019         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
106020         if readlink fails with buffer size just under MAXSIZE, try again
106021         with MAXSIZE.
106023 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
106025         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
106027 2004-11-02  Derek R. Price  <derek@ximbiot.com>
106028         and  Paul Eggert  <eggert@cs.ucla.edu>
106030         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
106031         (get_date): Overparenthesize to avoid GCC warning.
106033 2004-11-02  Bruno Haible  <bruno@clisp.org>
106035         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
106036         returns void.
106038 2004-11-02  Bruno Haible  <bruno@clisp.org>
106040         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
106041         function returns void.
106043 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
106045         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
106046         fflush_unlocked, flockfile, funlockfile, funlockfile,
106047         fputs_unlocked, putc_unlocked.
106049 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
106051         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
106052         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
106053         already declared.
106055 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
106057         * modules/getdate (Files): Add doc/getdate.texi.
106058         (Depends-on): Add setenv, xalloc.
106060 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
106062         * lib/getdate.y: Add support for TZ="foo" within a date string.
106063         Fix some bugs near time_t boundaries.  Reject dates with
106064         out-of-range components, e.g., "Sept 31".
106065         Include <stdlib.h>, "setenv.h", "xalloc.h".
106066         (ISDIGIT_LOCALE): Remove; unused.
106067         Note that the TZ and time functions used here are not reentrant.
106068         (mktime_ok, get_tz): New functions.
106069         (TZBUFSIZE): New constant.
106070         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
106071         This requires that we sometimes generate our own TZ="XXX..." setting.
106073 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
106075         * doc/getdate.texi: New file, from coreutils with modifications for
106076         the new TZ parsing.
106078 2004-10-27  Derek R. Price  <derek@ximbiot.com>
106080         * lib/mktime.c (not_equal_tm): Remove redundant check.
106082 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
106084         * modules/regex (lib_SOURCES): Add regex.c.
106085         Reported by James Youngman in
106086         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
106088 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
106090         * lib/getdate.y: Use Bison 1.875 features, and some minor
106091         code cleanups.  This change does not affect semantics.
106092         Don't include <stdlib.h>; no longer needed.
106093         Don't include unlocked-io.h; only the "#if TEST" code uses
106094         stdio, and performance isn't crucial there.
106095         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
106096         Bison 1.875 features as described below.
106097         All uses of "PC." replaced by "pc->".
106098         (YYSTYPE): Add a forward declaration.
106099         (yylex, yyerror): Use full prototypes in forward decls.
106100         Use "%pure-parser" rather than obsolescent "%pure_parser".
106101         Use %parse-param and %lex-param instead of obsolescent
106102         YYPARSE_PARAM and YYLEX_PARAM.
106103         (meridian_table, month_and_day_table, time_units_table,
106104         relative_time_table, time_zone_table, military_table,
106105         lookup_zone, lookup_word, get_date):
106106         Use NULL instead of 0 where appropriate.
106107         (to_hour): Avoid abort (), to avoid a dependency on
106108         stdlib.h.
106109         (yyerror, yylex): Now accepts parser_control * arg.
106110         (main) [TEST]: Use '\0' rather than 0 for char.
106112 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
106114         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
106116 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
106118         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
106119         It's now the caller's responsibility to handle the case where
106120         !HAVE_GETPAGESIZE && !defined getpagesize.
106122         * lib/mktime.c (leapyear): Arg is long int, not int.
106124 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
106126         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
106128 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
106130         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
106131         missing.  Problem reported by James Youngman.
106133 2004-10-16  Simon Josefsson  <jas@extundo.com>
106135         * gnulib-tool: Fix comments.  Fix parse problem.
106136         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
106138 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
106140         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
106141         implementation of getopt_long.  Problem reported by Alexander Taler in:
106142         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
106144 2004-10-15  Bruno Haible  <bruno@clisp.org>
106146         * gnulib-tool: Untabify. Initialize supplied_libname.
106147         (func_usage): More homogenous output.
106148         (func_modules_transitive_closure, func_modules_to_filelist,
106149         func_emit_lib_Makefile_am): New functions.
106150         (func_import): New function, extracted from big case statement. Use
106151         func_get_license, func_modules_transitive_closure,
106152         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
106153         opt_lgpl. Don't use test -a, as it's not portable.
106154         (func_create_testdir): Use func_modules_transitive_closure,
106155         func_modules_to_filelist, func_emit_lib_Makefile_am.
106157 2004-10-15  Bruno Haible  <bruno@clisp.org>
106159         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
106161 2004-10-15  Bruno Haible  <bruno@clisp.org>
106163         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
106164         the portions belonging to each module.
106165         Suggested by Derek Robert Price <derek@ximbiot.com>.
106167 2004-10-12  Simon Josefsson  <jas@extundo.com>
106169         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
106170         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
106171         to real functions.
106173 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
106175         * modules/vsnprintf: New file.
106177 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
106179         * m4/vsnprintf.m4: New file.
106181 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
106183         * lib/vsnprintf.h: New file.
106184         * lib/vsnprintf.c: New file.
106186 2004-10-11  Bruno Haible  <bruno@clisp.org>
106188         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
106189         vsnprintf.
106191 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
106193         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
106195 2004-10-07  Bruno Haible  <bruno@clisp.org>
106197         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
106198         fits into the provided buffer.
106200 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
106202         * lib/diacrit.c, diacrit.h: Add GPL notice.
106204         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
106205         notice.
106206         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
106207         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
106208         This avoids a potential constant-folding bug.
106210 2004-10-05  Bruno Haible  <bruno@clisp.org>
106212         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
106213         for the declaration of strsep.
106215 2004-10-05  Bruno Haible  <bruno@clisp.org>
106217         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
106219 2004-10-04  Simon Josefsson  <jas@extundo.com>
106221         * modules/memmem: New file.
106222         * tests/test-memmem.c: New file.
106223         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
106225 2004-10-04  Simon Josefsson  <jas@extundo.com>
106227         * m4/memmem.m4: New file.
106229 2004-10-04  Simon Josefsson  <jas@extundo.com>
106231         * lib/memmem.h: New file.
106232         * lib/memmem.c: New file, taken from glibc.
106234 2004-10-04  Simon Josefsson  <jas@extundo.com>
106236         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
106237         '#ifdef USE_UNLOCKED_IO'.
106239 2004-10-04  Simon Josefsson  <jas@extundo.com>
106241         * config/srclist.txt: Add memmem from glibc.
106243 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
106245         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
106247         * modules/argmatch, modules/argp, modules/closeout, modules/error,
106248         modules/exclude, modules/getdate, modules/getline,
106249         modules/getndelim2, modules/getpass, modules/getpass-gnu,
106250         modules/getusershell, modules/linebuffer, modules/md5,
106251         modules/mountlist, modules/posixtm, modules/readtokens,
106252         modules/readutmp, modules/regex, modules/sha1,
106253         modules/version-etc, modules/yesno:
106254         Remove dependency on unlocked-io.
106256 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
106258         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
106260         * m4/unlocked-io.m4: Add copyright notice.
106261         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
106263 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
106265         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
106266         * lib/xmalloc.c (xmemdup): Likewise.
106267         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
106268         XFREE): Remove these long-obsolescent macros.
106269         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
106270         * lib/xstrdup.c: Remove.
106272         * lib/regex.c (re_comp): Cast gettext return value to char *,
106273         Problem reported by Martin Neitzel via Mark D. Baushke.
106275 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
106277         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
106278         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
106279         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
106280         regex.c, sha1.c, version-etc.c, yesno.c:
106281         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
106282         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
106283         the includer's responsibility.
106285         Sync from coreutils.
106287         * lib/modechange.c (mode_compile): Don't decrement a pointer that
106288         points to the start of a string, as the C Standard says the
106289         resulting behavior is undefined.
106291         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
106292         simple -> simple_backups, numbered_existing ->
106293         numbered_existing_backups, numbered -> numbered_backups
106294         to avoid shadowing problems.  All uses changed.
106295         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
106296         * lib/backupfile.c (check_extension, numbered_backup):
106297         Rename locals to avoid shadowing 'basename'.
106298         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
106299         once.
106301         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
106302         * lib/.cvsignore: Add getopt.h.
106304 2004-10-04  Bruno Haible  <bruno@clisp.org>
106306         * modules/README: New file.
106307         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
106308         not a module.
106310 2004-10-02  Jim Meyering  <jim@meyering.net>
106312         * lib/dirfd.h, getpagesize.h: Add copyright notice.
106314 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
106316         * modules/strsep: New file.
106318 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
106320         * m4/strsep.m4: New file.
106322 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
106324         * lib/strsep.h: New file.
106325         * lib/strsep.c: New file.
106327 2004-10-01  Simon Josefsson  <jas@extundo.com>
106329         * lib/snprintf.c (snprintf): Handle size==0.
106331 2004-10-01  Simon Josefsson  <jas@extundo.com>
106332             Bruno Haible  <bruno@clisp.org>
106334         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
106335         (snprintf): Declare 'args'.
106337 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
106339         * lib/snprintf.c: Remove comments as to why each header is needed.
106341 2004-10-01  Bruno Haible  <bruno@clisp.org>
106343         * MODULES.html.sh: Add strsep.
106345 2004-09-30  Simon Josefsson  <jas@extundo.com>
106347         * modules/snprintf: New file.
106349 2004-09-30  Simon Josefsson  <jas@extundo.com>
106351         * m4/snprintf.m4: New file.
106353 2004-09-30  Simon Josefsson  <jas@extundo.com>
106355         * lib/snprintf.h, lib/snprintf.c: New files.
106357 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
106359         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
106360         (hol_entry_help): Never translate an empty string.
106361         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
106362         * lib/argp.h (OPTION_NO_TRANS): New option.
106364 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
106366         * modules/argp (Maintainer): Replace Simon Josefsson
106367         by Sergey Poznyakoff.
106369 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
106371         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
106372         changes merged back into glibc.
106374 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
106376         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
106378 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
106380         * lib/xvasprintf.c: Include xalloc.h.
106381         (xvasprintf): Use xalloc_die, not xmalloc_die.
106383 2004-09-29  Bruno Haible  <bruno@clisp.org>
106385         * modules/alloca-opt: New file, derived from modules/alloca.
106386         * modules/allocsa: Depend on alloca-opt instead of alloca.
106387         * modules/setenv: Likewise.
106388         * modules/vasnprintf: Likewise.
106389         * MODULES.html.sh: Add alloca-opt.
106391 2004-09-28  Simon Josefsson  <jas@extundo.com>
106393         * gnulib-tool: New parameter --lgpl, to asseert that modules are
106394         LGPL, and to replace license template from GPL to LGPL.
106396 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
106398         * modules/dummy: Change license to LGPL.
106400 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
106402         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
106404 2004-09-24  Simon Josefsson  <jas@extundo.com>
106406         * modules/minmax (License): Change from GPL to LGPL.
106408 2004-09-23  Simon Josefsson  <jas@extundo.com>
106410         * gnulib-tool (--import): Typo.
106412 2004-09-23  Simon Josefsson  <jas@extundo.com>
106414         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
106416 2004-09-22  Bruno Haible  <bruno@clisp.org>
106418         * modules/*: Add 'License' field.
106419         * gnulib-tool: Accept --extract-license option.
106420         (func_get_license): New function.
106422 2004-09-21  Bruno Haible  <bruno@clisp.org>
106424         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
106425         Reported by Simon Josefsson.
106427 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
106429         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
106430         gl_AC_TYPE_LONG_LONG.
106432 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
106434         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
106436 2004-09-18  Simon Josefsson  <jas@extundo.com>
106437         and  Paul Eggert  <eggert@cs.ucla.edu>
106439         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
106440         calls with autoreconf.  Define GL_LIB.
106442 2004-09-14  Karl Berry  <karl@gnu.org>
106444         * config/srclist.txt: unsync setenv.c, sigh.
106446 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
106448         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
106449         Problem reported by Bruno Haible in:
106450         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
106452 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
106454         * config/srclist.txt: Comment out argp-pvh.c.
106456 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
106458         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
106459         in case some system header has #define'd it.  Problem reported by
106460         Soeren D. Schulze in
106461         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
106463 2004-09-09  Karl Berry  <karl@gnu.org>
106465         * regex.[ch]: delete from the root.  These were supposed to be
106466                 synced with emacs cvs, but this has not happened for about
106467                 a year, and anyway nothing else uses emacs regex.[ch].
106468                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
106469                 lib/regex[.ch] is untouched.
106471 2004-09-09  Bruno Haible  <bruno@clisp.org>
106473         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
106475 2004-09-09  Bruno Haible  <bruno@clisp.org>
106477         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
106478         modifications.
106479         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
106481 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
106483         * modules/xvasprintf: New file.
106484         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
106486 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
106488         * lib/xvasprintf.h: New file.
106489         * lib/xvasprintf.c: New file.
106490         * lib/xasprintf.c: New file.
106492 2004-09-08  Bruno Haible  <bruno@clisp.org>
106494         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
106496 2004-09-08  Bruno Haible  <bruno@clisp.org>
106498         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
106499         length is > INT_MAX.
106500         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
106501         more.
106503 2004-09-08  Bruno Haible  <bruno@clisp.org>
106505         * lib/stdint_.h: New file, taken from GNU clisp.
106507 2004-09-08  Bruno Haible  <bruno@clisp.org>
106508             Oskar Liljeblad  <oskar@osk.mine.nu>
106510         * modules/stdint: New file.
106511         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
106513 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
106515         Import from coreutils.
106516         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
106517         strings on unbounded length.  alloca's performance benefits aren't
106518         that important here.
106519         (V_STRDUP): Remove.
106520         (parse_with_separator): New function, with most of the internals
106521         of the old parse_user_spec.  Allow user to omit both user and group,
106522         for compatibility with FreeBSD.
106523         Clone only the user name, not the entire spec.
106524         Do not set *uid, *gid unless entirely successful.
106525         Avoid memory leak in some failing cases.
106526         Fix regression for USER.GROUP reported by Dmitry V. Levin in
106527         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
106528         (parse_user_spec): Rewrite to use parse_with_separator.
106530 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
106532         * modules/userspec: Don't depend on alloca.
106534 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
106536         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
106538 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
106540         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
106541         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
106542         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
106544 2004-08-16  Simon Josefsson  <jas@extundo.com>
106546         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
106547         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
106548         Add --dry-run for --import.
106549         Let user provided command line parameters override configure.ac
106550         settings.
106552 2004-08-12  Simon Josefsson  <jas@extundo.com>
106554         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
106555         as discussed with Paul Eggert in threads rooted at
106556         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
106557         and
106558         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
106559         Before, the test was empty, and relied on ELIDE_CODE in source
106560         code.)
106561         (gl_PREREQ_GETOPT): New macro.
106562         (gl_GETOPT): Use them.
106564 2004-08-12  Simon Josefsson  <jas@extundo.com>
106566         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
106567         * lib/getopt_.h: Renamed from getopt.h.
106569 2004-08-12  Simon Josefsson  <jas@extundo.com>
106571         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
106572         Change default library name from libfoo to libgnu.
106573         Now, if you have a configure.ac that says:
106574                 gl_SOURCE_BASE(gl)
106575                 gl_M4_BASE(gl/m4)
106576                 gl_MODULES(error getopt etcetera)
106577                 gl_INIT
106578         you can import all you need by running:
106579                 ../gnulib/gnulib-tool --import
106581         * modules/getopt (Files): Rename getopt.h to getopt_.h.
106582         (Makefile.am): Rewrite, use logic from argz.
106583         (Include): Use <getopt.h> instead of "getopt.h".
106585 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
106587         * modules/argp (Files): Add m4/unlocked-io.m4.
106588         (Depends-on): Add extensions.
106590 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
106592         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
106593         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
106594         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
106595         Check for program_invocation_name, program_invocation_short_name,
106596         flockfile, funlockfile, features.h, _getopt_long_only_r.
106598 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
106600         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
106601         its complicated substitute.
106602         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
106603         and program_invocation_name.
106604         (__argp_basename) [!_LIBC]: Remove; the only use was
106605         replaced by its body.
106606         (__argp_short_program_name): Change condition from
106607         !defined __argp_short_program_name to
106608         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
106609         to match argp-namefrob.h.
106610         (__argp_failure): Don't assume strerror_r returns char *.
106611         * lib/argp-parse.c (N_): Define unconditionally.
106612         (argp_default_options): Fill out initializers with 0 to avoid
106613         gcc warnings.
106615 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
106617         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
106618         getopt1.c.
106620 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
106622         Merge from coreutils.
106624         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
106626         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
106627         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
106629 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
106631         Merge from coreutils.
106633         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
106634         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
106635         for Reliant Unix 5.43.
106637         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
106638         (union fooround): Use uintmax_t, not long int.
106639         The rest is a merge from libc:
106640         [defined _LIBC]: Include <shlib-compat.h>.
106641         (_obstack) [defined _LIBC]: Remove after 2.3.4.
106643         * lib/settime.c (settime): Recode to avoid warning with
106644         Sun Forte C 6U2.
106646         * lib/strverscmp.c: Convert to UTF-8.
106648 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
106650         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
106651         m4/uintmax_t.m4.
106653 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
106655         * modules/xalloc-die: New file.
106656         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
106658         * modules/md5 (Files): Add m4/uint32_t.m4.
106659         * modules/sha1: Renamed from modules/sha.
106660         (Files):
106661         Rename lib/sha.h to lib/sha1.h.
106662         Rename lib/sha.c to lib/sha1.c.
106663         Rename m4/sha.m4 to m4/sha1.m4.
106664         (lib_SOURCES): Likewise.
106665         (configure.ac): Rename gl_SHA to gl_SHA1.
106666         (Include): sha.h -> sha1.h.
106668 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
106670         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
106671         * m4/sha1.m4: Renamed from sha.m4.
106672         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
106674 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
106676         * lib/obstack.h (obstack_empty_p):
106677         Don't assume that chunk->contents is suitably aligned.
106678         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
106679         Likewise. Problem reported by Benno in
106680         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
106682         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
106683         readable.  This could be improved further but it'd take some work.
106685 2004-08-08  Simon Josefsson  <jas@extundo.com>
106687         * modules/xgethostname (Depends-on): Remove exit and error (not
106688         used).
106690         * modules/getpass-gnu: Add getpass.h.
106691         (Depends-on): Add stdbool.
106692         * modules/getpass: Add getpass.h.
106694 2004-08-08  Simon Josefsson  <jas@extundo.com>
106696         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
106697         Check getpass declaration.
106699 2004-08-08  Simon Josefsson  <jas@extundo.com>
106701         * lib/xgethostname.c: Don't include error.h (not used).
106703         * lib/getpass.h: Add.
106704         * lib/getpass.c: Include getpass.h first.
106706 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
106708         * lib/xalloc-die.c: New file.
106709         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
106710         All uses removed.
106711         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
106712         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
106713         xalloc-die.c.
106714         (_, N_, xalloc_die): Move to xalloc-die.c.
106715         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
106716         so that we needn't mess with xalloc_msg_memory_exhausted.
106718         * lib/sha1.h: Renamed from sha.h.
106719         (SHA1_H): Renamed from _SHA_H.
106720         (sha1_ctx): Renamed from sha_ctx.
106721         (sha1_init_ctx): Renamed from sha_init_ctx.
106722         (sha1_process_block): Renamed from sha_process_block.
106723         (sha1_process_bytes): Renamed from sha_process_bytes.
106724         (sha1_finish_ctx): Renamed from sha_finish_ctx.
106725         (sha1_read_ctx): Renamed from sha_read_ctx.
106726         (sha1_stream): Renamed from sha_stream.
106727         (sha1_buffer): Renamed from sha_buffer.
106728         * lib/sha1.c: Likewise; renamed from sha.c.
106729         Do not include <sys/types.h>.
106730         Include <stddef.h> rather than <stdlib.h>.
106732 2004-08-08  Bruno Haible  <bruno@clisp.org>
106734         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
106735         FILESYSTEM_PREFIX_LEN.
106736         * lib/progreloc.c: Likewise.
106737         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
106739 2004-08-06  Simon Josefsson  <jas@extundo.com>
106741         * modules/progname (Depends-on): Don't depend on stdbool.
106743 2004-08-06  Simon Josefsson  <jas@extundo.com>
106745         * modules/getsubopt: New file.
106746         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
106747         getsubopt.
106749 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
106751         More merge from coreutils.
106753         * m4/utimens.m4, m4/utimecmp.m4: New files.
106754         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
106755         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
106756         prereq.m4, sha.m4: Import changes from coreutils.
106758 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
106760         More merge from coreutils.
106761         * modules/raise, modules/readtokens0, modules/utimens:
106762         * modules/utimecmp, module/xnanosleep: New files.
106763         * modules/strftime: Add lib/strftime.h.
106764         Change include from <time.h> to "strftime.h".
106765         * modules/yesno: Add lib/yesno.h.
106766         * modules/backupfile: Remove lib/addext.c.
106767         * modules/euidaccess: Add stat-macros.h.
106768         * modules/canonicalize, modules/euidaccess,
106769         modules/filemode, modules/lchown, modules/makepath,
106770         modules/rmdir, modules/stat: Likewise.
106772 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
106774         Merge from tar.
106775         * lib/argp-help.c (make_hol, hol_append): Don't assume that
106776         SIZE_MAX is a valid preprocessor constant.
106777         (__argp_basename): Change from "#ifndef _LIBC"
106778         to "#ifndef __argp_short_program_name", so that
106779         we don't compile these functions for tar.
106781         More merges from coreutils.
106782         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
106783         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
106784         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
106785         * lib/addext.c: Remove; no longer needed.
106786         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
106787         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
106788         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
106789         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
106790         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
106791         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
106792         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
106793         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
106794         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
106795         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
106796         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
106797         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
106798         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
106799         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
106800         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
106801         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
106802         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
106803         Import changes from coreutils.
106805 2004-08-05  Simon Josefsson  <jas@extundo.com>
106807         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
106809 2004-08-05  Simon Josefsson  <jas@extundo.com>
106811         * m4/getsubopt.m4: New file.
106813 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
106815         Merge from coreutils.
106817         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
106818         * m4/getcwd-path-max.m4: New files.
106820         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
106821         FILESYSTEM_PREFIX_LEN ->
106822         FILE_SYSTEM_PREFIX_LEN.
106823         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
106824         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
106825         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
106826         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
106828         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
106829         prerequisite modules now handle the DOS stuff.
106830         Don't check for unistd.h.
106832 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
106834         Merge from coreutils.
106836         * lib/.gdb-history: Remove; this doesn't belong here.
106838         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
106839         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
106840         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
106841         * lib/getcwd.c: New files.
106843         * lib/dirname.h: Include <stdbool.h>.
106844         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
106845         for consistency with POSIX terminology.  All uses changed.
106846         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
106847         (strip_trailing_slashes): Use bool for booleans.
106848         * lib/stripslash.c (strip_trailing_slashes): Likewise.
106850         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
106851         sometimes returns a positive errno value even when it succeeds.
106852         (print_errno_message) [!LIBC]: Fall back on strerror if
106853         __strerror_r fails.
106855         * lib/path-concat.c (mempcpy): Don't define if a system header defines
106856         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
106857         (longest_relative_suffix): New function.
106858         (path_concat): Use it.  Assume first argument is not NULL.
106859         Port to DOS.  Omit redundant separators.
106860         Report an error instead of returning NULL.
106861         Use mempcpy instead of memcpy.
106862         (xpath_concat): Remove: not declared or used.
106864         * lib/same.h: Include <stdbool.h>
106865         (same_name): Return bool, not int.
106866         * lib/same.c (same_name): Likewise.
106867         (errno): Don't declare; we assume C89 or better now.
106869         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
106870         if not already defined.
106872         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
106873         * lib/dup-safer.c (errno): Likewise.
106875 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
106877         Merge from coreutils.
106878         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
106879         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
106880         * modules/path-concat: Don't depend on strdup.
106882 2004-08-03  Simon Josefsson  <jas@extundo.com>
106884         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
106885         * lib/progname.h: Don't include stdbool.h.
106887 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
106889         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
106890         * MODULES.html.sh (func_all_modules): Remove fatal.
106892 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
106894         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
106896 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
106898         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
106899         working.
106901 2004-08-02  Simon Josefsson  <jas@extundo.com>
106903         * lib/getsubopt.h: New file, with comments from Bruno Haible.
106904         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
106905         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
106907 2004-08-01  Simon Josefsson  <jas@extundo.com>
106909         * lib/xgetdomainname.c: Include stdlib.h, for free().
106911 2004-07-19  Bruno Haible  <bruno@clisp.org>
106913         * MODULES.html.sh (func_all_modules): Add dummy.
106915 2004-07-16  Simon Josefsson  <jas@extundo.com>
106917         * modules/dummy: New file.
106919 2004-07-16  Simon Josefsson  <jas@extundo.com>
106921         * lib/dummy.c: New file.
106923 2004-07-16  Bruno Haible  <bruno@clisp.org>
106925         * lib/backupfile.h: Add extern "C" for C++.
106926         * lib/closeout.h: Likewise.
106927         * lib/copy-file.h: Likewise.
106928         * lib/findprog.h: Likewise.
106929         * lib/full-write.h: Likewise.
106930         * lib/pathname.h: Likewise.
106931         * lib/progname.h: Likewise.
106932         * lib/stpcpy.h: Likewise.
106933         * lib/stpncpy.h: Likewise.
106934         * lib/strcase.h: Likewise.
106935         * lib/strstr.h: Likewise.
106936         * lib/xalloc.h: Likewise.
106938         * lib/mbswidth.h: Add extern "C" for C++.
106939         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
106941 2004-07-13  Robert Millan  <robertmh@gnu.org>
106943         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
106945 2004-07-09  Simon Josefsson  <jas@extundo.com>
106947         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
106948         failed without this.)
106950 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
106952         * modules/chown (Files): Add lib/fchown-stub.c, since
106953         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
106955 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
106957         * lib/fchown-stub.c: New file.
106959 2004-06-24  Jim Meyering  <jim@meyering.net>
106961         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
106963 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
106965         * modules/argz: Omit "#include".
106967         * MODULES.html.sh (func_all_modules): Add calloc, to match
106968         2004-06-01 addition of calloc module.
106970 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
106972         * m4/argz.m4: New file, which is autoupdated from libtool.
106974 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
106976         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
106977         libtool.
106979 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
106981         * config/srclist-update: Don't insist on "USA." before the
106982         close-comment, as libtool omits the period and puts the */ on a
106983         separate line.
106984         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
106985         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
106987 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
106989         * modules/argz: New file.
106990         * MODULES.html.sh (func_all_modules): Add argz.
106992 2004-06-12  Jim Meyering  <jim@meyering.net>
106993         and  Paul Eggert  <eggert@cs.ucla.edu>
106995         * modules/hash (Files): Add lib/xalloc.h.
106996         * modules/pipe (Depends-on): Add wait-process.
106997         * modules/stat (Depends-on): Add xalloc.
106998         * modules/userspec (Files): Add lib/userspec.h.
106999         * modules/xstrto
107001         Upgrade from gettext-0.13.
107002         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
107003         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
107004         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
107006 2004-06-10  Jim Meyering  <jim@meyering.net>
107008         * lib/calloc.c: New file.
107010 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
107012         * lib/getdate.y (yylex): Allow space between sign and number.
107013         Problem reported by Dan Jacobson.
107015 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
107017         Merge from coreutils CVS.
107019         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
107020         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
107021         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
107022         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
107023         xstrtol.m4: Fix copyright date and/or serial number.
107025         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
107026         See if we need an fchown replacement.
107027         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
107028         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
107029         and use the replacement function if we detect either defect.
107031         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
107032         gl_UTIMECMP.
107034 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
107035         and  Jim Meyering  <jim@meyering.net>
107037         Merge from coreutils CVS.
107039         * lib/stat-macros.h: New file, with contents from file-type.h
107040         and coreutils' system.h.
107041         * lib/file-type.c: Include "stat-macros.h".
107042         * lib/file-type.h (file_type): Move all macro definitions to new file,
107043         stat-macros.h.
107045         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
107046         Wrap old code with this conditional.
107047         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
107048         function that does not dereference symlinks.
107049         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
107051         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
107052         dependency problems.
107053         (xreadlink): Accept new arg SIZE, for efficiency.
107054         All decls and uses changed.
107055         * lib/xreadlink.h: Include <stddef.h>, for size_t.
107057         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
107058         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
107060         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
107061         sysexits.h.
107063 2004-06-01  Jim Meyering  <jim@meyering.net>
107065         * m4/calloc.m4: New file.
107067 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
107069         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
107070         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
107071         Also, fix a typo in a diagnostic.
107073 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
107075         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
107076         or AC_FUNC_REALLOC.
107078 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
107080         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
107081         macros to be defined.
107082         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
107083         the allocator returns NULL because the requested size is zero.
107085 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
107087         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
107088         var.  Add comment explaining why libc still defines it.  This
107089         merges the following patch from glibc:
107090         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
107092 2004-05-20  Andreas Schwab  <schwab@suse.de>
107094         * m4/free.m4: Replace free if it not known to work, not the other
107095         way round.
107097 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
107099         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
107100         present in glibc since revision 1.1 of this file.
107101         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
107102         obstack_alignment_mask, obstack_alloc, obstack_base,
107103         obstack_blank, obstack_blank_fast, obstack_chunk_size,
107104         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
107105         obstack_grow0, obstack_init, obstack_int_grow,
107106         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
107107         obstack_next_free, obstack_object_size, obstack_ptr_grow,
107108         obstack_ptr_grow_fast, obstack_room): Remove declarations of
107109         nonexistent functions.
107111 2004-05-18  Karl Berry  <karl@gnu.org>
107113         * config/srclist.txt: break link for vasnprintf.c.
107115 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
107117         Port obstack to the AS/400, where pointers are 16 bytes wide and
107118         you cannot cast an integer to a valid pointer.  This patch is
107119         currently waiting to be integrated into glibc; see
107120         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
107122         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
107123         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
107124         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
107125         (struct obstack): temp member is now a union of a pointer and
107126         an integer, instead of an integer.  All integer uses changed.
107127         This does not affect the physical layout of struct obstack,
107128         except on hosts (like the AS/400) where the size or alignment of
107129         void * is greater than that of ptrdiff_t.
107130         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
107131         __STDC__)]: Store temporary in pointer member of union, not
107132         integer member.
107133         * lib/obstack.c: Include <stddef.h>, for offsetof.
107134         (struct fooalign): Remove; it doesn't need a name.
107135         (union fooround): Change double to long double, and add void *.
107136         (DEFAULT_ALIGNMENT): Use offsetof to compute.
107137         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
107138         not a macro.  Hence the values are always int; so remove all
107139         casts-to-int in uses.
107141 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
107143         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
107144         we can get this patch merged into glibc.
107146 2004-05-17  Derek R. Price  <derek@ximbiot.com>
107147             Paul Eggert  <eggert@cs.ucla.edu>
107149         * m4/argp: Depend on alloca.
107151 2004-05-17  Derek R. Price  <derek@ximbiot.com>
107152             Paul Eggert  <eggert@cs.ucla.edu>
107154         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
107155         freecoding.
107157 2004-05-17  Bruno Haible  <bruno@clisp.org>
107159         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
107160         precision that consists of a '.' followed by an empty digit string.
107161         Patch by Tor Lillqvist <tml@iki.fi>.
107163 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
107165         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
107166         for backward compatibility with older code.  We need our own
107167         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
107168         it under some other name, and our alloca.h will define it.
107170 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
107171             Derek Price  <derek@ximbiot.com>
107173         * lib/alloca.c: Include <alloca.h>, to get our interface.
107174         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
107175         include <alloca.h> first.  Use C89 prototype for alloca; this
107176         requires including <stddef.h> for size_t.  Use extern "C" if C++.
107177         Use #elif for simplicity, since we can assume C89 now.
107178         Don't try to source the system alloca.h since it will not be found
107179         and to prevent recursively including its replacement.
107180         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
107181         * lib/regex.c: Likewise.
107183 2004-05-16  Derek Price  <derek@ximbiot.com>
107184             Paul Eggert  <eggert@cs.ucla.edu>
107186         getline cleanup.  This changes the getndelim2 API: both order of
107187         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
107188         no delimiter).
107190         * lib/getline.c: Don't include stddef.h or stdio.h, since our
107191         interface does that.
107192         (getline): Always use getdelim, so that we don't have two
107193         copies of this code.
107194         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
107195         if available.
107196         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
107197         (GETNDELIM2_MAXIMUM): New macro.
107198         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
107199         instead of the old practice of delim2==0.  All callers changed.
107200         Return -1 on overflow, instead of returning junk.
107201         Do not set *linesize unless allocation succeeds.
107202         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
107203         that we include sys/types.h.
107204         * lib/getnline.h: Likewise.
107205         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
107206         (getndelim2): Reorder arguments.
107207         * lib/getnline.c (getnline, getndelim):
107208         Don't discard the NMAX argument.
107209         (getnline): Invoke getndelim, to avoid code duplication.
107210         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
107211         of (size_t) -1 by callers of the getnline family.
107213 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
107215         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
107216         Check for gettimeofday.
107217         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
107218         Check for settimeofday, stime.
107220 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
107222         * lib/nanosleep.c (suspended): Change its type from int to
107223         sig_atomic_t volatile.
107224         (first_call): Make it private to rpl_nanosleep, and have it
107225         be zero initially as that's a bit faster.
107226         (my_usleep): Round up fractional times instead of truncating them,
107227         as this is the usual meaning for 'sleep'.
107229         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
107230         doesn't work.
107231         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
107232         (ENOSYS): Define if not defined.
107233         (settime): Fall back on stime if it exists and settimeofday fails.
107234         But don't bother with fallbacks if a method fails with errno == EPERM.
107236 2004-05-11  Jim Meyering  <jim@meyering.net>
107238         Prior to this change, the save_cwd caller required read access to the
107239         current directory on most systems (ones with the fchdir function).
107241         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
107242         fails, try write-only, and finally, resort to using xgetcwd.
107244 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
107246         * lib/obstack.c, obstack.h: Import changes from libc.
107248 2004-04-28  Bruno Haible  <bruno@clisp.org>
107250         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
107251         also implicitly appends .exe to executables.
107252         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
107253         accepts Windows pathnames.
107254         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
107255         Treat Cygwin like Windows, since it now accepts Windows pathnames.
107256         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
107257         Treat Cygwin like Windows, since it now accepts Windows pathnames.
107258         Reported by Derek Robert Price <derek@ximbiot.com>.
107260 2004-04-21  Karl Berry  <karl@gnu.org>
107262         * config/srclist.txt (localcharset.c): break sync.
107264 2004-04-20  Paul Eggert  <eggert@twinsun.com>
107266         * m4/host-os.m4: Add a copyright notice.
107268 2004-04-20  Jim Meyering  <jim@meyering.net>
107270         Change UTILS_ to gl_ in AC_DEFINE'd names.
107271         Change utils_- and jm_-prefixed variables, too.
107272         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
107273         UTILS_FUNC_MKDIR_TRAILING_SLASH.
107274         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
107276         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
107277         Don't emit trailing blanks.
107278         Also rename jm_-prefixed variables to have gl_ prefix.
107280         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
107281         Also rename jm_-prefixed variables to have gl_ prefix.
107283         * m4/jm-macros.m4: Reflect the renamings.
107284         * m4/prereq.m4: Likewise.
107286 2004-04-20  Jim Meyering  <jim@meyering.net>
107288         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
107289         memory.
107291 2004-04-20  Jim Meyering  <jim@meyering.net>
107292             Bruno Haible  <bruno@clisp.org>
107294         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
107295         memory when realloc fails.
107297 2004-04-19  Jim Meyering  <jim@meyering.net>
107299         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
107300         now that readutmp.c may call `free (0)'.
107302 2004-04-19  Bruno Haible  <bruno@clisp.org>
107304         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
107305         * m4/inttypes_h.m4: Likewise.
107306         * m4/stdint_h.m4: Likewise.
107307         * m4/intmax_t.m4: Likewise.
107308         * m4/uintmax_t.m4: Likewise.
107310 2004-04-18  Jim Meyering  <jim@meyering.net>
107312         * m4/prereq.m4: Don't forbid jm_ prefix.
107314         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
107315         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
107316         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
107317         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
107318         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
107319         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
107320         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
107321         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
107322         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
107323         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
107324         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
107325         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
107326         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
107327         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
107328         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
107329         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
107330         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
107331         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
107332         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
107334 2004-04-18  Jim Meyering  <jim@meyering.net>
107336         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
107337         failure, don't leak memory and do call END_UTMP_ENT.
107339 2004-04-16  Jim Meyering  <jim@meyering.net>
107341         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
107342         coreutils' stat program.
107343         (gl_PREREQ): Don't require jm_PREREQ_STAT.
107345 2004-04-11  Paul Eggert  <eggert@twinsun.com>
107347         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
107348         C89.
107349         (CHAR_BIT): Remove, since we assume C89.
107350         Include <stdint.h> if available, as per current Autoconf CVS advice.
107352 2004-03-31  Jim Meyering  <jim@meyering.net>
107354         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
107355         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
107356         * m4/xalloc.m4: Likewise.
107358 2004-03-30  Paul Eggert  <eggert@twinsun.com>
107360         Merge from coreutils.
107362         * m4/inttostr.m4: New file.
107363         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
107364         Require AM_STDBOOL_H and gl_TIMESPEC instead.
107365         Require gl_CLOCK_TIME.
107366         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
107368 2004-03-30  Paul Eggert  <eggert@twinsun.com>
107370         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
107371         not bool, to be more consistent with Unix conventions.
107372         Suggested by Bruno Haible.
107374         Merge from coreutils.
107376         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
107377         * lib/umaxtostr.c: New files.
107379         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
107380         the usual <time.h> dance.
107381         (get_date): Change signature to support fractional time stamps.
107382         All callers changed.
107383         * lib/getdate.y: Include "getdate.h" first, as we can now
107384         assume C89 and don't need to worry about 'const'.
107385         Similarly, include "unlocked-io.h" near start, not in middle.
107386         Include <limits.h>.
107387         (textint.value): Use long int rather than int.
107388         (textint.digits): Use size_t rather than int.
107389         (BILLION, LOG10_BILLION): New constants.
107390         (parser_control): New member rel_ns.  Members day_ordinal,
107391         time_zone, month, day, hour, minutes, rel_year, rel_month,
107392         rel_day, rel_hour, rel_minutes, rel_seconds
107393         are now long int, not int.  Member seconds is now struct timespec,
107394         not int.  New member timespec_seen.  Members dates_seen, days_seen,
107395         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
107396         not int.
107397         (%union.intval): Now long int, not int.
107398         New member timespec.
107399         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
107400         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
107401         (spec): Now is a timespec or an item list.
107402         (timespec, items): New nonterminals.
107403         (time, rel, relunit, number, get_date):
107404         Add support for fractional seconds.
107405         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
107406         (gmtime, localtime, mktime): Remove decls; not needed with C89.
107407         (to_hour): First arg is now long int, not int.
107408         (to_year): Returns long int, not int.
107409         Don't treat year -70 like 70.
107410         (tm_diff): Returns long int, not int.
107411         (lookup_word): Use bool instead of int when appropriate.
107412         (yylex): Use size_t for count, not int.
107413         Detect overflow when parsing large integer constants.
107414         Add support for fractions.
107415         (get_date): Make pointers 'const' if possible.
107416         Use more-portable code to detect integer overflow.
107417         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
107418         Don't use ctime; it's not reliable if the year has >4 digits.
107420         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
107421         This is for compatibility with BSD.
107423         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
107424         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
107425         From coreutils' system.h.
107427         * lib/userspec.c: Don't include "posixver.h".
107428         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
107429         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
107430         compatible extension.  Simplify code by removing a boolean int
107431         that was always nonzero if a string was nonnull.
107433 2004-03-30  Jim Meyering  <jim@meyering.net>
107435         Merge from coreutils.
107437         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
107438         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
107439         on some systems one must include <grp.h> before it.
107440         Reported by Christian Krackowizer.
107442 2004-03-30  Jim Meyering  <jim@meyering.net>
107444         Merge from coreutils.
107446         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
107448         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
107449         an empty input stream.
107451         * lib/readtokens.c: Include <stdbool.h>.
107452         (readtoken): Use `size_t' rather than int/long.
107453         All callers adjusted.
107454         Use `bool' rather than `int' where appropriate.
107455         Use memset rather than an explicit loop.
107456         Use x2nrealloc rather than xrealloc.
107457         Allow the use of `\0' as a delimiter.
107458         (readtokens): Likewise.
107459         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
107461 2004-03-30  Jim Meyering  <jim@meyering.net>
107463         * m4/realloc.m4: Remove file, since now it does no more than
107464         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
107465         the `configure.ac' section of module/realloc.
107466         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
107468 2004-03-30  Bruno Haible  <bruno@clisp.org>
107470         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
107471         nonnull.
107473 2004-03-29  Paul Eggert  <eggert@twinsun.com>
107475         Merge changes to getloadavg.c from coreutils and Emacs.
107477         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
107478         Define to an expression, not to the empty string.
107479         Include cloexec.h and xalloc.h.
107480         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
107481         Use set_cloexec_flag rather than rolling our own.
107482         * lib/cloexec.c, lib/cloexec.h: New files.
107484 2004-03-29  Paul Eggert  <eggert@twinsun.com>
107486         * m4/cloexec.m4: New file.
107488 2004-03-18  Paul Eggert  <eggert@twinsun.com>
107490         * lib/getopt.h: Sync with libc CVS.
107492 2004-03-18  Paul Eggert  <eggert@twinsun.com>
107493             Bruno Haible  <bruno@clisp.org>
107495         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
107496         mbswidth.
107498 2004-03-18  Paul Eggert  <eggert@twinsun.com>
107499             Bruno Haible  <bruno@clisp.org>
107501         * lib/mbswidth.h: Include <wchar.h> only if
107502         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
107503         <wchar.h>.
107504         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
107506 2004-03-09  Paul Eggert  <eggert@twinsun.com>
107508         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
107509         Sync with libc CVS.
107510         * lib/getopt_int.h: New file, also synced from libc.
107512 2004-03-09  Paul Eggert  <eggert@twinsun.com>
107514         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
107515         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
107516         Bring back getopt.c, getopt.h, getopt1.c.
107518 2004-03-07  Paul Eggert  <eggert@twinsun.com>
107520         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
107521         All uses changed.  Check for sa_sigaction member; this fixes
107522         a bug first reported by Jason Andrade in
107523         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
107525 2004-03-07  Paul Eggert  <eggert@twinsun.com>
107527         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
107528         '#if' expressions.  Unlike the code it replaces, it does not
107529         depend on (defined _SC_PAGESIZE).  However, it does depend on
107530         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
107531         first reported by Jason Andrade in
107532         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
107534 2004-02-25  Simon Josefsson  <jas@extundo.com>
107536         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
107538 2004-02-25  Simon Josefsson  <jas@extundo.com>
107540         * lib/strdup.h: New file.
107541         * lib/strdup.c: Include it.
107542         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
107543         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
107545 2004-02-23  Karl Berry  <karl@gnu.org>
107547         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
107548         (from fencepost.gnu.org:/gd/gnuorg).
107550 2004-02-23  Karl Berry  <karl@gnu.org>
107552         * config/srclistvars.sh (GNUORG) [karl]: redefine.
107553         * config/srclist.txt: add maintain/standards documents.
107555 2004-02-18  Bruno Haible  <bruno@clisp.org>
107557         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
107558         Reported by Derek Robert Price <derek@ximbiot.com>.
107560 2004-02-16  Karl Berry  <karl@gnu.org>
107562         * config/mkinstalldirs, install-sh: update from automake.
107564 2004-02-06  Karl Berry  <karl@gnu.org>
107566         * m4/po.m4: update from gettext 0.14.1.
107568 2004-02-06  Karl Berry  <karl@gnu.org>
107570         * lib/config.charset: update from gettext 0.14.1.
107572 2004-02-05  Paul Eggert  <eggert@twinsun.com>
107574         Add comments and code, prompted by suggestions from Bruno Haible
107575         for sh-quote.
107576         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
107577         describing the enum quoting_style values.
107578         * lib/quotearg.c (quotearg_alloc): New function.
107579         (quotearg_buffer_restyled): Treat lone { and } as special.
107580         Treat = as special.  Work around bug with older shells
107581         that "see" a '\' that is really the 2nd byte of a multibyte char.
107582         Quote empty string with shell_quoting_style.
107584 2004-02-03  Bruno Haible  <bruno@clisp.org>
107586         * m4/pipe.m4: New file, from GNU gettext.
107588 2004-02-03  Bruno Haible  <bruno@clisp.org>
107590         * lib/pipe.h: New file, from GNU gettext.
107591         * lib/pipe.c: New file, from GNU gettext.
107593 2004-01-27  Bruno Haible  <bruno@clisp.org>
107595         * m4/execute.m4: New file, from GNU gettext.
107597 2004-01-27  Bruno Haible  <bruno@clisp.org>
107599         * lib/execute.h: New file, from GNU gettext.
107600         * lib/execute.c: New file, from GNU gettext.
107601         * lib/w32spawn.h: New file, from GNU gettext.
107603 2004-01-24  Paul Eggert  <eggert@twinsun.com>
107605         Merge from diffutils.
107607         * lib/file-type.c (file_type): Add typed memory objects.
107608         * lib/file-type.h (S_TYPEISTMO): New macro.
107610         * lib/c-stack.h (c_stack_action): Remove argv argument.
107611         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
107612         (die): Don't calculate message unless segv_action returns.
107613         (get_stack_location, min_address_from_argv, max_address_from_argv,
107614         volatile stack_base, volatile_stack_size): Remove.
107615         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
107616         that every segmentation violation is a stack overflow.  (Ouch!)
107617         See Debian bug 136249 (still outstanding) for more info about why
107618         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
107620 2004-01-24  Paul Eggert  <eggert@twinsun.com>
107622         Exit-status fix from coreutils.
107624         Use exit_failure consistently in place of EXIT_FAILURE,
107625         so that program exit statuses are consistent on failure.
107627         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
107628         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
107629         * lib/argmatch.h: Comment fix to match the above.
107630         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
107631         Now a macro referring to exit_failure, instead of a separate
107632         variable.  Include "exitfail.h" to get it.
107633         * lib/xstrtol.h: Include "exitfail.h".
107634         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
107636         * lib/long-options.c (parse_long_options): Use prototype
107637         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
107638         for clarity.
107640 2004-01-21  Jim Meyering  <jim@meyering.net>
107642         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
107643         so as not to conflict with a different-sized __mktime_internal
107644         function in GNU libc.
107645         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
107646         Problem building statically-linked `ls' reported by Michael Brunnbauer.
107648 2004-01-20  Karl Berry  <karl@gnu.org>
107650         * config/config.guess: update from config.
107652         * config/srclistvars.sh: GNUWWWLICENSES for karl.
107654 2004-01-20  Bruno Haible  <bruno@clisp.org>
107656         Safer stack allocation.
107657         * lib/setenv.c: Include allocsa.h.
107658         (alloca): Remove fallback definition.
107659         (freea): Remove macro.
107660         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
107661         instead of freea.
107663 2004-01-20  Bruno Haible  <bruno@clisp.org>
107665         * m4/eealloc.m4: New file, from GNU gettext.
107667 2004-01-20  Bruno Haible  <bruno@clisp.org>
107669         * m4/allocsa.m4: New file, from GNU gettext.
107671 2004-01-20  Bruno Haible  <bruno@clisp.org>
107673         * lib/xallocsa.h: New file, from GNU gettext.
107674         * lib/xallocsa.c: New file, from GNU gettext.
107676 2004-01-20  Bruno Haible  <bruno@clisp.org>
107678         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
107680 2004-01-20  Bruno Haible  <bruno@clisp.org>
107682         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
107683         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
107684         specially.
107686 2004-01-20  Bruno Haible  <bruno@clisp.org>
107688         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
107689         patch.
107691 2004-01-20  Bruno Haible  <bruno@clisp.org>
107693         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
107695 2004-01-20  Bruno Haible  <bruno@clisp.org>
107697         * lib/eealloc.h: New file.
107699 2004-01-20  Bruno Haible  <bruno@clisp.org>
107701         * lib/binary-io.h: Avoid warnings on Cygwin.
107703 2004-01-20  Bruno Haible  <bruno@clisp.org>
107705         * lib/allocsa.h: New file, from GNU gettext.
107706         * lib/allocsa.c: New file, from GNU gettext.
107708 2004-01-18  Karl Berry  <karl@gnu.org>
107710         * doc/gpl.texi, doc/lgpl.texi: new files.
107712 2004-01-18  Karl Berry  <karl@gnu.org>
107714         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
107715         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
107717 2004-01-15  Paul Eggert  <eggert@twinsun.com>
107719         Merge from coreutils.
107721         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
107722         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
107723         (gl_DEFAULT_POSIX2_VERSION): Move
107724         the documentation from 'configure' into 'config.hin',
107725         so that 'configure --help' isn't burdened by it and
107726         we don't have to worry about its formatting there.
107727         Reword the documentation so that it's more succinct
107728         and can be run together into a single paragraph.
107729         * m4/same.m4 (gl_SAME): Check for pathconf.
107731 2004-01-15  Paul Eggert  <eggert@twinsun.com>
107733         Merge from coreutils.
107735         * lib/posixver.c: Include posixver.h.
107737         * lib/same.c: Include <stdbool.h>, <limits.h>.
107738         (_POSIX_NAME_MAX): Define if not defined.
107739         (MIN): New macro.
107740         (same_name): If file names are silently truncated, report
107741         that the file names are the same if they are the same after
107742         the silent truncation.
107744         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
107745         conversion function.
107746         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
107747         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
107748         longer needed.
107750 2004-01-15  Jim Meyering  <jim@meyering.net>
107752         Merge from coreutils.
107754         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
107755         if no library is required.
107756         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
107757         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
107758         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
107759         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
107760         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
107761         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
107762         value, $ac_cv_search_crypt, if it's "none required".
107763         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
107764         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
107765         not gl_FUNC_GETLOADAVG.
107766         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
107767         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
107769 2004-01-15  Jim Meyering  <jim@meyering.net>
107771         Merge from coreutils.
107773         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
107774         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
107775         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
107777         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
107778         optional configure-time default.
107780         * lib/version-etc.c (version_etc_copyright): Update copyright date.
107782         * lib/xreadlink.c (xreadlink): Correct outdated comment.
107784 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
107786         Merge from coreutils.
107788         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
107789         value, $ac_cv_search_nanosleep, if it's "none required".
107791 2004-01-14  Paul Eggert  <eggert@twinsun.com>
107793         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
107794         with like-named macro in fnmatch.c.
107795         (EXT): Use an internal constant instead.
107797         Merge fnmatch patches from glibc.
107798         * lib/fnmatch.c (mbsinit): Remove define.
107799         Add libc_hidden_ver (__fnmatch, fnmatch).
107800         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
107801         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
107803 2004-01-14  Karl Berry  <karl@gnu.org>
107805         * config/install-sh: update from automake.
107807 2004-01-13  Karl Berry  <karl@gnu.org>
107809         * config/install-sh: update from automake.
107811 2004-01-09  Karl Berry  <karl@gnu.org>
107813         * config/install-sh: update from automake.
107815 2004-01-05  Karl Berry  <karl@gnu.org>
107817         * config/config.{sub,guess}: update from config.
107819 2003-12-31  Karl Berry  <karl@gnu.org>
107821         * config/depcomp: update from automake.
107823 2003-12-14  Karl Berry  <karl@gnu.org>
107825         * lib/config.charset: update from gettext-runtime.
107827 2003-12-03  Paul Eggert  <eggert@twinsun.com>
107829         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
107830         Bug reported by Alfred M. Szmidt.
107832 2003-12-03  Bruno Haible  <bruno@clisp.org>
107834         * m4/gettext.m4: Upgrade from gettext-0.13.
107835         * m4/po.m4: Upgrade from gettext-0.13.
107836         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
107837         * m4/intmax.m4: New file, from gettext-0.13.
107838         * m4/printf-posix.m4: New file, from gettext-0.13.
107840 2003-11-29  Karl Berry  <karl@gnu.org>
107842         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
107844 2003-11-25  Paul Eggert  <eggert@twinsun.com>
107845             Bruno Haible  <bruno@clisp.org>
107847         * lib/printf-parse.h: Don't include sys/types.h.
107848         (ARG_NONE): New macro.
107849         (char_directive): Change type of *arg_index fields to size_t.
107850         * lib/printf-parse.c: Don't include sys/types.h.
107851         (SSIZE_MAX): Remove macro.
107852         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
107853         Remove unnecessary overflow check.
107854         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
107855         fields.
107857 2003-11-25  Bruno Haible  <bruno@clisp.org>
107859         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
107861 2003-11-25  Bruno Haible  <bruno@clisp.org>
107863         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
107864         gt_TYPE_SSIZE_T.
107866 2003-11-24  Paul Eggert  <eggert@twinsun.com>
107868         * modules/alloca: Remove dependency on xalloc.
107870 2003-11-24  Paul Eggert  <eggert@twinsun.com>
107872         * lib/alloca.c: Remove dependency on xalloc module.
107873         (xalloc_die): Remove.
107874         (memory_full) [!defined emacs]: New macro.
107875         [!defined emacs]: Don't include xalloc.h.
107876         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
107877         address arithmetic overflows.  Change datatypes a bit to avoid
107878         unnecessary casts.
107880 2003-11-22  Jim Meyering  <jim@meyering.net>
107882         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
107883         s/size/size_t/.
107885 2003-11-21  Karl Berry  <karl@gnu.org>
107887         * config/config.{sub,guess}: update from config.
107889 2003-11-18  Karl Berry  <karl@gnu.org>
107891         * config/config.{sub,guess}: update from config.
107893         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
107895 2003-11-17  Paul Eggert  <eggert@twinsun.com>
107897         * README: Mention that S+T cannot overflow if S is the size of
107898         an existing object and T is sufficiently small.
107900 2003-11-17  Jim Meyering  <jim@meyering.net>
107902         On systems without utime and without a utimes function capable of
107903         dealing with a NULL struct utimbuf* argument, this utime replacement
107904         could -- in unusual circumstances -- leak a file descriptor.
107905         * lib/utime.c: Include <unistd.h> and <errno.h>.
107906         (utime_null): Be sure to close `fd' and to preserve errno.
107907         Reported by Geoff Collyer via Arnold Robbins.
107909 2003-11-17  Bruno Haible  <bruno@clisp.org>
107911         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
107912         (Depends-on): Add xsize.
107914 2003-11-17  Bruno Haible  <bruno@clisp.org>
107916         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
107918 2003-11-17  Bruno Haible  <bruno@clisp.org>
107920         * lib/vasnprintf.c (alloca): Remove fallback definition.
107921         (freea): Remove definition.
107922         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
107923         Reported by Paul Eggert.
107925 2003-11-16  Paul Eggert  <eggert@twinsun.com>
107926             Bruno Haible  <bruno@clisp.org>
107928         Protect against address arithmetic overflow.
107929         * lib/printf-args.h: Include stddef.h.
107930         (arguments): Change type of field 'count' to size_t.
107931         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
107932         'unsigned int' where appropriate.
107933         * lib/printf-parse.h: Include sys/types.h.
107934         (char_directive): Change type of *arg_index fields to ssize_t.
107935         (char_directives): Change type of fields 'count', max_*_length to
107936         size_t.
107937         * lib/printf-parse.c: Include sys/types.h and xsize.h.
107938         (SSIZE_MAX): Define fallback value.
107939         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
107940         instead of 'int' where appropriate. Check a_allocated, d_allocated
107941         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
107942         * lib/vasnprintf.c: Include xsize.h.
107943         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
107944         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
107945         overflow. Avoid wraparound when converting a width or precision from
107946         decimal to binary.
107948 2003-11-16  Bruno Haible  <bruno@clisp.org>
107950         Update from GNU gettext.
107951         * lib/printf-parse.c: Generalize to it can be compiled for wide
107952         strings.
107953         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
107954         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
107955         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
107956         SNPRINTF): New macros.
107957         Don't include <alloca.h> if the file is used inside libintl.
107958         (local_wcslen): New function, for Solaris 2.5.1.
107959         (VASNPRINTF): Use it instead of wcslen.
107961 2003-11-16  Bruno Haible  <bruno@clisp.org>
107963         * lib/xsize.h (xmax): New function.
107964         (xsum, xsum3, xsum4): Declare as "pure" functions.
107966 2003-11-12  Paul Eggert  <eggert@twinsun.com>
107968         * modules/xalloc (Files): Undo latest change, since xalloc.h
107969         no longer needs SIZE_MAX or PTRDIFF_MAX.
107971 2003-11-12  Paul Eggert  <eggert@twinsun.com>
107973         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
107974         gl_PTRDIFF_MAX.
107976 2003-11-12  Paul Eggert  <eggert@twinsun.com>
107978         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
107979         "return", to pacify some unknown compiler.  Problem reported
107980         by Joerg Schilling.
107982 2003-11-12  Paul Eggert  <eggert@twinsun.com>
107984         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
107985         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
107986         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
107987         heuristic is just as accurate as far as we know, and it removes a
107988         dependency on size_max.m4 and ptrdiff_max.m4.
107990 2003-11-11  Bruno Haible  <bruno@clisp.org>
107992         * modules/xsize (Files): Add m4/size_max.m4.
107993         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
107995 2003-11-11  Bruno Haible  <bruno@clisp.org>
107997         * m4/size_max.m4: New file.
107998         * m4/ptrdiff_max.m4: New file.
107999         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
108000         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
108001         (gl_XALLOC): Invoke it.
108003 2003-11-11  Bruno Haible  <bruno@clisp.org>
108005         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
108006         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
108007         defined.
108009 2003-11-10  Paul Eggert  <eggert@twinsun.com>
108011         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
108012         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
108013         rejected some allocations of exactly SIZE_MAX - 2 bytes.
108014         From Bruno Haible.
108015         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
108016         not (size_t) -1, since it's defined here.
108018 2003-11-09  Karl Berry  <karl@gnu.org>
108020         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
108022 2003-11-06  Paul Eggert  <eggert@twinsun.com>
108024         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
108025         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
108026         Reject sizes of exactly SIZE_MAX bytes.
108027         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
108028         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
108030 2003-11-05  Bruno Haible  <bruno@clisp.org>
108032         * lib/xsize.h: Include limits.h, to avoid a possible collision with
108033         SIZE_MAX defined in <limits.h> on Solaris.
108035 2003-11-04  Jim Meyering  <jim@meyering.net>
108037         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
108038         variable names, rather than @VAR@.
108039         * modules/poll: Likewise.
108041 2003-11-04  Bruno Haible  <bruno@clisp.org>
108043         * modules/xsize: New file.
108044         * modules/linebreak: Depend on xsize.
108045         * MODULES.html.sh (func_all_modules): Add xsize.
108047 2003-11-04  Bruno Haible  <bruno@clisp.org>
108049         * m4/xsize.m4: New file.
108051 2003-11-04  Bruno Haible  <bruno@clisp.org>
108053         * lib/xsize.h: New file.
108054         * lib/linebreak.c: Include xsize.h.
108055         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
108056         argument for overflow.
108057         Suggested by Paul Eggert.
108059 2003-11-03  Karl Berry  <karl@gnu.org>
108061         * config/config.{guess,sub}: update from config.
108063 2003-11-03  Jim Meyering  <jim@meyering.net>
108065         * modules/userspec (lib_SOURCES): Add userspec.h.
108066         (Include): Add "userspec.h".
108067         Improve description.
108069 2003-11-03  Jim Meyering  <jim@meyering.net>
108071         * lib/userspec.c: Include "userspec.h".
108072         * lib/userspec.h: New file.
108074 2003-11-03  Bruno Haible  <bruno@clisp.org>
108076         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
108078 2003-11-03  Bruno Haible  <bruno@clisp.org>
108080         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
108081         available, to avoid (extremely rare) race condition.
108082         Suggested by Paul Eggert.
108084 2003-11-02  Karl Berry  <karl@gnu.org>
108086         * config/srclist.txt (vasprintf.c): sync broken, sigh.
108088 2003-10-31  Paul Eggert  <eggert@twinsun.com>
108090         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
108091         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
108092         (read_filesystem_list): Set and use me_type_malloced.
108093         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
108094         whatever the type happens to be), for brevity and consistency.
108095         Check for size calculation overflow on Alphas running OSF/1.
108097 2003-10-31  Jim Meyering  <jim@meyering.net>
108099         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
108101         * lib/linebuffer.c: Include <string.h> for declaration of memset.
108103 2003-10-30  Paul Eggert  <eggert@twinsun.com>
108104             Bruno Haible  <bruno@clisp.org>
108106         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
108107         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
108109 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
108111         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
108112         netbsd*-gnu*.  Suggested by Robert Millan.
108114 2003-10-29  Paul Eggert  <eggert@twinsun.com>
108116         * modules/group-member: Depend on stdbool.
108118 2003-10-29  Paul Eggert  <eggert@twinsun.com>
108120         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
108122 2003-10-29  Paul Eggert  <eggert@twinsun.com>
108124         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
108125         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
108126         after the 'gnu' in these cases.  This fixes some bugs in the
108127         previous change, and is based on suggestions by Robert Millan.
108129 2003-10-29  Paul Eggert  <eggert@twinsun.com>
108131         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
108132         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
108133         no longer needed.
108134         * lib/quotearg.c (quotearg_n_options): Use it.
108135         * lib/group-member.c: Include <stdbool.h>.
108136         (free_group_info): Arg is now const *; don't free arg.
108137         (get_group_info): Now returns bool and accepts struct group_info *,
108138         rather than returning a malloc'ed struct group_info *.
108139         All uses changed.  Check for overflow in internal size calculation.
108141         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
108142         rather than xmalloc/xrealloc.
108143         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
108144         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
108145         conformance bug: the old code used a pointer after freeing the
108146         storage that it addressed.
108147         * lib/hash.c (hash_initialize): Simplify the code by using
108148         xalloc_oversized rather than doing it by hand.
108149         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
108150         the buffer preserved.  Use free and xmalloc instead.
108151         * lib/quotearg.c (quotearg_n_options): Likewise.
108152         Use a simpler test for size overflow.  Don't use xalloc_oversized
108153         because unsigned int might be wider than size_t (!); this suggests
108154         that we should switch from unsigned int to size_t for slot numbers.
108156 2003-10-28  Paul Eggert  <eggert@twinsun.com>
108158         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
108159         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
108160         NetBSD kernels.  Requested by Richard Stallman.
108162 2003-10-27  Paul Eggert  <eggert@twinsun.com>
108164         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
108165         to allocate the returned structure.  Do not allocate a subarray,
108166         as x2nrealloc will do that.
108167         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
108168         instead of xnrealloc.
108169         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
108171 2003-10-27  Bruno Haible  <bruno@clisp.org>
108173         * lib/stdbool_.h: Better support for BeOS.
108175 2003-10-26  Paul Eggert  <eggert@twinsun.com>
108177         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
108178         now uses inline.
108180 2003-10-26  Paul Eggert  <eggert@twinsun.com>
108182         * lib/xalloc.h (xalloc_oversized): New static inline function, for
108183         callers that want to do their own size-overflow checking.  Include
108184         <stdbool.h>, since xalloc_oversized returns bool.
108185         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
108186         to use xalloc_oversized.
108188         Add two functions x2realloc, x2nrealloc, for programs that grow
108189         arrays dynamically by doubling their sizes.
108190         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
108191         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
108192         New functions.
108194         Port to C99 semantics for 'inline' of external functions.
108195         Bug reported by Bruno Haible.
108196         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
108197         with the old contents of xnmalloc.
108198         (xnmalloc, xmalloc): Use it.
108199         (xnrealloc_inline): New static inline function,
108200         with the old contents of xnrealloc.
108201         (xnrealloc, xrealloc): Use it.
108203         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
108204         that.
108206 2003-10-26  Karl Berry  <karl@gnu.org>
108208         * config/srclist.txt (COPYING.DOC): no longer available from
108209         /gd/gnuorg; don't know where the ultimate source is.
108211 2003-10-25  Paul Eggert  <eggert@twinsun.com>
108213         Fix several address-calculation bugs in the hash modules,
108214         plus some minor code cleanup.
108216         * lib/hash.h: Include <stdbool.h>, for bool.
108217         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
108218         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
108219         hash_get_n_entries, hash_get_max_bucket_length,
108220         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
108221         hash_rehash): Use size_t rather than unsigned.
108222         * lib/hash.c (struct hash_table, hash_get_n_buckets,
108223         hash_get_n_buckets_used, hash_get_n_entries,
108224         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
108225         hash_get_entries, hash_do_for_each, hash_string, is_prime,
108226         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
108227         Likewise.
108228         (SIZE_MAX): Define if not defined.
108229         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
108230         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
108231         hash_print):
108232         Use const * when possible.
108233         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
108234         (check_tuning): Fix bug: if tuning parameters were very close to
108235         0 or 1, rounding errors could have caused subscript violations.
108236         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
108237         (hash_initialize): Add 'fail:' label
108238         to free table and return NULL, and use it to simplify code.
108239         Use calloc rather than clearing the storage ourself.
108240         (hash_initialize, hash_rehash): Check for arithmetic overflow in
108241         buffer size calculations.
108242         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
108243         Include <stddef.h>, for size_t.
108244         * lib/hash-pjw.c (hash_pjw): Likewise.
108245         Switch to method described by Bruno Haible.
108246         Include <limits.h>, for CHAR_BIT.
108247         (SIZE_BITS): New macro.
108249 2003-10-23  Paul Eggert  <eggert@twinsun.com>
108251         * m4/getline.m4 (AM_FUNC_GETLINE):
108252         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
108253         hosts.  Problem reported by Derek Robert Price in
108254         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
108255         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
108256         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
108258 2003-10-21  Paul Eggert  <eggert@twinsun.com>
108260         * lib/getndelim2.c (getndelim2): When size calculation overflows,
108261         ceiling the allocation at NMAX bytes rather than silently
108262         discarding input bytes before NMAX is reached.  This makes
108263         a difference only if NMAX exceeds SIZE_MAX / 2.
108265         * lib/obstack.c: Merge from glibc.
108266         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
108267         Add libc_hidden_def (_obstack_newchunk).
108268         (_obstack_free) [! defined _LIBC]: Remove.
108269         [defined _LIBC]: Make a strong alias from obstack_free, rather than
108270         a clone of the function body.
108271         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
108272         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
108274         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
108275         glibc.
108276         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
108277         arg to memcpy.
108279         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
108280         (obstack_ptr_grow_fast, obstack_int_grow_fast):
108281         Don't use lvalue casts, as GCC plans to remove support for them
108282         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
108283         was also present in the non-GCC version, indicating that this
108284         code had always been buggy and had never been widely used.
108285         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
108286         Use the fast variant of each macro, rather than copying the
108287         definiens of the fast variant; that way, we'll be more likely to
108288         catch future bugs in the fast variants.
108290 2003-10-20  Bruno Haible  <bruno@clisp.org>
108292         * modules/wait-process: New file.
108293         * MODULES.html.sh (func_all_modules): Add wait-process.
108295 2003-10-20  Bruno Haible  <bruno@clisp.org>
108297         * m4/wait-process.m4: New file.
108299 2003-10-20  Bruno Haible  <bruno@clisp.org>
108301         * lib/wait-process.h: New file, from GNU gettext.
108302         * lib/wait-process.c: New file, from GNU gettext.
108304 2003-10-19  Jim Meyering  <jim@meyering.net>
108306         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
108307         HPUX 10.20.
108309 2003-10-18  Karl Berry  <karl@gnu.org>
108311         * config/config.guess: update from config.
108313 2003-10-16  Paul Eggert  <eggert@twinsun.com>
108315         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
108316         (getgroups): First arg is int, not size_t.
108317         Don't let 'free' mangle errno.
108319 2003-10-16  Paul Eggert  <eggert@twinsun.com>
108321         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
108323 2003-10-16  Karl Berry  <karl@gnu.org>
108325         * config/config.{guess,sub}: update from config.
108327 2003-10-16  Jim Meyering  <jim@meyering.net>
108329         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
108330         memcpy.
108332 2003-10-15  Paul Eggert  <eggert@twinsun.com>
108334         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
108335         (SIZE_MAX): Remove.
108336         (new_exclude, add_exclude_file): Initial size no longer needs to
108337         be a power of 2.
108338         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
108339         our own address arithmetic overflow checking.
108341         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
108342         (fnmatch): Do not alloca more than 2000 wide characters;
108343         instead, use malloc for large buffers.
108344         Check for address arithmetic overflow, and return -1
108345         with errno set to ENOMEM in that case.
108346         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
108347         (NEW_PATTERN): Do not alloca more than 8000 bytes;
108348         instead, return -1.  Check for address arithmetic overflow.
108350 2003-10-14  Paul Eggert  <eggert@twinsun.com>
108352         Handle invalid suffixes and overflow independently, so that
108353         callers can treat them independently as needed.  Fix some bugs in
108354         suffix handling, e.g., "100k@" was not diagnosed as an invalid
108355         suffix for a human-readable blocksize.  The major caller-visible
108356         change is the addition of a new
108357         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
108358         that both overflow and suffix chars were found.
108360         * lib/human.c (humblock): Don't check separately for invalid suffix
108361         char; that is xstrtoumax's job (now that its bug is fixed).
108362         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
108363         INTMAX_MAX]: New macros.
108364         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
108365         TYPE_MAXIMUM): New macros.
108366         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
108367         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
108368         if overflow occurs, as it's what __strtol does and it's more useful
108369         in practice.
108370         (__xstrtol): If __strtol reports some error other than ERANGE,
108371         reflect it to the caller as LONGINT_INVALID.  If it reports
108372         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
108373         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
108374         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
108375         value.
108376         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
108377         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
108378         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
108379         [defined UINTMAX_MAX]: New macros.
108381 2003-10-14  Bruno Haible  <bruno@clisp.org>
108383         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
108385 2003-10-14  Bruno Haible  <bruno@clisp.org>
108387         * m4/sig_atomic_t: New file, from GNU gettext.
108388         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
108390 2003-10-14  Bruno Haible  <bruno@clisp.org>
108392         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
108393         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
108394         Also use volatile where needed.
108396 2003-10-12  Paul Eggert  <eggert@twinsun.com>
108398         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
108399         Change maintainer from Bruno Haible to 'all'.
108401 2003-10-12  Paul Eggert  <eggert@twinsun.com>
108403         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
108405 2003-10-12  Paul Eggert  <eggert@twinsun.com>
108407         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
108408         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
108409         and define in terms of the other primitives.
108410         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
108411         (SIZE_MAX): Define if not already defined.
108412         (array_size_overflow): New function.
108413         (xalloc_die): Abort instead of exiting if 'error' returns.
108414         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
108415         (xmalloc, xrealloc): Use them.
108416         (xcalloc): Check for address arithmetic overflow.
108417         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
108418         a bit faster than strcpy.
108420 2003-10-10  Simon Josefsson  <jas@extundo.com>
108422         * modules/argp (Depends-on): Add restrict and strcase.
108424 2003-10-10  Simon Josefsson  <jas@extundo.com>
108426         * m4/argp.m4: Add AC_C_INLINE.
108428 2003-10-08  Paul Eggert  <eggert@twinsun.com>
108430         Merge getpass from libc, plus a few fixes.
108432         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
108433         Include <stdbool.h>.
108434         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
108435         __fsetlocking to empty.
108436         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
108437         do include <bits/libc-lock.h>.
108438         Do not include <fcntl.h>; not needed.
108439         [_LIBC]: Include <wchar.h>.
108440         (NOTCANCEL_MODE): New macro.
108441         (flockfile, funlockfile) [_LIBC]: New macros.
108442         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
108443         [!_LIBC]: New macros.
108444         (call_fclose): New function.
108445         (getpass): Use it.  Save tty stream separately; this simplifies the
108446         code and makes it more reliable if stdin happens to equal stdout.
108447         Invoke __fsetlocking on tty.
108448         Handle thread cancellation if needed.
108449         Namespace cleanup (use __tcgetattr, __getline).
108450         Use bool for Booleans.
108451         [USE_IN_LIBIO]: Handle wide streams.
108452         [!_LIBC]: Unconditionally do the fseek, since we don't know what
108453         stream might go where.
108455         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
108456         doesn't have to include <stdio.h> before us.
108457         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
108458         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
108459         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
108460         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
108461         if not declared, so that we can use getpass.c code from libc without
108462         rewriting it.
108463         (flockfile, ftrylockfile, funlockfile): New macros.
108465 2003-10-08  Paul Eggert  <eggert@twinsun.com>
108467         * modules/getpass: Depend on stdbool.
108469 2003-10-08  Paul Eggert  <eggert@twinsun.com>
108471         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
108473 2003-10-07  Karl Berry  <karl@gnu.org>
108475         * config/config.{guess,sub}: update from config.
108477 2003-10-06  Jim Meyering  <jim@meyering.net>
108478             Bruno Haible  <bruno@clisp.org>
108480         This lets translators provide better translations for the
108481         "Written by ..." part of --version output.
108482         * lib/version-etc.h: Include stdarg.h.
108483         (version_etc_copyright): Declare as readonly.
108484         (version_etc): Make this function variadic with a NULL-terminated list
108485         of author name strings.
108486         (version_etc_va): New declaration.
108487         * lib/version-etc.c: Include stdarg.h, stdlib.h.
108488         (version_etc_copyright): Declare as readonly.
108489         (version_etc_va): New function. Provide a different translatable string
108490         for each possible number of authors < 10. Abbreviate when there are 10
108491         authors or more.
108492         (version_etc): Make this function variadic. Call version_etc_va.
108493         Suggestion from Gary V. Vaughan.
108495         * lib/long-options.h (parse_long_options): Change prototype: the
108496         authors string is moved to the end and becomes variadic.
108497         * lib/long-options.c: Include stdarg.h.
108498         (parse_long_options): Make this function variadic, too.
108499         Call version_etc_va, not version_etc.
108501 2003-10-06  Bruno Haible  <bruno@clisp.org>
108503         * modules/version-etc-2: Remove file.
108504         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
108506 2003-10-06  Bruno Haible  <bruno@clisp.org>
108508         * modules/fatal-signal: New file.
108509         * MODULES.html.sh (func_all_modules): Add fatal-signal.
108511 2003-10-06  Bruno Haible  <bruno@clisp.org>
108513         * m4/fatal-signal.m4: New file.
108514         * m4/signalblocking.m4: New file, from GNU gettext.
108516 2003-10-06  Bruno Haible  <bruno@clisp.org>
108518         * lib/version-etc-2.h: Remove file.
108519         * lib/version-etc-2.c: Remove file.
108521 2003-10-06  Bruno Haible  <bruno@clisp.org>
108523         * lib/fatal-signal.h: New file, from GNU gettext.
108524         * lib/fatal-signal.c: New file, from GNU gettext.
108526 2003-10-05  Paul Eggert  <eggert@twinsun.com>
108528         * README: Rework advice for preventing empty .o files.
108529         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
108530         not <sys/types.h>.
108532 2003-10-04  Karl Berry  <karl@gnu.org>
108534         * lib/argp*: update from libc.
108536 2003-10-04  Karl Berry  <karl@gnu.org>
108538         * config/config.{guess,sub}: update from config.
108540 2003-10-02  Bruno Haible  <bruno@clisp.org>
108542         * modules/lchown (Include): Add lchown.h.
108543         * modules/time_r (Include): Use "..." syntax.
108544         * modules/xgetdomainname (Include): Add xgetdomainname.h.
108546 2003-10-01  Simon Josefsson  <jas@extundo.com>
108548         * MODULES.html.sh (func_all_modules): Move gethostname from section
108549         'based on' to section 'lacking' POSIX:2001.
108551 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
108553         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
108554         to output mode on the same stream.
108556 2003-09-29  Paul Eggert  <eggert@twinsun.com>
108558         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
108559         Fix arg typo in previous patch.
108561 2003-09-28  Jim Meyering  <jim@meyering.net>
108563         * lib/error.c: Correct cpp indentation.
108565 2003-09-27  Paul Eggert  <eggert@twinsun.com>
108567         * modules/free: New file.
108569 2003-09-27  Paul Eggert  <eggert@twinsun.com>
108571         * m4/free.m4: New file.
108573 2003-09-27  Paul Eggert  <eggert@twinsun.com>
108575         * lib/minmax.h (MIN, MAX)
108576         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
108577         Omit the special code that used __typeof__, since we worry that
108578         it could be more trouble than it's worth.  See:
108579         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
108580         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
108582         * lib/free.c: New file.
108584 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
108586         Trivial fixes to Makefile.am parts of module listings.
108587         * modules/strstr: Append strstr.h to lib_SOURCES.
108588         * modules/strcase: Likewise, for strcase.h.
108590 2003-09-27  Karl Berry  <karl@gnu.org>
108592         * config/mkinstalldirs: update from automake.
108594 2003-09-26  Paul Eggert  <eggert@twinsun.com>
108596         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
108597         (error_tail): Do not loop, reallocating temporary buffer, since
108598         the output cannot contain more wide characters than the input
108599         contains bytes, the size must be big enough already.  This avoids
108600         one potential size overflow calculation.  Check for size overflow
108601         when calculating temporary buffer size.  Free temporary buffer
108602         when done, if it was allocated with malloc; this plugs a memory
108603         leak.  Remove casts from void * to pointers, that are no longer
108604         needed now that we're assuming C89 or better.
108606         Merge error changes from glibc.
108608         * lib/error.c, error.h: Update copyright notice header to match glibc.
108609         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
108610         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
108611         Disable cancellation while printing error.
108612         * lib/error.h: Prepend __ to parameter names.
108614 2003-09-26  Jim Meyering  <jim@meyering.net>
108616         * lib/error.c (error_tail): Move some declarations
108617         into inner scope where the local variables are used.
108619 2003-09-26  Bruno Haible  <bruno@clisp.org>
108621         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
108622         stpncpy().
108623         Don't define stpncpy through config.h; it's now done through stpncpy.h.
108625 2003-09-26  Bruno Haible  <bruno@clisp.org>
108627         * lib/stpncpy.h (gnu_stpncpy): New declaration.
108628         (stpncpy): Define as alias for gnu_stpncpy.
108629         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
108631 2003-09-25  Simon Josefsson  <jas@extundo.com>
108633         * lib/xgetdomainname.h: New file.
108634         * lib/xgetdomainname.c: New file.
108636 2003-09-25  Simon Josefsson  <jas@extundo.com>
108637             Bruno Haible  <bruno@clisp.org>
108639         * modules/getdomainname: New file.
108640         * modules/xgetdomainname: New file.
108641         * MODULES.html.sh (func_all_modules): Add getdomainname,
108642         xgetdomainname.
108644 2003-09-25  Simon Josefsson  <jas@extundo.com>
108645             Bruno Haible  <bruno@clisp.org>
108647         * m4/getdomainname.m4: New file.
108649 2003-09-25  Simon Josefsson  <jas@extundo.com>
108650             Bruno Haible  <bruno@clisp.org>
108652         * lib/getdomainname.h: New file.
108653         * lib/getdomainname.c: New file.
108655 2003-09-25  Karl Berry  <karl@gnu.org>
108657         * lib/argp-fmtstream.c, argp-help.c: update from libc.
108659 2003-09-25  Karl Berry  <karl@gnu.org>
108661         * config/install-sh: update from automake.
108663 2003-09-25  Bruno Haible  <bruno@clisp.org>
108665         * modules/version-etc-2: New file, from modules/version-etc with
108666         modifications.
108667         * MODULES.html.sh (func_all_modules): Add version-etc-2.
108669 2003-09-25  Bruno Haible  <bruno@clisp.org>
108671         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
108672         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
108674 2003-09-24  Simon Josefsson  <jas@extundo.com>
108676         * modules/xgethostname: Add xgethostname.h.
108678 2003-09-24  Paul Eggert  <eggert@twinsun.com>
108680         * lib/linebuffer.c (freebuffer): Don't free the argument, just
108681         the buffer associated with the argument.  Bug reported by
108682         Simon Josefsson.
108684 2003-09-24  Paul Eggert  <eggert@twinsun.com>
108686         * README: Document assumptions that 'int' is at least 32 bits
108687         wide, that integer arithmetic is 2's complement without overflow,
108688         that there are no holes in integer values, that adding sizes of
108689         two nonoverlapping objects can't overflow, and that all-bits-zero
108690         yields scalar zero.  Fix spelling and capitalization typos.
108692 2003-09-19  Karl Berry  <karl@gnu.org>
108694         * lib/argp.h: update from libc.
108696 2003-09-17  Paul Eggert  <eggert@twinsun.com>
108698         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
108699         to avoid spurious warnings like "AC_RUN_IFELSE was called before
108700         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
108702 2003-09-17  Paul Eggert  <eggert@twinsun.com>
108704         * gnulib-tool: Use "test -h", not "test -L", for portability
108705         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
108706         (tags_regexp): Remove, since \| doesn't conform to POSIX.
108707         (sed_extract_prog): Issue s commands one-by-one, rather than
108708         using \| in one s command.
108710 2003-09-16  Paul Eggert  <eggert@twinsun.com>
108712         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
108713         input error, instead of returning NULL the next time we are called
108714         (and therefore losing track of errno).
108716 2003-09-16  Bruno Haible  <bruno@clisp.org>
108718         * gnulib-tool (func_create_testdir): Warn about duplicated
108719         dependencies.
108721 2003-09-15  Paul Eggert  <eggert@twinsun.com>
108723         * modules/argmatch, modules/fatal, modules/obstack,
108724         modules/xalloc, modules/xgethostname: Sort dependencies by
108725         importance, not alphabetically.
108727 2003-09-15  Paul Eggert  <eggert@twinsun.com>
108729         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
108730         fails, so that the caller gets the proper errno.
108732         * lib/readutmp.c (read_utmp): Likewise.
108733         Check for fstat error.  Close stream and free storage
108734         when failing.
108736 2003-09-14  Karl Berry  <karl@gnu.org>
108738         * config/srclist.txt (strdup.c): disable for c89 changes.
108740 2003-09-14  Jim Meyering  <jim@meyering.net>
108742         * lib/getloadavg.c: Correct cpp indentation.
108743         * lib/strdup.c: Likewise.
108744         * lib/vasnprintf.c: Likewise.
108746 2003-09-14  Bruno Haible  <bruno@clisp.org>
108748         * modules/fwriteerror: New file.
108749         * MODULES.html.sh (func_all_modules): Add fwriteerror.
108751 2003-09-14  Bruno Haible  <bruno@clisp.org>
108753         * lib/fwriteerror.h: New file.
108754         * lib/fwriteerror.c: New file.
108756 2003-09-12  Paul Eggert  <eggert@twinsun.com>
108758         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
108759         modules/xgethostname, modules/xalloc: Depend on exit.
108761 2003-09-12  Paul Eggert  <eggert@twinsun.com>
108763         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
108765         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
108766         and AC_MINIX, too, so that their extensions are available.
108768         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
108769         This macro has been superseded by gl_BACKUPFILE.
108771         More patches to assume C89 or better.
108773         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
108775         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
108776         unconditionally.
108777         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
108778         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
108779         Include <string.h>, <stdlib.h> unconditionally.
108780         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
108781         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
108782         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
108783         headers or for string.h.
108784         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
108785         or strtoul.
108787         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
108788         headers.
108789         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
108790         * m4/userspec.m4 (gl_USERSPEC): Likewise.
108791         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
108792         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
108793         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
108794         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
108795         memcpy, memset.
108796         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
108797         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
108798         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
108799         strtol.
108800         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
108801         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
108802         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
108803         strtoul.
108805 2003-09-12  Paul Eggert  <eggert@twinsun.com>
108807         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
108808         * lib/obstack.c [!defined _LIBC]: Likewise.
108809         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
108810         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
108811         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
108813         More changes to assume C89 or better.
108815         * lib/error.c (error_tail): Assume vprintf.
108817         * lib/argmatch.c (getenv): Remove decl.
108818         * lib/progreloc.c (get_full_program_name): Define via prototype.
108819         * lib/setenv.c (clearenv): Likewise.
108820         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
108821         needed.
108822         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
108823         (malloc, memcpy): Remove decls.
108824         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
108825         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
108826         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
108827         (memcpy): Remove macro.
108828         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
108829         (__P): Remove.  All uses removed.
108830         (PTR): Remove.  All uses changed to void *.
108831         (CHAR_BIT, NULL): Remove.
108832         (spaces, zeros, memset_space, memset_zero)
108833         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
108834         Remove.
108835         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
108836         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
108837         Define with prototype.
108838         Remove now-unnecessary prototype decl.
108839         (extra_args_spec): Assume ANSI C.  All uses changed.
108840         (extra_args_spec_iso): Remove.
108841         (my_strftime, emacs_strftimeu): Define via prototype.
108842         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
108843         unconditionally.
108844         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
108845         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
108846         (strtoul, strtol): Remove decls.
108847         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
108848         LONG_MAX): Remove.
108849         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
108850         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
108851         (LOCALE_PARAM_PROTO): New macro.
108852         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
108853         (INTERNAL (strtol), strtol): Define with a prototype.
108854         (PARAMS): Remove.  All uses removed.
108855         * lib/tempname.c: Include <string.h> unconditionally.
108856         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
108857         * lib/xgethostname.c (main): Define with a prototype.
108858         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
108859         Include <stdlib.h> unconditionally.
108860         (calloc, malloc, realloc, free): Remove decls.
108861         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
108862         Include <stdlib.h> unconditionally.  Sort include file names.
108863         (strtod): Remove.
108864         (xstrtod): Define with a prototype.
108865         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
108866         (strtol, strtoul): Remove decls.
108868 2003-09-11  Paul Eggert  <eggert@twinsun.com>
108870         More patches to assume C89 or better.
108871         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
108872         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
108873         string.h, memchr, STDC_HEADERS.
108875 2003-09-11  Paul Eggert  <eggert@twinsun.com>
108877         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
108878         Include <stdlib.h>, <string.h> unconditionally.
108879         Remove now-unnecessary cast to char *.
108880         * lib/strnlen.c: Include <string.h> unconditionally.
108881         * lib/yesno.c (yesno): Define with a prototype.
108883 2003-09-11  Bruno Haible  <bruno@clisp.org>
108885         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
108887 2003-09-10  Jim Meyering  <jim@meyering.net>
108889         * lib/error.c: Correct indentation of cpp directives.
108891 2003-09-10  Bruno Haible  <bruno@clisp.org>
108893         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
108894         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
108895         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
108896         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
108897         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
108898         <stdlib.h> and <string.h> checks.
108899         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
108900         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
108902 2003-09-10  Bruno Haible  <bruno@clisp.org>
108904         * lib/strcspn.c: Include <string.h> unconditionally.
108905         * lib/strpbrk.c: Include <string.h> unconditionally.
108906         * lib/strstr.c: Include <string.h> unconditionally.
108907         * lib/unicodeio.c: Include <string.h> unconditionally.
108908         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
108909         * lib/unsetenv.c: Likewise.
108910         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
108911         * lib/yesno.c: Include <stdlib.h> unconditionally.
108912         (rpmatch): Add prototype.
108914 2003-09-09  Paul Eggert  <eggert@twinsun.com>
108916         More patches to assume C89 or better.
108917         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
108918         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
108919         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
108920         or for string.h.
108921         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
108922         stdlib.h.
108923         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
108924         C headers.
108925         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
108926         string.h.
108927         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
108928         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
108929         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
108930         or for string.h.
108931         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
108932         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
108933         C headers.
108934         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
108935         memcpy.
108936         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
108937         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
108938         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
108939         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
108940         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
108941         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
108942         string.h, free.
108943         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
108944         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
108945         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
108946         C headers, or for string.h.
108947         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
108948         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
108949         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
108950         headers, memory.h, stdlib.h, string.h, strings.h.
108951         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
108952         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
108953         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
108954         strchr.
108955         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
108956         headers, memory.h, string.h.
108957         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
108958         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
108959         free.
108960         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
108961         headers.
108962         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
108963         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
108964         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
108965         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
108966         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
108968 2003-09-09  Paul Eggert  <eggert@twinsun.com>
108970         More K&R removal.
108972         * lib/acosl.c (main): Use a prototype.
108973         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
108974         tanl.c: Likewise.
108976         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
108978         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
108979         (getopt, etopt_long, getopt_long_only, _getopt_internal)
108980         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
108981         with a prototype.
108982         * lib/getopt.c (const): Remove macro.
108983         Include <string.h> unconditionally.
108984         (my_index): Remove; all uses changed to strchr.
108985         (strlen): Remove decl.
108986         (exchange): Remove forward decl; no longer needed.
108987         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
108988         Define with prototype.
108989         * lib/getopt1.c (const): Remove macro.
108990         (getopt_long, getopt_long_only, main): Define with prototype.
108992         * lib/getugroups.c: Include <string.h> unconditionally.
108994         * lib/getusershell.c: Include <stdlib.h> unconditionally.
108995         (getusershell, setusershell, endusershell, readname, main):
108996         Define with prototypes.
108998         * lib/group-member.c: Include group-member.h first.
108999         Include <stdlib.h> unconditionally.
109001         * lib/hard-locale.c: Include hard-locale.h first.
109002         Include <stdlib.h>, <string.h> unconditionally.
109004         * lib/hash.c (free, malloc): Remove decls.
109005         Include <stdlib.h> unconditionally.
109007         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
109008         (getenv): Do not declare.
109010         * lib/idcache.c: Include <string.h> unconditionally.
109012         * lib/long-options.c: Include long-options.h first, to test interface.
109013         Include <stdlib.h> unconditionally.
109015         * lib/makepath.c: Include makepath.h first, to test interface.
109016         Include <stdlib.h> and <string.h> unconditionally.
109018         * lib/linebuffer.c: Include <stdlib.h>.
109019         (free): Remove decl.
109021         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
109022         stddef.h. rpl_malloc returns void *, not char *.
109023         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
109024         prototype.
109026         * lib/md5.h: Include <limits.h> unconditionally.
109027         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
109028         (__P): Remove; all uses removed.
109029         * lib/md5.c: Include "md5.h" first.
109030         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
109031         md5_buffer, md5_process_bytes, md5_process_block):
109032         Define with prototypes.
109033         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
109034         * lib/sha.c: Include "sha.h" first.
109035         Include <stdlib.h>, <string.h> unconditionally.
109037         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
109038         * lib/memcmp.c (__ptr_t): Likewise.
109039         * lib/memrchr.c (__ptr_t): Likewise.
109040         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
109041         Include <string.h> unconditionally.
109042         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
109043         * lib/memchr.c: Include <stdlib.h> unconditionally.
109044         * lib/memchr.c (LONG_MAX): Remove.
109045         * lib/memrchr.c (LONG_MAX): Likewise.
109046         * lib/memchr.c (__memchr): Define via a prototype.
109047         * lib/memrchr.c (__memrchr): Likewise.
109048         * lib/memcmp.c (__P): Remove, and remove all uses.
109049         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
109050         Remove forward decls; no longer needed.
109051         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
109052         Use types required by C89 in prototype.
109054         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
109055         * lib/savedir.c: Likewise.
109056         * lib/mkdir.c (free): Remove decl.
109057         * lib/rmdir.c (rmdir): Define with a prototype.
109058         * lib/savedir.c: Include savedir.h first, to test interface.
109060         * lib/mktime.c (STDC_HEADERS): Remove.
109061         Include <stdlib.h>, <string.h> unconditionally.
109063         * lib/modechange.c: Include <stdlib.h> unconditionally.
109064         (malloc): Remove decl.
109066         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
109067         (free): Remove decl.
109069         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
109070         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
109071         (This type really should be intptr_t, but that's a C99ism.)
109072         (_obstack_memcpy): Remove: all uses changed to memcpy.
109073         Include <string.h> unconditionally.
109074         (struct obstack): Assume __STDC__ for types of members
109075         chunkfun, freefun, extra_arg.
109076         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
109077         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
109078         obstack_begin, obstack_specify_allocation,
109079         obstack_specify_allocation_with_arg, obstack_chunkfun,
109080         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
109081         Remove unprototyped decls and the macros that use them.
109082         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
109083         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
109084         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
109085         (defined __STDC__ && __STDC__)]:
109086         Remove nonprototyped code.
109087         Include <stdlib.h> unconditionally.
109088         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
109089         _obstack_allocated_p, _obstack_free, obstack_free,
109090         _obstack_memory_used, print_and_abort):
109091         Define using prototypes.
109092         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
109093         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
109094         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
109095         obstack_next_free, obstack_object_size, obstack_room) [0]:
109096         Remove unused, unprototyped code.
109098         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
109100         * lib/physmem.c (physmem_total, physmem_available, main): Define
109101         with prototypes.
109103         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
109104         (main): Define with a prototype.
109106         * lib/posixver.c (getenv): Remove decl.
109108         * lib/putenv.c (malloc): Returns void *, not char *.
109109         Include <string.h> unconditionally.
109110         (strchr, memcpy, NULL): Do not define.
109112         * lib/readtokens.c: Include readtokens.h first, to test interface.
109113         Include <stdlib.h>, <string.h> unconditionally.
109114         (init_tokenbuffer): Define with a prototype.
109116         * lib/regex.c (PARAMS): Remove.  All uses removed.
109117         All uses of _RE_ARGS removed, too.
109118         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
109119         unconditionally.
109120         (bzero): Assume memset exists.
109121         (memcmp, memcpy, NULL): Remove.
109122         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
109123         char, or assignments to local vars of type signed char.
109124         (init_syntax_once, PREFIX(extract_number_and_incr),
109125         PREFIX(print_partial_compiled_pattern),
109126         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
109127         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
109128         PREFIX(regex_grow_registers), PREFIX(regex_compile),
109129         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
109130         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
109131         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
109132         wcs_compile_range, byte_compile_range, truncate_wchar,
109133         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
109134         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
109135         count_mbs_length, wcs_re_match_2_internal,
109136         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
109137         PREFIX(alt_match_null_string_p),
109138         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
109139         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
109140         regfree, PREFIX(extract_number)): Define with prototype.  Remove
109141         now-unnecessary declaration, if any.
109142         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
109143         regcomp, regexec):
109144         Remove now-unnecessary casts among pointer types.
109145         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
109147         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
109148         (free): Remove decl.
109150         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
109152         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
109153         (free): Remove decl.
109155         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
109156         * lib/xgetcwd.c: Likewise.
109158         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
109159         (free): Remove decl.
109161         * lib/strchrnul.c (strchrnul): Define with a prototype.
109162         Fix bug: c_in was not converted to char before searching.
109164         The following changes are not K&R related:
109166         * lib/group-member.h: Include <sys/types.h>, so that this file is
109167         self-contained.
109168         * lib/makepath.h: Likewise.
109170         * lib/getusershell.c (readname, default_index, line_size, readname):
109171         Use size_t, not int, for sizes.
109172         (readname): If the size overflows, report an error instead of
109173         looping forever.
109175 2003-09-09  Paul Eggert  <eggert@twinsun.com>
109177         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
109178         libc.
109180 2003-09-09  Paul Eggert  <eggert@twinsun.com>
109182         * README: New section: portability guidelines.
109184 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
109186         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
109187         C89 spec.
109189 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
109191         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
109193 2003-09-08  Paul Eggert  <eggert@twinsun.com>
109195         Assume C89 or better; remove K&R cruft.
109196         A few of these changes were first proposed by Derek Robert Price
109197         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
109199         * lib/addext.c: Include <string.h> unconditionally.
109200         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
109201         Don't declare getenv or malloc.
109203         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
109204         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
109205         (NULL): Remove.
109206         (find_stack_direction, alloca): Use prototypes.
109208         * lib/atexit.c (atexit): Define using a prototype.
109210         * lib/basename.c, dirname.c, stripslash.c:
109211         Include <string.h> unconditionally.
109213         * lib/bcopy.c: Include <stddef.h>.
109214         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
109216         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
109218         * lib/error.h (error, error_at_line, error_print_progname)
109219         [! (defined (__STDC__) && __STDC__)]: Remove decls.
109220         * lib/error.c: Include error.h first, to check interface.
109221         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
109222         (VA_START): Remove; all uses changeed to va_start.
109223         (exit, strerror): Remove decls.
109224         (error_print_progname): Prototype uncondionally.
109225         Don't include <errno.h>; no longer needed.
109226         (private_strerror): Remove.
109227         (error_tail): Always define.
109228         (error, error_at_line): Assume C89 or better; always use prototypes.
109229         * lib/fatal.c: Include "fatal.h" first, to test interface.
109230         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
109231         (VA_START): Remove; all uses changed to va_start.
109232         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
109233         this case.
109234         (exit): Remove decl.
109235         (fatal): Prototype unconditionally.  Assume va_start works.
109236         Abort at end, to pacify gcc.
109238         * lib/euidaccess.c (main): Define with a prototype.
109240         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
109242         * lib/exitfail.c: Include <stdlib.h> unconditionally.
109244         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
109245         prototypes.
109246         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
109247         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
109248         (getenv): Remove decl.
109249         (fnmatch): Define using a prototype.
109250         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
109251         (FCT): Define using a prototype.
109253         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
109255         * lib/gethostname.c: Include <stddef.h>.
109256         (gethostname): Define with prototype.  Length is size_t, not int.
109258 2003-09-08  Paul Eggert  <eggert@twinsun.com>
109260         Assume C89 or better; remove K&R cruft.
109261         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
109262         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
109263         string.h, getenv, malloc.
109264         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
109265         headers.
109266         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
109267         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
109268         do not check for strerror.
109269         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
109270         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
109271         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
109272         do not check for doprnt or vprintf.
109273         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
109274         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
109276 2003-09-08  Paul Eggert  <eggert@twinsun.com>
109278         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
109279         getversion.c should have been removed then, but was accidentally
109280         preserved.
109282         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
109283         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
109285 2003-09-08  Karl Berry  <karl@gnu.org>
109287         * config/config.sub, config.guess, srclistvars.sh: update from savannah
109288                 config, forget about prep.
109290         * config/depcomp, missing: update from automake.
109292 2003-09-07  Paul Eggert  <eggert@twinsun.com>
109294         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
109295         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
109297 2003-09-07  Paul Eggert  <eggert@twinsun.com>
109299         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
109300         copy_tm_result.  Bug reported by Simon Josefsson in
109301         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
109303 2003-09-06  Paul Eggert  <eggert@twinsun.com>
109305         * m4/time_r.m4: New file.
109306         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
109307         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
109308         is. Check for timegm declaration.
109309         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
109310         Do not check for gmtime_r.
109311         Replace mktime if __mktime_internal does not exist and if mktime
109312         hasn't been replaced already.
109314 2003-09-06  Paul Eggert  <eggert@twinsun.com>
109316         * lib/time_r.c, lib/time_r.h: New files.
109318         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
109319         __localtime_r.
109320         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
109321         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
109323         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
109324         __gmtime_r.
109325         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
109326         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
109327         Include <time_r.h>.
109329         * lib/timegm.c: Switch to glibc implementation, with the following
109330         changes:
109331         [defined HAVE_CONFIG_H]: Include <config.h>.
109332         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
109333         (__mktime_internal) [!defined _LIBC]: New decl.
109334         (__gmtime_r) [!defined _LIBC]: New macro and function.
109335         (timegm): Use a prototype, since gnulib assumes C89.
109336         Do not bother declaring tmp to be const, as it's not really usefu.
109337         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
109338         (timegm): Declare only if HAVE_DECL_TIMEGM.
109340 2003-09-06  Paul Eggert  <eggert@twinsun.com>
109342         * MODULES.html.sh (func_all_modules): Add time_r.
109343         * modules/time_r: New file.
109344         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
109345         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
109347 2003-09-03  Paul Eggert  <eggert@twinsun.com>
109349         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
109350         Bug reported by Lute Kamstra in
109351         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
109353         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
109354         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
109355         course with correspondingly smaller numbers for tomorrow and
109356         yesterday.  From Tadayoshi Funaba.  Originally installed into
109357         sh-utils on 1999-08-07, but the patch got lost (I guess during the
109358         coreutils merge?).
109360 2003-08-31  Simon Josefsson  <jas@extundo.com>
109362         * modules/timegm: New file.
109363         * MODULES.html.sh (func_all_modules): Add timegm.
109365 2003-08-31  Simon Josefsson  <jas@extundo.com>
109367         * m4/timegm.m4: New file.
109369 2003-08-31  Simon Josefsson  <jas@extundo.com>
109371         * lib/timegm.h: New file.
109372         * lib/timegm.c: New file.  Based on
109373         wget-1.8.2/src/http.c:mktime_from_utc.
109375 2003-08-31  Karl Berry  <karl@gnu.org>
109377         * lib/argp.h: update from libc.
109379 2003-08-28  Bruno Haible  <bruno@clisp.org>
109381         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
109382         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
109383         followed by '#define fnmatch fnmatch_posix' gives an error.
109385 2003-08-28  Bruno Haible  <bruno@clisp.org>
109387         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
109388         warning on QNX, which defines O_BINARY to 000000.
109390 2003-08-27  Jim Meyering  <jim@meyering.net>
109392         * m4/mkstemp.m4: Require that the system mkstemp be able to create
109393         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
109394         would fail after 32.  Reported by Danny Levinson.  Details here:
109395         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
109397 2003-08-24  Bruno Haible  <bruno@clisp.org>
109399         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
109400         MSVC7 <stdio.h> is included later.
109402 2003-08-22  Simon Josefsson  <jas@extundo.com>
109404         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
109406 2003-08-20  Karl Berry  <karl@gnu.org>
109408         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
109410 2003-08-20  Bruno Haible  <bruno@clisp.org>
109412         * modules/progname: New file.
109413         * MODULES.html.sh (func_all_modules): Add progname.
109415 2003-08-20  Bruno Haible  <bruno@clisp.org>
109417         * lib/progname.h: New file, from GNU gettext.
109418         * lib/progname.c: New file, from GNU gettext.
109419         * lib/progreloc.c: New file, from GNU gettext.
109421 2003-08-19  Jim Meyering  <jim@meyering.net>
109423         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
109424         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
109426 2003-08-19  Bruno Haible  <bruno@clisp.org>
109428         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
109429         more.
109431 2003-08-19  Bruno Haible  <bruno@clisp.org>
109433         * lib/xstrdup.c: Assume <string.h> exists.
109435 2003-08-18  Paul Eggert  <eggert@twinsun.com>
109437         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
109438         in makefile rules.
109440 2003-08-18  Jim Meyering  <jim@meyering.net>
109442         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
109443         * m4/lib-ld.m4: Likewise.
109445 2003-08-18  Jim Meyering  <jim@meyering.net>
109447         * lib/setenv.h: Indent nested cpp directive.
109448         * lib/vasnprintf.c: Remove trailing blanks.
109450 2003-08-17  Simon Josefsson  <jas@extundo.com>
109452         * modules/xstrndup: New file.
109453         * MODULES.html.sh (func_all_modules): Add xstrndup.
109455 2003-08-17  Simon Josefsson  <jas@extundo.com>
109457         * modules/argp: Fix autoconf macro name. Add more dependencies.
109459 2003-08-17  Simon Josefsson  <jas@extundo.com>
109461         * m4/xstrndup.m4: New file.
109463 2003-08-17  Simon Josefsson  <jas@extundo.com>
109465         * m4/argp.m4: New file.
109467 2003-08-17  Simon Josefsson  <jas@extundo.com>
109468             Bruno Haible  <bruno@clisp.org>
109470         * lib/xstrndup.h: New file.
109471         * lib/xstrndup.c: New file.
109473 2003-08-17  Bruno Haible  <bruno@clisp.org>
109475         * modules/strndup (Files, Include): Add lib/strndup.h.
109477 2003-08-17  Bruno Haible  <bruno@clisp.org>
109479         * modules/euidaccess (Files): Add lib/euidaccess.h.
109481 2003-08-17  Bruno Haible  <bruno@clisp.org>
109483         * lib/strndup.h: New file.
109485 2003-08-17  Bruno Haible  <bruno@clisp.org>
109487         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
109488         like AC_GNU_SOURCE.
109489         * modules/extensions (configure.ac): Comment out the invocation of
109490         gl_USE_SYSTEM_EXTENSIONS.
109492 2003-08-16  Paul Eggert  <eggert@twinsun.com>
109494         Merges from coreutils, etc.
109495         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
109496         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
109497         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
109498         fixing a typo.
109499         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
109500         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
109502 2003-08-16  Paul Eggert  <eggert@twinsun.com>
109504         Document merge from coreutils.
109505         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
109506         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
109507         * modules/utime: Add m4/utimes-null.m4.
109509 2003-08-16  Paul Eggert  <eggert@twinsun.com>
109511         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
109512         space, undoing this 2003-08-12 change:
109513         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
109515 2003-08-16  Paul Eggert  <eggert@twinsun.com>
109517         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
109518         strtoul.c from libc, undoing this 2003-08-12 change:
109519         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
109521 2003-08-16  Jim Meyering  <jim@meyering.net>
109523         Merges from coreutils.
109524         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
109525         prefix.  Adjust cache variables similarly.  Create 500 rather than
109526         just 300 files, to exercise bug on Darwin6.5, too.
109527         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
109528         $missing_dir.
109529         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
109530         AM_SYS_POSIX_TERMIOS.
109531         Reported by mkc@mathdogs.com.
109532         Also change use of $am_cv_sys_posix_termios
109533         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
109534         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
109535         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
109536         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
109537         in /proc/mounts until it finds one with matching device number.  This
109538         is unnecessary when the FILE argument *is* a mount point.  No stat call
109539         is necessary in that case.  So, disable the statvfs-testing code on
109540         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
109541         as RedHat bug# 84846.
109542         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
109543         to 1MB, so as not to render systems with no stack size limit (e.g.,
109544         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
109545         Include <unistd.h>.  On some systems,
109546         it is required for the definition of _SC_PAGESIZE.
109548 2003-08-16  Jim Meyering  <jim@meyering.net>
109550         Merge from coreutils.
109551         * lib/xstrtoimax.c: #else #if -> #elif.
109552         * lib/xstrtoumax.c: Likewise.
109554 2003-08-16  Jim Meyering  <jim@meyering.net>
109556         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
109557         * m4/utimes.m4: Removed.
109558         * m4/utimes-null.m4: Renamed from utimes.m4.
109560         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
109561         to 1MB, so as not to render systems with no stack size limit (e.g.,
109562         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
109563         Include <unistd.h>.  On some systems,
109564         it is required for the definition of _SC_PAGESIZE.
109566 2003-08-16  Jim Meyering  <jim@meyering.net>
109567         and Paul Eggert  <eggert@cs.ucla.edu>
109569         Merges from coreutils, etc.
109571         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
109572         using the latest version from cvs.  This avoids problems with #line
109573         directives using a vendor (Sun) compiler.
109574         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
109575         Don't set GETGROUPS_LIB here; now it's
109576         done via getgroups.m4's wrapper function.
109577         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
109578         rather than just in sh-util/configure.in, so that the
109579         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
109580         same.
109581         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
109582         AC_FUNC_GETLOADAVG where to find getloadavg.c.
109583         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
109584         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
109585         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
109586         Remove code that is now done by the newly-required macros.
109587         Append $(EXEEXT) to DF_PROG.
109588         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
109589         Do not invoke or require the following here,
109590         since prereq.m4 or some gnulib .m4 now does this for us:
109591         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
109592         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
109593         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
109594         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
109595         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
109596         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
109597         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
109598         AC_FUNC_OBSTACK.
109599         Do not replace the following functions, as this is now the job
109600         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
109601         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
109602         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
109603         atexit getpass, strdup, getpagesize.
109604         Replace 'raise'.
109605         Do not check for the following functions, as this is now the job
109606         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
109607         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
109608         setregid.
109609         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
109610         Check for sys/sysctl.h.
109611         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
109612         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
109613         of checking for ssize_t ourselves.
109615         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
109616         Require every macro that gnulib/modules/* suggests for us.
109617         (jm_PREREQ_ADDEXT): New macro.
109618         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
109619         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
109621         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
109622         (gl_PHYSMEM): Use it.
109623         Also check for `table' function.
109624         Check for new headers and functions.
109625         Add check for sys/sysmp.h.
109626         With suggestions from Kaveh Ghazi.
109627         Ignore headers that are present but cannot be compiled.  This
109628         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
109629         C 5.4.
109631 2003-08-15  Paul Eggert  <eggert@twinsun.com>
109633         Document merge from coreutils.
109634         * modules/userspec: Depend on posixver.
109635         * modules/strftime: Depend on tzset.
109637 2003-08-15  Paul Eggert  <eggert@twinsun.com>
109639         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
109640         rather than tab, after '#' in shell-script copyright notices.
109641         Suggested by Bruno Haible.
109643 2003-08-15  Paul Eggert  <eggert@twinsun.com>
109645         * config/srclist-update: Use three spaces, rather than tab, after '#'
109646         in shell-script copyright notices.  Suggested by Bruno Haible.
109647         Remove unnecessary parenthesization in regular expression.
109649 2003-08-15  Jim Meyering  <jim@meyering.net>
109651         Merge from coreutils.
109652         * lib/xgethostname.c: Include <stdlib.h>.
109653         (xghostname): Don't exit for anything other than memory-related
109654         failure; just return NULL.
109655         * lib/userspec.c: Include "posixver.h".
109656         (parse_user_spec): Accept `.' as a separator only
109657         in pre-POSIX-200112 mode.
109658         * lib/strtoimax.c: Use #elif rather than #else #if.
109659         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
109660         Remove function, now that we can rely on a working tzset function.
109661         [!_LIBC]: Ensure that the required autoconf test has been run.
109662         [!defined _NL_CURRENT && HAVE_STRFTIME]:
109663         Use underlying_strftime for %r.
109664         * lib/sha.c: Merge in some clean-up and optimization changes from
109665         glibc.
109666         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
109667         Ensure that it is a multiple of 64.
109668         Rearrange loop exit tests so as to avoid performing an
109669         additional fread after encountering an error or EOF.
109670         * lib/realloc.c: Update copyright date.
109672 2003-08-15  Jim Meyering  <jim@meyering.net>
109673         and Paul Eggert  <eggert@twinsun.com>
109675         Merge from coreutils.
109676         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
109677         member but strut utmpx does not.  Needed for AIX 4.3.3.
109678         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
109680 2003-08-15  Jim Meyering  <jim@meyering.net>
109681         and Paul Eggert  <eggert@cs.ucla.edu>
109683         Merges from coreutils, etc.
109684         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
109685         Require gl_FUNC_TZSET_CLOBBER.
109686         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
109687         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
109688         members.
109690 2003-08-14  Paul Eggert  <eggert@twinsun.com>
109692         Help the merge from coreutils.
109693         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
109694         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
109695         * m4/tzset.m4: Use it too.
109697 2003-08-14  Paul Eggert  <eggert@twinsun.com>
109699         * modules/tzset: New file.
109701 2003-08-14  Jim Meyering  <jim@meyering.net>
109703         Merges from coreutils.
109704         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
109705         variable names, rather than @FNMATCH_H@.
109706         * modules/alloca: Likewise for $(ALLOCA_H).
109708         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
109709         the three copies of the literal target, `fnmatch.h'.
109710         * modules/alloca (alloca.h): Likewise.
109712 2003-08-14  Jim Meyering  <jim@meyering.net>
109714         Merge from coreutils.
109715         * m4/tzset.m4: New file.
109716         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
109717         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
109718         otherwise, AIX 5.1 systems would end up using the latter.
109719         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
109720         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
109721         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
109722         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
109724 2003-08-14  Jim Meyering  <jim@meyering.net>
109726         Merge from coreutils.
109727         * lib/obstack.h: Whitespace changes.
109728         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
109729         and xcalloc return values.
109730         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
109731         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
109732         hang on OSF/1 5.1 for DIR on both local and remote file systems.
109733         Reported by (and fix confirmed by) Nelson H. F. Beebe.
109734         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
109735         error from mntctl.
109736         Use mntctl's return value to drive the entry-processing loop, since
109737         we can't rely on the value of the vmt_length member in the last
109738         entry.  On some systems doing so could result in exhausting
109739         virtual memory.  Based in part on a patch from Mike Jetzer.
109741 2003-08-14  Jim Meyering  <jim@meyering.net>
109742         and Paul Eggert  <eggert@twinsun.com>
109744         Merges from coreutils, plus other fixes.
109745         * lib/physmem.c: Merge in portability changes from gcc/libiberty
109746         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
109747         for credits and details.  Thanks to Kaveh Ghazi for helping
109748         to keep these files in sync.
109749         (ARRAY_SIZE): Define it.
109750         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
109751         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
109752         (memcasecmp): Don't assume size_t fits in unsigned int.
109753         Remove casts and duplicate code.
109754         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
109755         (memcpy): Remove definition.
109756         Merge in some clean-up and optimization changes from glibc.
109757         [BLOCKSIZE]: Move definition to top of file.
109758         Ensure that it is a multiple of 64.
109759         Rearrange loop exit tests so as to avoid performing an
109760         additional fread after encountering an error or EOF.
109761         * lib/md5.h (md5_uintptr): Define.
109762         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
109763         return to the initial working directory.  Preserve errno
109764         for caller.
109765         * lib/idcache.c: Include "xalloc.h".
109766         (xmalloc, xrealloc): Remove decls.
109767         (getuser): Remove casts no longer required in C89.
109768         * lib/human.c: Include stdio.h, for sprintf.
109769         * lib/group-member.c: Include "xalloc.h".
109770         (xmalloc, xrealloc): Remove decls.
109771         (get_group_info): Remove casts no longer required in C89.
109772         * lib/getusershell.c (readname): Remove casts no longer required in
109773         C89.
109774         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
109775         * lib/getline.c: Whitespace fix, from coreutils.
109777 2003-08-13  Paul Eggert  <eggert@twinsun.com>
109779         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
109780         Check for isascii.
109782         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
109783         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
109784         Undo previous (whitespace-only) change.
109786 2003-08-13  Paul Eggert  <eggert@twinsun.com>
109788         * lib/exclude.c: Include <ctype.h>
109789         (IN_CTYPE_DOMAIN): New macro.
109790         (is_space): New fn.
109791         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
109792         and empty lines.
109794         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
109795         Undo previous (whitespace-only) change.
109797 2003-08-13  Paul Eggert  <eggert@twinsun.com>
109799         * config/srclist-update: Change update back to the old behavior,
109800         leaving whitespace alone.  Use one 'sed' command rather than a
109801         pipeline.
109802         (fixlicense): Now a variable, not a function.
109803         (remove_trailing_blanks): Remove.
109804         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
109805         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
109806         Undo previous (whitespace-only) change.
109808 2003-08-12  Paul Eggert  <eggert@twinsun.com>
109810         Merge from coreutils.
109811         * modules/euidaccess: Add lib_SOURCES, include for new
109812         file euidaccess.h
109814 2003-08-12  Paul Eggert  <eggert@twinsun.com>
109816         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
109817         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
109818         Normalize leading white space and remove trailing white space.
109820         Merge from coreutils
109821         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
109823         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
109824         0.12.1.  These files are now being upgraded automatically by
109825         ../config/srclist-update.
109827 2003-08-12  Paul Eggert  <eggert@twinsun.com>
109829         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
109830         Normalize leading white space and remove trailing white space.
109831         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
109832         notice, as per ../config/srclist-update.
109834         Merge from coreutils.
109835         * lib/euidaccess.h: New file.
109836         * lib/euidaccess.c: Include it.
109837         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
109838         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
109839         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
109841 2003-08-12  Paul Eggert  <eggert@twinsun.com>
109843         * config/srclist-update: Add copyright notice.
109844         (remove_id_lines, remove_trailing_blanks): New constants.
109845         (fixfile): Use them to normalize spacing a bit in copied files.
109846         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
109847         Normalize leading white space and remove trailing white space.
109849         * config/texinfo.tex: Sync with texinfo.
109851         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
109852         strtoul.c from libc, to merge coreutils whitespace changes.
109854         * config/srclist.txt: Get the following m4 files from gettext:
109855         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
109856         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
109857         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
109858         wint_t.m4.
109860 2003-08-12  Karl Berry  <karl@gnu.org>
109862         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
109863         been made.
109865 2003-08-11  Paul Eggert  <eggert@twinsun.com>
109867         * modules/gnu-source, m4/gnu-source.m4:
109868         Remove; we're assuming Autoconf 2.54 or later now.
109869         Suggested by Bruno Haible.
109870         * MODULES.html.sh (func_all_modules): Remove gnu-source.
109872 2003-08-11  Bruno Haible  <bruno@clisp.org>
109874         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
109876 2003-08-11  Bruno Haible  <bruno@clisp.org>
109878         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
109879         (vasnprintf): Use it instead of wcslen.
109881 2003-08-11  Bruno Haible  <bruno@clisp.org>
109883         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
109884         value to ensure that _Bool promotes to int. Use #define for _Bool when
109885         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
109887 2003-08-10  Karl Berry  <karl@gnu.org>
109889         * lib/regex.h: update from libc (whitespace fix).
109891 2003-08-09  Paul Eggert  <eggert@twinsun.com>
109893         Merge some files from coreutils.  These changes were
109894         originally made by Jim Meyering.
109895         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
109896         many older Unixes require this.
109897         * lib/alloca.c (alloca): Remove cast to argument of free;
109898         no longer needed in C89.
109899         * lib/alloca_.h, regex.h: Fix white space to match
109900         what GNU indent does.
109902 2003-08-09  Paul Eggert  <eggert@twinsun.com>
109904         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
109905         apparently Emacs's Unicode mode got confused before my 2003-08-05
109906         checkin.
109908 2003-08-08  Paul Eggert  <eggert@twinsun.com>
109910         * m4/extensions.m4: New file.
109911         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
109912         Require gl_USE_SYSTEM_EXTENSIONS.
109913         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
109914         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
109916 2003-08-08  Paul Eggert  <eggert@twinsun.com>
109918         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
109919         * modules/extensions, modules/gnu-source: New files.
109920         * modules/timespec, modules/unlocked-io: Depend on extensions.
109922 2003-08-07  Paul Eggert  <eggert@twinsun.com>
109924         * modules/restrict: New file.
109925         * MODULES.html.sh (func_all_modules): Add restrict.
109926         * modules/regex: Depend on restrict.
109928 2003-08-07  Paul Eggert  <eggert@twinsun.com>
109930         * m4/restrict.m4: New file.
109931         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
109933 2003-08-07  Bruno Haible  <bruno@clisp.org>
109935         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
109936         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
109938 2003-08-07  Bruno Haible  <bruno@clisp.org>
109940         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
109941         makes the module 'getndelim2' compatible with the module 'getline'.
109943 2003-08-05  Paul Eggert  <eggert@twinsun.com>
109945         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
109946         byte with "\201" to avoid glitches when editing that source file
109947         with multi-gnome-terminal.
109949 2003-08-05  Paul Eggert  <eggert@twinsun.com>
109951         * lib/bumpalloc.h: Remove.
109953 2003-08-05  Paul Eggert  <eggert@twinsun.com>
109955         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
109956         * modules/bumpalloc: Remove.
109958 2003-08-04  Paul Eggert  <eggert@twinsun.com>
109960         * lib/getloadavg.c: Change copyright notice and spacing to conform to
109961         GNU coding style.
109963         Merge from coreutils.
109964         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
109965         1. From glibc.
109966         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
109967         from Karl Berry, implemented by Jim Meyering.
109968         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
109969         from Dmitry V. Levin.
109970         Remove anachronistic cast of xrealloc.
109971         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
109972         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
109973         type. Otherwise, it wouldn't compile with at least /bin/cc on
109974         ymp-cray-unicos9.0.2.X.
109975         Combine two mostly-identical uses of alloca into one.
109976         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
109978 2003-08-04  Dave Love  <d.love@dl.ac.uk>
109980         [From Emacs.]
109982         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
109983         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
109984         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
109985         obsolete NLIST_NAME_UNION.
109986         [__GNU__]: Undef BSD and FSCALE.
109987         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
109989 2003-08-03  Paul Eggert  <eggert@twinsun.com>
109991         * lib/stdbool_.h (_Bool): Make it signed char, instead of
109992         an enum type, so that it's guaranteed to promote to int.  See:
109993         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
109995 2003-08-03  Karl Berry  <karl@gnu.org>
109997         * config/depcomp: update from automake.
109999 2003-07-31  Paul Eggert  <eggert@twinsun.com>
110001         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
110002         (strerror): Don't assume that a printable int fits in 14 bytes.
110004 2003-07-31  Bruno Haible  <bruno@clisp.org>
110006         * modules/getpass-gnu: New file.
110007         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
110009 2003-07-31  Bruno Haible  <bruno@clisp.org>
110011         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
110013 2003-07-24  Karl Berry  <karl@gnu.org>
110015         * config/missing: update from automake.
110017 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
110018             Bruno Haible  <bruno@clisp.org>
110020         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
110021         * lib/getline.c (getline, getdelim): Likewise.
110022         Remove _GNU_SOURCE define; now it's defined in config.h through
110023         m4/getline.m4.
110025 2003-07-23  Karl Berry  <karl@gnu.org>
110027         * config/config.sub: update from prep.
110029 2003-07-22  Paul Eggert  <eggert@twinsun.com>
110031         * modules/xalloc (Depends-on): Add exitfail.
110032         * modules/xmemcoll: Likewise.
110034 2003-07-22  Paul Eggert  <eggert@twinsun.com>
110036         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
110037         over-parenthesization in macros.
110039         Sync with coreutils.
110041         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
110042         required by C99.
110044         Use `exit_failure' for xalloc and xmemcoll instead of their own
110045         private exit-failure variables.
110046         * lib/xalloc.h (xalloc_exit_failure): Remove.
110047         * lib/xmalloc.c: Likewise.  Include exitfail.h.
110048         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
110049         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
110050         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
110051         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
110053 2003-07-20  Jim Meyering  <jim@meyering.net>
110055         * modules/closeout (Depends-on): Add exitfail.
110056         Suggestion from Bruno Haible.
110058 2003-07-19  Karl Berry  <karl@gnu.org>
110060         * config/config.sub: update from prep.
110062 2003-07-18  Paul Eggert  <eggert@twinsun.com>
110064         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
110065         Remove.
110066         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
110067         to test that it can stand by itself.  Include "exitfail.h".
110068         Clients should set exit_failure instead.
110069         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
110071 2003-07-18  Bruno Haible  <bruno@clisp.org>
110073         * modules/getndelim2: New file.
110074         * modules/getline: Share files with module getndelim2.
110075         * modules/getnline: Depend on getndelim2 instead of sharing files with
110076         it. Add getnline.c to lib_SOURCES.
110077         * MODULES.html.sh (func_all_modules): Add getndelim2.
110079 2003-07-18  Bruno Haible  <bruno@clisp.org>
110081         * m4/getndelim2.m4: New file.
110082         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
110083         invoke gl_PREREQ_GETNDELIM2.
110084         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
110085         gl_PREREQ_GETNDELIM2.
110086         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
110087         gl_GETNDELIM2.
110089 2003-07-18  Bruno Haible  <bruno@clisp.org>
110091         * lib/getndelim2.h: New file.
110092         * lib/getndelim2.c: Make into a module of its own. Include config.h,
110093         getndelim2.h.
110094         (getndelim2): Make non-static. Change return type to ssize_t.
110095         * lib/getline.h: Change argument names.
110096         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
110097         * lib/getnline.c: Include getndelim2.h.
110099 2003-07-18  Andreas Schwab  <schwab@suse.de>
110101         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
110103 2003-07-17  Karl Berry  <karl@gnu.org>
110105         * config/config.sub: update from prep.
110107 2003-07-17  Bruno Haible  <bruno@clisp.org>
110109         * modules/getnline: New file.
110110         * modules/getline: Add lib/getndelim2.c to source file list.
110111         * MODULES.html.sh (func_all_modules): Add getnline.
110113 2003-07-17  Bruno Haible  <bruno@clisp.org>
110115         * m4/getnline.m4: New file.
110117 2003-07-17  Bruno Haible  <bruno@clisp.org>
110119         * m4/Makefile.am.in: Remove file.
110120         * m4/Makefile.am: Remove file.
110121         * m4/Makefile.in: Remove file.
110123 2003-07-17  Bruno Haible  <bruno@clisp.org>
110125         * lib/getnline.h: New file.
110126         * lib/getnline.c: New file.
110127         * lib/getndelim2.c: New file, extracted from getline.c.
110128         (getndelim2): Renamed from getdelim2, with added nmax argument.
110129         * lib/getline.c: Include getndelim2.c.
110130         (getdelim2): Moved out to getndelim2.c.
110131         (getline, getdelim): Update.
110133 2003-07-17  Bruno Haible  <bruno@clisp.org>
110135         * lib/Makefile.am: Remove file.
110136         * lib/Makefile.in: Remove file.
110138 2003-07-17  Bruno Haible  <bruno@clisp.org>
110140         * configure.in: Remove file.
110141         * Makefile.in: Remove file.
110143 2003-07-17  Bruno Haible  <bruno@clisp.org>
110145         * MODULES.html.sh: Put the </BODY> right before </HTML>.
110147 2003-07-16  Karl Berry  <karl@gnu.org>
110149         * config/srclist-update: was running fixlicense twice, which caused
110150                 texinfo.tex to be nullified for some reason.  Simplify,
110151                 $gplsrc is no longer needed as far as I can see?
110153 2003-07-16  Jim Meyering  <jim@meyering.net>
110155         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
110157 2003-07-15  Paul Eggert  <eggert@twinsun.com>
110159         * config/srclist.txt: Get the following files from gettext-runtime/intl
110160         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
110161         ref-del.sin.  From Bruno Haible.
110162         * config/srclist-update (fixfile): Change grep pattern again, since the
110163         previous fix didn't work (there was another trailing $).  Use
110164         '[$]' to escape the $s.
110166 2003-07-15  Karl Berry  <karl@gnu.org>
110168         * lib/vasnprintf.c: update from gettext.
110170 2003-07-15  Karl Berry  <karl@gnu.org>
110172         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
110173         gets expanded when surrounded by '$'.
110175 2003-07-15  Jim Meyering  <jim@meyering.net>
110177         * modules/save-cwd: Don't depend on error.  From Derek Price.
110179 2003-07-15  Jim Meyering  <jim@meyering.net>
110181         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
110183 2003-07-14  Simon Josefsson  <jas@extundo.com>
110185         * modules/mempcpy: New file.
110186         * MODULES.html.sh (func_all_modules): Add mempcpy.
110188 2003-07-14  Simon Josefsson  <jas@extundo.com>
110190         * m4/mempcpy.m4: New file.
110192 2003-07-14  Simon Josefsson  <jas@extundo.com>
110194         * lib/mempcpy.h: New file.
110195         * lib/mempcpy.c: New file.
110197 2003-07-14  Paul Eggert  <eggert@twinsun.com>
110199         * modules/getdate, modules/posixtm: Depend on mktime.
110201 2003-07-14  Paul Eggert  <eggert@twinsun.com>
110203         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
110204         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
110205         unicodeio.c, unicodeio.h, unlocked-io.h:
110206         Switch from LGPL to GPL.
110208 2003-07-14  Paul Eggert  <eggert@twinsun.com>
110210         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
110211         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
110212         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
110213         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
110214         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
110215         updated automatically by ../config/srclist-update.  This changes
110216         their license from LPGL to GPL.
110218 2003-07-14  Paul Eggert  <eggert@twinsun.com>
110220         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
110221         assumed to refer to the root of the most recent stable gettext version.
110222         * config/srclistvars.sh: Add defaults for eggert.
110223         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
110224         Match "This program" as well as "The program".  This is needed
110225         for gettext.
110227 2003-07-14  Jim Meyering  <jim@meyering.net>
110229         Don't emit diagnostics.  Let callers do that.
110230         * lib/save-cwd.c: Don't include "error.h".
110231         (save_cwd): Don't call error.  Ensure that errno is valid
110232         when returning nonzero.
110234         * lib/save-cwd.h (restore_cwd): Update prototype.
110235         * lib/save-cwd.c (restore_cwd): Remove two parameters.
110236         Simplify.  Don't call error upon failure.  Let callers do that.
110237         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
110238         when auditing is enabled.  But don't bother updating the #if.
110240 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
110242         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
110243         it breaks C++ compilation.
110244         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
110246 2003-07-10  Simon Josefsson  <jas@extundo.com>
110248         * modules/strchrnul (Makefile.am): Add strchrnul.h.
110250 2003-07-10  Jim Meyering  <jim@meyering.net>
110252         * m4/clock_time.m4: Remove trailing blank.
110253         * m4/intmax_t.m4: Likewise.
110255 2003-07-10  Jim Meyering  <jim@meyering.net>
110257         * lib/vasnprintf.c: Remove trailing blanks.
110258         Make cpp indentation consistent.
110260 2003-07-09  Paul Eggert  <eggert@twinsun.com>
110262         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
110263         posixver.c, strftime.c, strnlen.c, strverscmp.c:
110264         Switch from LGPL to GPL.
110266 2003-07-09  Paul Eggert  <eggert@twinsun.com>
110268         * config/srclist.txt: Sort sublists.  Add
110269         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
110270         that differ from gnulib for one reason or another; we'd like this list
110271         to be smaller but for now let's document what we have.
110273 2003-07-08  Paul Eggert  <eggert@twinsun.com>
110275         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
110276         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
110277         and sweeter "eval x=$x".
110278         * config/srclist.txt: Get lib/argp* from glibc.
110280 2003-07-07  Paul Eggert  <eggert@twinsun.com>
110282         * lib/mktime.c: Fix some boundary cases and remove need for floating
110283         point.
110285         Issue a compile-time diagnostic if time_t is floating point, or if
110286         two's complement arithmetic is not in effect, or if arithmetic
110287         right shift does not propagate the sign.  These assumptions were
110288         all in the original code but they weren't checked.
110290         (TIME_T_MIDPOINT, verify): New macros.
110291         (__isleap): Remove; it has integer overflow problems.
110292         (leapyear): New function, without those problems.
110293         (ydhms_tm_diff): Remove; splitting into two parts.
110294         (ydhms_diff): New function, containing the arithmetic part of
110295         the old ydhms_tm_diff function.  Issue a compile-time
110296         diagnostic if we are not using C99 integer division.
110297         Avoid casts when possible.
110298         (guess_time_tm): New function, containing the checking part of
110299         the old ydhms_tm_diff function.  Return the new value, rather than
110300         the difference between it and the old.  Accept a new argument T
110301         so that *T specifies the old value.  Check for overflow in the result.
110303         (__mktime_internal): Use a time_t offset, not a long int offset.
110304         This undoes the 2003-06-04 change, which is no longer needed now
110305         that we have better overflow checking.
110306         (localtime_offset): Likewise.
110308         (__mktime_internal): Avoid harmful overflow on hosts where time_t
110309         and long are 64-bit but int is only 32-bit.
110310         (ydhms_diff): Use long int to store year1 and yday1.
110311         Issue a compile-time diagnostic if long int is not wide enough.
110313         (__mktime_internal): Use long int to store adjusted year and yday.
110314         Use plain C rather than preprocessor commands, if that doesn't
110315         affect efficiency.
110316         Check for overflow (and try to repair) after each probe
110317         rather than checking only at the very end.  This avoids some bugs
110318         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
110319         does not equal GMT offset at maximum time).
110320         Use integer to check for overflow rather than floating point; this
110321         is more portable to non-IEEE hosts, and is a tad faster.
110322         When we detect that we are oscillating between two values,
110323         don't check whether tm_isdst has the requested value, since
110324         we already know the answer.  When tm_isdst has the wrong value,
110325         use a different heuristic to find the right one, based on the
110326         extreme values actually observed in practice in tz2003a,
110327         rather than the (overly optimistic) "previous 3 calendar quarters".
110329         (not_equal_tm, print_tm, check_result): Use "const T" rather than
110330         "T const" to accommodate glibc style.
110331         (check_result): Use less-confusing report format.  "long" -> "long int.
110332         (main): Likewise.
110333         Don't loop if the iteration overflows time_t.
110334         Allow a negative step in the iteration.
110336 2003-07-06  Karl Berry  <karl@gnu.org>
110338         * config/depcomp: update from automake.
110339         * config/config.sub: update from prep.
110341 2003-07-03  Karl Berry  <karl@gnu.org>
110343         * config/config.guess: update from prep.
110345 2003-07-01  Paul Eggert  <eggert@twinsun.com>
110347         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
110348         xreadlink.c now includes it unconditionally.
110350 2003-07-01  Paul Eggert  <eggert@twinsun.com>
110352         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
110353         having it depend on HAVE_SYS_TYPES_H.
110355 2003-07-01  Bruno Haible  <bruno@clisp.org>
110357         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
110358         <sys/types.h> should be sufficient.
110359         Reported by Paul Eggert.
110361 2003-06-26  Karl Berry  <karl@gnu.org>
110363         * config/depcomp: update from automake.
110365 2003-06-26  Bruno Haible  <bruno@clisp.org>
110367         * modules/human: Depend on module stdbool.
110369 2003-06-25  Bruno Haible  <bruno@clisp.org>
110371         * modules/readlink: New file.
110372         * modules/xreadlink: Depend on it.
110373         * MODULES.html.sh (func_all_modules): Add readlink.
110375 2003-06-25  Bruno Haible  <bruno@clisp.org>
110377         * m4/readlink.m4: New file.
110379 2003-06-25  Bruno Haible  <bruno@clisp.org>
110381         * lib/readlink.c: New file.
110383 2003-06-22  Karl Berry  <karl@gnu.org>
110385         * config/srclist.txt: update mkinstalldirs from automake.
110386         * config/mkinstalldirs: update.
110388 2003-06-22  Bruno Haible  <bruno@clisp.org>
110390         Portability to mingw32.
110391         * m4/ssize_t.m4: New file, from GNU gettext.
110392         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
110393         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
110395 2003-06-22  Bruno Haible  <bruno@clisp.org>
110397         * modules/safe-read: Add m4/ssize_t.m4.
110398         * modules/xreadlink: Add m4/ssize_t.m4.
110400 2003-06-20  Bruno Haible  <bruno@clisp.org>
110402         Assume C89, so PARAMS isn't needed.
110403         * lib/unicodeio.h (PARAMS): Remove.
110404         * lib/unicodeio.c: Don't use PARAMS.
110406 2003-06-18  Karl Berry  <karl@gnu.org>
110408         * config/config.{guess,sub}: update from prep.
110410 2003-06-18  Jim Meyering  <jim@meyering.net>
110412         Merge changes from coreutils.
110413         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
110414         Remove explicit declarations of xmalloc and realloc.
110415         Include xalloc.h.
110416         (read_utmp): Remove anachronistic cast of xmalloc.
110418 2003-06-17  Paul Eggert  <eggert@twinsun.com>
110420         Assume C89, so PARAMS isn't needed.
110421         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
110422         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
110423         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
110424         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
110425         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
110426         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
110427         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
110428         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
110429         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
110430         lib/xstrtod.h, lib/xstrtol.h: Likewise.
110431         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
110432         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
110433         no longer needed. Anyway, config.h should always be included before any
110434         other file.
110436 2003-06-11  Simon Josefsson  <jas@extundo.com>
110438         * modules/sysexits: New file.
110439         * MODULES.html.sh (func_all_modules): Add sysexits.
110441 2003-06-11  Simon Josefsson  <jas@extundo.com>
110443         * lib/sysexit_.h: New file.
110445 2003-06-11  Derek Price  <derek@ximbiot.com>
110447         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
110448         necessary.
110450 2003-06-11  Bruno Haible  <bruno@clisp.org>
110452         * m4/sysexits.m4: New file.
110454 2003-06-10  Simon Josefsson  <jas@extundo.com>
110456         * lib/argp.h: New file, from glibc.
110457         * lib/argp-ba.c: New file, from glibc.
110458         * lib/argp-eexst.c: New file, from glibc.
110459         * lib/argp-fmtstream.c: New file, from glibc.
110460         * lib/argp-fmtstream.h: New file, from glibc.
110461         * lib/argp-fs-xinl.c: New file, from glibc.
110462         * lib/argp-help.c: New file, from glibc.
110463         * lib/argp-namefrob.h: New file, from glibc.
110464         * lib/argp-parse.c: New file, from glibc.
110465         * lib/argp-pv.c: New file, from glibc.
110466         * lib/argp-pvh.c: New file, from glibc.
110467         * lib/argp-xinl.c: New file, from glibc.
110469 2003-06-10  Simon Josefsson  <jas@extundo.com>
110471         * modules/strchrnul: New file.
110473 2003-06-10  Simon Josefsson  <jas@extundo.com>
110475         * modules/argp: New file.
110477 2003-06-10  Simon Josefsson  <jas@extundo.com>
110479         * m4/strchrnul.m4: New file.
110481 2003-06-10  Simon Josefsson  <jas@extundo.com>
110483         * lib/strchrnul.h: New file.
110484         * lib/strchrnul.c: New file.
110486 2003-06-10  Bruno Haible  <bruno@clisp.org>
110488         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
110490 2003-06-07  Karl Berry  <karl@gnu.org>
110492         * config/config.{guess,sub}: update from prep.
110494 2003-06-07  Jim Meyering  <jim@meyering.net>
110496         * modules/strtod: Use $(...) notation, not @...@ for
110497         AC_REPLACE'd variables.
110498         * modules/localcharset: Likewise.
110500 2003-06-07  Jim Meyering  <jim@meyering.net>
110502         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
110503         in place of my name in the copyright comment.
110504         Remove definition and uses of __P.
110506         From coreutils.
110507         * lib/stat.c: Don't declare xmalloc explicitly.
110508         Instead, include "xalloc.h".
110509         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
110510         xrealloc, and xcalloc return values.
110511         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
110512         Improve comment.
110513         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
110515 2003-06-07  Bruno Haible  <bruno@clisp.org>
110517         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
110518         avoid AC_CONFIG_LINKS.
110519         * modules/fnmatch (Makefile.am): Use explicit creation rule for
110520         fnmatch.h, to avoid AC_CONFIG_LINKS.
110521         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
110523 2003-06-07  Bruno Haible  <bruno@clisp.org>
110525         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
110526         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
110527         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
110528         directory.
110529         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
110530         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
110531         directory.
110533 2003-06-06  Jim Meyering  <jim@meyering.net>
110535         Merge from coreutils.
110536         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
110537         Consolidate declarations and initializations of *_base* locals.
110539         Merge from coreutils.
110540         This avoids a core dump on systems without GNU putenv,
110541         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
110542         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
110543         (unsetenv): New static function, from GNU libc.
110544         (rpl_putenv): Use it.
110546         * lib/modechange.c: Remove trailing blanks.
110548         Merge from coreutils.
110549         * lib/fsusage.c: Remove declaration of statfs.
110550         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
110552         * lib/posixtm.c: Include <stdbool.h> unconditionally.
110554 2003-06-06  Jim Meyering  <jim@meyering.net>
110556         * lib/stdbool_.h: Renamed from stdbool.h.in.
110558 2003-06-06  Jim Meyering  <jim@meyering.net>
110559             Bruno Haible  <bruno@clisp.org>
110561         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
110562         Adjust Makefile.am snippet not to redirect directly to target.
110563         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
110565 2003-06-05  Paul Eggert  <eggert@twinsun.com>
110567         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
110568         mismatch, look in future quarters as well as past.  This fixes a
110569         bug when processing fall-backwards gaps immediately after a long
110570         period of daylight-saving time.
110572         * lib/mktime.c: Assume freestanding C89 or better.
110573         (HAVE_LIMITS_H): Remove.  Assume it's 1.
110574         (__P): Remove; not used.
110575         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
110576         (mktime, not_equal_tm, print_tm, check_result,
110577         main): Use prototypes.  Use const * where appropriate.
110578         (main): Fix typo in testing code that uncovered by above changes.
110579         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
110581 2003-06-04  Paul Eggert  <eggert@twinsun.com>
110583         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
110584         locale.h, localeconv.  This merges changes from coreutils.
110586         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
110587         It can be removed after the next Autoconf is released.
110588         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
110589         needed.
110591 2003-06-04  Paul Eggert  <eggert@twinsun.com>
110593         * lib/mktime.c: Fix Debian bug 177940
110594         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
110595         (localtime_offset): Now long int, not time_t, because we want it
110596         to be guaranteed to be signed.  All uses changed.
110597         (__mktime_internal): If overflow would occur when adding offset,
110598         don't add it.
110600         Merge 'human' changes from coreutils.  Rewrite to support
110601         locale-specific notations like thousands separators.
110602         * lib/human.c: Simplify authorship notice.
110603         Include human.h immediately after config.h.
110604         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
110605         <limits.h>: Do not include, since human.h does.
110606         (SIZE_MAX, UINTMAX_MAX): New macros.
110607         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
110608         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
110609         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
110610         (power_letter): Renamed from suffixes.
110611         (generate_suffix_backwards): Remove.
110612         (adjust_value): Now takes int style (because of human.h changes)
110613         and long double value (for greater precision on some platforms).
110614         (group_number): New function.
110615         (human_readable): Use it.  Use integer options, not enum.
110616         Put the options before the sizes in the arg list.
110617         Support all the new options.
110618         The old human_readable function has been removed;
110619         use inttostr.h instead.
110620         (human_readable, default_block_size, humblock):
110621         Use uintmax_t, not int, for block sizes.
110622         (human_readable_inexact, block_size_types): Remove.
110623         (block_size_opts): New constant.
110624         (human_options): Renamed from human_block_size, with new signature
110625         that allows block sizes up to UINTMAX_MAX.  All callers changed.
110626         * lib/human.h: Add copyright and authorship notice.
110627         Include <limits.h> and <stdbool.h> unconditionally.
110628         (PARAMS): Remove.  All uses removed.
110629         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
110630         (enum human_inexact_style): Remove tag; now a nameless enum.
110631         (human_floor, human_ceiling, human_round_to_even): Now have
110632         values 2, 0, 1 rather than -1, 1, 0.
110633         (human_group_digits, human_suppress_point_zero, human_autoscale,
110634         human_base_1024, human_SI, human_B): New constants.
110635         (human_readable_inexact, human_block_size): Remove.
110636         (human_readable): Size args are now uintmax_t, not int.
110637         (human_options): New decl.
110639         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
110640         unnecessary now that we assume C89 or better.  This change
110641         imported from coreutils.
110643         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
110644         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
110645         in the 2003-05-30 sync from glibc.
110647         .h files should stand alone, but we shouldn't include <sys/types.h>
110648         if we can get away with just <stddef.h>.
110650         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
110651         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
110652         rather than <sys/types.h>, as we merely need size_t.
110653         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
110654         to get size_t.
110655         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
110656         Include <stdio.h>, to get FILE.
110657         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
110658         memcasecmp.h has included <stddef.h> and all we need is size_t.
110659         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
110660         our interface, instead of including <sys/types.h>
110662 2003-06-04  Paul Eggert  <eggert@twinsun.com>
110664         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
110665         now, as glibc mktime is buggy on non-glibc systems.
110667 2003-06-03  Karl Berry  <karl@gnu.org>
110669         * config/config.sub: update from prep.
110671 2003-06-02  Paul Eggert  <eggert@twinsun.com>
110673         [from coreutils]
110674         Fix some minor time-related bugs with POSIX time arguments.
110675         Some valid time stamps were being rejected (notably -1, and
110676         time stamps before 1900 on 64-bit hosts).  And some invalid
110677         time stamps were being accepted, e.g. September 31.
110679         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
110680         that we can return (time_t) -1 successfully.
110681         * lib/posixtm.c: Likewise.
110682         [HAVE_STDBOOL_H]: Include <stdbool.h>.
110683         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
110684         (t): Remove static var.
110685         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
110686         of static var.  All uses changed.
110687         (year): Do not reject years before 1900; they can occur with
110688         64-bit time_t.
110689         (posix_time_parse): Do not check for out-of-range components;
110690         that is now the caller's responsibility, since our checks were
110691         only approximations.
110692         (posixtime): Use mktime to check for out-of-range components,
110693         since it knows them exactly.
110694         If mktime returns (time_t) -1, check whether an error actually occurred
110695         by invoking localtime on -1.
110696         (main) [TEST_POSIXTIME]: Check for input data errors, and report
110697         posixtime failures better.
110698         Improve the test data (in comments only).
110700 2003-06-02  Karl Berry  <karl@gnu.org>
110702         * config/mkinstalldirs (version): new variable.
110703         (--version): new option.
110704         (usage): improve message.
110706 2003-05-30  Karl Berry  <karl@gnu.org>
110708         * lib/mktime.c: update from libc.
110710 2003-05-30  Bruno Haible  <bruno@clisp.org>
110712         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
110713         * config/config.rpath: Upgrade to gettext-0.12.1.
110715 2003-05-30  Bruno Haible  <bruno@clisp.org>
110717         * m4/gettext.m4: Upgrade to gettext-0.12.1.
110718         * m4/nls.m4: New file, from gettext-0.12.1.
110719         * m4/po.m4: New file, from gettext-0.12.1.
110720         * m4/progtest.m4: Upgrade to gettext-0.12.1.
110722 2003-05-30  Bruno Haible  <bruno@clisp.org>
110724         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
110725         * lib/localcharset.h: Likewise.
110726         * lib/localcharset.c: Likewise.
110728 2003-05-29  Karl Berry  <karl@gnu.org>
110730         * config/config.rpath: update from gettext.
110732 2003-05-28  Paul Eggert  <eggert@twinsun.com>
110734         Assume the headers required for C89 freestanding compilers.
110735         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
110736         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
110737         * m4/human.m4 (gl_HUMAN): Likewise.
110738         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
110739         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
110740         * m4/userspec.m4 (gl_USERSPEC): Likewise.
110741         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
110742         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
110743         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
110745 2003-05-28  Paul Eggert  <eggert@twinsun.com>
110747         Assume the headers required for C89 freestanding compilers.
110748         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
110749         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
110750         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
110751         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
110752         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
110753         define, since <limits.h> is guaranteed to do that.
110754         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
110755         * lib/exclude.c: Include <stdbool.h> unconditionally.
110756         * lib/tempname.c: Include <stddef.h> unconditionally.
110757         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
110758         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
110759         <stddef.h> does that.
110760         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
110761         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
110762         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
110763         needed.
110764         * lib/xstrtol.c: Likewise.
110765         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
110766         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
110768         * lib/addext.c (addext): Use assignment rather than cast, to avoid
110769         warnings on some platforms.
110771         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
110772         arbitrarily.
110774 2003-05-26  Jim Meyering  <jim@meyering.net>
110776         Merge in a change from coreutils:
110777         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
110778         that is guaranteed to be `no'.  Use `no_such_member' to indicate
110779         that condition, rather than `-1' which is slightly misleading.
110780         Change the name of the cache variable to have the gl_ prefix.
110781         Prompted by a patch from Richard Dawe for DJGPP.
110783 2003-05-24  Karl Berry  <karl@gnu.org>
110785         * config/config.guess: update from prep.
110787 2003-05-22  Karl Berry  <karl@gnu.org>
110789         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
110791 2003-05-20  Karl Berry  <karl@gnu.org>
110793         * config/config.guess: update from prep.
110795 2003-05-18  Karl Berry  <karl@gnu.org>
110797         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
110798         might actually be set by the user.
110800         * config/depcomp, install-sh, mdate-sh: update from automake.
110802 2003-05-17  Bruno Haible  <bruno@clisp.org>
110804         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
110805         invalid expansion for AC_EGREP_CPP.
110806         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
110807         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
110808         Suggested by Akim Demaille <akim@epita.fr> in
110809         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
110811 2003-05-12  Jim Meyering  <jim@meyering.net>
110813         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
110814         the space-padded-by-default conversion specifiers, %e, %k, %l.
110816 2003-05-12  Bruno Haible  <bruno@clisp.org>
110818         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
110819         the string is longer than 4 KB.
110821 2003-05-11  Karl Berry  <karl@gnu.org>
110823         * config/config.{guess,sub}: update from prep.
110825 2003-05-09  Bruno Haible  <bruno@clisp.org>
110827         * modules/error: Add m4/strerror_r.m4 to file list.
110829 2003-05-03  Bruno Haible  <bruno@clisp.org>
110831         Upgrade to Unicode-4.0.
110832         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
110833         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
110834         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
110835         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
110836         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
110837         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
110838         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
110839         Change width of U+E0100..U+E01EF from 1 to 0.
110841 2003-04-25  Jim Meyering  <jim@meyering.net>
110843         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
110844         of type size_t, not int.
110846 2003-04-25  Bruno Haible  <bruno@clisp.org>
110848         * lib/copy-file.c: Include <stddef.h>, for size_t.
110850 2003-04-21  Paul Eggert  <eggert@twinsun.com>
110852         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
110853         code which expansion is under static control.  Patch imported from
110854         Akim Demaille's patch to Bison; see
110855         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
110857 2003-04-14  Bruno Haible  <bruno@clisp.org>
110859         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
110861 2003-04-11  Jim Meyering  <jim@meyering.net>
110863         Merge changes from Coreutils.
110865         2003-03-22  Jim Meyering  <jim@meyering.net>
110867         * lib/strftime.c (widen): Cast alloca return value to proper type.
110869         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
110871         From GNU libc.
110872         * lib/strftime.c (my_strftime): Handle very large width
110873         specifications for numeric values correctly.  Improve checks for
110874         overflow.
110876         2003-01-19  Jim Meyering  <jim@meyering.net>
110878         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
110879         definitions.
110880         (nl_get_alt_digit) [! defined my_strftime]: Define.
110881         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
110882         _nl_get_alt_digit and _nl_get_walt_digit.
110884         * lib/strftime.c (my_strftime): Merge in locale-related changes from
110885         libc. These changes have no effect outside of _LIBC.
110887 2003-04-10  Bruno Haible  <bruno@clisp.org>
110889         * modules/findprog: New file.
110890         * MODULES.html.sh (func_all_modules): Add it.
110892 2003-04-10  Bruno Haible  <bruno@clisp.org>
110894         * m4/findprog.m4: New file.
110895         * m4/eaccess.m4: New file.
110897 2003-04-10  Bruno Haible  <bruno@clisp.org>
110899         * lib/findprog.h: New file, from GNU gettext.
110900         * lib/findprog.c: New file, from GNU gettext.
110902 2003-04-05  Jim Meyering  <jim@meyering.net>
110904         Merge changes from Coreutils.
110906         * lib/exclude.h (PARAMS): Remove definition and uses.
110907         * lib/exclude.c: Remove uses of `PARAMS'.
110909         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
110910         Add test-cases for DOS filenames. Declare program_name.
110911         (main): Set up program_name.  Patch by Rich Dawe.
110913         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
110914         error from mntctl.
110915         Use mntctl's return value to drive the entry-processing loop, since
110916         we can't rely on the value of the vmt_length member in the last
110917         entry.  On some systems doing so could result in exhausting
110918         virtual memory.  Based in part on a patch from Mike Jetzer.
110920 2003-04-04  Bruno Haible  <bruno@clisp.org>
110922         * modules/linebreak: New file.
110923         * MODULES.html.sh (func_all_modules): Add it.
110925 2003-04-04  Bruno Haible  <bruno@clisp.org>
110927         * m4/linebreak.m4: New file.
110929 2003-04-04  Bruno Haible  <bruno@clisp.org>
110931         * lib/linebreak.h: New file, from GNU gettext.
110932         * lib/linebreak.c: New file, from GNU gettext with slight
110933         modifications.
110934         * lib/lbrkprop.h: New file, from GNU gettext.
110936 2003-04-03  Bruno Haible  <bruno@clisp.org>
110938         * modules/utf8-ucs4: New file.
110939         * modules/utf16-ucs4: New file.
110940         * modules/ucs4-utf8: New file.
110941         * modules/ucs4-utf16: New file.
110942         * MODULES.html.sh (func_all_modules): Add them.
110944 2003-04-03  Bruno Haible  <bruno@clisp.org>
110946         * m4/utf-ucs4.m4: New file.
110947         * m4/ucs4-utf.m4: New file.
110949 2003-04-03  Bruno Haible  <bruno@clisp.org>
110951         * lib/utf8-ucs4.h: New file, from GNU gettext.
110952         * lib/utf16-ucs4.h: New file, from GNU gettext.
110953         * lib/ucs4-utf8.h: New file, from GNU gettext.
110954         * lib/ucs4-utf16.h: New file, from GNU gettext.
110956 2003-04-02  Bruno Haible  <bruno@clisp.org>
110958         * modules/binary-io: New file.
110959         * MODULES.html.sh (func_all_modules): Add it.
110961 2003-04-02  Bruno Haible  <bruno@clisp.org>
110963         * lib/binary-io.h: New file, from GNU gettext.
110965 2003-04-01  Bruno Haible  <bruno@clisp.org>
110967         * modules/pathname: New file.
110968         * MODULES.html.sh (func_all_modules): Add it.
110970 2003-04-01  Bruno Haible  <bruno@clisp.org>
110972         * lib/pathname.h: New file, from GNU gettext.
110973         * lib/concatpath.c: New file, from GNU gettext.
110975 2003-03-30  Bruno Haible  <bruno@clisp.org>
110977         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
110979 2003-03-30  Bruno Haible  <bruno@clisp.org>
110981         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
110982         function chown() doesn't exist.
110984 2003-03-28  Bruno Haible  <bruno@clisp.org>
110986         * modules/copy-file: New file.
110987         * MODULES.html.sh (func_all_modules): Add it.
110989 2003-03-28  Bruno Haible  <bruno@clisp.org>
110991         * m4/copy-file.m4: New file.
110993 2003-03-28  Bruno Haible  <bruno@clisp.org>
110995         * lib/copy-file.h: New file, from GNU gettext.
110996         * lib/copy-file.c: New file, from GNU gettext.
110998 2003-03-18  Jim Meyering  <jim@meyering.net>
111000         * lib/quote.c (quote_n): Fix typo in comment.
111002 2003-03-18  Bruno Haible  <bruno@clisp.org>
111004         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
111005         checking.
111006         * m4/onceonly_2_57.m4: Likewise.
111008 2003-03-17  Bruno Haible  <bruno@clisp.org>
111010         * m4/onceonly.m4: Require autoconf 2.54 or newer.
111011         (m4_quote): Remove macro.
111012         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
111014 2003-03-14  Jim Meyering  <jim@meyering.net>
111016         Merge changes from Coreutils.
111017         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
111018         to be const, in order to avoid warnings.
111019         (obstack_room): Likewise.
111020         (obstack_empty_p): Likewise.
111022 2003-03-14  Bruno Haible  <bruno@clisp.org>
111024         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
111025         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
111027 2003-03-13  Paul Eggert  <eggert@twinsun.com>
111029         Merge changes from Bison.
111030         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
111031         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
111032         when compiling Bison 1.875's `bitset bset = obstack_alloc
111033         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
111034         * lib/hash.c: Include <stdbool.h> unconditionally.
111036 2003-03-13  Paul Eggert  <eggert@twinsun.com>
111038         * m4/onceonly.m4 (m4_quote): New macro.
111039         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
111040         Quote AC_FOREACH variable-expansions properly.
111042 2003-03-13  Paul Eggert  <eggert@twinsun.com>
111044         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
111046 2003-03-09  Paul Eggert  <eggert@twinsun.com>
111048         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
111049         Reported by Bruce Becker; see:
111050         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
111052 2003-03-03  Paul Eggert  <eggert@twinsun.com>
111053             Bruno Haible  <bruno@clisp.org>
111055         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
111056         Reported by John Hughes, see
111057         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
111059 2003-02-20  Bruno Haible  <bruno@clisp.org>
111061         * MODULES.html.sh (func_all_modules): Add poll.
111063 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
111065         * modules/poll: New file.
111067 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
111069         * lib/poll_.h: New file.
111070         * lib/poll.c: New file.
111072 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
111074         * m4/poll.m4: New file.
111076 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
111078         * modules/mathl: New file.
111080 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
111082         * lib/mathl.h: New file.
111083         * lib/acosl.c: New file.
111084         * lib/asinl.c: New file.
111085         * lib/atanl.c: New file.
111086         * lib/ceill.c: New file.
111087         * lib/cosl.c: New file.
111088         * lib/expl.c: New file.
111089         * lib/floorl.c: New file.
111090         * lib/frexpl.c: New file.
111091         * lib/ldexpl.c: New file.
111092         * lib/logl.c: New file.
111093         * lib/sincosl.c: New file.
111094         * lib/sinl.c: New file.
111095         * lib/sqrtl.c: New file.
111096         * lib/tanl.c: New file.
111097         * lib/trigl.c: New file.
111098         * lib/trigl.h: New file.
111100 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
111102         * m4/mathl.m4: New file.
111104 2003-02-18  Bruno Haible  <bruno@clisp.org>
111106         * MODULES.html.sh (func_all_modules): Add mathl.
111108 2003-02-17  Bruno Haible  <bruno@clisp.org>
111110         * modules/mkdtemp: New module.
111111         * MODULES.html.sh (func_all_modules): Add it.
111113 2003-02-17  Bruno Haible  <bruno@clisp.org>
111115         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
111117 2003-02-17  Bruno Haible  <bruno@clisp.org>
111119         * lib/mkdtemp.h: New file, from GNU gettext.
111120         * lib/mkdtemp.c: New file, from GNU gettext.
111122 2003-02-02  Jim Meyering  <jim@meyering.net>
111124         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
111125         e.g. glibc-2.2.93.
111127 2003-01-31  Bruno Haible  <bruno@clisp.org>
111129         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
111130         'rpl_rename'.
111131         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
111132         'rpl_strnlen'.
111133         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
111134         'rpl_strtod'.
111135         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
111136         'rpl_utime'.
111138 2003-01-31  Bruno Haible  <bruno@clisp.org>
111140         * lib/rename.c: #undef rename before defining rpl_rename.
111141         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
111143 2003-01-30  Bruno Haible  <bruno@clisp.org>
111145         * modules/vasnprintf, modules/vasprintf: New modules.
111146         * MODULES.html.sh (func_all_modules): Add them.
111148 2003-01-30  Bruno Haible  <bruno@clisp.org>
111150         * m4/signed.m4: New file, from GNU gettext.
111151         * m4/longdouble.m4: New file, from GNU gettext.
111152         * m4/wchar_t.m4: New file, from GNU gettext.
111153         * m4/wint_t.m4: New file, from GNU gettext.
111154         * m4/vasnprintf.m4: New file.
111155         * m4/vasprintf.m4: New file.
111157 2003-01-30  Bruno Haible  <bruno@clisp.org>
111159         * lib/printf-args.h: New file, from GNU gettext.
111160         * lib/printf-args.c: New file, from GNU gettext.
111161         * lib/printf-parse.h: New file, from GNU gettext.
111162         * lib/printf-parse.c: New file, from GNU gettext.
111163         * lib/vasnprintf.h: New file, from GNU gettext.
111164         * lib/vasnprintf.c: New file, from GNU gettext.
111165         * lib/asnprintf.c: New file, from GNU gettext.
111166         * lib/vasprintf.h: New file, from GNU gettext with modifications.
111167         * lib/vasprintf.c: New file, from GNU gettext.
111168         * lib/asprintf.c: New file, from GNU gettext.
111170 2003-01-29  Bruno Haible  <bruno@clisp.org>
111172         * modules/stpncpy: New module.
111173         * MODULES.html.sh (func_all_modules): Add it.
111175 2003-01-29  Bruno Haible  <bruno@clisp.org>
111177         * m4/stpncpy.m4: New file.
111179 2003-01-29  Bruno Haible  <bruno@clisp.org>
111181         * lib/stpncpy.h: New file, from GNU gettext with modifications.
111182         * lib/stpncpy.c: New file, from GNU gettext with modifications.
111184 2003-01-28  Bruno Haible  <bruno@clisp.org>
111186         * modules/c-ctype: New module.
111187         * MODULES.html.sh (func_all_modules): Add it.
111189 2003-01-28  Bruno Haible  <bruno@clisp.org>
111191         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
111192         Paul Eggert.
111193         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
111194         Paul Eggert.
111196 2003-01-27  Bruno Haible  <bruno@clisp.org>
111198         * modules/xsetenv: New module.
111199         * MODULES.html.sh (func_all_modules): Add it.
111201 2003-01-27  Bruno Haible  <bruno@clisp.org>
111203         * lib/xsetenv.h: New file, from GNU gettext.
111204         * lib/xsetenv.c: New file, from GNU gettext.
111206 2003-01-23  Jim Meyering  <jim@meyering.net>
111208         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
111209         from working on systems without dirfd (at least Irix and OSF1/Tru64).
111211 2003-01-23  Bruno Haible  <bruno@clisp.org>
111213         * modules/minmax: New module.
111214         * MODULES.html.sh (func_all_modules): Add it.
111216 2003-01-23  Bruno Haible  <bruno@clisp.org>
111218         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
111219         Eggert.
111221 2003-01-22  Bruno Haible  <bruno@clisp.org>
111223         * modules/exit: New module.
111224         * MODULES.html.sh (func_all_modules): Add it.
111226 2003-01-22  Bruno Haible  <bruno@clisp.org>
111228         * lib/exit.h: New file, from GNU gettext.
111230 2003-01-19  Bruno Haible  <bruno@clisp.org>
111232         * gnulib-tool: Recognize option --extract-maintainer.
111233         (func_get_maintainer): New function.
111234         * modules/*: Add Maintainer entry.
111236 2003-01-16  Jim Meyering  <jim@meyering.net>
111238         * m4/regex.m4: The `regex' struct is both input and output.
111239         Initialize it before each use.  Patch by Tim Waugh.
111241 2003-01-16  Bruno Haible  <bruno@clisp.org>
111243         * MODULES.html.sh: Add a table of contents. Add the module name as
111244         leftmost column. Add hyperlinks.
111246 2003-01-15  Bruno Haible  <bruno@clisp.org>
111248         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
111250 2003-01-15  Bruno Haible  <bruno@clisp.org>
111252         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
111253         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
111254         suffix.
111256 2003-01-15  Bruno Haible  <bruno@clisp.org>
111258         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
111260 2003-01-15  Bruno Haible  <bruno@clisp.org>
111262         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
111263         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
111265 2003-01-14  Jim Meyering  <jim@meyering.net>
111267         * lib/same.c (same_name): Tweak a comment.
111269 2003-01-14  Bruno Haible  <bruno@clisp.org>
111271         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
111272         when a string comparison is sufficient.
111274 2003-01-14  Bruno Haible  <bruno@clisp.org>
111276         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
111277         'unsigned int'.
111279 2003-01-14  Bruno Haible  <bruno@clisp.org>
111281         * lib/hash-pjw.c: Add comment about low quality of this function.
111283 2003-01-13  Bruno Haible  <bruno@clisp.org>
111285         * modules/stpcpy: Distribute lib/stpcpy.h.
111286         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
111288 2003-01-13  Bruno Haible  <bruno@clisp.org>
111290         * modules/*: Add a description.
111291         * modules/strpbrk: Fix Makefile.am snippet.
111292         * modules/strtoimax: Fix dependencies.
111293         * modules/strtoumax: Likewise.
111295 2003-01-13  Bruno Haible  <bruno@clisp.org>
111297         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
111298         * modules/alloca (Makefile.am): All object files depend on alloca.h.
111299         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
111301 2003-01-13  Bruno Haible  <bruno@clisp.org>
111303         * gnulib-tool (func_create_testdir): Store config/* files in the main
111304         directory.
111305         * config.rpath: Move to ...
111306         * config/config.rpath: ... here.
111307         * modules/gettext: Contains config/config.rpath, not config.rpath.
111308         * modules/iconv: Likewise.
111310 2003-01-12  Paul Eggert  <eggert@twinsun.com>
111312         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
111313         to avoid collisions with libcurses and libreadline.
111315         * m4/getstr.m4: Remove.
111316         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
111318 2003-01-12  Paul Eggert  <eggert@twinsun.com>
111320         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
111321         to avoid collisions with libcurses and libreadline.
111323         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
111324         * lib/getstr.h, getstr.c: Remove.
111325         * lib/getline.c: Include "getline.h", to check interface.
111326         Move body of old getstr.c here: this defines MIN_CHUNK and
111327         declares getdelim2, which is renamed from getstr.
111328         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
111330         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
111331         All uses changed.
111332         * lib/linebuffer.h: Likewise.
111333         (readline): Remove backward-compatibility macro.
111335 2003-01-12  Paul Eggert  <eggert@twinsun.com>
111337         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
111338         to avoid collisions with libcurses and libreadline.
111339         * getstr: Remove.
111340         * MODULES.html.sh: Remove getstr.
111341         * modules/getline: Depend on unlocked-io, not getstr.
111343 2003-01-12  Jim Meyering  <jim@meyering.net>
111345         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
111347 2003-01-10  Bruno Haible  <bruno@clisp.org>
111349         * modules/alloca: Change Makefile.am requirements. Simplify Include
111350         requirements. Add lib/alloca_.h to file list.
111352 2003-01-10  Bruno Haible  <bruno@clisp.org>
111354         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
111356 2003-01-10  Bruno Haible  <bruno@clisp.org>
111358         * lib/alloca_.h: New file.
111359         * lib/getdate.y: Unconditionally include alloca.h.
111360         * lib/makepath.c: Likewise.
111361         * lib/setenv.c: Likewise.
111362         * lib/userspec.c: Likewise.
111364 2003-01-09  Karl Berry  <karl@gnu.org>
111366         * MODULES.html.sh: include `dirname $0` in PATH, to find
111367         gnulib-tool.
111369 2003-01-09  Bruno Haible  <bruno@clisp.org>
111371         * modules/stdbool: Change configure.ac, Makefile.am requirements.
111372         Simplify Include requirements. Add lib/stdbool.h.in to file list.
111374 2003-01-09  Bruno Haible  <bruno@clisp.org>
111376         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
111378 2003-01-09  Bruno Haible  <bruno@clisp.org>
111380         * lib/stdbool.h.in: New file.
111382 2003-01-09  Bruno Haible  <bruno@clisp.org>
111384         * gnulib-tool (func_all_modules): Ignore files ending in ~.
111385         * MODULES.html.sh: Likewise.
111387 2003-01-08  Jim Meyering  <jim@meyering.net>
111389         * lib/full-write.c: Undefine and define-away `const' after inclusion
111390         of errno.h, not before.  Suggestion from Bruno Haible.
111392 2003-01-08  Bruno Haible  <bruno@clisp.org>
111394         * modules/full-read: Depend on full-write.
111396 2003-01-08  Bruno Haible  <bruno@clisp.org>
111398         * lib/safe-read.c: Include specification header first, to ensure its
111399         selfcontainedness.
111400         * lib/full-write.c: Likewise.
111402 2003-01-07  Jim Meyering  <jim@meyering.net>
111404         * lib/full-write.c: Rework so that it may serve to define full_read,
111405         too.
111406         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
111408 2003-01-07  Bruno Haible  <bruno@clisp.org>
111410         * lib/strtoimax.c: Include <stdint.h> as an alternative to
111411         <inttypes.h>.
111412         * lib/xstrtol.h: Likewise.
111413         * lib/xstrtoimax.c: Likewise.
111414         * lib/xstrtoumax.c: Likewise.
111415         * lib/human.h: Likewise.
111417         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
111418         on systems that have <inttypes.h> but not <stdint.h>.
111420 2003-01-07  Bruno Haible  <bruno@clisp.org>
111422         * MODULES.html.sh: Add copyright notice.
111423         (missed_files): Omit CVS directory entries.
111424         (func_module): Make it work with sed-3.02.
111425         * MODULES.txt: Remove file.
111427 2003-01-06  Jim Meyering  <jim@meyering.net>
111429         * lib/version-etc.c: Update year in translatable copyright string.
111431 2003-01-03  Karl Berry  <karl@gnu.org>
111433         * config/config.{guess,sub}: update from prep.
111435 2003-01-02  Karl Berry  <karl@gnu.org>
111437         * doc/COPYING.DOC: belatedly updated to 1.2.
111439 2003-01-01  Karl Berry  <karl@gnu.org>
111441         * gnulib-tool (func_verify_module): report module name $module in
111442         error message, not $1.
111443         * gnulib-tool (create-testdir): don't complain if destdir couldn't
111444         be created, only if it doesn't exist.
111445         * gnulib-tool (last_checkin_date): don't expand the $Date here.
111447 2002-12-31  Paul Eggert  <eggert@twinsun.com>
111449         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
111451 2002-12-31  Paul Eggert  <eggert@twinsun.com>
111453         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
111454         memcmp if strcoll doesn't work.
111456 2002-12-31  Bruno Haible  <bruno@clisp.org>
111458         * lib/utime.c (utime_null): No need to call ftruncate if the file was
111459         nonempty.
111461 2002-12-31  Bruno Haible  <bruno@clisp.org>
111463         * lib/memcoll.c (STRCOLL): New macro.
111464         (memcoll): Use it.
111466 2002-12-31  Bruno Haible  <bruno@clisp.org>
111468         * lib/localcharset.h: New file.
111469         * lib/localcharset.c: Include it.
111470         * lib/unicodeio.c: Likewise.
111472 2002-12-31  Bruno Haible  <bruno@clisp.org>
111474         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
111475         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
111477 2002-12-31  Bruno Haible  <bruno@clisp.org>
111479         * lib/getline.h: Include <stddef.h>, for size_t.
111481         * lib/unicodeio.h: Include <stddef.h>, for size_t.
111482         * lib/unicodeio.c: Don't include <stddef.h>.
111484 2002-12-31  Bruno Haible  <bruno@clisp.org>
111486         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
111487         HAVE_TM_ZONE.
111489 2002-12-24  Karl Berry  <karl@gnu.org>
111491         * config/config.guess: update from prep.
111493 2002-12-24  Bruno Haible  <bruno@clisp.org>
111495         General infrasructure.
111496         * m4/README: Rewritten.
111497         * m4/onceonly.m4: New file.
111498         * m4/onceonly_2_57.m4: New file.
111500         Module atexit.
111501         * m4/atexit.m4: New file.
111503         Module strtod.
111504         * m4/strtod.m4: New file.
111506         Module strtol.
111507         * m4/strtol.m4: New file.
111509         Module strtoul.
111510         * m4/strtoul.m4: New file.
111512         Module memchr.
111513         * m4/memchr.m4: New file.
111515         Module memcmp.
111516         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
111517         (jm_FUNC_MEMCMP): Invoke it.
111519         Module memcpy.
111520         * m4/memcpy.m4: New file.
111522         Module memmove.
111523         * m4/memmove.m4: New file.
111525         Module memset.
111526         * m4/memset.m4: New file.
111528         Module strcspn.
111529         * m4/strcspn.m4: New file.
111531         Module strpbrk.
111532         * m4/strpbrk.m4: New file.
111534         Module strstr.
111535         * m4/strstr.m4: New file.
111537         Module strerror.
111538         * m4/strerror.m4: New file.
111540         Module mktime.
111541         * m4/mktime.m4: Renamed from jm-mktime.m4.
111542         (gl_PREREQ_MKTIME): New macro.
111543         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
111545         Module malloc.
111546         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
111547         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
111548         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
111550         Module realloc.
111551         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
111552         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
111553         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
111555         Module strftime.
111556         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
111557         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
111558         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
111559         gl_TM_GMTOFF.
111560         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
111562         Module xalloc.
111563         * m4/xalloc.m4: New file.
111565         Module alloca.
111566         * m4/alloca.m4: New file.
111568         Module putenv.
111569         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
111570         (jm_FUNC_PUTENV): Invoke it.
111572         Module setenv.
111573         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
111574         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
111575         when invoked twice.
111576         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
111577         gt_FUNC_SETENV.
111579         Module memrchr.
111580         * m4/memrchr.m4: New file.
111582         Module stpcpy.
111583         * m4/stpcpy.m4: New file.
111585         Module strcase.
111586         * m4/strcase.m4: New file.
111588         Module strdup.
111589         * m4/strdup.m4: New file.
111591         Module strnlen.
111592         * m4/strnlen.m4: New file.
111594         Module strndup.
111595         * m4/strndup.m4: New file.
111597         Module xstrtod.
111598         * m4/xstrtod.m4: New file.
111600         Module xstrtol.
111601         * m4/xstrtol.m4: New file.
111603         Module getdate.
111604         * m4/getdate.m4: New file.
111606         Module unlocked-io.
111607         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
111608         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
111609         * m4/jm-glibc-io.m4n: Remove file.
111611         Module long-options.
111612         * m4/long-options.m4: New file.
111614         Module md5.
111615         * m4/md5.m4: New file.
111617         Module sha.
111618         * m4/sha.m4: New file.
111620         Module getstr.
111621         * m4/getstr.m4: New file.
111623         Module getline.
111624         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
111625         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
111626         <sys/types.h>, for size_t. Use the function name gnu_getline, not
111627         simply getline. Infoke gl_PREREQ_GETLINE.
111629         Module obstack.
111630         * m4/obstack.m4: New file.
111632         Module hash.
111633         * m4/hash.m4: New file.
111635         Module readtokens.
111636         * m4/readtokens.m4: New file.
111638         Module strverscmp.
111639         * m4/strverscmp.m4: New file.
111641         Module stdbool.
111642         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
111643         OSF/1.
111645         Module strtoll.
111646         * m4/strtoll.m4: New file.
111648         Module strtoull.
111649         * m4/strtoull.m4: New file.
111651         Module strtoimax.
111652         * m4/strtoimax.m4: New file.
111654         Module strtoumax.
111655         * m4/strtoumax.m4: New file.
111657         Module xstrtoimax.
111658         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
111659         jm_AC_PREREQ_XSTRTOIMAX.
111660         Moved the strtol prerequisites to strtol.m4.
111661         Moved the strtoll prerequisites to strtoll.m4.
111662         Moved the strtoimax prerequisites to strtoimax.m4.
111664         Module xstrtoumax.
111665         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
111666         jm_AC_PREREQ_XSTRTOUMAX.
111667         Moved the strtoul prerequisites to strtoul.m4.
111668         Moved the strtoull prerequisites to strtoull.m4.
111669         Moved the strtoumax prerequisites to strtoumax.m4.
111671         Module chown.
111672         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
111673         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
111675         Module dup2.
111676         * m4/dup2.m4: New file.
111678         Module ftruncate.
111679         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
111680         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
111682         Module getgroups.
111683         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
111684         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
111686         Module gettimeofday.
111687         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
111688         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
111689         gl_PREREQ_GETTIMEOFDAY.
111691         Module mkdir.
111692         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
111693         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
111695         Module mkstemp.
111696         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
111697         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
111698         jm_AC_TYPE_UINTMAX_T.
111699         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
111701         Module stat.
111702         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
111703         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
111705         Module lstat.
111706         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
111707         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
111709         Module timespec.
111710         * m4/timespec.m4 (gl_TIMESPEC): New macro.
111711         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
111712         * m4/st_mtim.m4: Indentation.
111714         Module nanosleep.
111715         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
111716         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
111717         gl_PREREQ_NANOSLEEP.
111719         Module regex.
111720         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
111721         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
111722         (gl_REGEX): New macro.
111724         Module rename.
111725         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
111726         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
111728         Module rmdir.
111729         * m4/rmdir.m4: New file.
111731         Module utime.
111732         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
111733         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
111734         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
111736         Module dirname.
111737         * m4/dirname.m4: New file.
111739         Module getopt.
111740         * m4/getopt.m4: New file.
111742         Module unistd-safer.
111743         * m4/unistd-safer.m4: New file.
111745         Module fnmatch.
111746         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
111747         declaration.
111748         (gl_PREREQ_FNMATCH_EXTRA): New macro.
111749         (gl_FUNC_FNMATCH_POSIX): New macro.
111750         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
111751         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
111752         simply fnmatch.
111754         Module exclude.
111755         * m4/exclude.m4: New file.
111757         Module human.
111758         * m4/human.m4: New file.
111760         Module acl.
111761         * m4/acl.m4: Nop.
111763         Module backupfile.
111764         * m4/backupfile.m4: New file.
111765         * m4/d-ino.m4: Indentation.
111767         Module fsusage.
111768         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
111769         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
111770         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
111772         Module dirfd.
111773         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
111774         requirements.
111776         Module euidaccess.
111777         * m4/euidaccess.m4: New file.
111779         Module file-type.
111780         * m4/file-type.m4: New file.
111782         Module fileblocks.
111783         * m4/fileblocks.m4: New file.
111785         Module filemode.
111786         * m4/filemode.m4: New file.
111788         Module isdir.
111789         * m4/isdir.m4: New file.
111791         Module lchown.
111792         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
111793         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
111795         Module makepath.
111796         * m4/makepath.m4: New file.
111798         Module modechange.
111799         * m4/modechange.m4: New file.
111801         Module mountlist.
111802         * m4/mountlist.m4: New file.
111803         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
111804         Indentation.
111806         Module path-concat.
111807         * m4/path-concat.m4: New file.
111809         Module pathmax.
111810         * m4/pathmax.m4: New file.
111812         Module same.
111813         * m4/same.m4: New file.
111815         Module save-cwd.
111816         * m4/save-cwd.m4: New file.
111818         Module savedir.
111819         * m4/savedir.m4: New file.
111821         Module xgetcwd.
111822         * m4/xgetcwd.m4: New file.
111823         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
111825         Module xreadlink.
111826         * m4/xreadlink.m4: New file.
111828         Module safe-read.
111829         * m4/safe-read.m4: New file.
111831         Module safe-write.
111832         * m4/safe-write.m4: New file.
111834         Module closeout.
111835         * m4/closeout.m4: New file.
111837         Module stdio-safer.
111838         * m4/stdio-safer.m4: New file.
111840         Module getpass.
111841         * m4/getpass.m4: New file.
111843         Module getugroups.
111844         * m4/getugroups.m4: New file.
111846         Module group-member.
111847         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
111848         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
111850         Module idcache.
111851         * m4/idcache.m4: New file.
111853         Module userspec.
111854         * m4/userspec.m4: New file.
111856         Module gettime.
111857         * m4/clock_time.m4: New file.
111858         * m4/gettime.m4: New file.
111860         Module settime.
111861         * m4/settime.m4: New file.
111863         Module posixtm.
111864         * m4/posixtm.m4: New file.
111866         Module gethostname.
111867         * m4/gethostname.m4: New file.
111869         Module canon-host.
111870         * m4/canon-host.m4: New file.
111872         Module gettext.
111873         * m4/codeset.m4: New file, from gettext-0.11.5.
111874         * m4/gettext.m4: New file, from gettext-0.11.5.
111875         * m4/glibc21.m4: New file, from gettext-0.11.5.
111876         * m4/iconv.m4: New file, from gettext-0.11.5.
111877         * m4/intdiv0.m4: New file, from gettext-0.11.5.
111878         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
111879         * m4/inttypes.m4: New file, from gettext-0.11.5.
111880         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
111881         * m4/isc-posix.m4: New file, from gettext-0.11.5.
111882         * m4/lcmessage.m4: New file, from gettext-0.11.5.
111883         * m4/lib-ld.m4: New file, from gettext-0.11.5.
111884         * m4/lib-link.m4: New file, from gettext-0.11.5.
111885         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
111886         * m4/progtest.m4: New file, from gettext-0.11.5.
111887         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
111888         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
111889         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
111891         Module localcharset.
111892         * m4/localcharset.m4: New file.
111894         Module hard-locale.
111895         * m4/hard-locale.m4: New file.
111897         Module mbswidth.
111898         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
111899         onceonly macros.
111900         * m4/mbrtowc.m4: Add comment.
111902         Module memcasecmp.
111903         * m4/memcasecmp.m4: New file.
111905         Module memcoll.
111906         * m4/memcoll.m4: New file.
111908         Module unicodeio.
111909         * m4/unicodeio.m4: New file.
111911         Module rpmatch.
111912         * m4/rpmatch.m4: New file.
111914         Module yesno.
111915         * m4/yesno.m4: New file.
111917         Module exitfail.
111918         * m4/exitfail.m4: New file.
111920         Module c-stack.
111921         * m4/c-stack.m4 (gl_C_STACK): New macro.
111922         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
111924         Module error.
111925         * m4/error.m4 (gl_ERROR): New macro.
111926         (jm_PREREQ_ERROR): Use onceonly macros.
111928         Module fatal.
111929         * m4/fatal.m4: New file.
111931         Module getloadavg.
111932         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
111933         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
111935         Module getpagesize.
111936         * m4/getpagesize.m4: New file.
111938         Module getusershell.
111939         * m4/getusershell.m4: New file.
111941         Module physmem.
111942         * m4/physmem.m4: New file.
111944         Module posixver.
111945         * m4/posixver.m4: New file.
111947         Module quotearg.
111948         * m4/quotearg.m4: New file.
111950         Module quote.
111951         * m4/quote.m4: New file.
111953         Module readutmp.
111954         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
111956         Module sig2str.
111957         * m4/sig2str.m4: New file.
111959         Other.
111960         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
111961         ulonglong.m4.
111962         * m4/intmax_t.m4: New file.
111963         * m4/d-type.m4: Indentation.
111964         * m4/jm-macros.m4: Update.
111965         * m4/prereq.m4 (jm_PREREQ): Update.
111966         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
111967         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
111968         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
111969         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
111970         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
111971         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
111972         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
111973         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
111974         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
111975         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
111976         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
111977         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
111978         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
111979         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
111980         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
111981         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
111982         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
111983         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
111984         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
111986 2002-12-24  Bruno Haible  <bruno@clisp.org>
111988         * MODULES.txt: Update according to m4/ changes.
111990         Module gettext.
111991         * config.rpath: New file, from gettext-0.11.5.
111993         * modules/*: New module descriptions.
111994         * gnulib-tool: New file.
111995         * MODULES.html.sh: New file.
111997 2002-12-21  Karl Berry  <karl@gnu.org>
111999         * doc/fdl.texi: update to version 1.2.
112001 2002-12-19  Karl Berry  <karl@gnu.org>
112003         * config/config.guess: update from prep.
112005 2002-12-18  Bruno Haible  <bruno@clisp.org>
112007         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
112008         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
112010 2002-12-17  Bruno Haible  <bruno@clisp.org>
112012         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
112013         stdlib.h, string.h.
112015 2002-12-17  Bruno Haible  <bruno@clisp.org>
112017         * lib/canon-host.c (strdup): Remove unused declaration.
112019         * lib/fsusage.c: Include full_read.h.
112020         (get_fs_usage): Use full_read instead of safe_read.
112022         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
112024 2002-12-12  Karl Berry  <karl@gnu.org>
112026         * config/config.guess: update from prep.
112028 2002-12-11  Bruno Haible  <bruno@clisp.org>
112030         * m4/setenv.m4: New file, from gettext-0.11.5.
112032 2002-12-11  Bruno Haible  <bruno@clisp.org>
112034         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
112035         not unsetenv().
112036         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
112037         modifications:
112039         2002-12-11  Bruno Haible  <bruno@clisp.org>
112041                 * setenv.c (alloca): Fall back to malloc.
112042                 (freea): New macro.
112043                 (setenv): Use freea() to free memory allocated with alloca().
112045         2002-11-13  Bruno Haible  <bruno@clisp.org>
112047                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
112048                 function declarations.
112049                 * unsetenv.c (unsetenv): Likewise.
112051         2002-03-04  Bruno Haible  <bruno@clisp.org>
112053                 Portability to AIX 4.3.3.
112054                 * unsetenv.c: New file, extracted from setenv.c.
112055                 * setenv.c: Move the unsetenv() function to unsetenv.c.
112057         2001-12-20  Bruno Haible  <bruno@clisp.org>
112059                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
112060                 use malloc instead. For SunOS 4.
112062         2001-12-11  Bruno Haible  <bruno@clisp.org>
112064                 * setenv.c: Declare alloca.
112065                 (compar_fn_t): New typedef.
112066                 (KNOWN_VALUE, STORE_VALUE): Use it.
112068         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
112069         setenv.h.
112071 2002-12-10  Paul Eggert  <eggert@twinsun.com>
112073         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
112074         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
112075         Choose values that are less likely to collide with system fnmatch
112076         options.
112077         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
112078         defined (e.g., a pure POSIX system).
112079         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
112080         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
112082 2002-12-06  Paul Eggert  <eggert@twinsun.com>
112084         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
112085         a pain in practice to deal with generated m4 files.  This change
112086         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
112088         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
112089         and jm-glibc-io.m4, as they are no longer a special case.
112090         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
112091         kludge and the auto-generation stuff.  Check only whether the
112092         functions are declared, not whether they exist, since older hosts
112093         that don't declare the functions can't use the optimization anyway.
112095 2002-12-06  Jim Meyering  <jim@meyering.net>
112097         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
112099         Merge in changes from libc's misc/error.c, in preparation
112100         for the merge of gnulib's changes back into libc.
112102         * lib/error.c (_): Define only if not already defined.
112103         Move definition to follow all #include directives.
112104         Include unlocked-io.h only if !_LIBC.
112105         [_LIBC]: Include <libio/libioP.h>.
112106         [USE_IN_LIBIO]: Include <libio/iolibio.h>
112107         (fflush): Tweak definition to use INTUSE.
112108         (putc): Define.
112110 2002-12-05  Paul Eggert  <eggert@twinsun.com>
112112         * lib/alloca.c [defined emacs]: Include "lisp.h".
112113         (xalloc_die) [defined emacs]: New macro.
112114         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
112115         [! defined emacs]: Include <xalloc.h>.
112116         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
112117         (pointer): Typedef to POINTER_TYPE *.
112118         (malloc): Remove decl; we now always use xmalloc.
112119         (alloca): Use old-style definition, since Emacs needs this.
112120         Check for arithmetic overflow when computing combined size.
112122 2002-12-04  Paul Eggert  <eggert@twinsun.com>
112124         Do not generate unlocked-io.h automatically, since it's easier to
112125         maintain it by hand.
112127         * lib/unlocked-io.h: New file, from GNU diffutils,
112128         but with proper copyright notice and attribution.
112129         * lib/gen-uio: Remove.
112130         * lib/Makefile.am: Add copyright notice.
112131         (libfetish_a_SOURCES): Add unlocked-io.h.
112132         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
112133         (DISTCLEANFILES, io_functions): Remove macros.
112134         (EXTRA_DIST): Remove gen_uio.
112135         (unlocked-io.h): Remove rule.
112137 2002-12-04  Jim Meyering  <jim@meyering.net>
112139         Reflect the fact that stat.c and lstat.c are no longer generated.
112140         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
112141         (DISTCLEANFILES): Likewise.
112142         (EXTRA_DIST): Likewise.
112143         (all_local): Don't depend on stat.c or lstat.c.
112144         (stat.c, lstat.c): Remove rules.
112145         (EXTRA_DIST): Remove xstat.in.
112147         * lib/xstat.in: Remove file.  Contents moved into stat.c.
112148         * lib/stat.c: New file.  Contents mostly from xstat.in.
112149         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
112150         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
112152         * lib/safe-read.c: Rework so that it may serve to define safe_write,
112153         too.
112154         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
112156 2002-12-03  Jim Meyering  <jim@meyering.net>
112158         * lib/safe-read.c, safe-write.c: Change variable names and comments,
112159         but not semantics, to minimize the differences between these two files.
112160         (safe_read): Change comment to mention SAFE_READ_ERROR.
112162         * lib/safe-read.c (IS_EINTR): Define.
112163         (safe_read): Use IS_EINTR in place of in-function cpp directives.
112165 2002-12-02  Jim Meyering  <jim@meyering.net>
112167         * lib/safe-read.c (EINTR): Define.
112168         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
112169         (INT_MAX): Provide fallback.
112170         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
112172         * lib/safe-read.h (SAFE_READ_ERROR): Define.
112174 2002-12-02  Bruno Haible  <bruno@clisp.org>
112176         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
112177         Define, taken from safe-read.c.
112178         (INT_MAX): Provide fallback.
112179         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
112180         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
112182         * lib/safe-read.c (EINTR): Remove definition.
112183         (safe_read): Don't use EINTR if it is absent.
112185 2002-12-01  Jim Meyering  <jim@meyering.net>
112187         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
112188         zero.
112189         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
112191 2002-11-27  Paul Eggert  <eggert@twinsun.com>
112193         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
112194         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
112195         with `if (! (value < limit)) abort ();', for readability.
112197 2002-11-26  Karl Berry  <karl@gnu.org>
112199         * lib/strdup.c: copy from libc again, with jim's ok.
112200         * lib/.cppi-disable: re-add strdup.c
112202 2002-11-25  Karl Berry  <karl@gnu.org>
112204         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
112205         instead of "strtol.c".
112207 2002-11-25  Karl Berry  <karl@gnu.org>
112209         * config/install-sh: update from automake for variable quoting, $0 in
112210         error msgs, etc.
112212         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
112213         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
112214         entry.
112216 2002-11-25  Jim Meyering  <jim@meyering.net>
112218         * lib/mktime.c: Sync from libc, now that it has the latest fix.
112220 2002-11-24  Karl Berry  <karl@gnu.org>
112222         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
112223         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
112225 2002-11-24  Jim Meyering  <jim@meyering.net>
112227         Update from coreutils:
112229         * lib/mktime.c: Merge in changes from libc.
112231         Avoid a link-time failure on some Linux systems.
112232         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
112233         (otherwise).
112234         (__mon_yday): Declare with the STATIC attribute.
112235         (__mktime_internal): Likewise.
112236         Based on a report from Greg Schafer.
112238 2002-11-23  Jim Meyering  <jim@meyering.net>
112240         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
112241         Use `unsigned', not `int', as type of index.
112243         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
112245         * lib/fsusage.c: Remove unneeded parentheses around operands of
112246         `defined'.
112248 2002-11-22  Paul Eggert  <eggert@twinsun.com>
112250         * lib/quotearg.h: Allow multiple inclusion by surrounding with
112251         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
112252         so that we can be included first.
112253         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
112254         * lib/quotearg.c: Include quotearg.h immediately after config.h.
112255         No need to include stddef.h or sys/types.h any more.
112256         Surround local include files with "", not "<>".
112257         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
112258         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
112259         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
112260         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
112261         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
112262         (ISPRINT): Remove; no longer needed now that we assume C89.
112264         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
112265         Preserve errno.
112267         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
112268         quotearg_char): Use SIZE_MAX rather than
112269         (size_t) -1 when we are talking about "infinity".
112271         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
112273 2002-11-22  Paul Eggert  <eggert@twinsun.com>
112275         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
112276         hint that one should use `if (! x) abort ();' rather than `assert
112277         (x);', and anyway it's one less thing to worry about configuring.
112278         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
112279         hash_rehash, hash_insert): Use abort rather than assert.
112281 2002-11-22  Bruno Haible  <bruno@clisp.org>
112283         * lib/safe-read.h: Assume C89. Add comments.
112284         (safe_read): Change return type to size_t.
112285         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
112286         byte counts > SSIZE_MAX correctly.
112287         * lib/safe-write.h: New file.
112288         * lib/safe-write.c: New file.
112289         * lib/full-read.h: New file.
112290         * lib/full-read.c: New file.
112291         * lib/full-write.h: Assume C89. Add comments.
112292         * lib/full-write.c: Include safe-write.h.
112293         (full_write): Rewritten to use safe_write.
112294         Suggested by Jim Meyering and Paul Eggert.
112296 2002-11-21  Jim Meyering  <jim@meyering.net>
112298         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
112300         Merge in changes from the coreutils.
112302         2002-09-25  Paul Eggert  <eggert@twinsun.com>
112303         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
112304         <stdint.h>.
112305         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
112306         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
112307         int.  Work more efficiently if X is the same width as uintmax_t.
112308         Do not compare X to -1, to avoid bogus compiler warning.
112309         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
112310         Don't assume that f_frsize and f_bsize are the same type.
112312         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
112313         warning on FreeBSD.
112315         * lib/makepath.c (make_path): Restore umask *before* creating the final
112316         component.
112317         (make_path): Minor reformatting.
112319         * lib/xmalloc.c: Adjust to work with new autoconf macros,
112320         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
112321         HAVE_MALLOC/HAVE_REALLOC.
112323         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
112324         dummy ones.  At least on GNU/Linux systems, `auto' means something
112325         else.
112326         From Michael Stone.
112328 2002-11-21  Bruno Haible  <bruno@clisp.org>
112330         Remove case insensitive option matching.
112331         * lib/argmatch.h (argcasematch): Remove declaration.
112332         (ARGCASEMATCH): Remove macro.
112333         (__xargmatch_internal): Remove case_sensitive argument.
112334         (XARGMATCH): Update.
112335         (XARGCASEMATCH): Remove macro.
112336         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
112337         case_sensitive argument.
112338         (argcasematch): Remove function.
112339         (__xargmatch_internal): Remove case_sensitive argument.
112340         (main): Use XARGMATCH instead of XARGCASEMATCH.
112342         * lib/xmalloc.c: Change compile-time error message. Add comment about
112343         required autoconf version.
112345 2002-11-20  Paul Eggert  <eggert@twinsun.com>
112347         Merge argmatch cleanups from Bison.  Assume C89.
112349         * lib/argmatch.c: Include config.h here, not in argmatch.h.
112350         Include stdlib.h, for EXIT_FAILURE.
112351         Always include <string.h>, since we assume C89.
112352         (EXIT_FAILURE): Remove pre-C89 bug workaround.
112353         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
112354         Include <stddef.h> instead, since it's all we need for size_t.
112355         (PARAMS): Remove.  All uses removed.
112356         (ARRAY_CARDINALITY): Do not bother to #undef.
112357         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
112358         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
112359         Remove unnecessary parentheses.
112360         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
112361         Insert necessary parentheses.
112362         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
112363         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
112365 2002-11-19  Bruno Haible  <bruno@clisp.org>
112367         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
112368         * lib/mbswidth.h: Include <stddef.h>, for size_t.
112370         * lib/mbswidth.h (PARAMS): Remove macro.
112371         (mbswidth, mbsnwidth): Use ANSI C function declarations.
112372         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
112374         * lib/gcd.h (PARAMS): Remove macro.
112375         (gcd): Use ANSI C function declarations.
112376         * lib/gcd.c (gcd): Likewise.
112378 2002-11-15  Bruno Haible  <bruno@clisp.org>
112380         * lib/strcspn.c: Include <stddef.h>.
112381         (strcspn): Use ANSI C function declaration. Change return type to
112382         size_t. Use NULL.
112383         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
112384         (strpbrk): Use NULL.
112385         * lib/strpbrk.h (PARAMS): Remove macro.
112386         (strpbrk): Use ANSI C function declaration.
112387         * lib/strstr.c: Don't include <sys/types.h>.
112388         * lib/strstr.h (PARAMS): Remove macro.
112389         (strstr): Use ANSI C function declarations.
112391 2002-11-14  Karl Berry  <karl@gnu.org>
112393         * config/mkinstalldirs: `do' on separate line, instead of
112394         `for var; do'.
112396 2002-11-06  Bruno Haible  <bruno@clisp.org>
112398         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
112399         * lib/gcd.c (gcd): Likewise.
112401 2002-11-05  Bruno Haible  <bruno@clisp.org>
112403         * lib/gcd.h: New file, from gettext-0.11.5.
112404         * lib/gcd.c: New file, from gettext-0.11.5.
112406 2002-11-05  Bruno Haible  <bruno@clisp.org>
112408         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
112409         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
112410         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
112411         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
112413         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
112414         <libintl.h>.
112415         * lib/makepath.c: Include gettext.h instead of <locale.h> and
112416         <libintl.h>.
112418         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
112419         * lib/human.c: Include gettext.h instead of <libintl.h>.
112420         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
112421         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
112422         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
112423         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
112424         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
112425         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
112426         (textdomain): Remove definition.
112427         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
112429         * lib/long-options.c: Remove include of <libintl.h> and definition of
112430         _.
112431         * lib/same.c: Remove include of <libintl.h> and definition of _.
112433 2002-11-04  Owen Taylor  <otaylor@redhat.com>
112435         * lib/config.charset: A few additions for Solaris.
112437 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
112439         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
112440         * lib/localcharset.c (locale_charset): Declare as extern "C".
112442 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
112444         * lib/config.charset: msdos in uk_UA uses CP1125.
112446 2002-11-04  Bruno Haible  <bruno@clisp.org>
112448         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
112449         * lib/strcase.h: New file, from GNU gettext-0.11.5.
112450         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
112451         * lib/strstr.h: New file, from GNU gettext-0.11.5.
112452         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
112454 2002-11-04  Bruno Haible  <bruno@clisp.org>
112456         * lib/localcharset.c (locale_charset): Don't return an empty string.
112458 2002-11-04  Bruno Haible  <bruno@clisp.org>
112460         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
112461         aliases.
112463 2002-11-04  Bruno Haible  <bruno@clisp.org>
112465         * lib/config.charset: Update for newest glibc. Add canonical names
112466         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
112468 2002-11-04  Bruno Haible  <bruno@clisp.org>
112470         * lib/config.charset: Add support for NetBSD.
112472 2002-11-04  Bruno Haible  <bruno@clisp.org>
112474         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
112476 2002-11-01  Bruno Haible  <bruno@clisp.org>
112478         * configure.in: Add AC_CONFIG_AUX_DIR call.
112479         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
112480         test/Makefile.
112481         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
112483 2002-09-28  Karl Berry  <karl@gnu.org>
112485         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
112486         installed automake until the next release, since changes have been
112487         made.
112489 2002-09-25  Karl Berry  <karl@gnu.org>
112491         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
112492         * lib/getopt*: copy from libc/posix.
112493         * lib/gettext.h: copy from gettext.
112494         * lib/.cppi-disable: add strdup.c, gettext.h.
112496 2002-09-25  Karl Berry  <karl@gnu.org>
112498         * config/srclist.txt: enable gettext.h check.
112499         * config/config.{guess,sub}: update from prep.
112500         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
112501                 from automake 1.6.3.
112502         See srclist*.
112504 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
112506         * regex.c (PATFETCH): Remove the translating fetch.
112507         (PATFETCH_RAW): Rename to PATFETCH.
112508         (set_image_of_range): New fun.
112509         (SET_RANGE_TABLE_WORK_AREA): Use it.
112510         (regex_compile): Don't translate the pattern chars so eagerly.
112511         Only do it when inserting an `exactn' bytecode or when handling
112512         a char-range.
112513         (mutually_exclusive_p): Avoid empty statement.
112515 2002-07-06  Jim Meyering  <meyering@lucent.com>
112517         * m4/README: Don't mention Makefile.am.in.
112518         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
112520 2002-07-01  Jim Meyering  <meyering@lucent.com>
112522         * lib/c-stack.c: Include sys/time.h.
112523         From Volker Borchert.
112525 2002-06-26  Paul Eggert  <eggert@twinsun.com>
112527         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
112529 2002-06-26  Paul Eggert  <eggert@twinsun.com>
112531         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
112532         New macro.  Use it uniformly instead of
112533         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
112534         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
112535         reported by Vin Shelton.
112537 2002-06-22  Paul Eggert  <eggert@twinsun.com>
112539         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
112540         Do not assume SA_SIGINFO behavior.
112541         Bug reported by Jim Meyering on NetBSD 1.5.2.
112543 2002-06-22  Jim Meyering  <meyering@lucent.com>
112545         * m4/c-stack.m4: New file, from diffutils-2.8.2.
112546         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
112548         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
112549         now that configure.ac uses AC_GNU_SOURCE.
112550         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
112551         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
112553         Update to latest tools.  Suggestions from Paul Eggert.
112554         * m4/stdbool.m4: New file, from diffutils-2.8.2.
112555         * m4/gnu-source.m4: Update from diffutils-2.8.2.
112556         * m4/fnmatch.m4: Likewise.
112557         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
112558         to AC_HEADER_STDBOOL
112560 2002-06-22  Jim Meyering  <meyering@lucent.com>
112562         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
112563         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
112565 2002-06-22  Jim Meyering  <meyering@lucent.com>
112567         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
112569         * lib/exitfail.c, exitfail.h: Likewise.
112570         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
112572         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
112573         of fnmatch.h.
112574         (EXTRA_DIST): Add fnmatch_loop.c.
112575         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
112577         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
112578         * lib/fnmatch.c: Update from diffutils-2.8.2.
112579         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
112580         * lib/fnmatch.h: Remove file.
112582 2002-06-21  Jim Meyering  <meyering@lucent.com>
112584         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
112585         * m4/mbrtowc.m4: Likewise.
112587         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
112588         * m4/mbswidth.m4: Reflect name change:
112589         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
112590         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
112592         * m4/lib-link.m4: Update from gettext-0.11.2.
112593         * m4/gettext.m4: Likewise.
112595         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
112596         From Alfred M. Szmidt.
112598 2002-06-18  Paul Eggert  <eggert@twinsun.com>
112600         * lib/file-type.h: Report an error if neither S_ISREG nor
112601         S_IFREG is defined, instead of using a test specific to glibc
112602         2.2.  This should be safe, since POSIX requires S_ISREG and
112603         Unix Version 7 had S_IFREG.  We don't need to check for
112604         <sys/types.h> since we don't use any symbols that it defines.
112606 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
112608         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
112609         $@-t, so that each temporary file name is unique and valid in the first
112610         8 characters, for operation under DOS.
112612 2002-06-15  Paul Eggert  <eggert@twinsun.com>
112614         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
112616 2002-06-15  Jim Meyering  <meyering@lucent.com>
112618         Work even with DJGPP 2.03, which lacks support for symlinks.
112619         From Richard Dawe.
112620         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
112621         is defined.
112622         * lib/lchown.c (S_ISLNK): Likewise.
112624 2002-06-15  Jim Meyering  <meyering@lucent.com>
112626         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
112627         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
112628         have been included before this file.
112630 2002-06-14  Jim Meyering  <meyering@lucent.com>
112632         * lib/file-type.h: Use the version from diffutils-2.8.2.
112633         * lib/file-type.c: Likewise.
112635 2002-06-07  Jim Meyering  <meyering@lucent.com>
112637         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
112638         They're needed at least for NetBSD 1.5.2.
112639         ($statxfs_includes): Include those same headers.
112640         ($statxfs_includes): Include sys/vfs.h if available.
112641         ($statxfs_includes): Likewise for sys/statvfs.h.
112642         Check for the following members in both structs statfs and statvfs:
112643         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
112645 2002-06-01  Jim Meyering  <meyering@lucent.com>
112647         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
112648         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
112650 2002-05-28  Jim Meyering  <meyering@lucent.com>
112652         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
112653         Reported by Volker Borchert.
112655 2002-05-27  Jim Meyering  <meyering@lucent.com>
112657         Fix a problem seen only on nonconforming systems whereby ls.c's
112658         use of localtime, and then of gettimeofday would cause trouble:
112659         the localtime call used to initialize rpl_gettimeofday's save
112660         mechanism would clobber ls's current local time information so
112661         that in any long listing the first file would always be listed
112662         with date 1970-01-01.  Analysis by Volker Borchert.
112664         * lib/gettimeofday.c (localtime): Undefine.
112665         (rpl_localtime): New function.
112667 2002-05-27  Jim Meyering  <meyering@lucent.com>
112669         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
112670         localtime.
112672         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
112673         use the replacement function; it wouldn't resolve at link time.
112674         Reported by Volker Borchert.
112676 2002-05-22  Jim Meyering  <meyering@lucent.com>
112678         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
112679         file-type.h.
112680         * lib/file-type.h: New file.
112681         * lib/file-type.c (file_type): New file/function.  Extracted from
112682         diffutils.
112684 2002-04-30  Jim Meyering  <meyering@lucent.com>
112686         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
112688 2002-04-29  Paul Eggert  <eggert@twinsun.com>
112690         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
112692 2002-04-29  Paul Eggert  <eggert@twinsun.com>
112694         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
112695         Do not check for alloca.h (no longer used) or stdbool.h (was never
112696         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
112698 2002-04-29  Paul Eggert  <eggert@twinsun.com>
112700         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
112702 2002-04-29  Jim Meyering  <meyering@lucent.com>
112704         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
112705         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
112706         Use AC_FUNC_STRNLEN here instead.
112708         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
112709         With autoconf-2.53a, it's part of AC_PROG_CC.
112711 2002-04-28  Paul Eggert  <eggert@twinsun.com>
112713         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
112714         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
112716 2002-04-28  Paul Eggert  <eggert@twinsun.com>
112718         * lib/sig2str.h, lib/sig2str.c: New files.
112719         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
112721 2002-04-28  Paul Eggert  <eggert@twinsun.com>
112723         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
112724         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
112725         of 127, since 64 is the largest conceivable number for ancient
112726         nonstandard hosts.
112727         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
112729 2002-04-28  Jim Meyering  <meyering@lucent.com>
112731         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
112733 2002-04-24  Jim Meyering  <meyering@lucent.com>
112735         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
112736         (jm_PREREQ): Use it.
112738         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
112739         mach/mach.h fcntl.h.
112740         Check for this function: setlocale.
112742 2002-04-24  Jim Meyering  <meyering@lucent.com>
112744         * lib/gettext.h: New file, from Gettext.
112745         * lib/Makefile.am (INCLUDES): Remove -I../intl.
112746         (libfetish_a_SOURCES): Add gettext.h.
112748 2002-04-16  Jim Meyering  <meyering@lucent.com>
112750         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
112751         ut_pid, ut_id, ut_exit.
112753 2002-04-16  Jim Meyering  <meyering@lucent.com>
112755         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
112756         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
112757         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
112759 2002-04-12  Jim Meyering  <meyering@lucent.com>
112761         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
112762         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
112763         existence of the getmntinfo function.  Needed for Darwin 5.3.
112765         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
112766         This is necessary at least on Darwin 5.3.
112768         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
112769         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
112770         strnlen.o in the library, and that makes some versions of ranlib
112771         object.
112773 2002-04-12  Jim Meyering  <meyering@lucent.com>
112775         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
112777 2002-04-09  Jim Meyering  <meyering@lucent.com>
112779         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
112780         to be more precise.  Rather than saying we're checking whether the
112781         function `works', say what we're testing.
112782         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
112783         Reported by Bruno Haible.
112785 2002-03-10  Jim Meyering  <meyering@lucent.com>
112787         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
112788         Suggestion from Santiago Vila.
112790 2002-03-08  Jim Meyering  <meyering@lucent.com>
112792         * lib/rename.c: Mention that this wrapper is needed also on
112793         mips-dec-ultrix4.4 systems.
112795 2002-03-02  Jim Meyering  <meyering@lucent.com>
112797         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
112798         not HAVE_CLOCK_SETTIME.
112800 2002-02-27  Paul Eggert  <eggert@twinsun.com>
112802         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
112803         Check for clock_settime.
112805 2002-02-27  Paul Eggert  <eggert@twinsun.com>
112807         * lib/nanosleep.h: Rename to....
112808         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
112810         * lib/gettime.c: New file.
112811         * lib/settime.c: New file.
112812         * lib/stime.c: Remove.
112814         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
112815         timespec.h.  Remove nanosleep.h.
112817 2002-02-25  Paul Eggert  <eggert@twinsun.com>
112819         * m4/acl.m4: New file.
112820         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
112821         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
112823 2002-02-25  Paul Eggert  <eggert@twinsun.com>
112825         * lib/acl.c, lib/acl.h: New files.
112826         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
112828 2002-02-24  Jim Meyering  <meyering@lucent.com>
112830         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
112831         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
112832         cause trouble.  Reported by Nelson Beebe.
112834 2002-02-23  Paul Eggert  <eggert@twinsun.com>
112836         * lib/path-concat.c (xpath_concat): Reorder code to pacify
112837         compilers that don't know that xalloc_die never returns.
112839 2002-02-20  Jim Meyering  <meyering@lucent.com>
112841         * lib/getdate.c: Regenerate using bison-1.33.
112843 2002-02-17  Jim Meyering  <meyering@lucent.com>
112845         * config/config.guess (main): Don't use `head -1'; it's no longer
112846         portable. Use `sed 1q' instead.
112848 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
112850         * m4/codeset.m4: Upgrade to gettext-0.11.
112851         * m4/gettext.m4: Upgrade to gettext-0.11.
112852         * m4/glibc21.m4: Upgrade to gettext-0.11.
112853         * m4/iconv.m4: Upgrade to gettext-0.11.
112854         * m4/isc-posix.m4: Upgrade to gettext-0.11.
112855         * m4/lcmessage.m4: Upgrade to gettext-0.11.
112856         * m4/lib-ld.m4: New file, from gettext-0.11.
112857         * m4/lib-link.m4: New file, from gettext-0.11.
112858         * m4/lib-prefix.m4: New file, from gettext-0.11.
112859         * m4/progtest.m4: Upgrade to gettext-0.11.
112861 2002-02-15  Paul Eggert  <eggert@twinsun.com>
112863         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
112864         (jm_PREREQ): Use it.
112866 2002-02-15  Paul Eggert  <eggert@twinsun.com>
112868         * lib/posixver.c, lib/posixver.h: New files.
112869         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
112871 2002-02-02  Paul Eggert  <eggert@twinsun.com>
112872             Bruno Haible  <bruno@clisp.org>
112874         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
112875         (fwrite_success_callback): New declaration.
112876         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
112877         print_unicode_char. Call failure callback instead of error.
112878         (fwrite_success_callback): New function.
112879         (exit_failure_callback): New function.
112880         (fallback_failure_callback): New function.
112881         (print_unicode_char): Call unicode_to_mb.
112883 2002-01-26  Jim Meyering  <meyering@lucent.com>
112885         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
112886         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
112888 2002-01-26  Jim Meyering  <meyering@lucent.com>
112890         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
112892 2002-01-22  Paul Eggert  <eggert@twinsun.com>
112894         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
112896 2002-01-22  Jim Meyering  <meyering@lucent.com>
112898         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
112899         Otherwise, some versions of automake would omit the rule that makes
112900         Makefile from Makefile.in.
112902 2002-01-21  Paul Eggert  <eggert@twinsun.com>
112904         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
112905         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
112906         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
112907         (memcoll): Set errno to zero if there is no error.
112909         * lib/quotearg.c (quotearg_buffer_restyled):
112910         Fix bug with quoting buffers containing NUL when backslashing escapes.
112911         This bug was exposed by the other changes in this patch.
112912         (quotearg_n_options): New arg ARGSIZE.
112913         All callers changed.
112914         (quoting_options_from_style): New function.
112915         (quotearg_n_style): Use it.
112916         (quotearg_n_style_mem): New function.
112918         * lib/quotearg.h (quotearg_n_style_mem): New function.
112920 2002-01-19  Jim Meyering  <meyering@lucent.com>
112922         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
112923         Remove useless quotes: DF_PROG="df".
112924         * m4/strnlen.m4: New file.
112926 2002-01-16  Paul Eggert  <eggert@twinsun.com>
112928         * lib/backupfile.c (ISDIGIT): Comment fix.
112929         * lib/getdate.y (ISDIGIT): Likewise.
112930         * lib/posixtm.c (ISDIGIT, year): Likewise.
112931         * lib/strverscmp.c (ISDIGIT): Likewise.
112932         * lib/userspec.c (ISDIGIT): Likewise.
112934 2002-01-16  Jim Meyering  <meyering@lucent.com>
112936         * lib/getdate.y: Add three semicolons, each just before a closing
112937         brace. Bison (as of version 1.31) no longer papers over that mistake.
112939 2002-01-05  Jim Meyering  <meyering@lucent.com>
112941         * lib/version-etc.c (version_etc_copyright): Update copyright year.
112943 2001-12-19  Paul Eggert  <eggert@twinsun.com>
112945         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
112946         not silently exit merely because the output buffer happens to
112947         have nothing pending.
112949 2001-12-18  Paul Eggert  <eggert@twinsun.com>
112951         See the big note in ../ChangeLog.
112952         * lib/human.c (suffixes): Prefer K to k for 1024.
112953         (generate_suffix_backwards): New function.
112954         (human_readable_inexact): Use it.
112955         * lib/xstrtol.c (__xstrtol): If there is no number but there
112956         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
112957         Accept 'K' as well as 'k'.
112959 2001-12-15  Jim Meyering  <meyering@lucent.com>
112961         * lib/regex.h (__restrict_arr): Update from libc.
112963         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
112964         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
112965         (STREQ): Define.
112967 2001-12-14  Jim Meyering  <meyering@lucent.com>
112969         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
112970         Suggestion from Bruno Haible.
112972 2001-12-10  Jim Meyering  <meyering@lucent.com>
112974         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
112975         xrealloc, Instead, include "xalloc.h".
112976         (initbuffer): Don't cast xmalloc return value to char*.
112977         (readline): Reword comment.
112978         Don't cast xrealloc return value to char*
112979         Return NULL, not 0.
112981 2001-12-09  Jim Meyering  <meyering@lucent.com>
112983         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
112984         about `signed and unsigned type in conditional expression'.
112985         * lib/posixtm.c (posix_time_parse): Likewise.
112987         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
112989         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
112990         to avoid a pedantic warning.
112992         * lib/getstr.c: Don't include assert.h.
112993         (getstr): Remove warning-evoking assertions.
112994         Return -1 if offset parameter is out of bounds.
112995         Change the type of a local from int to size_t.
112997         * lib/strftime.c (my_strftime_localtime_r): Include this function
112998         definition in the `#if ! HAVE_TM_GMTOFF' block.
113000         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
113001         Include xalloc.h instead.
113003 2001-12-02  Jim Meyering  <meyering@lucent.com>
113005         * lib/tempname.c: Don't declare getenv, thus reverting the change of
113006         2001-11-18.  It's no longer necessary, now that stdlib.h is always
113007         included.
113009         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
113010         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
113012 2001-11-30  Akim Demaille  <akim@epita.fr>
113014         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
113015         before being defined.
113017 2001-11-27  Paul Eggert  <eggert@twinsun.com>
113019         * lib/quotearg.h (quotearg_n, quotearg_n_style):
113020         First arg is int, not unsigned.
113021         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
113022         (SIZE_MAX, UINT_MAX): New macros.
113023         (quotearg_n_options): Abort if N is negative.
113024         Avoid overflow check on hosts where size_t is 64 bits and int
113025         is 32 bits, as overflow is impossible there.
113026         Fix off-by-one typo that caused unnecessary reallocation.
113028 2001-11-27  Jim Meyering  <meyering@lucent.com>
113030         * lib/tempname.c: Merge with version from libc.
113031         * lib/regex.c: Likewise.
113033         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
113034         systems for which STDC_HEADERS is 0, it was not included, resulting in
113035         a warning about an integer-to-pointer conversion problem with getenv.
113036         Reported by Volker Borchert.
113038 2001-11-26  Jim Meyering  <meyering@lucent.com>
113040         * lib/gtod.h: Remove file.
113041         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
113042         * lib/gettimeofday.c: Don't include gtod.h.
113043         (GTOD_init): Remove function.
113044         (rpl_gettimeofday): Do its job here instead, rather than aborting.
113045         Suggestion from Volker Borchert.
113047 2001-11-23  Jim Meyering  <meyering@lucent.com>
113049         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
113050         it.
113051         * lib/hash.c (struct hash_table): Define it here instead.
113053 2001-11-22  Jim Meyering  <meyering@lucent.com>
113055         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
113057 2001-11-20  Jim Meyering  <meyering@lucent.com>
113059         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
113060         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
113062 2001-11-19  Jim Meyering  <meyering@lucent.com>
113064         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
113065         directory.  Use "conftestXXXXXX" as the template.
113066         Suggestion from Paul Eggert.
113068         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
113069         immediately, so the test doesn't mistakenly hit the max-open-files
113070         limit.
113072 2001-11-18  Paul Eggert  <eggert@twinsun.com>
113074         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
113075         (TEMPORARIES): New macro.
113076         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
113077         removes an artificial limitation (e.g. HP-UX 10.20, where
113078         TMP_MAX is 17576).
113080 2001-11-18  Jim Meyering  <meyering@lucent.com>
113082         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
113084 2001-11-18  Jim Meyering  <meyering@lucent.com>
113086         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
113087         on SunOS 4.
113089         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
113090         files will be created before anything else.
113092 2001-11-17  Paul Eggert  <eggert@twinsun.com>
113094         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
113095         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
113097 2001-11-17  Jim Meyering  <meyering@lucent.com>
113099         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
113100         Prompted by a report from Bob Proulx.
113102         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
113103         Instead, require UTILS_FUNC_MKSTEMP.
113105 2001-11-17  Jim Meyering  <meyering@lucent.com>
113107         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
113108         Now, that's done as part of AC_FUNC_STRTOD.
113110 2001-11-17  Jim Meyering  <meyering@lucent.com>
113112         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
113113         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
113114         rather than group writable.  Patch by Juan F. Codagnone.
113116         * lib/readtokens.c: Remove explicit declarations of xmalloc and
113117         xrealloc, Instead, include "xalloc.h".
113119         * lib/mountlist.c: Include unlocked-io.h after all system headers.
113120         Remove explicit declarations of xmalloc, xrealloc,
113121         and xstrdup.  Instead, include "xalloc.h".
113123         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
113124         unlocked-io.h.
113125         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
113126         Likewise.
113127         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
113129         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
113130         Reported by Padraig Brady.
113132         * lib/mkstemp.c: #undef mkstemp.
113133         Include config.h.
113134         (rpl_mkstemp): Rename from mkstemp.
113135         Protoize.
113137 2001-11-16  Jim Meyering  <meyering@lucent.com>
113139         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
113140         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
113141         determine the amount of total physical memory, use pstat_getstatic.
113142         HPUX-11 doesn't define _SC_PHYS_PAGES.
113143         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
113144         If sysconf couldn't be used to determine the amount of available
113145         physical memory, use both pstat_getstatic and pstat_getdynamic.
113146         Based on a patch from Bob Proulx.
113148 2001-11-10  Jim Meyering  <meyering@lucent.com>
113150         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
113151         (jm_PREREQ): Use it.
113153 2001-11-09  Jim Meyering  <meyering@lucent.com>
113155         * m4/jm-macros.m4: Require autoconf-2.52f.
113156         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
113157         Use these AC_-prefixed names, not the AM_-prefixed ones.
113159         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
113161 2001-11-05  Jim Meyering  <meyering@lucent.com>
113163         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
113165 2001-11-04  Jim Meyering  <meyering@lucent.com>
113167         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
113168         $DEFS.
113170 2001-11-03  Jim Meyering  <meyering@lucent.com>
113172         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
113173         of AC_DEFUN.
113175         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
113176         know the name of the variable in the macro definition.
113178 2001-11-03  Jim Meyering  <meyering@lucent.com>
113180         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
113181         in argmatch_to_argument call.
113183         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
113184         argument.
113186         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
113187         e.g., a fault due to an attempt to free a NULL pointer.
113189 2001-11-01  Jim Meyering  <meyering@lucent.com>
113191         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
113192         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
113194 2001-11-01  Jim Meyering  <meyering@lucent.com>
113196         * lib/dirfd.c, lib/dirfd.h: New files.
113197         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
113199         * lib/hash.c (hash_print) [TESTING]: Clean up.
113201 2001-10-22  Paul Eggert  <eggert@twinsun.com>
113203         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
113204         to avoid a warning if -Wall.
113206 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
113208         * README: New file
113209         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
113210         (per RMS's instructions, this is now the canonical source)
113211         * lgpl/, gpl/: New directories.
113213 2001-10-21  Paul Eggert  <eggert@twinsun.com>
113215         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
113217 2001-10-21  Jim Meyering  <meyering@lucent.com>
113219         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
113220         this code would end up calling gettext even in packages built
113221         with --disable-nls.
113222         * lib/getopt.c (_): Likewise.
113223         * lib/regex.c (_): Likewise.
113225 2001-10-20  Paul Eggert  <eggert@twinsun.com>
113227         * m4/error.m4 (jm_PREREQ_ERROR):
113228         Do not invoke AC_CHECK_FUNCS with strerror_r, as
113229         AC_FUNC_STRERROR_R does that.
113230         Check for strerror declaration.
113232         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
113233         are supposed to have them these days.
113234         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
113235         Merge changes from latest Autoconf CVS.
113236         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
113237         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
113238         POSIX decided to standardize on the int flavor of strerror_r.
113240 2001-10-20  Paul Eggert  <eggert@twinsun.com>
113242         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
113243         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
113244         Use strerror_r that is only a macro, even if it is not a function.
113245         (strerror): Check for HAVE_DECL_STRERROR before declaring.
113246         (private_strerror): Use prototypes, not old-style function definition.
113247         (print_errno_message): New function.
113248         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
113249         char*-flavored one.
113250         (error_tail, error, error_at_line): Use it.
113252 2001-10-11  Jim Meyering  <meyering@lucent.com>
113254         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
113255         and quote_n (1, ... to avoid clobbering a buffer.
113257 2001-10-05  Jim Meyering  <meyering@lucent.com>
113259         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
113260         hash-pjw.h.
113261         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
113262         * lib/hash-pjw.h: New file.
113264 2001-09-30  Jim Meyering  <meyering@lucent.com>
113266         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
113267         `struct fsstat' has the `f_fstypename' member.
113268         Use that to define FS_TYPE, which is now used to make
113269         the getfsstat link test tighter.
113271 2001-09-30  Jim Meyering  <meyering@lucent.com>
113273         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
113274         Include <sys/ucred.h>, for Apple Darwin.
113275         Include sys/mount.h and sys/fs_types.h only if available.
113276         (FS_TYPE): Define.
113277         (read_filesystem_list): Use FS_TYPE.
113279 2001-09-29  Paul Eggert  <eggert@twinsun.com>
113281         * lib/exclude.c (excluded_filename): 0 -> false, since it's
113282         a boolean context.
113284 2001-09-29  Jim Meyering  <meyering@lucent.com>
113286         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
113287         [one-argument getmntent function]): Include stdio.h before mntent.h.
113288         SunOS 4.1.x needs it for the declaration of `FILE'.
113289         Patch by Volker Borchert.
113291         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
113292         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
113293         sys/fs_types.h, and make the link-test for getfsstat guard #include
113294         directives with appropriate #if HAVE_*_H tests so that we can
113295         detect getfsstat on Apple Darwin1.3.7 systems.
113296         Reported by Nelson Beebe.
113297         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
113299 2001-09-28  Paul Eggert  <eggert@twinsun.com>
113301         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
113302         #defines strtoimax.  Also treat the other strto* functions
113303         like strtoimax.
113305         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
113306         Check for strtoul and strtoumax,
113307         as those declarations are made even in the signed case.
113308         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
113309         Likewise, for strtol and strtoimax.
113311 2001-09-28  Paul Eggert  <eggert@twinsun.com>
113313         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
113314         #defines strtoimax.  Also treat the other strto* functions
113315         like strtoimax.
113317         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
113318         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
113319         (strtoimax, strtoumax): Do not declare if already defined as a macro.
113321 2001-09-26  Jim Meyering  <meyering@lucent.com>
113323         Most macros in unlocked-io.h had the wrong number of arguments.
113324         * lib/gen-uio: New script.
113325         (USE_UNLOCKED_IO): Define to 1 if not already defined.
113326         * lib/unlocked-io.hin: Remove file.
113327         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
113328         rather than trying to embed it here.
113329         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
113330         Reported by Padraig Brady.
113332 2001-09-25  Volker Borchert  <bt@teknon.de>
113334         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
113335         `result'.
113337 2001-09-24  Jim Meyering  <meyering@lucent.com>
113339         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
113341 2001-09-23  Jim Meyering  <meyering@lucent.com>
113343         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
113344         instead of the mere test for existence of mntent.h.  The latter
113345         would get a false-positive on AIX 3.4 systems.
113346         In the outer getmntent if-block, don't die if neither of the getmntent
113347         tests succeeds.  Instead, just fall through and continue with the
113348         remaining tests.
113350 2001-09-23  Jim Meyering  <meyering@lucent.com>
113352         * lib/mountlist.c: Remove useless parentheses in #if directives.
113353         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
113354         the deprecated MOUNTED symbol is no longer defined in mntent.h.
113356 2001-09-22  Jim Meyering  <meyering@lucent.com>
113358         * m4/gettext.m4: New file.  From gettext.
113359         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
113360         * m4/progtest.m4: Likewise
113361         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
113362         * m4/glibc21.m4: Likewise.
113364         * m4/libintl.m4: Remove.  No longer used.
113366 2001-09-22  Jim Meyering  <meyering@lucent.com>
113368         * lib/localcharset.c: Update from latest gettext.
113369         * lib/config.charset: Likewise.
113371 2001-09-20  Jim Meyering  <meyering@lucent.com>
113373         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
113374         strtoimax.
113375         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
113376         strtoumax.
113378 2001-09-20  Jim Meyering  <meyering@lucent.com>
113380         * lib/xstrtol.c (strtoimax): Guard declaration with
113381         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
113382         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
113383         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
113384         (strtoumax): Likewise, for completeness (it wasn't necessary).
113386 2001-09-17  Paul Eggert  <eggert@twinsun.com>
113388         * lib/strtoimax.c (HAVE_LONG_LONG):
113389         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
113390         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
113391         to work around bug in IBM C compiler.
113393 2001-09-17  Jim Meyering  <meyering@lucent.com>
113395         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
113396         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
113397         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
113398         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
113399         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
113400         whenever the right hand side need not be expanded by the shell.
113402 2001-09-16  Paul Eggert  <eggert@twinsun.com>
113404         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
113405         library.  It's not correct, as some older glibcs are buggy.
113406         fnmatch wasn't fixed until glibc 2.2.
113408         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
113409         special shell magic here.
113411 2001-09-16  Jim Meyering  <meyering@lucent.com>
113413         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
113414         * m4/jm-macros.m4: Require it.
113416 2001-09-16  Jim Meyering  <meyering@lucent.com>
113418         * lib/mkdir.c: New file.
113420 2001-09-15  Jim Meyering  <meyering@lucent.com>
113422         * m4/jm-macros.m4: Check for help2man.
113424 2001-09-11  Jim Meyering  <meyering@lucent.com>
113426         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
113427         The body, by Paul Eggert, was moved here from configure.in.
113428         * m4/jm-macros.m4: Require UTILS_HOST_OS.
113430 2001-09-04  Paul Eggert  <eggert@twinsun.com>
113432         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
113433         (jm_PREREQ): Use it.
113435 2001-09-04  Paul Eggert  <eggert@twinsun.com>
113437         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
113438         Use ssize_t, not int, to store result of readlink.
113439         Check for ssize_t overflow as well as size_t overflow,
113440         as POSIX says the result of readlink is implementation-defined
113441         when ssize_t overflows.
113442         Remove unnecessary cast to char*.
113443         Use free+malloc instead of realloc, as the storage doesn't need
113444         to be preserved and it's clearer and can be more efficient that way.
113445         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
113446         * lib/xreadlink.h (xreadlink): Update prototype.
113448 2001-09-04  Paul Eggert  <eggert@twinsun.com>
113450         * lib/xgetcwd.c: Revert some of the previous change; intead,
113451         fix the HAVE_GETCWD_NULL code to behave more like the
113452         !HAVE_GETCWD_NULL code used to.
113454         Include "xalloc.h".
113455         (xgetcwd): Do not return NULL when memory is exhausted; instead,
113456         invoke xalloc_die.
113458 2001-09-03  Paul Eggert  <eggert@twinsun.com>
113460         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
113461         sys/param.h, as pathmax.h includes them.
113463 2001-09-03  Paul Eggert  <eggert@twinsun.com>
113465         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
113466         (jm_PREREQ_XGETCWD): New macro.
113468         * m4/getcwd.m4: New file.
113470 2001-09-03  Paul Eggert  <eggert@twinsun.com>
113472         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
113473         like the HAVE_GETCWD_NULL code.
113474         Include pathmax.h if not HAVE_GETCWD.
113475         Do not include xalloc.h.
113476         (INITIAL_BUFFER_SIZE): New symbol.
113477         Do not use xmalloc / xrealloc, since the caller is responsible for
113478         handling errors.  Preserve errno around `free' during failure.
113479         Do not overrun buffer when using getwd.
113481 2001-09-03  Paul Eggert  <eggert@twinsun.com>
113483         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
113484         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
113485         getcwd (NULL, 0).
113487 2001-09-03  Paul Eggert  <eggert@twinsun.com>
113489         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
113490         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
113491         spotted by Jim Meyering.
113493 2001-09-03  Jim Meyering  <meyering@lucent.com>
113495         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
113496         failure.
113498 2001-09-02  Jim Meyering  <meyering@lucent.com>
113500         * lib/error.c: Update from GNU libc.
113502 2001-09-01  Jim Meyering  <meyering@lucent.com>
113504         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
113505         Used by df.
113507 2001-09-01  Jim Meyering  <meyering@lucent.com>
113509         * lib/xreadlink.c: New file.
113510         * lib/xreadlink.h: New file.
113511         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
113512         xreadlink.h.
113514         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
113515         doesn't conflict with sparc Solaris 7's definition in
113516         /usr/include/sys/int_types.h.
113518         * lib/exclude.c: Use `""', not `<>' to #include non-system header
113519         files.
113520         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
113521         and strncasecmp as r-values.  Unixware didn't have declarations.
113523 2001-08-31  Paul Eggert  <eggert@twinsun.com>
113525         * lib/xstrtol.h: Add copyright notice.
113526         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
113527         LONGINT_INVALID_SUFFIX_CHAR.
113529 2001-08-31  Paul Eggert  <eggert@twinsun.com>
113531         * lib/xstrtol.c (strtoimax): New decl.
113533 2001-08-31  Paul Eggert  <eggert@twinsun.com>
113535         * lib/xgetcwd.c: Don't include pathmax.h.
113536         Include stdlib.h and unistd.h if available.
113537         Include xalloc.h.
113538         (xmalloc, xstrdup, free): Remove decls.
113539         (xgetcwd): Don't assume sizes fit in unsigned.
113540         Check for overflow when computing sizes.
113541         Simplify reallocation code.
113543 2001-08-31  Paul Eggert  <eggert@twinsun.com>
113545         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
113546         a directory's st_size can have an arbitrary value, so the old
113547         usage could waste an arbitrary amount of memory.  All uses
113548         changed.
113549         * lib/savedir.h: Update prototype.
113551 2001-08-31  Paul Eggert  <eggert@twinsun.com>
113553         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
113555         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
113556         old strtoimax.c.
113558         Also, make the following further changes to make this file's
113559         configuration more similar to that of strtol.c:
113560         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
113561         (strtoumax, uintmax_t, strtoull, strtol): Remove.
113562         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
113563         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
113564         changed to signed values.
113566         And make the following changes as well:
113567         Fix copyright notice, as 1999 was missing.
113568         (verify): New macro.
113569         (strtoimax): Check sizes at compile-time, not run-time.
113570         Prefer strtol to strtoll if both work.
113571         (main): Remove; it was not that useful and was a pain to maintain.
113573         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
113575 2001-08-31  Jim Meyering  <meyering@lucent.com>
113577         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
113578         Use an initial, malloc'd, buffer of length 128 rather than
113579         a statically allocated one of length 1024.
113581 2001-08-30  Paul Eggert  <eggert@twinsun.com>
113583         Simplify code, partly by assuming autoconf 2.52 semantics.
113585         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
113587         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
113588         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
113589         All uses removed.
113590         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
113591         Move AC_REQUIRE to next-to-top level, to avoid confusion.
113592         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
113593         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
113594         jm_AC_HEADER_INTTYPES_H.
113595         * m4/jm-macros.m4 (jm_MACROS): Likewise.
113597         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
113599         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
113600         Quote first arg of AC_DEFUN.
113601         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
113602         since they are needed to parse the include file even if we need
113603         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
113604         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
113605         but with opposite signedness.
113607 2001-08-30  Paul Eggert  <eggert@twinsun.com>
113609         Merge 'exclude' changes from tar 1.13.22.
113610         This fixes one or two unlikely storage allocation overflow bugs,
113611         but doesn't change user-visible behavior otherwise.
113613 2001-08-30  Paul Eggert  <eggert@twinsun.com>
113615         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
113616         (jm_PREREQ_EXCLUDE): New macro.
113618 2001-08-30  Paul Eggert  <eggert@twinsun.com>
113620         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
113621         tm to be declared.
113623 2001-08-30  Paul Eggert  <eggert@twinsun.com>
113625         * lib/hash.c: Remove '2001' from copyright notice.
113627 2001-08-30  Paul Eggert  <eggert@twinsun.com>
113629         * lib/full-write.h: New file.
113630         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
113631         * lib/full-write.c: Correct credits, as cccp.c no longer
113632         exists and anyway it was so heavily changed from the old cccp
113633         code as to be unrecognizable.  Include full-write.h.
113634         (full_write): Return size_t, with short writes meaning failure.
113635         All callers changed.  This fixes a bug with large buffers
113636         on 64-bit hosts.
113637         * lib/utime.c: Include full-write.h.
113639 2001-08-30  Paul Eggert  <eggert@twinsun.com>
113641         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
113642         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
113643         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
113644         Include if available.
113645         (<xalloc.h>): Include
113646         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
113647         (verify): New macro.  Use it to verify that EXCLUDE macros do not
113648         collide with FNM macros.
113649         (struct patopts): New struct.
113650         (struct exclude): Use it, as exclude patterns now come with options.
113651         (new_exclude): Support above changes.
113652         (new_exclude, add_exclude_file):
113653         Initial size must now be a power of two to simplify overflow checking.
113654         (free_exclude, fnmatch_no_wildcards): New function.
113655         (excluded_filename): No longer requires options arg, as the options
113656         are determined by add_exclude.  Now returns bool, not int.
113657         (excluded_filename, add_exclude):
113658         Add support for the fancy new exclusion options.
113659         (add_exclude, add_exclude_file): Now takes int options arg.
113660         Check for arithmetic overflow when computing sizes.
113661         (add_exclude_file): xrealloc might modify errno, so don't
113662         realloc until after errno might be used.
113664         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
113665         New macros.
113666         (free_exclude): New decl.
113667         (add_exclude, add_exclude_file): Now takes int options arg.
113668         (excluded_filename): No longer requires options arg, as the options
113669         are determined by add_exclude.  Now returns bool, not int.
113671 2001-08-30  Paul Eggert  <eggert@twinsun.com>
113673         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
113675 2001-08-27  Jim Meyering  <meyering@lucent.com>
113677         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
113679         * lib/version-etc.c (N_): Remove definition.
113680         Revert most of last change.
113681         Instead, simply don't mark the `Copyright...' string for translation.
113682         Based on advice from Paul Eggert.
113684         * lib/strtoxmax.c: Tweak comment.
113686 2001-08-26  Jim Meyering  <meyering@lucent.com>
113688         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
113690         * m4/xstrtoimax.m4: New file.
113691         * m4/xstrtoumax.m4: Add comments explaining why we
113692         AC_REPLACE_FUNCS(strtol).
113694 2001-08-26  Jim Meyering  <meyering@lucent.com>
113696         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
113697         of copyright with `%s' so translators don't get an untranslated
113698         message in 2002.
113699         (COPYRIGHT_YEAR): Define.
113700         (version_etc): Use fprintf rather than fputs.
113701         Suggestion from Ulrich Drepper.
113703         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
113705         * lib/strtoll.c: New file, from GNU libc.
113706         * lib/xstrtoimax.c: New file.
113708         * lib/xstrtol.h: Add xstrtoimax.
113709         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
113710         * lib/strtoimax.c: New file.  Likewise, but first define
113711         STRTOUXMAX_SIGNED.
113713         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
113714         ...
113715         * lib/strtoxmax.c: ... then renamed to this.
113717 2001-08-18  Paul Eggert  <eggert@twinsun.com>
113719         * m4/inttypes.m4: Add AC_PREREQ(2.13).
113720         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
113721         (jm_AC_TYPE_INTMAX_T): New macro.
113722         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
113724         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
113726         * m4/longlong.m4: Renamed from ulonglong.m4.
113727         * m4/inttypes.m4: Renamed from inttypes_h.m4.
113728         * m4/uintmax_t.m4: Removed.
113730 2001-08-13  Paul Eggert  <eggert@twinsun.com>
113732         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
113733         Port to Solaris 8, where 'sed' requires a space after the 'r'
113734         command, and where sh dislikes "$/".  Clean up the spacing a bit.
113735         Redirect output to $tmp just once.
113737 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
113739         * lib/addext.c (<errno.h>): Include.
113740         (errno): Declare if not defined.
113741         (addext): Work correctly when pathconf returns -1 and leaves
113742         errno alone because there is no limit.  Also, work even if
113743         pathconf returns a value greater than SIZE_MAX.
113745 2001-08-12  Jim Meyering  <meyering@lucent.com>
113747         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
113748         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
113749         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
113750         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
113751         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
113752         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
113753         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
113754         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
113755         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
113756         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
113757         utime.m4, utimes.m4, xstrtoumax.m4:
113758         Quote the first argument in each use of AC_DEFUN.
113760 2001-08-12  Jim Meyering  <meyering@lucent.com>
113762         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
113763         Simply `return getcwd (NULL, 0);'.
113764         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
113765         Use 1300 as initial value for length, not PATH_MAX.
113767         * lib/pathmax.h: Clean up cpp syntax.
113769 2001-08-12  Jim Meyering  <meyering@lucent.com>
113771         * lib/gettimeofday.c: New file.
113772         * lib/gtod.h: New file.
113773         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
113775 2001-08-05  Jim Meyering  <meyering@lucent.com>
113777         * m4/jm-macros.m4: Require autoconf-2.52.
113779 2001-08-04  Jim Meyering  <meyering@lucent.com>
113781         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
113782         stmt, to get in sync with glibc.
113784 2001-08-03  Paul Eggert  <eggert@twinsun.com>
113786         The following changes are from gettext 0.10.39 as maintained by
113787         Bruno Haible.
113789         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
113790         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
113791         with inverted sense.  All uses changed.
113793         * lib/mbswidth.c: Don't include <limits.h>.
113794         Include <stdlib.h> and <string.h> unconditionally.
113795         (iswcntrl, mbsinit, ISCNTRL): New macros.
113796         (mbsnwidth): Use K&R style function declarations.
113797         Don't bother checking for MB_LEN_MAX == 1, since the compiler
113798         can optimize it when MB_CUR_MAX == 1.
113799         The width of control characters is zero, not 1.
113801 2001-08-03  Paul Eggert  <eggert@twinsun.com>
113803         The following changes are from gettext 0.10.39 as maintained by
113804         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
113806         * m4/codeset.m4: Upgrade to serial AM1.
113807         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
113808         all uses changed.  Quote first arg of AC_DEFUN.
113809         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
113811         * m4/iconv.m4: Upgrade to serial AM2.
113812         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
113813         Add --with-libconv-prefix.
113814         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
113815         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
113816         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
113817         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
113818         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
113820         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
113821         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
113822         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
113823         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
113824         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
113825         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
113826         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
113827         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
113828         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
113830         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
113831         string.h any more.
113833         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
113834         not the default value.
113836         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
113837         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
113838         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
113839         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
113840         Also check for iswcntrl, used for wcwidth fallback.
113841         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
113842         to Autoconf 2.13.
113844 2001-08-03  Jim Meyering  <meyering@lucent.com>
113846         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
113847         as it was in the original.  Reported by Paul Eggert.
113849 2001-07-16  Jim Meyering  <meyering@lucent.com>
113851         * m4/gettimeofday.m4: New file.
113852         Prompted by a report from Bernhard Baehr.
113854 2001-07-15  Jim Meyering  <meyering@lucent.com>
113856         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
113857         stuff. Now it's in ../Makefile.cfg.
113859 2001-07-15  Jim Meyering  <meyering@lucent.com>
113861         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
113862         (BUILT_SOURCES): Add unlocked-io.h.
113863         (io_functions): Define.
113864         (unlocked-io.h): New rule.
113865         (DISTCLEANFILES): Add unlocked-io.h.
113866         (all-local): Depend on unlocked-io.h, to ensure it is created.
113868         * lib/unlocked-io.hin: New file
113870         * lib/regex.c: Update from glibc.
113872 2001-07-05  Jim Meyering  <meyering@lucent.com>
113874         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
113875         recommendation.
113876         (libfetish_a_SOURCES): Put all .h files here instead.
113877         Remove a thus-exposed (better checks in automake) duplicate and
113878         two unnecessary .h files.
113880 2001-07-04  Jim Meyering  <meyering@lucent.com>
113882         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
113883         that generates jm-glibc-io.m4 so that it doesn't trigger any make
113884         distcheck failure.
113886 2001-07-02  Jim Meyering  <meyering@lucent.com>
113888         The following changes were prompted by suggestions from Bruno Haible.
113890         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
113891         is now generated.
113892         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
113893         definition of EXTRA_DIST.
113894         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
113895         ensure that the generated file is created/updated whenever the list
113896         of $(unlocked_functions) is changed.
113897         (jm-glibc-io.m4): New rule.
113898         (unlocked-io.h): New rule -- currently unused.
113900 2001-06-24  Jim Meyering  <meyering@lucent.com>
113902         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
113903         unmatched right bracket, rather than kludging it with an extra,
113904         falsely-matching quote in a comment.  Patch by Akim Demaille.
113906 2001-06-11  Jim Meyering  <meyering@lucent.com>
113908         * lib/regex.c: Update from GNU libc.
113910 2001-05-27  Jim Meyering  <meyering@lucent.com>
113912         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
113913         Check for ut_type in struct utmp.
113915 2001-05-27  Jim Meyering  <meyering@lucent.com>
113917         * lib/readutmp.h (UT_TYPE): Define.
113919 2001-05-24  Jim Meyering  <meyering@lucent.com>
113921         * lib/argmatch.c: Include "quote.h".
113922         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
113923         quote function.  Reported by Göran Uddeborg.
113925 2001-05-22  Jim Meyering  <meyering@lucent.com>
113927         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
113928         now that we use the package-supplied version unconditionally.
113929         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
113931 2001-05-21  Jim Meyering  <meyering@lucent.com>
113933         * m4/regex.m4: Change a couple backticks to single quotes to avoid
113934         shell syntax errors.
113936 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
113938         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
113940 2001-05-20  Paul Eggert  <eggert@twinsun.com>
113942         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
113943         Don't bother to check library strftime, since
113944         we'll be using our own my_strftime function anyway.
113945         Define my_strftime instead of strftime.
113947 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
113949         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
113950         which is not yet declared.
113952 2001-05-15  Jim Meyering  <meyering@lucent.com>
113954         * m4/regex.m4: Use proper quoting so brackets appear in the test
113955         program.
113956         Reported by, and with help from, Bruno Haible.
113958 2001-05-13  Jim Meyering  <meyering@lucent.com>
113960         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
113961         undefined.
113963 2001-05-11  Paul Eggert  <eggert@twinsun.com>
113965         dirname code cleanup.  base_name now behaves more compatibly
113966         with POSIX basename when given file names that have trailing
113967         slashes, and similarly for dir_name.  Add new primitives
113968         base_len and dir_len.  Put the directory-name-related decls
113969         into dirname.h.
113971         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
113972         * lib/backupfile.c (base_name): Likewise.
113973         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
113974         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
113975         * lib/makepath.c (strip_trailing_slashes): Likewise.
113976         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
113977         ISSLASH): Likewise.
113978         * lib/rename.c (strip_trailing_slashes): Likewise.
113979         * lib/same.c (base_name): Likewise.
113980         * lib/stripslash.c (ISSLASH): Likewise.
113982         * lib/addext.c: Include <dirname.h> after size_t is defined.
113983         * lib/backupfile.c: Likewise.
113985         * lib/addext.c (addext): Use base_len to trim redundant
113986         trailing slashes instead of doing it ourselves.
113987         But do not trim the last slash if it is not redundant.
113989         * lib/backupfile.c (find_backup_file_name,
113990         max_backup_version): Use base_len instead of rolling it ourselves.
113991         Handle the case of "" and (on DOS) "C:" correctly.
113993         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
113994         needed. Include <string.h>, <dirname.h>.
113995         (base_name): Allow file names ending in slashes, other than names
113996         that are all slashes.  In this case, return the basename followed
113997         by the slashes.  This is more general, and can be used in places
113998         where the original base_name purposely had an assertion failure.
113999         (base_len): New function.
114001         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
114002         Do not include <assert.h>; no longer needed.
114003         Include xalloc.h.
114004         (memrchr): Remove decl.
114005         (dir_name_r): Remove.
114006         (dir_len): Renamed from dirlen.  All callers changed.
114007         Rewrite in terms of base_name, for simplicity and consistency.
114008         (dir_name): Never return NULL.  All callers changed.
114009         Do not include <stdlib.h> in test program; no longer needed.
114010         return 0; is fine for test program.
114012         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
114013         New macros.
114014         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
114016         * lib/path-concat.c (path_concat): Use base_len to compute
114017         base length, not strlen; this means we cannot rely on memcpy
114018         to null-terminate.
114020         * lib/same.c (STREQ): Remove.
114021         (same_name): Handle the case where the basename ends in trailing '/'.
114023         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
114024         a slash was stripped.  Do not strip the last slash after a
114025         file system prefix.
114027 2001-05-11  Paul Eggert  <eggert@twinsun.com>
114029         * lib/Makefile.am (libfetish_a_SOURCES):
114030         Add strftime.c, since we now compile it on all hosts.
114032         * lib/strftime.c (my_strftime):
114033         Define to nstrftime if emacs, but only if my_strftime is not defined.
114034         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
114035         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
114036         Add one more extra argument: a nanoseconds value.
114037         All uses changed.
114038         (ns): New macro.
114039         (my_strftime function): Add %N format.
114040         (emacs_strftimeu): Renamed from emacs_strftime,
114041         with extra ut argument.
114043 2001-05-09  Paul Eggert  <eggert@twinsun.com>
114045         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
114047 2001-04-21  Jim Meyering  <meyering@lucent.com>
114049         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
114050         doesn't interfere.
114052 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
114054         * m4/ftruncate.m4: Check for chsize.
114055         Link with ftruncate.o unconditionally if ftruncate is missing.
114056         This was required when cross-compiling to i586-mingw32msvc.
114058 2001-04-08  Jim Meyering  <meyering@lucent.com>
114060         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
114061         recomputed; that's necessary when the offset spans a DST transition.
114062         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
114064 2001-04-02  Jim Meyering  <meyering@lucent.com>
114066         * lib/regex.h, regex.c: Update from GNU libc.
114068 2001-03-24  Jim Meyering  <meyering@lucent.com>
114070         * m4/jm-macros.m4: Require autoconf-2.49d.
114072 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
114074         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
114076 2001-03-19  Paul Eggert  <eggert@twinsun.com>
114078         * lib/version-etc.c (version_etc_copyright): Update to 2001.
114080 2001-03-17  Jim Meyering  <meyering@lucent.com>
114082         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
114083         now that the version in autoconf is equivalent.
114084         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
114086         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
114087         Suggestion from Akim Demaille.
114089         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
114090         (jm_PREREQ_TEMPNAME): New function.
114092 2001-03-16  Paul Eggert  <eggert@twinsun.com>
114094         * lib/tempname.c (uint64_t): Define to uintmax_t if
114095         not defined, and if UINT64_MAX is not defined.
114096         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
114097         Reported by John David Anglin.
114099 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
114101         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
114102         resolve alias if codeset is empty.
114103         * lib/config.charset (BeOS): Use wildcard syntax.
114105 2001-03-13  Jim Meyering  <meyering@lucent.com>
114107         * lib/path-concat.c (path_concat)
114108         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
114109         concatenating e.g., `C:' and `foo'.
114110         From Bruno Haible.
114112 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
114114         * lib/localcharset.c (locale_charset): Don't use
114115         setlocale(LC_CTYPE,NULL). Don't return NULL.
114116         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
114118 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
114120         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
114121         support for DOS/DJGPP.
114123 2001-03-01  Paul Eggert  <eggert@twinsun.com>
114125         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
114126         lacks mkstemp.  Compile our own tempname.c if we compile our own
114127         mkstemp.c, as mkstemp relies on tempname.
114129 2001-03-01  Jim Meyering  <meyering@lucent.com>
114131         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
114132         AH_VERBATIM really does output its argument verbatim.
114134 2001-02-28  Paul Eggert  <eggert@twinsun.com>
114136         * lib/Makefile.am (libfetish_a_SOURCES):
114137         Add dup-safer.c, fopen-safer.c.
114138         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
114140         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
114141         * lib/unistd-safer.h: New files.
114143 2001-02-25  Paul Eggert  <eggert@twinsun.com>
114145         The mkstemp replacement is taken from glibc 2.2.2, with some
114146         portability fixes for use outside glibc, as follows:
114148         * lib/tempname.c (struct_stat64): New macro.
114149         (direxists, __gen_tempname): Use it.
114150         This avoids a portability problem with Solaris 8.
114152         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
114153         (<stddef.h>, <stdint.h>, <string.h>):
114154         Include only if STDC_HEADERS || _LIBC.
114155         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
114156         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
114157         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
114158         (__set_errno): Define this macro if <errno.h> doesn't.
114159         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
114160         Define these macros if <stdio.h> doesn't.
114161         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
114162         Define these macros if <sys/stat.h>
114163         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
114164         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
114165         __xstat64): Define if not _LIBC.
114166         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
114167         (__gen_tempname): Invoke gettimeofday only if
114168         HAVE_GETTIMEOFDAY || _LIBC;
114169         otherwise, fall back on plain "time".
114170         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
114172         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
114174         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
114176 2001-02-18  Paul Eggert  <eggert@twinsun.com>
114178         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
114180 2001-02-17  Paul Eggert  <eggert@twinsun.com>
114182         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
114183         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
114184         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
114185         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
114187 2001-02-17  Paul Eggert  <eggert@twinsun.com>
114189         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
114190         Remove workaround macros for hosts that have mbrtowc but not
114191         mbstate_t, as we now insist on proper declarations for both
114192         before using mbrtowc.
114194 2001-02-17  Jim Meyering  <meyering@lucent.com>
114196         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
114197         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
114198         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
114199         UnixWare 7.1.1.
114201         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
114202         rather than AC_CACHE_VAL.
114204 2001-02-17  Jim Meyering  <meyering@lucent.com>
114206         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
114207         around included file name.
114209         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
114211         * lib/strftime.c: Update from GNU libc (the only changes were to
114212         comments).
114214 2001-02-17  Jim Meyering  <meyering@lucent.com>
114216         * lib/regex.c: Update from libc.
114218 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
114220         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
114221         clash.
114223 2001-02-16  Paul Eggert  <eggert@twinsun.com>
114225         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
114226         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
114227         Reported by Mark Hounschell via Paul Eggert.
114229 2001-02-07  Jim Meyering  <meyering@lucent.com>
114231         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
114233 2001-02-05  Jim Meyering  <meyering@lucent.com>
114235         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
114236         it includes the patch required for `large file' support with at least
114237         HP-UX's 10.20 /bin/cc.
114239 2001-02-03  Jim Meyering  <meyering@lucent.com>
114241         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
114242         AS_IF, now that it works once again (mysteriously).
114243         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
114245 2001-01-30  Jim Meyering  <meyering@lucent.com>
114247         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
114248         * m4/chown.m4: Rename conftestchown to conftest.chown.
114249         * m4/rename.m4: s/conftestdir/conftest.d1/ and
114250         s/conftestdir2/conftest.d2/.
114251         * m4/utimes.m4: s/conftestdata/conftest.data/
114252         Inspired by Pavel Roskin's change in autoconf.
114254 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
114256         * lib/config.charset: Update for FreeBSD 4.2.
114258 2001-01-27  Jim Meyering  <meyering@lucent.com>
114260         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
114261         a use of AS_IF.
114262         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
114264 2001-01-26  Jim Meyering  <meyering@lucent.com>
114266         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
114267         quotearg.c includes it.
114269 2001-01-26  Jim Meyering  <meyering@lucent.com>
114271         * lib/quotearg.c: Include stddef.h.
114272         * lib/quote.c: Include stddef.h.
114273         Reported by Axel Kittenberger.
114275         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
114276         line in double quotes so that it evokes a better diagnostic.
114277         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
114278         Reported by Axel Kittenberger.
114280 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
114282         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
114283         as if it was a `charset'.
114285 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
114287         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
114288         has const.
114290 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
114292         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
114293         to avoid a warning.  Add back 'const' to inptr.
114295 2001-01-20  Jim Meyering  <meyering@lucent.com>
114297         Be sure that headers are checked before used in code compiled
114298         for the type checks.
114299         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
114300         In place of that, invoke jm_CHECK_ALL_TYPES.
114301         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
114302         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
114303         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
114304         The check for ssize_t was mistakenly run before the test for unistd.h.
114306         The configure-time check for stdbool.h was missing.
114307         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
114308         (jm_PREREQ_HASH): New function.
114310 2001-01-17  Jim Meyering  <meyering@lucent.com>
114312         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
114313         for autoconf-2.49c.
114314         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
114316 2001-01-16  Jim Meyering  <meyering@lucent.com>
114318         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
114319         From Bruno Haible.
114321 2001-01-14  Jim Meyering  <meyering@lucent.com>
114323         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
114324         foo and bar.  Create conftestdir/ in the script, not in the C code.
114325         Remove directories in the script, not in the C code.
114326         Remove conftestdir{,2} before trying to create the directory.
114327         Make the entire configure script fail if the mkdir fails.
114329 2001-01-14  Jim Meyering  <meyering@lucent.com>
114331         * lib/rename.c: New file.  From Volker Borchert.
114332         Include stdlib.h, string.h or strings.h, and xalloc.h.
114333         Use strip_trailing_slashes rather than open-coding it.
114335 2001-01-03  Paul Eggert  <eggert@twinsun.com>
114337         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
114339 2001-01-03  Jim Meyering  <meyering@lucent.com>
114341         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
114342         of local `inptr' to avoid warning with some system declarations of
114343         iconv.
114345 2001-01-02  Volker Borchert  <bt@teknon.de>
114347         * m4/rename.m4: New file.
114348         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
114350 2001-01-01  Jim Meyering  <meyering@lucent.com>
114352         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
114353         even on systems with utmpx.h.  It's necessary for the declaration of
114354         utmp's ut_user member.  Reported by Andreas Jaeger.
114356         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
114357         available. They are required for the declarations of getgrgid and
114358         getpwuid resp.
114359         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
114360         Reported by Andreas Jaeger.
114362 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
114364         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
114365         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
114366         so `make install' also works in VPATH builds.
114368 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
114370         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
114371         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
114372         can be used in subdirectories.
114374 2000-12-29  Paul Eggert  <eggert@twinsun.com>
114376         * lib/modechange.c: Do not assume that mode_t uses the
114377         traditional octal encoding.  E.g. "chmod 1 FOO" should set
114378         the other-execute bit of FOO even if S_IXOTH != 1.
114380         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
114381         WOTH, XOTH, ALLM): New macros.
114382         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
114383          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
114384         Use them.
114385         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
114386         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
114387         (mode_compile):
114388         No need to use uintmax_t; unsigned long is long enough.
114389         Don't bother to get suffix since we don't use it.
114391 2000-12-26  Jim Meyering  <meyering@lucent.com>
114393         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
114394         better with autoheader.
114396 2000-12-24  Jim Meyering  <meyering@lucent.com>
114398         * lib/hash.c (is_prime): Return explicit boolean values.
114399         (hash_get_first): Return NULL to appease Irix5.6's 89.
114400         Reported by Nelson Beebe.
114402 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
114404         * lib/localcharset.c (locale_charset): Add support for Win32.
114406 2000-12-18  Paul Eggert  <eggert@twinsun.com>
114408         * lib/physmem.h, lib/physmem.c: New files.
114410         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
114411         (noinst_HEADERS): Add physmem.h.
114413         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
114414         't' for compatibility with Solaris 8 sort.
114416 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
114418         * lib/config.charset: Add support for BeOS.
114420 2000-12-17  Jim Meyering  <meyering@lucent.com>
114422         * m4/dos.m4 (jm_AC_DOS): New file and macro.
114423         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
114425 2000-12-16  Jim Meyering  <meyering@lucent.com>
114427         This bug had a serious impact on chown: `chown N:M FILE' (for integer
114428         N and M) would have treated it like `chown N:N FILE'.
114430         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
114432 2000-12-16  Jim Meyering  <meyering@lucent.com>
114434         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
114435         SHELLS_FILE to a file name that's useful on djgpp systems.
114436         Include stdlib.h.
114437         (ADDITIONAL_DEFAULT_SHELLS): Define.
114438         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
114439         Based mostly on a patch from Prashant TR.
114441 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
114443         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
114444         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
114445         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
114447 2000-12-08  Andreas Schwab  <schwab@suse.de>
114449         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
114450         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
114452 2000-12-07  Jim Meyering  <meyering@lucent.com>
114454         * lib/stripslash.c (ISSLASH): Define.
114455         (strip_trailing_slashes): Use ISSLASH rather than comparing against
114456         `/'.
114457         From Prashant TR.
114459         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
114460         (dir_name_r): Declare this function as static.
114461         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
114462         manifest itself on a name containing a mix of slashes and
114463         backslashes.
114464         Make this function work with names starting with a DOS-style
114465         drive letter and colon prefix.
114466         (dir_name): Append `.' if necessary.
114467         Based mostly on patches from Prashant TR and Eli Zaretskii.
114469         * lib/dirname.h (dir_name_r): Remove prototype.
114471 2000-12-06  Paul Eggert  <eggert@twinsun.com>
114473         * m4/off_t-format.m4: Remove this file.
114474         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
114476 2000-12-06  Jim Meyering  <meyering@lucent.com>
114478         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
114479         replacement strtoull, we may well need the replacement strtoul, too.
114480         Check for declarations of strtoul and strtoull.
114481         Check for strtol.  Mainly as a cue to cause automake to include
114482         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
114483         Check for limits.h -- strtol.c needs it.
114485 2000-12-05  Jim Meyering  <meyering@lucent.com>
114487         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
114489 2000-12-04  Jim Meyering  <meyering@lucent.com>
114491         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
114492         Also include memory.h, stdlib.h, unistd.h if appropriate.
114493         Reported by Andreas Jaeger (conflicting declaration of malloc).
114495 2000-12-02  Jim Meyering  <meyering@lucent.com>
114497         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
114498         * m4/jm-macros.m4 (jm_MACROS): require it.
114500 2000-12-02  Jim Meyering  <meyering@lucent.com>
114502         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
114504 2000-12-01  Paul Eggert  <eggert@twinsun.com>
114506         * lib/memrchr.c: Include <config.h> before any system include file.
114508 2000-11-30  Jim Meyering  <meyering@lucent.com>
114510         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
114512 2000-11-30  Jim Meyering  <meyering@lucent.com>
114514         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
114516 2000-11-29  Paul Eggert  <eggert@twinsun.com>
114518         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
114520 2000-11-26  Jim Meyering  <meyering@lucent.com>
114522         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
114524 2000-11-22  Paul Eggert  <eggert@twinsun.com>
114526         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
114527         size of (size_t) -1; it's not portable.
114529 2000-11-17  Jim Meyering  <meyering@lucent.com>
114531         * lib/strstr.c: Update from GNU libc.
114533 2000-11-17  Akim Demaille  <akim@epita.fr>
114535         * lib/obstack.h: Formatting changes.
114536         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
114537         prevent type checking.
114538         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
114539         cast the value to (void *): assigning a `foo *' to a `void *'
114540         variable is valid.
114541         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
114543 2000-11-16  Jim Meyering  <meyering@lucent.com>
114545         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
114547 2000-11-11  Jim Meyering  <meyering@lucent.com>
114549         * lib/error.c: Add a couple #includes, merging from GNU libc version.
114551 2000-11-10  Jim Meyering  <meyering@lucent.com>
114553         * lib/obstack.h: Update from GNU libc.
114554         * lib/obstack.c: Likewise.
114556 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
114558         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
114560 2000-11-06  Paul Eggert  <eggert@twinsun.com>
114562         * lib/getusershell.c (setusershell): Use rewind rather than
114563         fseek/fseeko, to avoid configuration hassles with fseeko.
114564         Don't bother opening SHELLS_FILE if shellstream is NULL;
114565         it's not necessary.
114567 2000-11-05  Jim Meyering  <meyering@lucent.com>
114569         * lib/makepath.h (make_dir): Declare.
114570         * lib/makepath.c (make_dir): Remove `static' attribute.
114571         Tweak a comment.
114573 2000-11-04  Jim Meyering  <meyering@lucent.com>
114575         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
114577 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
114579         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
114580         last one in a bucket, advance to the next bucket.
114582 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
114584         * lib/fnmatch.c: Do not comment out all the code if we are using
114585         the GNU C library, because in some cases we are replacing buggy
114586         code in the GNU C library itself.
114588 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
114590         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
114591         (regex_compile): Catch bogus \(\1\).
114593 2000-10-30  Paul Eggert  <eggert@twinsun.com>
114595         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
114596         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
114597         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
114599 2000-10-30  Paul Eggert  <eggert@twinsun.com>
114601         * lib/error.h, getline.h, modechange.h:
114602         Remove "2000" from Copyright line, as the file hasn't been
114603         changed this year other than in the copyright notice.
114605         * lib/xalloc.h: Add "2000" to Copyright line, as this file
114606         was changed this year.
114608 2000-10-29  Jim Meyering  <meyering@lucent.com>
114610         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
114611         renaming.
114612         * m4/ls-mntd-fs.m4: Likewise
114614 2000-10-29  Jim Meyering  <meyering@lucent.com>
114616         * lib/xstat.in: Fix grammar in comment.
114618 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
114620         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
114621         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
114622         doesn't define __restrict_arr.
114624 2000-10-28  Jim Meyering  <meyering@lucent.com>
114626         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
114627         (jm_PREREQ_MEMCHR): New function.
114629 2000-10-28  Jim Meyering  <meyering@lucent.com>
114631         * lib/memchr.c: Update from libc.
114632         Adjust for portability:
114633         [HAVE_STDLIB_H]: Include stdlib.h.
114634         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
114635         Undef __memchr, too.
114636         [!weak_alias]: Define __memchr to memchr.
114638         * lib/regex.c: Update from libc.
114639         * lib/regex.h: Likewise.
114640         * lib/getopt1.c: Likewise.
114641         * lib/memcmp.c: Likewise.
114643         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
114644         Avoid using fseek, when possible -- it's broken by design.
114645         Patch by Ulrich Drepper.
114647 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
114649         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
114650         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
114651         Giving in to popular pressure to shut up the compiler with casts.
114653 2000-10-26  Jim Meyering  <meyering@lucent.com>
114655         * lib/strftime.c: Update from libc.
114657 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
114659         * regex.c: More `unsigned char' -> `re_char' changes.
114660         Also change several `int' into `re_wchar_t'.
114661         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
114662         (PUSH_FAILURE_POINTER): Don't cast any more.
114663         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
114664         We want GCC to complain, since this piece of code makes
114665         re_match non-reentrant, which *should* be fixed.
114666         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
114667         (EXTEND_BUFFER): Use RETALLOC.
114668         (SET_LIST_BIT): Don't cast.
114669         (re_wchar_t): New type.
114670         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
114671         that those two functions will always properly return.
114672         (IMMEDIATE_QUIT_CHECK): Cast to void.
114673         (analyse_first): Use recursion rather than an explicit stack.
114674         (re_compile_fastmap): Can't fail anymore.
114675         (re_search_2): Don't check re_compile_fastmap for failure.
114676         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
114677         Now also sets the new value (passed in a new argument).
114678         (re_match_2_internal): Use it.
114679         Also, use a new var `reg' of type size_t when looping through regs
114680         rather than reuse the inappropriate `mcnt'.
114682 2000-10-25  Jim Meyering  <meyering@lucent.com>
114684         * lib/obstack.c: Update from libc.
114686 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
114688         * regex.c (regex_compile): Change the way of handling a range from
114689         a char less than 256 to a char not less than 256.
114691 2000-10-24  Andrew Innes  <andrewi@gnu.org>
114693         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
114694         NT-Emacs only.
114695         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
114696         so that re_search functions only quit when callers expect them to.
114698 2000-10-23  Jim Meyering  <meyering@lucent.com>
114700         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
114701         wrong.  That set_locale call must not have any side effects.
114702         From Paul Eggert.
114704 2000-10-22  Jim Meyering  <meyering@lucent.com>
114706         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
114707         [CYCLIC]: Remove now-unused definition.
114709         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
114710         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
114711         Suggestion from Ulrich Drepper.
114713 2000-10-21  Jim Meyering  <meyering@lucent.com>
114715         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
114716         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
114717         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
114719 2000-10-21  Jim Meyering  <meyering@lucent.com>
114721         * lib/dirname.c (memrchr): Declare if necessary.
114722         (dir_name): Remove the restriction that there be no
114723         trailing slashes.  Now, this code skips past them, effectively
114724         ignoring them.
114725         [TEST_DIRNAME] (main): New unit tests.
114727         * lib/memrchr.c: New file from GNU libc.
114728         Undef __memrchr, too.
114729         [!weak_alias]: Define __memrchr to memrchr.
114730         Guard weak_alias use with `#ifdef weak_alias'.
114732 2000-10-21  Jim Meyering  <meyering@lucent.com>
114734         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
114735         (dir_name): Use dir_name_r.
114736         * lib/dirname.h (dir_name_r): Declare it.
114738 2000-10-17  Jim Meyering  <meyering@lucent.com>
114740         * lib/quote.h (PARAMS): Define and use.
114741         Reported by Akim Demaille.
114743         * lib/getopt.c: Update from libc.
114745 2000-10-16  Jim Meyering  <meyering@lucent.com>
114747         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
114748         setlocale.
114749         From Jan Fedak.
114751 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
114753         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
114755 2000-09-25  Jim Meyering  <meyering@lucent.com>
114757         * lib/md5.h (rol): Define (from GnuPG).
114759         * lib/sha.c: Give credit (GnuPG) where due.
114760         (M): Use rol rather than open-coding it.
114761         Add a FIXME comment.
114763 2000-09-21  Jim Meyering  <meyering@lucent.com>
114765         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
114766         Reported by Michael Stone.
114768 2000-09-20  Jim Meyering  <meyering@lucent.com>
114770         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
114771         (noinst_HEADERS): Add sha.h.
114772         Based on code from Scott G. Miller and from GnuPG.
114774 2000-09-18  Jim Meyering  <meyering@lucent.com>
114776         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
114777         LIBS. Otherwise, everyone ends up linking with -lelf for some
114778         configurations.
114779         Reported by Mike Stone.
114781 2000-09-15  Jim Meyering  <meyering@lucent.com>
114783         * lib/regex.c: Update from libc.
114785 2000-09-10  Jim Meyering  <meyering@lucent.com>
114787         * lib/getopt.c (_getopt_internal): Update from glibc.
114789 2000-09-09  Jim Meyering  <meyering@lucent.com>
114791         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
114792         think it should be used as a general replacement for isascii.
114793         * lib/fnmatch.c: Likewise.
114794         * lib/mbswidth.c: Likewise
114795         * lib/regex.c: Likewise.
114797         Don't use atoi.
114798         * lib/userspec.c: Include sys/param.h and limits.h.
114799         Include xstrtol.h.
114800         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
114801         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
114802         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
114803         UID, GID.  Check range.
114805 2000-09-06  Jim Meyering  <meyering@lucent.com>
114807         * lib/getopt.c (_getopt_internal): Update from glibc.
114809 2000-08-30  Jim Meyering  <meyering@lucent.com>
114811         * lib/strftime.c: Merge in changes from GNU libc.
114813 2000-08-26  Jim Meyering  <meyering@lucent.com>
114815         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
114816         * m4/fpending.m4: New file.
114818 2000-08-26  Jim Meyering  <meyering@lucent.com>
114820         * lib/closeout.c: Include "__fpending.h".
114821         (close_stdout_status): Return right away if there's nothing to flush.
114823         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
114824         * lib/__fpending.c: New file.
114825         * lib/__fpending.h: New file.
114827 2000-08-20  Jim Meyering  <meyering@lucent.com>
114829         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
114830         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
114831         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
114833 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
114835         Improve fileutils installation on systems where running
114836         programs (like install) can't be unlinked.
114837         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
114838         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
114840 2000-08-07  Paul Eggert  <eggert@twinsun.com>
114842         Standardize on "memory exhausted" instead of "Memory exhausted"
114843         or "virtual memory exhausted".
114844         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
114845         "virtual memory exhausted".
114846         * lib/same.c (same_name): Invoke xalloc_die instead of printing
114847         our own message.
114848         * lib/userspec.c (parse_user_spec): Likewise.
114849         * lib/bumpalloc.h: comment fix
114850         * lib/same.c, userspec.c: Include xalloc.h.
114852         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
114853         not char *const and pointing to a constant array.
114854         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
114855         (xrealloc): Comment fix.
114857         * lib/userspec.c (parse_user_spec):
114858         Don't translate a message until just before returning,
114859         to avoid unnecessary translation.
114861 2000-08-07  Jim Meyering  <meyering@lucent.com>
114863         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
114864         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
114865         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
114866         getgroups.c, gethostname.c, getopt.h, group-member.c,
114867         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
114868         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
114869         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
114870         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
114871         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
114872         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
114873         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
114874         yesno.c: Back out Copyright date changes for each file with no change
114875         this year.  This eases coordination with other programs using the same
114876         source code modules.  From Paul Eggert.
114878 2000-08-06  Paul Eggert  <eggert@twinsun.com>
114880         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
114881         not char, for compatibility with glibc 2.1.3 strftime.c.
114883 2000-08-03  Greg McGary  <greg@mcgary.org>
114885         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
114886         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
114887         (EXTEND_BUFFER): Use them.
114889 2000-08-01  Jim Meyering  <meyering@lucent.com>
114891         * lib/dirname.c (ISSLASH): Define.
114892         (BACKSLASH_IS_PATH_SEPARATOR): Define.
114893         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
114894         both `\' and `/' may be use as path separators.
114895         Based on a patch from Prashant TR.
114897 2000-07-31  Paul Eggert  <eggert@twinsun.com>
114899         * lib/quotearg.c (quotearg_n_options): Don't make the initial
114900         slot vector a constant, since it might get modified.
114902 2000-07-31  Jim Meyering  <meyering@lucent.com>
114904         * lib/xmalloc.c: Use `virtual memory exhausted', not
114905         `Memory exhausted'.
114906         * lib/obstack.c (print_and_abort): Likewise.
114908 2000-07-30  Paul Eggert  <eggert@twinsun.com>
114910         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
114911         buffer, so that the caller can always quote one small
114912         component of a "memory exhausted" message in slot 0.
114913         From a suggestion by Jim Meyering.
114915 2000-07-30  Jim Meyering  <meyering@lucent.com>
114917         * lib/makepath.c (make_path): Quote the other instance, too.
114919         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
114920         (STATIC_BUF_SIZE): Define.
114921         (quotearg_n_options): Use only statically allocated storage when
114922         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
114923         than STATIC_BUF_SIZE.
114925 2000-07-29  Jim Meyering  <meyering@lucent.com>
114927         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
114928         * lib/dirname.c (dir_name): Likewise.
114930         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
114931         `/'.
114933         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
114934         (dir_name): Assert that there are no trailing slashes.
114936 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
114938         * lib/mbswidth.h (mbswidth): Add a flags argument.
114939         (mbswidth): New declaration.
114940         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
114941         * lib/mbswidth.c (mbswidth): Add a flags argument.
114942         (mbsnwidth): New function.
114944 2000-07-24  Jim Meyering  <meyering@lucent.com>
114946         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
114948 2000-07-23  Paul Eggert  <eggert@twinsun.com>
114950         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
114952 2000-07-23  Paul Eggert  <eggert@twinsun.com>
114954         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
114955         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
114956         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
114957         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
114958         invoke multibyte primitives.
114960 2000-07-23  Paul Eggert  <eggert@twinsun.com>
114962         * lib/quotearg.c:
114963         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
114964         so that mbstate_t is always defined.
114966         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
114967         be 1 in at least one GCC installation, and this configuration
114968         error is likely to be common.  Ignoring MB_LEN_MAX hurts
114969         performance on hosts that have mbrtowc but have only unibyte
114970         locales, but I assume these hosts are rare.
114972 2000-07-23  Paul Eggert  <eggert@twinsun.com>
114974         * lib/mbswidth.c (_XOPEN_SOURCE):
114975         Don't define; this causes problems on Solaris 7.
114976         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
114978 2000-07-23  Jim Meyering  <meyering@lucent.com>
114980         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
114981         too: getgrgid, getpwuid, getuid.
114983 2000-07-23  Jim Meyering  <meyering@lucent.com>
114985         * lib/basename.c (base_name): Add an assertion.
114987 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
114989         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
114990         shadow its mbsinit function.
114992 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
114994         * lib/mbswidth.h: New file.
114995         * lib/mbswidth.c: New file.
114996         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
114997         (noinst_HEADERS): Add mbswidth.h.
114999 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
115001         * lib/config.charset: Add support for FreeBSD. Improve support for
115002         HP-UX and IRIX 6.
115004 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
115006         * m4/mbswidth.m4: New file.
115007         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
115009 2000-07-15  Jim Meyering  <meyering@lucent.com>
115011         * lib/makepath.c: Include quote.h.
115012         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
115013         corresponding argument in a `quote (...)' call.
115014         Give better diagnostics.
115016         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
115017         (noinst_HEADERS): Add quote.h.
115019         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
115020         from tar's src/misc.c.
115021         * lib/quote.h: New file.  Prototypes for same.
115023 2000-07-14  Paul Eggert  <eggert@twinsun.com>
115025         From a suggestion by Bruno Haible.
115026         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
115027         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
115028         to decide whether to define the BeOS workaround macro;
115029         this adjusts to the change to AC_MBSTATE_T.
115031 2000-07-14  Jim Meyering  <meyering@lucent.com>
115033         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
115034         jm_AC_TYPE_UINTMAX_T.
115036 2000-07-13  Paul Eggert  <eggert@twinsun.com>
115038         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
115040         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
115041         quotearg_buffer_restyled): Add support for
115042         clocale_quoting_style.  Undo previous change to
115043         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
115044         and "{RIGHT QUOTATION MARK}" msgids.
115046 2000-07-10  Paul Eggert  <eggert@twinsun.com>
115048         From a suggestion by Bruno Haible.
115049         * m4/mbstate_t.m4 (AC_MBSTATE_T):
115050         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
115051         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
115052         and mbstate_t, to a single-part test that simply defines mbstate_t.
115053         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
115054         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
115056 2000-07-10  Jim Meyering  <meyering@lucent.com>
115058         * m4/strerror_r.m4: Mirror the correction made in autoconf.
115060         * m4/gnu-source.m4: Output to confdefs.h directly.
115061         Suggestion from Akim Demaille.
115063 2000-07-09  Paul Eggert  <eggert@twinsun.com>
115065         The old behavior of quoting `like this' doesn't look good with
115066         newer, ISO-style fonts.  See:
115067         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
115069         Instead, quote "like this" by default.  Let the translator
115070         tailor the locale-specific quoting behavior by providing
115071         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
115073         * lib/quotearg.c (N_): New macro.
115074         (gettext_default): New function.
115075         (quotearg_buffer_restyled): Use
115076         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
115077         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
115079 2000-07-09  Jim Meyering  <meyering@lucent.com>
115081         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
115082         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
115084         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
115085         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
115087 2000-07-09  Jim Meyering  <meyering@lucent.com>
115089         * lib/Most files: Update copyright dates to include 2000.
115091 2000-07-08  Jim Meyering  <meyering@lucent.com>
115093         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
115094         if not defined.
115095         (xgethostname): Remove now-unnecessary #ifdef.
115096         Move declaration of `err' into loop where it's used.
115098 2000-07-05  Paul Eggert  <eggert@twinsun.com>
115099         and Bruno Haible  <haible@clisp.cons.org>
115101         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
115102         only if the test for an object-type mbstate_t fails.  This
115103         prevents us from mistakenly reporting that mbstate_t is a
115104         system object type after we "#define mbstate_t int" to work
115105         around its lack.
115107 2000-07-05  Paul Eggert  <eggert@twinsun.com>
115108         and Bruno Haible  <haible@clisp.cons.org>
115110         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
115112 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
115114         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
115115         to strerror_r.
115116         Include <ctype.h> for use of isalpha.
115118 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
115120         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
115121         by allocating a larger buffer. Test the gethostname return value for
115122         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
115123         returns an error and ENAMETOOLONG isn't defined.
115125 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
115127         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
115128         dimension.
115130 2000-07-04  Jim Meyering  <meyering@lucent.com>
115132         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
115133         of the deprecated AC_CHECKING.
115135 2000-07-04  Jim Meyering  <meyering@lucent.com>
115137         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
115138         Reported by Bruno Haible.
115140 2000-07-04  Jim Meyering  <meyering@lucent.com>
115142         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
115143         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
115144         lacks mbrtowc.
115146 2000-07-03  Paul Eggert  <eggert@twinsun.com>
115148         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
115149         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
115151 2000-07-03  Paul Eggert  <eggert@twinsun.com>
115152         and Bruno Haible  <haible@clisp.cons.org>
115154         * lib/quotearg.c (mbrtowc):
115155         Assign to *pwc, and return 1 only if result is nonzero.
115156         (iswprint): Use ISPRINT when substituting our own mbrtowc.
115158 2000-07-03  Jim Meyering  <meyering@lucent.com>
115160         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
115162 2000-07-03  Jim Meyering  <meyering@lucent.com>
115164         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
115165         This is necessary to get a definition of e.g., UTMP_FILE on
115166         HP-UX 10.20.
115167         From Bob Proulx.
115169 2000-07-02  Jim Meyering  <meyering@lucent.com>
115171         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
115173         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
115174         AC_LIBOBJ(function_name).
115175         * m4/chown.m4: Likewise.
115176         * m4/fnmatch.m4: Likewise.
115177         * m4/ftruncate.m4: Likewise.
115178         * m4/getgroups.m4: Likewise.
115179         * m4/getline.m4: Likewise.
115180         * m4/group-member.m4: Likewise.
115181         * m4/jm-macros.m4: Likewise.
115182         * m4/lstat.m4: Likewise.
115183         * m4/malloc.m4: Likewise.
115184         * m4/memcmp.m4: Likewise.
115185         * m4/nanosleep.m4: Likewise.
115186         * m4/putenv.m4: Likewise.
115187         * m4/realloc.m4: Likewise.
115188         * m4/regex.m4: Likewise.
115189         * m4/stat.m4: Likewise.
115190         * m4/strftime.m4: Likewise.
115192 2000-07-02  Jim Meyering  <meyering@lucent.com>
115194         * lib/quotearg.c (mbstate_t): Don't define here.
115196 2000-07-02  Jim Meyering  <meyering@lucent.com>
115198         * lib/nanosleep.c (SIGCONT): Define if not already defined.
115200 2000-07-01  Jim Meyering  <meyering@lucent.com>
115202         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
115204 2000-07-01  Jim Meyering  <meyering@lucent.com>
115206         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
115207         problem.
115209 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
115211         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
115212         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
115214 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
115216         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
115217         per change in ../m4/ls-mntd-fs.m4.
115218         (read_filesystem_list): Ignore symbolic links.
115220 2000-06-29  Jim Meyering  <meyering@lucent.com>
115222         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
115223         for declaration of strcmp.
115225         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
115227         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
115228         Avoid warning by casting result to `char *' to remove `const'.
115230 2000-06-28  Jim Meyering  <meyering@lucent.com>
115232         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
115233         included by quotearg.c, for which we perform this test.  From
115234         Bruno Haible.
115236 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
115238         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
115239         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
115240         <utmpx.h> exists, put readutmp.o into LIBOBJS.
115242 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
115244         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
115246 2000-06-26  Paul Eggert  <eggert@twinsun.com>
115248         savedir now sets errno on failure and invokes xmalloc to get memory.
115249         Fix a couple of other minor bugs while we're at it.
115251         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
115252         (NAMLEN): Remove macro.
115253         (malloc, realloc): Remove decls.
115254         (stpcpy): Likewise.
115255         ("xalloc.h"): Include.
115256         (NAME_SIZE_DEFAULT): New macro.
115257         (savedir): Use xmalloc / xrealloc to allocate memory.
115258         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
115259         Skip "" directory entries.
115260         Use strlen to calculate directory entry length, since the old method
115261         is rarely used these days and isn't worth supporting.
115262         Don't use a pointer after freeing it.
115263         Check for integer overflow when calculating allocation size.
115264         Use memcpy to copy entries, instead of stpcpy.
115265         Set errno properly when returning NULL.
115266         Check for readdir error.
115268 2000-06-26  Jim Meyering  <meyering@lucent.com>
115270         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
115272 2000-06-25  Jim Meyering  <meyering@lucent.com>
115274         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
115275         Linux header bug when _XOPEN_SOURCE is defined to 500.
115277 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
115279         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
115280         deficiency.
115282 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
115284         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
115285         Include xalloc.h.
115286         Don't include <stdlib.h>.  Don't declare malloc, realloc.
115288 2000-06-24  Jim Meyering  <meyering@lucent.com>
115290         * m4/strerror_r.m4: Revive this file -- to try out an experimental
115291         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
115292         for which strerror does return char*, but which lacks a conveniently
115293         accessible declaration of the function.  If the compile-test says
115294         strerror_r doesn't work, then resort to a `run'-test that works on
115295         BeOS and segfaults on DEC Unix.
115297 2000-06-24  Jim Meyering  <meyering@lucent.com>
115299         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
115301 2000-06-23  Paul Eggert  <eggert@twinsun.com>
115303         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
115304         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
115306 2000-06-23  Paul Eggert  <eggert@twinsun.com>
115308         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
115309         (mbrtowc, mbstate_t): Define substitutes if
115310         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
115311         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
115312         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
115314 2000-06-23  Jim Meyering  <meyering@lucent.com>
115316         * m4/afs.m4: Add missing AC_MSG_RESULT.
115317         Reported by Bruno Haible.
115319         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
115320         Suggestion from Bruno Haible.
115322 2000-06-23  Jim Meyering  <meyering@lucent.com>
115324         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
115326 2000-06-21  Jim Meyering  <meyering@lucent.com>
115328         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
115330 2000-06-21  Jim Meyering  <meyering@lucent.com>
115332         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
115333         (noinst_HEADERS): Add getstr.h.
115335         * lib/getline.c (getstr): Move into a separate file.
115336         * lib/getstr.c (getstr): New file, extracted from getline.c, with
115337         the following changes: new parameter, delim2; both delim[12]
115338         parameters have type `int', not `char'.  The latter would lose
115339         with 8-bit delimiters.
115340         * lib/getstr.h: New file.
115342 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
115344         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
115345         than 1024, return a memory chunk of least possible size, instead
115346         of size PATH_MAX + 2. In the loop, increment the size proportionally.
115347         Use free/xmalloc instead of xrealloc to avoid copying for very long
115348         paths.
115350 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
115352         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
115353         the empty string.
115355 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
115357         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
115358         address, not strdup.  Include <stdlib.h> and don't declare free().
115360 2000-06-19  Jim Meyering  <meyering@lucent.com>
115362         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
115364 2000-06-18  Jim Meyering  <meyering@lucent.com>
115366         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
115368         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
115369         `checking whether...' message to be consistent with that of the
115370         lstat test.
115372 2000-06-18  Jim Meyering  <meyering@lucent.com>
115374         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
115375         Besides, these days every porting target provides a mkdir function.
115377         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
115378         needed. (this snippet comes from src/system.h).
115380 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
115382         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
115384 2000-06-15  Paul Eggert  <eggert@twinsun.com>
115386         * lib/human.c (adjust_value): New function.
115387         (human_readable_inexact): Apply rounding style even when
115388         printing approximate values.
115390 2000-06-14  Paul Eggert  <eggert@twinsun.com>
115392         * lib/human.c (human_readable_inexact): Allow an input block
115393         size that is not a multiple of the output block size, and vice versa.
115394         Reported by Piergiorgio Sartor.
115396 2000-06-14  Paul Eggert  <eggert@twinsun.com>
115398         * lib/getdate.y (get_date): Apply relative times after time
115399         zone indicator, not before.  Reported by Todd A. Jacobs.
115401 2000-06-13  Jim Meyering  <meyering@lucent.com>
115403         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
115405         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
115407 2000-06-12  Paul Eggert  <eggert@twinsun.com>
115409         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
115411 2000-06-12  Jim Meyering  <meyering@lucent.com>
115413         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
115414         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
115415         optional argument.
115416         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
115417         the optional argument, `lib'.
115419 2000-06-08  Jim Meyering  <meyering@lucent.com>
115421         * m4/largefile.m4: Remove file (now that it's part of autoconf).
115423 2000-06-04  Paul Eggert  <eggert@twinsun.com>
115425         Rewrite largefile configuration so that we don't need to run
115426         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
115427         AC_CANONICAL_HOST in configure.in -- jmm]
115429         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
115430         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
115431         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
115432         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
115433         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
115434         All uses changed.
115435         Instead of inspecting the output of getconf, try to compile the
115436         test program without and with the macro definition.
115437         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
115438         for getconf.  Instead, check for the needed flags by compiling
115439         test programs.
115441 2000-06-04  Paul Eggert  <eggert@twinsun.com>
115443         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
115445 2000-06-04  Jim Meyering  <meyering@lucent.com>
115447         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
115448         SunOS 4.1.4 for which gid_t is an unsigned type.
115450 2000-06-03  Jim Meyering  <meyering@lucent.com>
115452         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
115453         now that autoconf requires that.
115455         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
115456         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
115457         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
115459 2000-06-03  Jim Meyering  <meyering@lucent.com>
115461         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
115463 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
115465         * m4/glibc21.m4: New file.
115466         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
115468 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
115470         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
115471         newer, don't install charset.alias.
115472         * lib/config.charset: Change the Linux/glibc rules so they become empty
115473         on glibc-2.1 or newer.
115475 2000-06-02  Jim Meyering  <meyering@lucent.com>
115477         * lib/mountlist.c: Back out last change.  Instead, do this...
115478         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
115479         me_dummy member using the same `ignore'-testing code.
115480         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
115481         fs_type strings.
115482         From Mark D. Roth.
115484 2000-05-29  Jim Meyering  <meyering@lucent.com>
115486         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
115487         mounts with the `ignore' attribute.  Based on a patch from
115488         Mark D. Roth.
115490 2000-05-28  Jim Meyering  <meyering@lucent.com>
115492         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
115493         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
115494         * m4/stat.m4: Likewise.
115495         * m4/lstat.m4: Likewise.
115496         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
115498         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
115499         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
115501 2000-05-26  Jim Meyering  <meyering@lucent.com>
115503         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
115505 2000-05-24  Jim Meyering  <meyering@lucent.com>
115507         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
115508         autoconf requires that.
115509         * m4/lib-check.m4: Likewise.
115510         * m4/jm-macros.m4: Likewise.
115511         * m4/strftime.m4: Likewise.
115513         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
115514         AC_CHECK_DECLS, now that autoconf requires that.
115516 2000-05-22  Jim Meyering  <meyering@lucent.com>
115518         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
115519         * m4/lstat.m4: Likewise.
115521 2000-05-22  Jim Meyering  <meyering@lucent.com>
115523         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
115525 2000-05-20  Jim Meyering  <meyering@lucent.com>
115527         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
115528         (jm_PREREQ): Use it.
115530 2000-05-18  Jim Meyering  <meyering@lucent.com>
115532         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
115533         back, too, since it may have been modified by allocate_entry.
115534         (hash_delete): Rewrite to use neither the assignment operator
115535         nor the comma operator in an if-expression.
115537 2000-05-15  Paul Eggert  <eggert@twinsun.com>
115539         * lib/closeout.c:
115540         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
115541         Remove; no longer needed.
115542         "quotearg.h": Add include.
115543         (file_name): Do not bother to explicitly initialize to NULL; it's less
115544         efficient on some hosts.
115545         (close_stdout_status): Remove test as to whether stdout was already
115546         closed; it breaks for the case "echo x | sort >&-".
115547         Quote file name colons.
115548         Do not assume that _("write error") lacks format strings.
115550 2000-05-15  Jim Meyering  <meyering@lucent.com>
115552         * lib/version-etc.c (version_etc_copyright): Update the copyright
115553         string used in all --version output.
115555 2000-05-14  Jim Meyering  <meyering@lucent.com>
115557         * lib/closeout.c (close_stdout_set_file_name): New function.
115558         (close_stdout_status): Use new file-scoped global.
115559         Return right away if fstat says the stdout file descriptor is invalid.
115560         * lib/closeout.h (close_stdout_set_file_name): Declare.
115562 2000-05-10  Jim Meyering  <meyering@lucent.com>
115564         * lib/closeout.c [default_exit_status]: New file-scoped variable.
115565         (close_stdout_set_status): New function.
115566         * lib/closeout.h (close_stdout_set_status): Declare.
115568 2000-05-09  Jim Meyering  <meyering@lucent.com>
115570         * m4/gettext.m4: Rename this...
115571         * m4/libintl.m4: ...to this.
115573 2000-05-08  Jim Meyering  <meyering@lucent.com>
115575         * lib/long-options.c: Don't include closeout.h.
115576         (parse_long_options): Don't call close_stdout for --version.
115578 2000-05-06  Paul Eggert  <eggert@twinsun.com>
115580         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
115581         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
115582         2.1.3 bug.  This avoids a clash when files like regex.c define
115583         _GNU_SOURCE.
115585 2000-05-06  Jim Meyering  <meyering@lucent.com>
115587         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
115588         (AC_REPLACE_FUNCS): Add strnlen.
115590         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
115591         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
115593         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
115594         AC_SEARCH_LIBS call for nanosleep.
115595         (LIB_NANOSLEEP): Set and AC_SUBST.
115597 2000-05-06  Jim Meyering  <meyering@lucent.com>
115599         * lib/strnlen.c: Undefine __strnlen and strnlen.
115600         [!weak_alias]: Define __strnlen to strnlen.
115602         * lib/atexit.c: New file, from libiberty.
115604 2000-05-06  Jim Meyering  <meyering@lucent.com>
115606         * lib/closeout.c (close_stdout_status): Also check for errors on the
115607         stderr stream.
115609 2000-05-05  Jim Meyering  <meyering@lucent.com>
115611         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
115612         AC_SEARCH_LIBS call for clock_gettime.
115613         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
115615         * m4/search-libs.m4: Update from autoconf.
115617         su doesn't work on Solaris 2.6.
115618         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
115619         <shadow.h>.  Reported by Dragos Harabor.
115621 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
115623         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
115624         memcpy instead of xmalloc, xrealloc, path_concat.
115625         (locale_charset): Treat empty environment variables as absent.
115626         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
115628 2000-05-04  Jim Meyering  <meyering@lucent.com>
115630         * lib/getopt.c: Update from glibc.
115631         * lib/obstack.c: Likewise.
115632         * lib/obstack.h: Likewise.
115633         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
115634         file
115636         * lib/regex.h: Likewise.
115637         * lib/strndup.c: Likewise.
115638         * lib/strnlen.c: New file, from glibc.
115640 2000-05-03  Jim Meyering  <meyering@lucent.com>
115642         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
115644 2000-05-02  Paul Eggert  <eggert@twinsun.com>
115646         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
115647         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
115648         compile-time test, rather than inspecting host and OS, to
115649         decide whether to define _LARGEFILE_SOURCE.
115651 2000-05-01  Jim Meyering  <meyering@lucent.com>
115653         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
115655         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
115656         Based on a patch from Bruno Haible.
115658 2000-05-01  Jim Meyering  <meyering@lucent.com>
115660         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
115662 2000-04-29  Jim Meyering  <meyering@lucent.com>
115664         * lib/path-concat.c: Declare strdup only if it's not defined.
115665         * lib/canon-host.c: Likewise.
115667 2000-04-28  Jim Meyering  <meyering@lucent.com>
115669         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
115670         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
115671         is included first, then limits.h is included by locale.h by libintl.h.
115672         From John David Anglin.
115674 2000-04-25  Jim Meyering  <meyering@lucent.com>
115676         * lib/makepath.c (S_IRWXUGO): Define.
115677         (make_path): Always perform explicit chmod if MODE specifies any
115678         of the `special' permission bits.  Prompted by a bug report against
115679         install from Mate Wierdl and Joost van Baal.
115681 2000-04-18  Jim Meyering  <meyering@lucent.com>
115683         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
115684         (jm_PREREQ): Use it.
115686 2000-04-18  Jim Meyering  <meyering@lucent.com>
115688         * lib/README: New file.
115690         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
115691         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
115693 2000-04-17  Jim Meyering  <meyering@lucent.com>
115695         Get it right :-)
115696         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
115697         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
115698         Suggestion from Akim Demaille.
115700 2000-04-17  Jim Meyering  <meyering@lucent.com>
115702         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
115703         the definition of it to rpl_strftime also defined-away the system's
115704         declaration.
115706 2000-04-15  Jim Meyering  <meyering@lucent.com>
115708         Use `C' to denote so-called `contiguous' files, the same way
115709         that tar does.
115710         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
115711         (ftypelet): Use S_ISCTG.
115712         From Michael Deutschmann.
115714 2000-04-14  Jim Meyering  <meyering@lucent.com>
115716         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
115717         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
115718         clobbered.
115720 2000-04-14  Jim Meyering  <meyering@lucent.com>
115722         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
115724 2000-04-13  Jim Meyering  <meyering@lucent.com>
115726         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
115727         AH_VERBATIM to insert required #ifndef into config.h.in.
115728         Suggestion from Akim Demaille.
115730 2000-04-12  Jim Meyering  <meyering@lucent.com>
115732         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
115733         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
115734         Christian Krackowizer.
115736         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
115737         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
115738         (AC_SYS_LARGEFILE): Require.
115739         (AM_C_PROTOTYPES): Require.
115741 2000-04-08  Jim Meyering  <meyering@lucent.com>
115743         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
115744         names don't conflict.  Reported by Eli Zaretskii.
115746 2000-04-07  Jim Meyering  <meyering@lucent.com>
115748         * lib/putenv.c: Move inclusion of errno.h so it follows that of
115749         sys/types.h, to work around system header problems on AIX 3.2.5.
115750         From Bruno Haible.
115752 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
115754         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
115755         bug.  Deal with the different error behavior of Irix iconv.
115757 2000-04-05  Paul Eggert  <eggert@twinsun.com>
115759         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
115760         IRIX if the installer said otherwise.
115762 2000-04-05  Jim Meyering  <meyering@lucent.com>
115764         Portability tweaks required for ultrix4.3.
115765         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
115766         (jm_CHECK_DECLS): Add getutent to the list of functions.
115767         (_jm_DECL_HEADERS): Add utmpx.h.
115768         From John David Anglin.
115770         * m4/strftime.m4: Back out the 2000-04-02 change.
115771         Instead of that change, simply undefine putenv in the test program.
115773 2000-04-05  Jim Meyering  <meyering@lucent.com>
115775         Portability tweaks required for ultrix4.3.
115776         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
115777         getutent.
115778         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
115779         * lib/canon-host.c: Declare strdup.
115780         * lib/path-concat.c: Likewise.
115781         From John David Anglin.
115783 2000-04-04  Jim Meyering  <meyering@lucent.com>
115785         Be more DOS 8.3-friendly.
115786         * lib/ref-add.sin: Renamed from ref-add.sed.in.
115787         * lib/ref-del.sin: Renamed from ref-del.sed.in.
115788         * lib/Makefile.am: Reflect renaming.
115789         Reported by Eli Zaretskii.
115791         Use a temporary file name that won't clash with `charset.alias'
115792         in the DOS 8.3 name space.
115793         * lib/Makefile.am (charset_tmp): Define.
115794         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
115795         (uninstall-local): Likewise.
115796         Reported by Eli Zaretskii.
115798 2000-04-03  Jim Meyering  <meyering@lucent.com>
115800         * m4/gettext.m4: Fix typo in comment.
115802         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
115803         textutils/configure.in).  Suggestion from Paul Eggert.
115804         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
115806 2000-04-02  Paul Eggert  <eggert@twinsun.com>
115808         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
115809         variable in the shell rather than using putenv, which isn't
115810         portable.  This avoids the configure-time inter-test dependency
115811         on the potentially-renamed putenv function.
115813 2000-03-30  Paul Eggert  <eggert@twinsun.com>
115815         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
115816         before checking struct stat.st_blksize, so that
115817         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
115819 2000-03-29  Paul Eggert  <eggert@twinsun.com>
115821         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
115822         since strftime.c uses HAVE_STRFTIME to decide whether to use
115823         the underlying strftime.
115825 2000-03-29  Paul Eggert  <eggert@twinsun.com>
115827         * lib/time/strftime.c (my_strftime): Make sure we call the system
115828         strftime, not ourselves, when invoking the underlying strftime.
115830 2000-03-24  Jim Meyering  <meyering@lucent.com>
115832         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
115833         (charset_alias): Define.
115834         (install-exec-local): Factor out common code.
115835         (uninstall-local): Split lines longer than 80.
115836         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
115837         (SUFFIXES): Define.
115838         (.sed.in.sed): New rule.  Don't redirect directly to $@.
115839         (CLEANFILES): Add ref-add.sed and ref-del.sed.
115841 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
115843         * lib/config.charset: Output a line containing "Packages using this
115844         file".
115845         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
115846         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
115847         ref-del.sed): New rules.
115849 2000-03-17  Jim Meyering  <meyering@lucent.com>
115851         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
115852         Otherwise, include <strings.h>
115854 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
115856         * lib/unicodeio.c (utf8_wctomb): New function.
115857         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
115858         format instead of in UCS-4 with platform dependent endianness.
115860 2000-03-10  Jim Meyering  <meyering@lucent.com>
115862         * m4/lib-check.m4: Look for getspnam in -lgen, too.
115863         From Marco Franzen.
115865 2000-03-07  Paul Eggert  <eggert@twinsun.com>
115867         * lib/savedir.c (savedir): Work even if directory size is
115868         negative; this can happen with some screwy NFS configurations.
115870 2000-03-06  Jim Meyering  <meyering@lucent.com>
115872         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
115873         if it's NULL (because we ran out of memory).  From Bruno Haible.
115875 2000-03-05  Jim Meyering  <meyering@lucent.com>
115877         * lib/localcharset.c ("path-concat.h"): Include.
115878         (get_charset_aliases): Use path_concat instead of ANSI string
115879         concatenation.
115881         * lib/unicodeio.h (PARAMS): Define.
115882         Use it to guard prototype.
115884 2000-03-04  Jim Meyering  <meyering@lucent.com>
115886         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
115887         for lib/localcharset.c.
115889 2000-03-04  Jim Meyering  <meyering@lucent.com>
115891         * lib/Makefile.am (install-exec-local): Create $(libdir) before
115892         installing into it.
115893         (uninstall-local): Uncomment this rule so `make distcheck' works
115894         once again.
115896         * lib/unicodeio.c (<errno.h>): Include it.
115897         (errno): Declare if not defined.
115899         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
115901         * lib/config.charset: New version, incorporating remarks from a linux
115902         i18n mailing list.  From Bruno Haible.
115904 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
115906         * m4/codeset.m4: New file.
115907         * m4/iconv.m4: New file.
115908         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
115910 2000-03-03  Jim Meyering  <meyering@lucent.com>
115912         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
115914 2000-03-02  Jim Meyering  <meyering@lucent.com>
115916         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
115917         the messages come out on separate lines.
115919         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
115920         rather than jm_CHECK_DECLARATIONS.
115921         * m4/decl.m4: Remove now-unused file.
115923         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
115924         geteuid.
115926 2000-03-02  Jim Meyering  <meyering@lucent.com>
115928         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
115930 2000-03-01  Jim Meyering  <meyering@lucent.com>
115932         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
115933         * lib/unicodeio.c: Likewise.
115935 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
115937         * lib/config.charset: New file.
115938         * lib/localcharset.c: New file.
115939         * lib/unicodeio.h, lib/unicodeio.c: New files.
115940         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
115941         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
115942         (noinst_HEADERS): Add unicodeio.h.
115943         (all-local, install-exec-local, charset.alias): New targets.
115945 2000-02-28  Paul Eggert  <eggert@twinsun.com>
115947         * lib/quotearg.c (ALERT_CHAR): New macro.
115948         (quotearg_buffer_restyled): Use it.
115950 2000-02-27  Jim Meyering  <meyering@lucent.com>
115952         * m4/check-decl.m4: Add getenv to the list.
115954 2000-02-27  Jim Meyering  <meyering@lucent.com>
115956         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
115957         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
115959         * lib/backupfile.c: Guard inclusion of stdlib.h with
115960         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
115961         Declare malloc if needed.
115963         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
115964         `#ifndef HAVE_DECL..'
115965         now that autoconf always defines the HAVE_DECL_ symbols.
115966         * lib/human.c: Likewise.
115967         * lib/same.c: Likewise.
115968         * lib/strtoumax.c: Likewise.
115970         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
115971         declaration check was not run.
115972         * lib/hash.c: Likewise.
115973         * lib/human.c: Likewise.
115974         * lib/same.c: Likewise.
115975         * lib/strtoumax.c: Likewise.
115977         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
115978         `.', then first look up the entire `.'-containing string as a login
115979         name.
115981 2000-02-23  Jim Meyering  <meyering@lucent.com>
115983         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
115984         in place of my hack.
115986 2000-02-18  Paul Eggert  <eggert@twinsun.com>
115988         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
115989         (textint): New typedef.
115990         (parser_control): Member year changed from int to textint.
115991         All uses changed.
115992         (YYSTYPE): Removed; replaced by %union with int and textint members.
115993         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
115994         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
115995         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
115996         (tSNUMBER, tUNUMBER): Now of type <textintval>.
115997         (date, number, to_year): Use width of number in digits, not its value,
115998         to determine whether it's a 2-digit year, or a 2-digit time.
115999         (yylex): Store number of digits of numeric tokens.
116000         Reported by John Kendall.
116002         (parser_control): Changed from struct parser_control to typedef (for
116003         consistency).  All uses changed.
116005         (tID): Removed; not used.
116006         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
116008 2000-02-14  Paul Eggert  <eggert@twinsun.com>
116010         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
116011         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
116013 2000-02-12  Jim Meyering  <meyering@lucent.com>
116015         * lib/userspec.c (ISDIGIT): Define it.
116016         (isdigit): Remove definition.
116017         (is_number): Use ISDIGIT, not isdigit.
116018         <libintl.h>: Include.
116019         (_ and N_): Define.
116020         (parse_user_spec): Mark translatable strings.
116022 2000-02-10  Jim Meyering  <meyering@lucent.com>
116024         With these changes, nanosleep.[ch] are finally enough like the other
116025         lib/* replacement files to compile on a few more losing systems.
116027         * lib/nanosleep.h: Don't include config.h.
116028         Remove prototype from declaration of nanosleep.
116029         (PARAMS): Remove now-unneeded definition.
116030         * lib/nanosleep.c: #undef nanosleep.
116031         (rpl_nanosleep): Rename from nanosleep.
116033 2000-02-10  Jim Meyering  <meyering@lucent.com>
116035         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
116036         gnu_nanosleep to rpl_nanosleep.
116038 2000-02-09  Jim Meyering  <meyering@lucent.com>
116040         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
116041         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
116043 2000-02-08  Akim Demaille  <akim@epita.fr>
116045         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
116046         `[' and `]' and remove uses of `changequote'.
116047         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
116048         (AC_SYS_LARGEFILE): Likewise.
116049         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
116050         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
116051         of changequote.
116052         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
116053         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
116054         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
116055         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
116057 2000-02-05  Jim Meyering  <meyering@lucent.com>
116059         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
116060         Remove explicit use of AC_HEADER_TIME.  It is required by
116061         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
116062         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
116063         in autoconf whereby the expansion of the latter ended up preceding
116064         the expansion of its prerequisite, AC_HEADER_TIME.
116065         Reported by Volker Borchert.
116067 2000-02-03  Jim Meyering  <meyering@lucent.com>
116069         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
116071 2000-02-03  Jim Meyering  <meyering@lucent.com>
116073         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
116074         rather than with `#if HAVE_UTMPNAME'.
116076 2000-02-02  Jim Meyering  <meyering@lucent.com>
116078         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
116079         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
116080         Reported by Eli Zaretskii.
116082 2000-02-01  Jim Meyering  <meyering@lucent.com>
116084         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
116086 2000-01-31  Jim Meyering  <meyering@lucent.com>
116088         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
116089         functions.  Add the time.h and sys/time.h headers along with the
116090         AC_REQUIRE'ment of AC_HEADER_TIME.
116092 2000-01-31  Jim Meyering  <meyering@lucent.com>
116094         * lib/nanosleep.h (nanosleep): Guard declaration with
116095         `#if ! HAVE_DECL_NANOSLEEP'.
116096         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
116097         the declaration in that vendor's sys/timers.h.
116098         Reported by Christian Krackowizer.
116100         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
116101         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
116102         (ISPRINT): Likewise.
116103         Reported by Tom Tromey.
116105 2000-01-30  Jim Meyering  <meyering@lucent.com>
116107         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
116109         * m4/prereq.m4 (utmp_includes): Define.
116110         Check for ut_user and ut_name members in both struct utmpx
116111         and struct utmp.
116113 2000-01-30  Jim Meyering  <meyering@lucent.com>
116115         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
116116         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
116117         header files where only utmpx.ut_user is declared.
116119         * lib/readutmp.h (UT_USER): Define.
116121 2000-01-29  Jim Meyering  <meyering@lucent.com>
116123         * m4/lib-check.m4: New file containing library-related checks from
116124         fileutils and sh-utils (textutils had none).
116126 2000-01-28  Jim Meyering  <meyering@lucent.com>
116128         * m4/perl.m4: Change format of warning message to look more like that
116129         from the missing script.  Suggestion from François Pinard.
116131 2000-01-25  Jim Meyering  <meyering@lucent.com>
116133         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
116134         well as time.h in the compile check.
116135         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
116136         Fix typo in cross-compiling case: s/yes/no/.
116138 2000-01-23  Jim Meyering  <meyering@lucent.com>
116140         * m4/jm-macros.m4: Move df-related tests here from
116141         fileutils/configure.in
116143         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
116144         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
116146         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
116147         s/space/ac_fsusage_space/.
116148         (jm_FILE_SYSTEM_USAGE): Take two parameters.
116150         * m4/ftruncate.m4: New file (derived from part of
116151         fileutils/configure.in).
116152         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
116153         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
116155         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
116156         AC_SUBST these here, rather than just in sh-util/configure.in, so
116157         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
116158         all the same.
116159         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
116160         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
116161         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
116162         (AC_SUBST(POW_LIBM)): Likewise.
116163         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
116165 2000-01-23  Jim Meyering  <meyering@lucent.com>
116167         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
116168         obstack.c.
116170 2000-01-22  Jim Meyering  <meyering@lucent.com>
116172         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
116174         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
116176         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
116177         configure.in
116178         (AC_CHECK_HEADERS): Likewise for sh-utils.
116179         (AC_CHECK_HEADERS): Likewise for textutils.
116180         Merge the three lists of headers.
116182         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
116183         from fileutils' configure.in.
116185         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
116186         code. Moved tests into their own function (_jm_DECL_HEADERS) in
116187         check-decl.m4.
116189         * m4/check-decl.m4: Use #if rather than #ifdef.
116190         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
116191         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
116192         (_jm_DECL_HEADERS): Define new function.
116193         (jm_CHECK_DECLARATIONS): Require it.
116195 2000-01-22  Jim Meyering  <meyering@lucent.com>
116197         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
116198         [! HAVE_DECL_STRTOULL]: Declare strtoull.
116199         Required for some AIX systems.  Reported by Christian Krackowizer.
116200         [TESTING] (main): New function.
116202         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
116203         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
116204         letters.
116206         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
116207         iswprint.
116209         * lib/strverscmp.c (ISDIGIT): Define.
116210         (strverscmp): Use ISDIGIT, not isdigit.
116212 2000-01-19  Jim Meyering  <meyering@lucent.com>
116214         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
116215         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
116216         defines `struct timespec' in <sys/time.h>
116218         * m4/c-bs-a.m4: Remove uses of changequote altogether.
116219         Thanks to Akim for explaining.
116221 2000-01-17  Paul Eggert  <eggert@twinsun.com>
116223         * lib/nanosleep.c (nanosleep):
116224         Don't use SA_INTERRUPT to decide whether to call sigaction, as
116225         POSIX.1 doesn't require SA_INTERRUPT and some systems
116226         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
116227         it's been part of POSIX.1 since day 1 (in 1988).
116229 2000-01-17  Jim Meyering  <meyering@lucent.com>
116231         * lib/interlock: Remove unused file.  Reported by François Pinard.
116233 2000-01-16  Paul Eggert  <eggert@twinsun.com>
116235         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
116236         alert, backslash, formfeed, and vertical tab unnecessarily in
116237         shell quoting style.
116239 2000-01-16  Jim Meyering  <meyering@lucent.com>
116241         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
116242         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
116243         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
116244         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
116246 2000-01-16  Jim Meyering  <meyering@lucent.com>
116248         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
116249         because the latter didn't work.
116251 2000-01-15  Jim Meyering  <meyering@lucent.com>
116253         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
116254         (AC_REPLACE_FUNCS): Add memcpy and memset.
116255         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
116256         Add strpbrk.
116257         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
116259 2000-01-12  Jim Meyering  <meyering@lucent.com>
116261         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
116262         (jm_PREREQ): Use it.
116263         (jm_PREREQ_READUTMP): New macro.
116264         (jm_PREREQ): Use it.
116266 2000-01-11  Paul Eggert  <eggert@twinsun.com>
116268         Quote multibyte characters correctly.
116269         * m4/c-bs-a.m4: New file.
116270         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
116271         (jm_PREREQ): Use it.
116273 2000-01-11  Paul Eggert  <eggert@twinsun.com>
116275         * m4/uintmax_t.m4: Port to autoconf 2.13.
116277 2000-01-08  Jim Meyering  <meyering@ascend.com>
116279         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
116280         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
116282 2000-01-04  Jim Meyering  <meyering@ascend.com>
116284         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
116285         jm_STRUCT_DIRENT_D_TYPE.
116286         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
116287         jm_STRUCT_DIRENT_D_INO.
116288         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
116289         jm_STRUCT_UTIMBUF.
116290         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
116291         renamings.
116292         * m4/utime.m4: Likewise.
116294         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
116295         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
116297 2000-01-03  Paul Eggert  <eggert@twinsun.com>
116299         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
116300         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
116302 2000-01-02  Jim Meyering  <meyering@ascend.com>
116304         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
116305         remember if this is necessary.
116307 1999-12-26  Jim Meyering  <meyering@ascend.com>
116309         * m4/jm-macros.m4: Use it here.
116310         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
116312 1999-12-23  Jim Meyering  <meyering@ascend.com>
116314         * m4/jm-macros.m4: Check for clock_gettime (moved from
116315         fileutils/configure.in)
116316         Check for gettimeofday.
116318 1999-12-20  Jim Meyering  <meyering@ascend.com>
116320         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
116321         autoconf-2.14a-1999-12-20.
116323 1999-12-19  Jim Meyering  <meyering@ascend.com>
116325         * m4/lstat-slash.m4: New file.
116326         * m4/jm-macros.m4: Use the new macro:
116327         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
116329 1999-12-07  Jim Meyering  <meyering@ascend.com>
116331         * m4/perl.m4: Require that File::Compare be available, too.
116332         Too many systems seem to lack it.
116334         * m4/strftime.m4: Add checks for most of the cpp macros tested in
116335         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
116337 1999-11-18  Paul Eggert  <eggert@twinsun.com>
116339         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
116340         problem with the QNX 4.25 shell, which doesn't propagate exit
116341         status of failed commands inside shell assignments.
116343 1999-11-17  Jim Meyering  <meyering@ascend.com>
116345         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
116347 1999-11-07  Jim Meyering  <meyering@ascend.com>
116349         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
116351 1999-11-06  Jim Meyering  <meyering@ascend.com>
116353         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
116354         * m4/jm-macros.m4 (jm_MACROS): Use it here.
116356 1999-11-05  Jim Meyering  <meyering@ascend.com>
116358         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
116359         configure.in of textutils, fileutils, and sh-utils into this one
116360         (shared between those packages) file.
116361         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
116362         AC_STRUCT_ST_BLKSIZE.
116364 1999-11-03  Jim Meyering  <meyering@ascend.com>
116366         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
116367         of AC_CHECK_TYPE checks includes unistd.h.
116368         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
116369         Suggestion from Akim Demaille.
116371 1999-10-30  Jim Meyering  <meyering@ascend.com>
116373         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
116374         m4-quoted string.
116375         * m4/ls-mntd-fs.m4: Likewise.
116376         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
116377         * m4/jm-winsz1.m4: Likewise.
116379         * m4/const.m4: Remove file, since the fix made it into the experimental
116380         version of autoconf.
116381         * m4/mktime.m4: Likewise.
116383         * m4/check-type.m4: Remove file, now that the latest version of
116384         AC_CHECK_TYPE takes a third arg to specify additional #includes.
116386         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
116387         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
116388         AC_CHECK_TYPE.
116390 1999-10-04  Jim Meyering  <meyering@ascend.com>
116392         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
116394 1999-09-22  Paul Eggert  <eggert@twinsun.com>
116396         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
116397         2.95.1 bug with HP-UX 10.20.
116399 1999-09-17  Jim Meyering  <meyering@ascend.com>
116401         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
116402         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
116403         due to missing strdup (against sh-utils-2.0).
116405 1999-08-29  Jim Meyering  <meyering@ascend.com>
116407         * m4/jm-macros.m4: Require jm_BISON.
116408         * m4/bison.m4: New file.
116410 1999-08-17  Paul Eggert  <eggert@twinsun.com>
116412         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
116413         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
116415 1999-08-05  Jim Meyering  <meyering@ascend.com>
116417         * m4/getline.m4: Rename test file from conftestdata to conftest.data
116418         to avoid conflicts with `conftest' on 8+3 filesystems.
116419         Suggestion from Eli Zaretskii.
116421 1999-08-04  Jim Meyering  <meyering@ascend.com>
116423         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
116424         fileutils and sh-utils (textutils's getline test was inadequate).
116425         (AM_FUNC_GETLINE): Run this test.
116426         (AC_CHECK_FUNCS): Check for getdelim.
116427         Reported by Bob Proulx.
116429 1999-08-02  Jim Meyering  <meyering@ascend.com>
116431         * m4/jm-macros.m4: Add a comment.
116433 1999-08-01  Paul Eggert  <eggert@twinsun.com>
116435         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
116436         <inttypes.h> defines strtoumax as a macro (and not as a
116437         function).
116439 1999-08-01  Paul Eggert  <eggert@twinsun.com>
116441         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
116442         that we can shift, multiply and divide unsigned long long
116443         values; Ultrix cc can't do it.
116445 1999-08-01  Paul Eggert  <eggert@twinsun.com>
116447         * m4/mktime.m4: New file, which is a preview of what should appear
116448         in the next public autoconf release.
116450 1999-08-01  Paul Eggert  <eggert@twinsun.com>
116452         * m4/lfs.m4: Remove this file.
116453         * m4/largefile.m4: New file.  It contains the old contents of
116454         lfs.m4, except that all names with prefix AC_LFS have been
116455         changed to use the prefix AC_SYS_LARGEFILE instead, to be
116456         compatible with future autoconf versions.  Also, some minor m4
116457         quoting problems have been fixed.
116459 1999-08-01  Paul Eggert  <eggert@twinsun.com>
116461         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
116462         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
116463         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
116464         and simplify the shell code.
116466 1999-08-01  Jim Meyering  <meyering@ascend.com>
116468         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
116469         m4.
116471 1999-07-20  Jim Meyering  <meyering@ascend.com>
116473         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
116475 1999-07-15  Jim Meyering  <meyering@ascend.com>
116477         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
116479 1999-05-22  Jim Meyering  <meyering@ascend.com>
116481         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
116483 1999-05-20  Jim Meyering  <meyering@ascend.com>
116485         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
116486         Add a colon after each `then' in case $4 is empty.
116488 1999-05-16  Jim Meyering  <meyering@ascend.com>
116490         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
116492 1999-05-10  Jim Meyering  <meyering@ascend.com>
116494         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
116496         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
116497         AC_FUNC_MKTIME.
116499 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
116501         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
116503 1999-05-04  Paul Eggert  <eggert@twinsun.com>
116505         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
116506         not CPPFLAGS, so that linking works correctly in IRIX.
116508 1999-04-30  Paul Eggert  <eggert@twinsun.com>
116510         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
116512 1999-04-20  Paul Eggert  <eggert@twinsun.com>
116514         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
116515         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
116516         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
116517         jm_AC_TYPE_UNSIGNED_LONG_LONG.
116518         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
116520         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
116522 1999-04-20  Jim Meyering  <meyering@ascend.com>
116524         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
116525         AC_REPLACE xstroull if necessary.  From Paul Eggert.
116526         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
116528 1999-04-18  Jim Meyering  <meyering@ascend.com>
116530         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
116531         * m4/jm-macros.m4: Use it.
116533 1999-04-06  Jim Meyering  <meyering@ascend.com>
116535         * m4/strftime.m4: Remove test for %f.
116537 1999-03-29  Jim Meyering  <meyering@ascend.com>
116539         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
116540         superset of the AC_TYPE_* checks in the textutils, fileutils,
116541         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
116542         AC_TYPE_PID_T.
116544 1999-03-28  Jim Meyering  <meyering@ascend.com>
116546         * m4/jm-macros.m4: Define GNU_PACKAGE here.
116547         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
116548         replaced e.g., in the *.sh files of the sh-utils.
116550 1999-03-20  Jim Meyering  <meyering@ascend.com>
116552         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
116553         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
116554         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
116556 1999-03-19  Jim Meyering  <meyering@ascend.com>
116558         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
116560 1999-03-12  Jim Meyering  <meyering@ascend.com>
116562         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
116564 1999-03-07  Jim Meyering  <meyering@ascend.com>
116566         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
116567         declared.
116569 1999-02-17  Jim Meyering  <meyering@ascend.com>
116571         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
116572         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
116574 1999-02-07  Jim Meyering  <meyering@ascend.com>
116576         * m4/group-member.m4: New file -- extracted from sh-utils'
116577         configure.in.
116579         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
116580         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
116582 1999-02-06  Jim Meyering  <meyering@ascend.com>
116584         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
116585         * m4/fnmatch.m4: Likewise.
116586         * m4/getgroups.m4: Likewise.
116587         * m4/lstat.m4: Likewise.
116588         * m4/malloc.m4: Likewise.
116589         * m4/putenv.m4: Likewise.
116590         * m4/realloc.m4: Likewise.
116591         * m4/regex.m4: Likewise.
116592         * m4/stat.m4: Likewise.
116593         * m4/strftime.m4: Likewise.
116594         Suggestion from Alain Magloire.
116596         * m4/chown.m4: Use `.$ac_objext', not `.o'.
116597         * m4/fnmatch.m4: Likewise.
116598         * m4/getgroups.m4: Likewise.
116599         * m4/getline.m4: Likewise.
116600         * m4/lstat.m4: Likewise.
116601         * m4/malloc.m4: Likewise.
116602         * m4/memcmp.m4: Likewise.
116603         * m4/putenv.m4: Likewise.
116604         * m4/realloc.m4: Likewise.
116605         * m4/regex.m4: Likewise.
116606         * m4/stat.m4: Likewise.
116607         * m4/strftime.m4: Likewise.
116608         Suggestion from Alain Magloire.
116610         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
116611         an argument.
116613         * m4/regex.m4: Add a run-time Test for proper operation of
116614         re_compile_pattern.
116616 1999-01-31  Jim Meyering  <meyering@ascend.com>
116618         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
116620 1999-01-30  Jim Meyering  <meyering@ascend.com>
116622         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
116624         * m4/jm-mktime.m4: Make this a wrapper around the official
116625         AM_FUNC_MKTIME rather than my private copy, now that the official one
116626         is up to date.
116627         * m4/mktime.m4: Remove file.
116629         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
116630         * m4/uptime.m4: Likewise.
116631         * m4/uintmax_t.m4: Likewise.
116633 1999-01-28  Jim Meyering  <meyering@ascend.com>
116635         * m4/jm-macros.m4: Use jm_AFS.
116636         * m4/afs.m4: New file (from fileutils' configure.in).
116638         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
116639         * m4/chown.m4: Likewise.
116640         * m4/d-ino.m4: Likewise.
116641         * m4/d-type.m4: Likewise.
116642         * m4/fnmatch.m4: Likewise.
116643         * m4/getgroups.m4: Likewise.
116644         * m4/gettext.m4: Likewise.
116645         * m4/jm-mktime.m4: Likewise.
116646         * m4/jm-winsz2.m4: Likewise.
116647         * m4/lcmessage.m4: Likewise.
116648         * m4/ls-mntd-fs.m4: Likewise.
116649         * m4/malloc.m4: Likewise.
116650         * m4/memcmp.m4: Likewise.
116651         * m4/putenv.m4: Likewise.
116652         * m4/realloc.m4: Likewise.
116653         * m4/st_mtim.m4: Likewise.
116654         * m4/strftime.m4: Likewise.
116656 1999-01-16  Jim Meyering  <meyering@ascend.com>
116658         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
116659         (ARGMATCH_DIE_DECL): Define.
116661 1999-01-12  Jim Meyering  <meyering@ascend.com>
116663         * m4/Makefile.am.in: Rewrite to avoid using fmt.
116664         Reported by Lars Hecking.
116666 1999-01-10  Jim Meyering  <meyering@ascend.com>
116668         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
116669         gross kludge.
116670         * m4/inttypes_h.m4: Likewise.
116671         * m4/lstat.m4: Likewise.
116672         * m4/malloc.m4: Likewise.
116673         * m4/readdir.m4: Likewise.
116674         * m4/realloc.m4: Likewise.
116675         * m4/st_dm_mode.m4: Likewise.
116676         * m4/stat.m4: Likewise.
116677         * m4/utimbuf.m4: Likewise.
116678         * m4/utimes.m4: Likewise.
116680         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
116681         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
116682         comments in config.h.in are meaningful.
116684         * m4/jm-macros.m4: Require autoconf-2.13 here.
116686         * m4/regex.m4: By default, don't use the included regex.c on systems
116687         with glibc 2.  Suggestion from Uli Drepper.
116689 1999-01-02  Jim Meyering  <meyering@ascend.com>
116691         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
116693 1998-12-18  Jim Meyering  <meyering@ascend.com>
116695         * m4/Makefile.am.in (Makefile.am): Simplify rule.
116696         Based on a suggestion from Lars Hecking.
116698 1998-11-16  Paul Eggert  <eggert@twinsun.com>
116700         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
116702 1998-11-16  Jim Meyering  <meyering@ascend.com>
116704         * m4/lfs.m4: Double-quote the `uname...` expression.
116706 1998-11-14  Jim Meyering  <meyering@ascend.com>
116708         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
116709         * m4/stat.m4: Likewise.
116711 1998-11-03  Jim Meyering  <meyering@ascend.com>
116713         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
116714         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
116716 1998-10-18  Jim Meyering  <meyering@ascend.com>
116718         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
116720 1998-10-17  Jim Meyering  <meyering@ascend.com>
116722         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
116723         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
116724         calls for those previously hard-coded headers.  Instead, take a new
116725         parameter.
116726         (jm_CHECK_DECLARATIONS): Reflect interface change.
116727         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
116728         (jm_CHECK_DECL_LOCALTIME_R): New macro.
116730         * m4/mktime.m4: Test for spring-forward gap before long-running test.
116732 1998-10-14  Jim Meyering  <meyering@ascend.com>
116734         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
116735         instead of "TZ=America/Vancouver".  From Paul Eggert.
116737 1998-10-11  Jim Meyering  <meyering@ascend.com>
116739         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
116740         This adds a test for a recently added compatibility fix for mktime.c.
116741         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
116743 1998-09-27  Jim Meyering  <meyering@ascend.com>
116745         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
116747         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
116748         ../configure.in, including a change from Gordon Matzigkeit to allow
116749         cross-compiling for the Hurd.
116751         * m4/glibc.m4: New file/macro to test for the GNU C Library
116752         versions 1 and 2.  From Gordon Matzigkeit.
116753         Indent.
116755 1998-09-21  Jim Meyering  <meyering@ascend.com>
116757         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
116759 1998-08-18  Paul Eggert  <eggert@twinsun.com>
116761         Port nanosecond-resolution times to UnixWare 2.1.2 and
116762         pedantic Solaris 2.6.
116764         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
116765         AC_STRUCT_ST_MTIM.
116766         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
116767         Generate name of ns member, instead of just 1 or undef.
116768         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
116770 1998-08-15  Jim Meyering  <meyering@ascend.com>
116772         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
116773         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
116774         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
116775         instead of jm_TYPE_SSIZE_T.
116777 1998-08-12  Jim Meyering  <meyering@ascend.com>
116779         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
116781 1998-08-02  Jim Meyering  <meyering@ascend.com>
116783         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
116784         in acconfig.h manually.
116786 1998-07-31  Paul Eggert  <eggert@twinsun.com>
116788         * m4/st_mtim.m4: New file.
116790 1998-07-28  Jim Meyering  <meyering@ascend.com>
116792         * m4/utimes.m4: Undef stat.
116794 1998-07-25  Jim Meyering  <meyering@ascend.com>
116796         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
116797         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
116799 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
116801         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
116802         uid and gid actually remain unchanged.
116804 1998-07-07  Jim Meyering  <meyering@ascend.com>
116806         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
116808 1998-07-04  Jim Meyering  <meyering@ascend.com>
116810         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
116811         to prove that this macro can be used in packages without regex.c.
116813 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
116815         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
116816         is to be used.
116818 1998-07-03  Jim Meyering  <meyering@ascend.com>
116820         * m4/gettext.m4: Add -lintl if it's found to be necessary.
116822         * m4/gettext.m4: New file -- from gettext-0.10.35.
116823         * m4/lcmessage.m4: Likewise.
116824         * m4/progtest.m4: Likewise.
116826         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
116827         * m4/jm-macros.m4: Require the new macro.
116829 1998-06-29  Jim Meyering  <meyering@ascend.com>
116831         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
116832         for the definition of NGROUPS (used in a system header included
116833         by sys/mount.h).
116835 1998-06-28  Jim Meyering  <meyering@ascend.com>
116837         * m4/ls-mntd-fs.m4: New file.
116838         * m4/fstypename.m4: New file.
116840         * m4/jm-macros.m4: Require the new macro.
116841         * m4/jm-glibc-io.m4: New file.
116843 1998-05-19  Jim Meyering  <meyering@ascend.com>
116845         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
116846         * m4/lchown.m4: New file.
116848         * m4/Makefile.am.in: New file.
116849         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
116851 1998-05-14  Jim Meyering  <meyering@ascend.com>
116853         * m4/Makefile.am (EXTRA_DIST): Add them.
116854         * m4/jm-macros.m4: New file.
116855         * m4/utimbuf.m4: New file.
116857 1998-05-12  Jim Meyering  <meyering@ascend.com>
116859         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
116861 1998-05-11  Jim Meyering  <meyering@ascend.com>
116863         * m4/isc-posix.m4: New file.
116865 1998-05-10  Jim Meyering  <meyering@ascend.com>
116867         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
116869 1998-05-09  Jim Meyering  <meyering@ascend.com>
116871         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
116872         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
116873         with automake.
116875         * m4/ssize_t.m4: New file.
116876         * m4/mktime.m4: Remove file -- the new automake has this now.
116878 1998-04-26  Jim Meyering  <meyering@ascend.com>
116880         * m4/assert.m4: New file.
116881         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
116883 1998-04-05  Jim Meyering  <meyering@ascend.com>
116885         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
116886         (jm_PREREQ): Use it here.
116888 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
116890         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
116891         in acconfig.h.
116893 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
116895         * m4/prereq.m4: New file.
116896         * m4/error.m4: New file.
116897         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
116899 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
116901         * m4/getline.m4: Don't set am_cv_func_working_getline before the
116902         cache-check for the same variable -- that defeated the purpose of
116903         the test; the test program was never run.  This was a problem only
116904         on systems with losing getline functions -- HP-UX 10.20 is one.
116905         Reported by Bjorn Helgaas.
116907 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
116909         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
116911 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
116913         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
116915         * m4/const.m4: New file.  Use an initializer in this declaration
116916         typedef int charset[2]; const charset x;
116917         Reported by Bob Glickstein.
116919 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
116921         * m4/chown.m4: Fix reversed types on -1 args to chown.
116922         From Kaveh Ghazi.
116924 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
116926         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
116927         Add lseek and memchr.
116929         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
116930         T.E.Dickey <dickey@clark.net> said that some older preprocessors
116931         have a 20-character limit on names.
116933 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
116935         * m4/inttypes_h.m4: New file.
116936         * m4/uintmax_t.m4: New file.
116937         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
116940         -----
116942         Local Variables:
116943         coding: utf-8
116944         End:
116946         Copyright (C) 1997-2018 Free Software Foundation, Inc.
116948         Copying and distribution of this file, with or without
116949         modification, are permitted provided the copyright notice
116950         and this notice are preserved.